fnmatch-h: Formalize side effects from other modules.
[gnulib.git] / ChangeLog
blob38d1ae397d52f849a574f605e52498b97ca4efeb
1 2018-08-19  Bruno Haible  <bruno@clisp.org>
3         fnmatch-h: Formalize side effects from other modules.
4         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
5         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
7         limits-h: Formalize side effects from other modules.
8         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
9         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
11 2018-08-19  Bruno Haible  <bruno@clisp.org>
13         getpass: Move declaration to <unistd.h>.
14         * lib/unistd.in.h (getpass): New declaration.
15         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
16         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
19         On glibc systems, don't set REPLACE_GETPASS to 1.
20         * modules/getpass (Depends-on): Add 'unistd'.
21         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
22         (Include): Specify <unistd.h> instead of "getpass.h".
23         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
24         (configure.ac): Sync with the configure.ac section of modules/getpass.
25         (Include): Specify <unistd.h> instead of "getpass.h".
26         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
27         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
28         REPLACE_GETPASS.
29         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
30         REPLACE_GETPASS.
31         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
32         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
33         and musl.
34         * NEWS: Mention the change.
36 2018-08-19  Bruno Haible  <bruno@clisp.org>
38         glob: Fix over-optimization due to attribute __nonnull__.
39         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
41 2018-08-19  Bruno Haible  <bruno@clisp.org>
43         glob: Fix another compilation error when glob.h is not replaced.
44         Reported by Reuben Thomas <rrt@sc3d.org> in
45         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
46         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
47         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
49 2018-08-18  Bruno Haible  <bruno@clisp.org>
51         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
52         Reported by Reuben Thomas <rrt@sc3d.org> in
53         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
54         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
55         in config.h.
57 2018-08-18  Bruno Haible  <bruno@clisp.org>
59         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
60         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
61         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
62         Solution proposed by Eli Zaretskii.
63         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
64         * lib/gettimeofday.c (GetProcAddress): Likewise.
65         * lib/link.c (GetProcAddress): Likewise.
66         * lib/physmem.c (GetProcAddress): Likewise.
67         * lib/poll.c (GetProcAddress): Likewise.
68         * lib/select.c (GetProcAddress): Likewise.
69         * lib/stat-w32.c (GetProcAddress): Likewise.
71 2018-08-18  Bruno Haible  <bruno@clisp.org>
73         glob: Fix another compilation error when glob.h is not replaced.
74         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
75         * lib/globfree.c: Include <libc-config.h>.
77 2018-08-18  Bruno Haible  <bruno@clisp.org>
79         glob: Fix compilation error when glob.h is not replaced.
80         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
81         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
82         * lib/glob_pattern_p.c: Include <libc-config.h>.
83         * modules/glob (Depends-on): Add libc-config.
85 2018-08-18  Bruno Haible  <bruno@clisp.org>
87         scratch_buffer: Add tests.
88         * tests/test-scratch-buffer.c: New file.
89         * modules/scratch_buffer-tests: New file.
91 2018-08-18  Bruno Haible  <bruno@clisp.org>
93         scratch_buffer: Fix include file.
94         Reported by Reuben Thomas <rrt@sc3d.org> in
95         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
96         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
97         double-inclusion guard.
99 2018-08-18  Bruno Haible  <bruno@clisp.org>
101         glob-h: Revert Paul Eggert's revert.
102         * m4/glob_h.m4: Revert to previous state.
103         * modules/glob-h: Likewise.
105 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
107         glob-h: always build glob.h
108         This works around a problem reported by Reuben Thomas in:
109         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
110         This workaround always builds glob.h, even on platforms that
111         do not need it; perhaps this could be improved someday.
112         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
113         is always created now.
114         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
116 2018-08-13  Bruno Haible  <bruno@clisp.org>
118         monetary: Simplify m4 code.
119         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
120         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
122 2018-08-13  Bruno Haible  <bruno@clisp.org>
124         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
125         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
126         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
127         and by Paul J. Lucas <paul@lucasmail.org> in
128         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
129         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
131 2018-08-11  Bruno Haible  <bruno@clisp.org>
133         setlocale: Trivial simplification.
134         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
136 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
138         verify: port 'assume' to traditional tools
139         * lib/verify.h (assume): Port better to Oracle Studio 12.6
140         and other tools that use /*NOTREACHED*/ comments.
142 2018-08-10  Bruno Haible  <bruno@clisp.org>
144         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
145         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
146         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
147         'fnmatch-gnu' is in use.
149 2018-08-07  Bruno Haible  <bruno@clisp.org>
151         glob-h: Add tests.
152         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
153         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
154         tests/test-glob-h.c.
155         * modules/glob-h-tests: New file.
156         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
157         conditions.
158         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
159         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
161 2018-08-07  Bruno Haible  <bruno@clisp.org>
163         glob-h: New module.
164         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
165         replacements.
166         * lib/glob.c: Include <config.h>.
167         * m4/glob_h.m4: New file.
168         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
169         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
170         REPLACE_GLOB_PATTERN_P as appropriate.
171         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
172         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
173         * modules/glob-h: New file.
174         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
175         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
176         lstat, sys_stat. Change conditions.
177         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
178         REPLACE_GLOB_PATTERN_P. Set module indicator.
179         (Makefile.am): Remove code that is moved to glob-h.
180         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
181         * modules/posixcheck (Depends-on): Add glob-h.
183 2018-08-06  Bruno Haible  <bruno@clisp.org>
185         Force generation of substitute .h file when C++ support is enabled.
186         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
187         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
188         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
189         FNMATCH_H to non-empty.
190         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
191         ICONV_H to non-empty.
192         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
193         MONETARY_H to non-empty.
194         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
195         non-empty.
197 2018-08-06  Bruno Haible  <bruno@clisp.org>
199         fnmatch-h: Fix test compilation error on mingw (regression from today).
200         * lib/fnmatch.in.h: Fix conditions.
202 2018-08-06  Bruno Haible  <bruno@clisp.org>
204         sys_resource: Relicense under LGPLv2+.
205         John Malmberg's approval is in
206         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
207         * modules/sys_resource (License): Change to LGPLv2+.
209 2018-08-06  Bruno Haible  <bruno@clisp.org>
211         fnmatch-h: Add tests.
212         * tests/test-fnmatch-h.c: New file.
213         * modules/fnmatch-h-tests: New file.
214         * tests/test-fnmatch-h-c++.cc: New file.
215         * modules/fnmatch-h-c++-tests: New file.
217 2018-08-06  Bruno Haible  <bruno@clisp.org>
219         fnmatch-h: New module.
220         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
221         replacements.
222         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
223         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
224         'posixcheck' warning.
225         * m4/fnmatch_h.m4: New file.
226         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
227         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
228         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
229         as appropriate.
230         * modules/fnmatch-h: New file.
231         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
232         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
233         conditions.
234         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
235         indicator.
236         (Makefile.am): Remove code that is moved to fnmatch-h.
237         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
238         REPLACE_FNMATCH.
239         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
240         * modules/posixcheck (Depends-on): Add fnmatch-h.
242 2018-08-06  Bruno Haible  <bruno@clisp.org>
244         Enable more C++ tests.
245         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
246         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
247         * modules/strings-tests (Depends-on): Add strings-c++-tests.
248         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
249         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
251 2018-08-06  Bruno Haible  <bruno@clisp.org>
253         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
254         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
255         getopt.h.
256         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
258 2018-08-05  Bruno Haible  <bruno@clisp.org>
260         utime-h: Generate header file when module 'posixcheck' is in use.
261         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
262         UTIME_H to non-empty.
264 2018-08-05  Bruno Haible  <bruno@clisp.org>
266         monetary: Generate header file when module 'posixcheck' is in use.
267         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
268         use, set MONETARY_H to non-empty.
270 2018-08-05  Bruno Haible  <bruno@clisp.org>
272         iconv-h: Generate header file when module 'posixcheck' is in use.
273         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
274         set ICONV_H to non-empty.
276 2018-08-05  Bruno Haible  <bruno@clisp.org>
278         Optimize the "checking whether ... is declared without a macro" checks.
279         Suggested by Paul Eggert in
280         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
281         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
282         Gnulib module 'posixcheck' is not in use.
284 2018-08-05  Bruno Haible  <bruno@clisp.org>
286         iconv-h: Enable 'posixcheck' warnings.
287         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
288         iconv_open.
289         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
291 2018-08-05  Bruno Haible  <bruno@clisp.org>
293         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
294         * m4/extern-inline.m4: Add more comments.
295         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
296         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
297         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
299 2018-08-04  Bruno Haible  <bruno@clisp.org>
301         New module 'posixcheck'.
302         * modules/posixcheck: New file.
303         * m4/posixcheck.m4: New file.
304         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
305         (Which modules?): Reference it.
307 2018-08-01  Assaf Gordon <assafgordon@gmail.com>
309         dfa: fix memory leak
310         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
312 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
314         ieee754-h: new module
315         It looks like Emacs can use this for some NaN processing.
316         Emacs uses it only on double NaNs so it should be safe.
317         * MODULES.html.sh (func_all_modules): Add ieee754-h.
318         * config/srclist.txt: Mention ieee754.h in a comment.
319         * doc/glibc-headers/ieee754.texi (ieee754.h):
320         Gnulib now has a substitute that should work
321         except for long double and for non-IEEE platforms.
322         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
323         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
325 2018-07-27  Bruno Haible  <bruno@clisp.org>
327         iswcntrl: Mention minor problem on macOS.
328         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
330 2018-07-26  Colin Watson  <cjwatson@debian.org>
332         bootstrap, gnulib-tool: fix translations rsync
333         Previously, we created files such as $pobase/Makefile.in.in and then the
334         subsequent rsync would immediately delete them.
335         * build-aux/bootstrap (po_download_command_format): Avoid deleting
336         non-.po files in target directory when rsyncing translations.
337         * gnulib-tool (func_import): Likewise.
338         * pygnulib/GLImport.py (GLImport.execute): Likewise.
340 2018-07-25  Jim Meyering  <meyering@fb.com>
342         bootstrap: reinstate definition fo gnulib_mk.
343         That variable is used at least by cppi.
344         * build-aux/bootstrap (gnulib_mk): Restore definition.
345         This reverts the deletion from v0.1-1844-gc66dba9ba.
347 2018-07-23  Bruno Haible  <bruno@clisp.org>
349         doc: For module names, use texinfo markup @code{} or @samp{}.
350         * doc/alloca.texi: Mark gnulib module names with @code.
351         * doc/alloca-opt.texi: Likewise.
352         * doc/quote.texi: Likewise.
353         * doc/posix-functions/freopen.texi: Likewise.
354         * doc/posix-functions/open.texi: Likewise.
355         * doc/posix-functions/readlink.texi: Likewise.
356         * doc/posix-functions/readlinkat.texi: Likewise.
357         * doc/posix-functions/stdout.texi: Likewise.
358         * doc/posix-functions/stderr.texi: Likewise.
359         * doc/posix-functions/unlink.texi: Likewise.
360         * doc/posix-functions/unlinkat.texi: Likewise.
361         * doc/posix-functions/utime.texi: Likewise.
362         * doc/posix-functions/utimensat.texi: Likewise.
363         * doc/posix-functions/utimes.texi: Likewise.
364         * doc/posix-headers/stdint.texi: Likewise.
365         * doc/glibc-functions/futimesat.texi: Likewise.
366         * doc/glibc-functions/lutimes.texi: Likewise.
367         * doc/glibc-functions/memmem.texi: Likewise.
369 2018-07-23  Werner LEMBERG  <wl@gnu.org>
371         doc: Avoid some overfull lines in the TeX output.
372         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
373         @example.
374         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
375         newline before the long URL.
376         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
377         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
378         Add line breaks in code snippets.
380 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
382         hard-locale: simplify by removing hard-locale.m4
383         * m4/hard-locale.m4: Remove.
384         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
385         (configure.ac): Do not call gl_HARD_LOCALE.
387         gnulib-tool: limit line length for git send-email
388         * gnulib-tool (func_import): Break actioncmd log line
389         into multiple lines.
391 2018-07-16  Bruno Haible  <bruno@clisp.org>
393         ffs: Ensure declaration on mingw.
394         Reported by Daniel P. Berrangé <berrange@redhat.com>
395         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
396         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
397         also declared.
399 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
401         regex-tests: add dependency
402         * modules/regex-tests (Depends-on): Add gettext-h.
403         This is needed given the recent changes to regex,
404         which no longer depends on gettext-h.
406 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
408         regex: now in sync with glibc
409         * config/srclist.txt: Gnulib and glibc regex code
410         are synchronized again.
412 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
414         renameatu: rename from renameat2
415         It's looking like Glibc will add a renameat2 function
416         that is incompatible with Gnulib renameat2; see:
417         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
418         To help avoid future confusion, rename renameat2 to something else.
419         Use the name 'renameatu', as the Gnulib function is close to the
420         Glibc function.  Perhaps someday there will also be a renameat2
421         Gnulib module, which mimicks the future glibc renameat2, but that
422         can wait as nobody seems to need such a module now.
423         * NEWS: Mention this.
424         * lib/renameatu.c: Rename from lib/renameat2.c.
425         * lib/renameatu.h: Rename from lib/renameat2.h.
426         * modules/renameatu: Rename from modules/renameat2.
427         * modules/renameatu-tests: Rename from modules/renameat2-tests.
428         All uses of "renameat2" in identifiers or file name
429         changed to "renameatu", except for two instances in
430         lib/renameatu.c that deal with the Linux kernel's
431         renameat2 syscall.
433 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
435         gnulib-tool: minor tweaks for --gnu-make
436         * gnulib-tool: Do not allow --gnu-make in test modes,
437         since they all require automake.
438         (func_emit_lib_Makefile_am): Don’t emit automake comment
439         if --gnu-make.
441         regex: work around conditional-dependencies glitch
442         * modules/regex (Depends-on): Add langinfo.
443         Without this change, I had problems building an experimental
444         version of GNU Emacs.  The symptom of the bug was a message
445         ‘./configure: line 12726: test: =: unary operator expected’.
446         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
447         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
448         was unset.  Although gl_FUNC_NL_LANGINFO has
449         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
450         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
451         --conditional-dependencies sometimes arranges for the
452         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
453         code.  Since the regex code includes <langinfo.h> it should be
454         depending on the langinfo module anyway, and this happens to work
455         around the bug, so install that as a workaround for now.  To
456         reproduce the original problem, run the following shell script on
457         the version of Gnulib just before this patch was installed.
458                 rm -fr foo
459                 mkdir foo
460                 cat >foo/configure.ac <<'EOF'
461                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
462                 gl_EARLY
463                 gl_INIT
464                 AC_OUTPUT
465                 EOF
466                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
467                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
468                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
469                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
470                 cd foo
471                 aclocal -I m4
472                 autoconf
473                 ./configure --with-included-regex
475 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
477         wchar: fix bug when checking for ‘inline’
478         I discovered this when looking into using the regex module
479         with Emacs.
480         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
481         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
482         conftest1.c and conftest2.c but these files were not created.
483         As far as I can see, this check never worked and nobody reported
484         it until now, which is a bit worrisome.
486 2018-06-30  Jim Meyering  <meyering@fb.com>
488         bootstrap: s/--option val/--option=val/
489         * build-aux/bootstrap (gnulib_tool_options): Change the
490         spelling of "--option val" pairs to "--option=val", for
491         aesthetics, and also so that this file no longer triggers
492         a common help2man syntax-check warning when copied into
493         projects like grep, gzip, etc.
495 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
497         manywarnings: omit -Wswitch-default
498         This should make things more consistent, as we already ignore
499         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
500         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
501         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
502         Add -Wswitch-default.
503         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
504         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
505         Remove -Wswitch-default.
507         regex: revert most trimming
508         Problems reported by Bruno Haible in:
509         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
510         * modules/regex (Depends-on): Add lock, memcmp, memmove,
511         and wctype back in.  lock because regex users shouldn’t
512         need to know that regex needs locking, and the rest because
513         gnulib-tool should ordinarily ignore them anyway.
515 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
517         regex: trim module dependencies
518         * modules/regex (Depends-on): Remove gettext-h and lock,
519         since the regex code should work OK without these modules,
520         and Emacs uses it that way.  Also remove memcmp, memmove,
521         and wctype, as these modules are obsolete and should not be
522         needed any more.
524 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
526         regex: glibc does not use intprops.h
527         Maybe we can talk glibc into using intprops.h someday, but
528         now doesn’t seem to be a good time.
529         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
530         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
531         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
533 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
535         regex: port to recently proposed glibc regex merge
536         This patch is inspired by Adhemerval Zanella's recent proposal
537         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
538         to merge glibc and Gnulib regex.  It aims to simplify the merge on
539         the glibc side, without keeping Gnulib portable.
540         * lib/regex.h: Fix a problem with glibc installed-header checking,
541         as follows:
542         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
543         (_Restrict_arr_): Prefer __restrict_arr if defined,
544         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
545         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
546         (build_wcs_upper_buffer, build_upper_buffer)
547         (re_string_translate_buffer, re_string_context_at):
548         Move decls here from lib/regex_internal.h, for glibc internal tests.
549         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
550         glibc BZ #18496.
551         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
552         -Wunused-value.
553         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
554         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
555         (bitset_mask): Now static inline, and without any __attribute__
556         ((unused)) decoration, for glibc internal tests.
558 2018-06-25  Bruno Haible  <bruno@clisp.org>
560         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
561         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
562         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
563         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
564         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
565         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
566         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
567         / -lthread / -lpth does not get optimized away by a preceding
568         --as-needed option.
570 2018-06-25  Bruno Haible  <bruno@clisp.org>
572         Continue to use spaces for indentation, not tabs.
573         * MODULES.html.sh: Untabify.
574         * doc/regex.texi: Likewise.
575         * lib/acl-internal.c: Likewise.
576         * lib/dfa.c: Likewise.
577         * lib/exclude.c: Likewise.
578         * lib/exclude.h: Likewise.
579         * lib/get-permissions.c: Likewise.
580         * lib/gettimeofday.c: Likewise.
581         * lib/parse-datetime.y: Likewise.
582         * lib/pselect.c: Likewise.
583         * lib/set-permissions.c: Likewise.
584         * lib/time.in.h: Likewise.
585         * m4/canonicalize.m4: Likewise.
586         * m4/gc.m4: Likewise.
587         * m4/gnulib-common.m4: Likewise.
588         * m4/pthread_sigmask.m4: Likewise.
589         * m4/vararrays.m4: Likewise.
590         * tests/test-digest.h: Likewise.
591         * tests/test-fcntl-h.c: Likewise.
592         * tests/test-timespec.c: Likewise.
593         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
595 2018-06-25  Bruno Haible  <bruno@clisp.org>
597         manywarnings: Don't enable -Wjump-misses-init warnings by default.
598         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
599         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
600         -Wjump-misses-init.
602 2018-06-25  Jim Meyering  <meyering@fb.com>
604         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
605         * lib/acl-internal.h (free_permission_context): Remove that
606         attribute directive.  Otherwise, it would provoke this from GCC 9:
607         lib/acl-internal.h:300:3: error: 'const' attribute on function \
608           returning 'void' [-Werror=attributes]
610 2018-06-24  Jim Meyering  <meyering@fb.com>
612         parse-datetime: accommodate gcc-4.8.5
613         Bruno Haible reported the build failure in
614         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
615         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
616         on declaration of new local.
618 2018-06-24  Bruno Haible  <bruno@clisp.org>
620         af_alg: Fail in continuable manner on Linux/powerpc64le.
621         Reported by Assaf Gordon <assafgordon@gmail.com>
622         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
623         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
624         byte send() as the first round.
626 2018-06-24  Bruno Haible  <bruno@clisp.org>
628         af_alg: Fix state of stream after sendfile() succeeds.
629         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
630         the stream is correctly positioned afterwards.
631         * modules/crypto/af_alg (Depends-on): Add fflush.
632         * tests/test-digest.h (test_digest_on_files): Verify that after the
633         operation the stream is positioned at end of file.
635 2018-06-24  Jim Meyering  <meyering@fb.com>
637         canon-host: take GCC9's advice rather than ignoring warning
638         Pádraig Brady suggested not to ignore this GCC9 advice.
639         * lib/canon-host.c: Undo preceding change.
640         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
642         parse-datetime.y: avoid spurious GCC 9 warning
643         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
644         a function local prior to the first "goto fail".  The prior use would
645         evoke this:
646         parse-datetime.y: In function 'parse_datetime2':
647         parse-datetime.y:1791:19: error: jump skips variable initialization \
648           [-Werror=jump-misses-init]
649         parse-datetime.y:2385:2: note: label 'fail' defined here
650         parse-datetime.y:188:43: note: '({anonymous})' declared here
651         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
653         canon-host.c: avoid spurious GCC 9 warning
654         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
656         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
657         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
658         * m4/manywarnings.m4: Remove them.
659         Otherwise, building coreutils, I would see this:
660         cc1: error: deprecated command line option '-Wchkp' [-Werror]
661         cc1: error: -Wabi won't warn about anything [-Werror=abi]
662         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
663           which is also used by default
664         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
666 2018-06-24  Bruno Haible  <bruno@clisp.org>
668         af_alg tests: Add another test.
669         * tests/test-digest.h (test_digest_on_files): Also check a large file
670         with a skipped header.
671         * tests/test-md5.c: Include macros.h.
672         * tests/test-sha1.c: Likewise.
673         * tests/test-sha256.c: Likewise.
674         * tests/test-sha512.c: Likewise.
675         * modules/crypto/md5-tests (Files): Add tests/macros.h.
676         * modules/crypto/sha1-tests (Files): Likewise.
677         * modules/crypto/sha256-tests (Files): Likewise.
678         * modules/crypto/sha512-tests (Files): Likewise.
680 2018-06-24  Pádraig Brady  <P@draigBrady.com>
682         maint: clarify comments about sticky EOF
683         * lib/af_alg.c: Be more direct that we can't
684         assume stickiness of EOF for portability reasons.
685         * lib/md5.c: Clarify that this isn't just a glibc issue.
686         * lib/sha1.c: Likewise.
687         * lib/sha256.c: Likewise.
688         * lib/sha512.c: Likewise.
690 2018-06-24  Bruno Haible  <bruno@clisp.org>
692         af_alg: Comment and style improvements.
693         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
694         (afalg_buffer, afalg_stream): Improve comments.
696 2018-06-24  Pádraig Brady  <P@draigBrady.com>
698         af_alg: disable kernel hash functions by default
699         All the kernel routines were seen to be significantly slower
700         with these relatively recent components on an i3-2310M system:
701           kernel-4.10.6-200.fc25.x86_64
702           openssl-1.0.2m-1.fc25.x86_64
703         sha1 was nearly twice as slow in the kernel for example.
704         Further considerations why this should not be the default, at:
705         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
707         * m4/af_alg.m4: Require --with-linux-crypto to enable.
708         * m4/gl-openssl.m4: Tweak accordingly.
710 2018-06-24  Pádraig Brady  <P@draigBrady.com>
712         af_alg: avoid hangs when reading from streams
713         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
714         and thus avoid doing a fread() when feof() is set.
715         * lib/md5.c: Ensure feof() is called before fread().
716         * lib/sha1.c: Likewise.
717         * lib/sha256.c: Likewise.
718         * lib/sha512.c: Likewise.
720 2018-06-24  Pádraig Brady  <P@draigBrady.com>
722         af_alg: fix error handling when hash not returned
723         * lib/af_alg.c (afalg_stream): Handle the case where we've
724         successfully written data to the kernel in the read/write loop,
725         but the kernel doesn't respond with the hash.
727 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
729         libc-config: merge from glibc
730         * lib/cdefs.h (__inline, __restrict):
731         Copy from current glibc.  This fixes glibc bug 17721,
732         which Gnulib had already fixed in a different way.
733         (__nonnull): Lessen the distance from glibc by using the
734         glibc definition inside an ‘#ifndef __nonnull’.
735         (__attribute_nonstring__): New macro, copied from
736         current glibc.
737         * lib/libc-config.h (__attribute_nonstring__): New undef.
738         (__restrict): Remove; workaround no longer needed.
739         Keep the __inline workaround, though, as it uses HAVE___INLINE to
740         support more compilers than the glibc __inline can.
742 2018-06-24  Bruno Haible  <bruno@clisp.org>
744         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
745         * lib/mbrtowc.c (enc_t): New enum type.
746         (locale_enc, locale_enc_cached): New functions.
747         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
748         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
749         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
750         instead.
751         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
752         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
753         * modules/wcwidth (configure.ac): Invoke it.
755 2018-06-24  Bruno Haible  <bruno@clisp.org>
757         wchar-single: Fix test failure in wcwidth tests.
758         * tests/test-wcwidth.c (main): If the wchar-single module is present,
759         skip the tests in the C locale.
761 2018-06-23  Pádraig Brady  <P@draigBrady.com>
763         crypto: mention --without-linux-crypto in --with-openssl --help
764         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
765         routines take precedence in --with-openssl help output.
767 2018-06-23  Pádraig Brady  <P@draigBrady.com>
769         wchar-single: a new module to enable optimizations in wchar replacements
770         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
771         GNULIB_WCHAR_SINGLE is enabled.
772         * lib/wcwidth.c (wcwidth): Likewise.
774 2018-06-23  Bruno Haible  <bruno@clisp.org>
776         libc-config: Fix conflict with FreeBSD include files.
777         * lib/cdefs.h (__nonnull): Remove definition.
778         * lib/libc-config.h (__nonnull): Remove undefinition.
780 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
782         random_r: do not crash if state is unaligned
783         Problem reported by Bruce Korb in:
784         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
785         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
786         with 'cc -O2 -xmemalign=8s'.
787         * lib/random_r.c: Include string.h, for memcpy.
788         (get_int32, set_int32): New functions.
789         (__srandom_r, __initstate_r, __setstate_r, __random_r):
790         Use them to avoid assumption that state pointer is aligned.
791         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
792         * tests/test-random_r.c (test_failed): New function.
793         (main): Use it, to test for alignment bugs.
795         random_r: omit unnecessary include
796         * lib/random_r.c: Do not include limits.h.
798         random, random_r: merge from glibc
799         * lib/random.c, lib/random_r.c:
800         Include libc-config.h if !_LIBC, not config.h unilaterally.
801         * lib/random.c:
802         Do not include stdint.h or time.h; not needed.
803         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
804         (unsafe_state): Rename from generator.  All uses changed.
805         Use C99-style initializers.
806         (__random, __srandom, __initstate, __setstate): Rename from
807         non-underscored version, but define it to non-underscored version
808         on Gnulib.  Add a lock.
809         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
810         Likewise.
811         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
812         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
813         (__srandom_r): Use int32_t instead of long int where int32_t will do.
814         (__random_r): Use uint32 to fix glibc bug 17343.
815         * modules/random, modules/random_r (Depends-on): Add libc-config.
816         Depend on stdint only if $HAVE_RANDOM = 0.
818 2018-06-19  Jim Meyering  <meyering@fb.com>
820         README-release: also run any check-very-expensive tests
821         * top/README-release: Adjust instructions so they run the
822         check-very-expensive tests when there is such a target.
824 2018-06-18  Bruno Haible  <bruno@clisp.org>
826         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
827         * m4/pthread_rwlock_rdlock.m4: Add comment.
828         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
829         are reader-preferring in glibc.
830         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
831         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
833 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
835         crypto: use byteswap
836         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
837         * lib/sm3.c: Include <byteswap.h>.
838         (SWAP): Use its macros rather than reinventing the wheel.
839         * modules/crypto/md4, modules/crypto/md5-buffer:
840         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
841         * modules/crypto/sha512-buffer, modules/crypto/sm3:
842         (Depends-on): Add byteswap.
844 2018-06-17  Pádraig Brady  <P@draigBrady.com>
846         gendocs.sh: fix support for legacy --texi2html
847         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
848         to the default makeinfo invocation.
849         Reported by Bruce Korb
851 2018-06-17  Bruno Haible  <bruno@clisp.org>
853         gettext po infrastructure: Update from current gettext git.
854         Reported by Akim Demaille <akim@lrde.epita.fr>.
855         * build-aux/po/Makefile.in.in: Update from current gettext git.
856         * build-aux/po/remove-potcdate.sin: Likewise.
857         * config/srclist.txt: Temporarily disable sync for these files.
859 2018-06-17  Bruno Haible  <bruno@clisp.org>
861         getloadavg: Return 0 on Windows without Cygwin.
862         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
864 2018-06-17  Paul Smith  <psmith@gnu.org>
866         getloadavg: Allow building on Windows without Cygwin
867         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
868         * m4/getloadavg.m4: Check for unistd.h.
870 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
872         Port crypto/af_alg to GCC 4.8.4
873         Problem reported by Peter Simons in:
874         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
875         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
877 2018-05-27  Colin Watson  <cjwatson@debian.org>
879         bootstrap: document source fetching in --help
880         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
882 2018-04-09  Colin Watson  <cjwatson@debian.org>
884         bootstrap: allow non-submodule control of gnulib
885         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
886         bootstrap.conf when fetching gnulib using "git clone" or via
887         GNULIB_SRCDIR.
889 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
891         crypto: omit stream ops Emacs doesn’t need
892         * lib/md5.c (md5_stream):
893         * lib/sha1.c (sha1_stream):
894         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
895         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
896         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
897         defined.  Emacs needs this, as it does not use the stream
898         operations and doesn’t need all the af_alg stuff we’ve recently
899         added.  Perhaps a similar change is needed to the other crypto
900         modules, but this patch changes only those needed for Emacs.
901         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
902         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
903         New modules, used by Emacs.
904         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
905         * modules/crypto/sha512: Rewrite to depend on the new modules.
907 2018-05-20  Pádraig Brady  <P@draigBrady.com>
909         fts: avoid a memory leak edge case
910         * lib/fts.c (fts_open): Set an appropriate fts_level
911         so that an immediate fts_close() will free the allocation.
912         * tests/test-fts.c (fts_dealloc): Add a test case which
913         will trigger under valgrind or address sanitizer.
914         Fixes https://bugs.gnu.org/31439
916 2018-05-20  Bruno Haible  <bruno@clisp.org>
918         wcwidth tests: Fix link error.
919         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
920         $(LIBUNISTRING).
922 2018-05-20  Bruno Haible  <bruno@clisp.org>
924         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
925         * modules/regex (Files): Add m4/glibc21.m4.
927 2018-05-20  Bruno Haible  <bruno@clisp.org>
929         localcharset: Optimize.
930         * lib/localcharset.c (alias_table): Comment out no-op mappings for
931         platforms where these don't matter. This reduces the table size,
932         which in turn reduces the lookup time.
934 2018-05-19  Bruno Haible  <bruno@clisp.org>
936         localcharset: Map the locale encodings found in newer OSes.
937         * lib/localcharset.c (alias_table): Add mapping for locale encodings
938         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
939         IRIX 6.5, Minix 3.3.
940         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
942 2018-05-19  Bruno Haible  <bruno@clisp.org>
944         localcharset: Move mapping tables into the code. Use a binary search.
945         * lib/localcharset.h: Document the GNU canonical names for character
946         encodings here.
947         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
948         relocatable.h, configmake.h.
949         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
950         macros.
951         (charset_aliases): Remove variable.
952         (get_charset_aliases): Remove function.
953         (struct table_entry): New type.
954         (alias_table, locale_table): New constants.
955         (locale_charset): Use the alias_table or locale_table to get the
956         canonicalized encoding name.
957         * lib/config.charset: Remove file.
958         * lib/ref-add.sin: Remove file.
959         * lib/ref-del.sin: Remove file.
960         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
961         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
962         * modules/localcharset (Notice): Remove.
963         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
964         glibc21.m4.
965         (Depends-on): Remove configmake.
966         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
967         (Makefile.am): Simplify.
968         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
970 2018-05-19  Bruno Haible  <bruno@clisp.org>
972         localcharset: Add a manual test.
973         * tests/test-localcharset.c: New file.
974         * modules/localcharset-tests: New file.
976 2018-05-19  Bruno Haible  <bruno@clisp.org>
978         localcharset: Remove support for obsolete platforms.
979         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
980         Mac OS X 10.2. Comment out dubious entry for Solaris.
982 2018-05-19  Jim Meyering  <meyering@fb.com>
984         gnupload: adjust comment
985         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
986         more likely we'll remove the just-added code in a year or two.
988 2018-05-19  Bruno Haible  <bruno@clisp.org>
990         gnupload: Fix "gpg-agent is not available in this session" error.
991         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
993 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
995         crypto/af_alg: fix --help
996         * m4/af_alg.m4: Avoid spurious newline in --help output.
998 2018-05-13  Bruno Haible  <bruno@clisp.org>
1000         nl_langinfo: Fix compilation error on Android.
1001         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
1002         INT_CURR_SYMBOL, etc. only if these items are defined.
1004 2018-05-13  Bruno Haible  <bruno@clisp.org>
1006         truncate: Fix compilation error on Android.
1007         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
1008         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
1009         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
1010         HAVE_TRUNCATE.
1011         * modules/truncate: Likewise.
1012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
1013         not HAVE_TRUNCATE.
1014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
1015         HAVE_TRUNCATE.
1016         * doc/posix-functions/truncate.texi: Mention the issue.
1018 2018-05-13  Bruno Haible  <bruno@clisp.org>
1020         pthread: Fix compilation error on Android.
1021         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
1022         recursive inclusion of this file.
1024 2018-05-13  Bruno Haible  <bruno@clisp.org>
1026         posix_spawn: Fix compilation error on Android.
1027         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
1028         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
1029         (posix_spawn_file_actions_t): Consider also the case
1030         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
1032 2018-05-13  Bruno Haible  <bruno@clisp.org>
1034         tsearch: Move from K&R C to ANSI C.
1035         * lib/tsearch.c (tfind): Convert definition to ANSI C.
1037 2018-05-13  Bruno Haible  <bruno@clisp.org>
1039         tsearch: Fix compilation error on Android.
1040         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
1041         is 0.
1042         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
1043         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
1044         GNULIB_defined_tsearch is true.
1045         (twalk): Define only if GNULIB_defined_twalk is true.
1046         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
1047         is 0.
1048         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
1049         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
1050         * modules/search (Makefile.am): Substitute HAVE_TWALK.
1052 2018-05-13  Bruno Haible  <bruno@clisp.org>
1054         imaxdiv: Fix compilation error on Android.
1055         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
1056         is not defined.
1057         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
1058         HAVE_DECL_IMAXDIV, is 0.
1059         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
1060         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
1062 2018-05-13  Bruno Haible  <bruno@clisp.org>
1064         Support selective inclusion mechanism of recent mingw.org header files.
1065         Reported by Eli Zaretskii <eliz@gnu.org>.
1066         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
1067         __need_ssize_t, or __need_time_t is defined, just include the system's
1068         <sys/types.h>.
1069         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
1070         include the system's <locale.h>.
1072 2018-05-13  Bruno Haible  <bruno@clisp.org>
1074         Avoid compilation error due to 'mmap' on Android.
1075         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
1076         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
1077         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
1078         Undefine on Android.
1080 2018-05-13  Bruno Haible  <bruno@clisp.org>
1082         Add cross-compilation guesses for Linux systems without glibc.
1083         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
1084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1085         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1086         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1087         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1088         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1089         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1090         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1091         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1092         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
1093         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1095         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1096         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1097         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1099         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1100         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1102 2018-05-13  Bruno Haible  <bruno@clisp.org>
1104         getpagesize: Fix compilation error on Android.
1105         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
1106         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
1107         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
1108         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
1109         HAVE_GETPAGESIZE accordingly.
1110         * modules/getcwd (Files): Add m4/getpagesize.m4.
1112 2018-05-13  Bruno Haible  <bruno@clisp.org>
1114         tcgetsid: Fix compilation error on Android.
1115         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
1116         AC_CHECK_FUNC.
1118 2018-05-13  Bruno Haible  <bruno@clisp.org>
1120         getpass: Fix configure test for Android.
1121         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
1122         AC_CHECK_FUNC.
1124 2018-05-13  Bruno Haible  <bruno@clisp.org>
1126         ffs: Fix compilation error on Android.
1127         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
1129 2018-05-13  Bruno Haible  <bruno@clisp.org>
1131         mkfifo: Fix compilation error on Android.
1132         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
1133         AC_CHECK_FUNC.
1135 2018-05-13  Bruno Haible  <bruno@clisp.org>
1137         c-strtod: Fix configure test for Android.
1138         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
1139         AC_CHECK_FUNC.
1141 2018-05-13  Bruno Haible  <bruno@clisp.org>
1143         random: Fix compilation error on Android.
1144         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
1145         AC_CHECK_FUNC.
1147 2018-05-13  Bruno Haible  <bruno@clisp.org>
1149         grantpt: Fix compilation error on Android.
1150         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
1151         AC_CHECK_FUNC.
1153 2018-05-13  Bruno Haible  <bruno@clisp.org>
1155         stdioext: Fix compilation errors with newer Android headers.
1156         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
1157         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
1158         fallbacks for Android.
1159         * lib/fpending.c: Update comments.
1160         * lib/fpurge.c: Likewise.
1161         * lib/freadable.h: Likewise.
1162         * lib/freadable.c: Likewise.
1163         * lib/freadahead.c: Likewise.
1164         * lib/freading.h: Likewise.
1165         * lib/freadptr.c: Likewise.
1166         * lib/fseterr.c: Likewise.
1167         * lib/fwritable.h: Likewise.
1168         * lib/fwritable.c: Likewise.
1169         * lib/fwriting.h: Likewise.
1170         * lib/fwriting.c: Likewise.
1172 2018-05-13  Bruno Haible  <bruno@clisp.org>
1174         doc: Add info about Android versions 2.0 to 8.1.
1175         * doc/**/*.texi: Add info about functions in all released versions of
1176         Bionic.
1178 2018-05-12  Bruno Haible  <bruno@clisp.org>
1180         fseeko: On mingw, don't use the hidden function _fseeki64.
1181         Reported by Eli Zaretskii <eliz@gnu.org>.
1182         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
1183         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
1185 2018-05-12  Bruno Haible  <bruno@clisp.org>
1187         glob: Choose 'dirent_type' in a way that works better on mingw.
1188         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
1189         * lib/glob.c (dirent_type): Define as uint_fast32_t.
1191 2018-05-12  Bruno Haible  <bruno@clisp.org>
1193         execute, spawn-pipe: Avoid warning about redefining 'close'.
1194         Reported by Eli Zaretskii <eliz@gnu.org>.
1195         * lib/execute.c: Undefine 'close' before redefining it.
1196         * lib/spawn-pipe.c: Likewise.
1198 2018-05-12  Bruno Haible  <bruno@clisp.org>
1200         nanosleep: Avoid test failure on mingw when it has nanosleep.
1201         Reported by Eli Zaretskii <eliz@gnu.org>.
1202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
1203         If it does not exist, use a simpler test program that does not call
1204         alarm().
1206 2018-05-10  Bruno Haible  <bruno@clisp.org>
1208         lock, cond, thread, tls: Use a different symbol as libpthread witness.
1209         Reported by Devin Hussey <husseydevin@gmail.com>.
1210         Based on a patch by Paul Eggert.
1211         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
1212         as witness of libpthread.
1213         * lib/glthread/cond.h (pthread_in_use): Likewise.
1214         * lib/glthread/thread.h (pthread_in_use): Likewise.
1215         * lib/glthread/tls.h (pthread_in_use): Likewise.
1217 2018-05-10  Bruno Haible  <bruno@clisp.org>
1219         cond tests: Fix compilation error on Solaris.
1220         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
1221         macro.
1223 2018-05-10  Bruno Haible  <bruno@clisp.org>
1225         doc: Add partial info about Android 4.3.
1226         * doc/*-functions/*.texi: Add info about functions that were added
1227         to Bionic between Android 4.3 and Android 9.0.
1229 2018-05-10  Bruno Haible  <bruno@clisp.org>
1231         doc: Add info about Android 9.0.
1232         * doc/**/*.texi: Add info about functions and headers in Bionic from
1233         Android 9.0.
1235 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1237         af_alg: fix my typo in afalg_buffer
1238         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
1239         (afalg_stream): Simplify and avoid the need for a runtime test
1240         at the end.
1242         af_alg: recover better from crypto failures
1243         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
1244         input stream is seekable, by repositioning the stream back to
1245         where it was, possibly by just calling sendfile with an offset
1246         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
1247         cases, which lets our callers try again with user-mode code.
1248         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
1249         instead of on fflush and lseek.
1251         af_alg: distiguish I/O errors better
1252         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
1253         not -EIO, if it’s OK for the caller to try again with user-mode code.
1254         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
1255         some other error number) if fflush fails, as the caller should not
1256         try again that case.
1258         af_alg: avoid gotos
1259         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
1260         gotos, as they were a source of unreliability and made the code a
1261         bit harder to follow.
1263         af_alg: don’t leak file descriptors into children
1264         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
1265         This code should be compiled only on recent GNU/Linux platforms
1266         so we shouldn’t have to also depend on the accept4 module.
1268         af_alg: coalesce socket creation
1269         * lib/af_alg.c (alg_socket): New function.
1270         (afalg_buffer, afalg_stream): Use it.  This avoids some
1271         code duplication and gotos.
1273         af_alg: fix file descriptor leak
1274         * lib/af_alg.c (afalg_stream): Close leak.
1276         af_alg: Pacify --enable-gcc-warnings on GCC 8
1277         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
1278         and checking to pacify gcc -Wjump-misses-init on GCC 8.
1280 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1282         af_alg: Pacify --enable-gcc-warnings
1283         Problem reported by Assaf Gordon in:
1284         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
1285         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
1286         gcc -Wjump-misses-init.
1287         * lib/sha512.c (shaxxx_stream): Now static.
1289 2018-05-06  Bruno Haible  <bruno@clisp.org>
1291         af_alg: Add ability to use Linux kernel crypto API on data in memory.
1292         * lib/af_alg.h (afalg_buffer): New declaration.
1293         * lib/af_alg.c (afalg_buffer): New function.
1295 2018-05-06  Bruno Haible  <bruno@clisp.org>
1297         af_alg: Avoid warnings.
1298         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
1299         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
1301 2018-05-06  Bruno Haible  <bruno@clisp.org>
1303         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
1304         * tests/bench-digest.h: New file.
1305         * tests/bench-md5.c: New file.
1306         * tests/bench-sha1.c: New file.
1307         * tests/bench-sha224.c: New file.
1308         * tests/bench-sha256.c: New file.
1309         * tests/bench-sha384.c: New file.
1310         * tests/bench-sha512.c: New file.
1311         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
1312         tests/bench-digest.h.
1313         (Depends-on): Add getrusage, gettimeofday.
1314         (Makefile.am): Add variables to build bench-md5.
1315         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
1316         tests/bench-digest.h.
1317         (Depends-on): Add getrusage, gettimeofday.
1318         (Makefile.am): Add variables to build bench-sha1.
1319         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
1320         tests/bench-sha256.c, tests/bench-digest.h.
1321         (Depends-on): Add getrusage, gettimeofday.
1322         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
1323         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
1324         tests/bench-sha512.c, tests/bench-digest.h.
1325         (Depends-on): Add getrusage, gettimeofday.
1326         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
1328 2018-05-06  Bruno Haible  <bruno@clisp.org>
1330         af_alg: Fix a resource leak.
1331         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
1332         New local variable 'result'.
1334 2018-05-06  Bruno Haible  <bruno@clisp.org>
1336         af_alg: Fix bug with streams that are not at position 0.
1337         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
1338         assume that the stream is positioned at position 0.
1339         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
1340         of the stream.
1341         * lib/md5.h (md5_stream): Likewise.
1342         * lib/sha1.h (sha1_stream): Likewise.
1343         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
1344         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
1345         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
1347         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
1348         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
1349         stream that is not positioned at the beginning.
1351 2018-05-06  Bruno Haible  <bruno@clisp.org>
1353         af_alg: Add configure option to enable/disable use of Linux crypto API.
1354         Suggested by Assaf Gordon <assafgordon@gmail.com>.
1355         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
1356         USE_LINUX_CRYPTO_API.
1357         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
1358         * lib/af_alg.c: Likewise.
1360 2018-05-06  Bruno Haible  <bruno@clisp.org>
1362         Followup to 'af_alg: New module.'.
1363         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
1364         * modules/crypto/sha1 (Depends-on): Likewise.
1365         * modules/crypto/sha256 (Depends-on): Likewise.
1366         * modules/crypto/sha512 (Depends-on): Likewise.
1368 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1370         crypto/{md5,sha1,sha256,sha512}: simplify
1371         * lib/md5.c (md5_stream):
1372         * lib/sha1.c (sha1_stream):
1373         * lib/sha256.c (shaxxx_stream):
1374         Simplify, partly by assuming C99.
1375         * lib/sha256.c (shaxxx_stream):
1376         New function, which implements both sha256 and sha224.
1377         Simplify, partly by assuming C99.
1378         (sha256_stream, sha224_stream):
1379         Use it to avoid code duplication, removing a FIXME.
1380         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1381         Likewise.
1383         af_alg: Improve comments.
1384         * lib/af_alg.h: Use imperatives and tighten up wording.
1386 2018-05-05  Bruno Haible  <bruno@clisp.org>
1388         af_alg: Improve comments.
1389         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
1391 2018-05-05  Bruno Haible  <bruno@clisp.org>
1393         af_alg: New module.
1394         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
1395         * lib/af_alg.c: Include "af_alg.h" before the other header files.
1396         * lib/md5.c: Include "af_alg.h" unconditionally.
1397         (md5_stream): Invoke afalg_stream unconditionally.
1398         * lib/sha1.c: Include "af_alg.h" unconditionally.
1399         (sha1_stream): Invoke afalg_stream unconditionally.
1400         * lib/sha256.c: Include "af_alg.h" unconditionally.
1401         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
1402         * lib/sha512.c: Include "af_alg.h" unconditionally.
1403         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
1404         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
1405         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
1406         * modules/crypto/af_alg: New file.
1407         * modules/crypto/md5 (Files): Remove files that are now in the
1408         'crypto/af_alg' module.
1409         (Depends-on): Add crypto/af_alg.
1410         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1411         (Makefile.am): Don't mention af_alg.c here.
1412         * modules/crypto/sha1 (Files): Remove files that are now in the
1413         'crypto/af_alg' module.
1414         (Depends-on): Add crypto/af_alg.
1415         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1416         (Makefile.am): Don't mention af_alg.c here.
1417         * modules/crypto/sha256 (Files): Remove files that are now in the
1418         'crypto/af_alg' module.
1419         (Depends-on): Add crypto/af_alg.
1420         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1421         (Makefile.am): Don't mention af_alg.c here.
1422         * modules/crypto/sha512 (Files): Remove files that are now in the
1423         'crypto/af_alg' module.
1424         (Depends-on): Add crypto/af_alg.
1425         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1426         (Makefile.am): Don't mention af_alg.c here.
1428 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1430         crypto tests: pacify GCC
1431         * tests/test-digest.h (test_digest_on_files):
1432         Don’t assume digest size fits in int (!).
1434         af_alg: minor style improvements
1435         * lib/af_alg.c (afalg_stream): Prefer C99 style
1436         decl-after-statement, since we’re already assuming C99.  Clarify
1437         by strengthening the bind test and omit unnecessary assignment.
1439 2018-05-05  Bruno Haible  <bruno@clisp.org>
1441         af_alg: Fix bug on empty files.
1442         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
1443         stream is empty.
1445 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1447         sys-limits.h: new file for crypto and safe I/O
1448         * lib/af_alg.c: Include sys-limits.h.
1449         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
1450         (afalg_stream): Also reject negative sizes for sendfile; they
1451         should not happen and the code is a bit cleaner and faster this way.
1452         * lib/safe-read.c: Include sys-limits.h.
1453         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
1454         * lib/sys-limits.h: New file, with values and commentary derived
1455         from the old safe-read.c and from GNU Emacs sysdep.c.
1456         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1457         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
1458         Add lib/sys-limits.h to Files section.
1460 2018-05-05  Bruno Haible  <bruno@clisp.org>
1462         af_alg: Improve function signature.
1463         * lib/af_alg.h (afalg_stream): Swap second and third argument.
1464         * lib/af_alg.c (afalg_stream): Likewise.
1465         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
1467 2018-05-05  Bruno Haible  <bruno@clisp.org>
1469         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
1470         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
1471         * modules/crypto/sha1 (Depends-on): Likewise.
1472         * modules/crypto/sha256 (Depends-on): Likewise.
1473         * modules/crypto/sha512 (Depends-on): Likewise.
1475 2018-05-05  Bruno Haible  <bruno@clisp.org>
1477         crypto/{md5,sha1,sha256,sha512}: Fix module description.
1478         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
1479         * modules/crypto/sha1 (Depends-on): Likewise.
1480         * modules/crypto/sha256 (Depends-on): Likewise.
1481         * modules/crypto/sha512 (Depends-on): Likewise.
1483 2018-05-05  Bruno Haible  <bruno@clisp.org>
1485         af_alg: Add documentation.
1486         * lib/af_alg.h: Add comments.
1488 2018-05-05  Bruno Haible  <bruno@clisp.org>
1490         sha512: Add tests.
1491         * tests/test-sha512.c: New file.
1492         * modules/crypto/sha512-tests: New file.
1494 2018-05-05  Bruno Haible  <bruno@clisp.org>
1496         sha256: Add tests.
1497         * tests/test-sha256.c: New file.
1498         * modules/crypto/sha256-tests: New file.
1500 2018-05-05  Bruno Haible  <bruno@clisp.org>
1502         sha1 tests: Add test for sha1_stream.
1503         * tests/test-sha1.c: Include test-digest.h.
1504         (main): Invoke test_digest_on_files on 'sha1_stream'.
1505         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
1507 2018-05-05  Bruno Haible  <bruno@clisp.org>
1509         md5 tests: Add test for md5_stream.
1510         * tests/test-digest.h: New file.
1511         * tests/test-md5.c: Include test-digest.h.
1512         (main): Invoke test_digest_on_files on 'md5_stream'.
1513         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
1515 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1517         md5sum: Use AF_ALG when available.
1518         * lib/md5.c: Include af_alg.h.
1519         (md5_stream): Use afalg_stream when available.
1520         * modules/crypto/md5 (Files): Add the af_alg files.
1521         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1522         (Makefile.am): Add af_alg.c.
1524 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1526         sha512sum: Use AF_ALG when available.
1527         * lib/sha512.c: Include af_alg.h.
1528         (sha512_stream, sha384_stream): Use afalg_stream when available.
1529         * modules/crypto/sha512 (Files): Add the af_alg files.
1530         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1531         (Makefile.am): Add af_alg.c.
1533 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1535         sha256sum: Use AF_ALG when available.
1536         * lib/sha256.c: Include af_alg.h.
1537         (sha256_stream, sha224_stream): Use afalg_stream when available.
1538         * modules/crypto/sha256 (Files): Add the af_alg files.
1539         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1540         (Makefile.am): Add af_alg.c.
1542 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1544         sha1sum: Use AF_ALG when available.
1545         * lib/af_alg.h: New file.
1546         * lib/af_alg.c: New file.
1547         * lib/sha1.c: Include af_alg.h.
1548         (sha1_stream): Use afalg_stream when available.
1549         * m4/linux-if-alg.m4: New file.
1550         * modules/crypto/sha1 (Files): Add the new files.
1551         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1552         (Makefile.am): Add af_alg.c.
1554 2018-05-05  Bruno Haible  <bruno@clisp.org>
1556         all: Replace more http URLs by https URLs.
1557         * lib/localename.c: Use https: URL.
1558         * lib/timespec.h: Likewise.
1560 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1562         maint: port more modules to GCC 8
1563         * lib/dirname.h (base_name):
1564         * lib/exclude.h (new_exclude):
1565         * lib/xstrndup.h (xstrndup):
1566         Add malloc attribute.
1567         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
1568         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
1569         This pacifies GCC 8.
1570         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1571         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
1573 2018-05-03  Bruno Haible  <bruno@clisp.org>
1575         Simplify code. Drop support for Borland C++ on Windows.
1576         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
1577         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
1578         'defined _WIN32'.
1579         * lib/canonicalize-lgpl.c: Likewise.
1580         * lib/classpath.c: Likewise.
1581         * lib/clean-temp.c: Likewise.
1582         * lib/csharpexec.c: Likewise.
1583         * lib/ctime.c: Likewise.
1584         * lib/dosname.h: Likewise.
1585         * lib/dup2.c: Likewise.
1586         * lib/errno.in.h: Likewise.
1587         * lib/error.c: Likewise.
1588         * lib/euidaccess.c: Likewise.
1589         * lib/execute.c: Likewise.
1590         * lib/fcntl.in.h: Likewise.
1591         * lib/fcntl.c: Likewise.
1592         * lib/filename.h: Likewise.
1593         * lib/findprog.c: Likewise.
1594         * lib/flock.c: Likewise.
1595         * lib/fopen.c: Likewise.
1596         * lib/freopen.c: Likewise.
1597         * lib/fstat.c: Likewise.
1598         * lib/fsync.c: Likewise.
1599         * lib/gc-gnulib.c: Likewise.
1600         * lib/get-rusage-data.c: Likewise.
1601         * lib/getaddrinfo.c: Likewise.
1602         * lib/getdelim.c: Likewise.
1603         * lib/getdtablesize.c: Likewise.
1604         * lib/gethostname.c: Likewise.
1605         * lib/getlogin.c: Likewise.
1606         * lib/getlogin_r.c: Likewise.
1607         * lib/getopt.c: Likewise.
1608         * lib/getpagesize.c: Likewise.
1609         * lib/getpass.c: Likewise.
1610         * lib/getrusage.c: Likewise.
1611         * lib/gettimeofday.c: Likewise.
1612         * lib/glob.c: Likewise.
1613         * lib/inttypes.in.h: Likewise.
1614         * lib/isapipe.c: Likewise.
1615         * lib/javaexec.c: Likewise.
1616         * lib/link.c: Likewise.
1617         * lib/localcharset.c: Likewise.
1618         * lib/localename.h: Likewise.
1619         * lib/localename.c: Likewise.
1620         * lib/localtime.c: Likewise.
1621         * lib/lseek.c: Likewise.
1622         * lib/mbsinit.c: Likewise.
1623         * lib/mkdir.c: Likewise.
1624         * lib/msvc-nothrow.h: Likewise.
1625         * lib/nanosleep.c: Likewise.
1626         * lib/nl_langinfo.c: Likewise.
1627         * lib/nonblocking.c: Likewise.
1628         * lib/nproc.c: Likewise.
1629         * lib/open.c: Likewise.
1630         * lib/openpty.c: Likewise.
1631         * lib/pathmax.h: Likewise.
1632         * lib/pipe-filter-aux.c: Likewise.
1633         * lib/pipe-filter-gi.c: Likewise.
1634         * lib/pipe-filter-ii.c: Likewise.
1635         * lib/pipe.c: Likewise.
1636         * lib/pipe2.c: Likewise.
1637         * lib/poll.c: Likewise.
1638         * lib/popen.c: Likewise.
1639         * lib/posix_openpt.c: Likewise.
1640         * lib/printf-parse.c: Likewise.
1641         * lib/progreloc.c: Likewise.
1642         * lib/putenv.c: Likewise.
1643         * lib/read.c: Likewise.
1644         * lib/relocatable.c: Likewise.
1645         * lib/rename.c: Likewise.
1646         * lib/same-inode.h: Likewise.
1647         * lib/secure_getenv.c: Likewise.
1648         * lib/select.c: Likewise.
1649         * lib/sethostname.c: Likewise.
1650         * lib/setlocale.c: Likewise.
1651         * lib/sigaction.c: Likewise.
1652         * lib/sigprocmask.c: Likewise.
1653         * lib/sleep.c: Likewise.
1654         * lib/spawn-pipe.h: Likewise.
1655         * lib/spawn-pipe.c: Likewise.
1656         * lib/spawni.c: Likewise.
1657         * lib/stat-time.h: Likewise.
1658         * lib/stat-w32.c: Likewise.
1659         * lib/stat.c: Likewise.
1660         * lib/stdio.in.h: Likewise.
1661         * lib/stdio-impl.h: Likewise.
1662         * lib/stdio-read.c: Likewise.
1663         * lib/stdio-write.c: Likewise.
1664         * lib/stdlib.in.h: Likewise.
1665         * lib/strerror_r.c: Likewise.
1666         * lib/strftime-fixes.c: Likewise.
1667         * lib/sys_stat.in.h: Likewise.
1668         * lib/sys_types.in.h: Likewise.
1669         * lib/sys_wait.in.h : Likewise.
1670         * lib/system-quote.h: Likewise.
1671         * lib/system-quote.c: Likewise.
1672         * lib/tmpdir.c: Likewise.
1673         * lib/tzset.c: Likewise.
1674         * lib/uname.c: Likewise.
1675         * lib/unistd.in.h: Likewise.
1676         * lib/utime.in.h: Likewise.
1677         * lib/utime.c: Likewise.
1678         * lib/utimecmp.c: Likewise.
1679         * lib/utimens.c: Likewise.
1680         * lib/vasnprintf.c: Likewise.
1681         * lib/vma-iter.h: Likewise.
1682         * lib/vma-iter.c: Likewise.
1683         * lib/wait-process.c: Likewise.
1684         * lib/wcsftime.c: Likewise.
1685         * lib/wctype.in.h: Likewise.
1686         * lib/write.c: Likewise.
1687         * tests/nap.h: Likewise.
1688         * tests/test-cloexec.c: Likewise.
1689         * tests/test-dup-safer.c: Likewise.
1690         * tests/test-dup2.c: Likewise.
1691         * tests/test-dup3.c: Likewise.
1692         * tests/test-fcntl.c: Likewise.
1693         * tests/test-get-rusage-data.c: Likewise.
1694         * tests/test-getaddrinfo.c: Likewise.
1695         * tests/test-getlogin.h: Likewise.
1696         * tests/test-isatty.c: Likewise.
1697         * tests/test-localename.c: Likewise.
1698         * tests/test-mbrtowc-w32.c: Likewise.
1699         * tests/test-nonblocking.c: Likewise.
1700         * tests/test-nonblocking-pipe-main.c: Likewise.
1701         * tests/test-nonblocking-socket-main.c: Likewise.
1702         * tests/test-nonblocking-socket.h: Likewise.
1703         * tests/test-pipe.c: Likewise.
1704         * tests/test-pipe2.c: Likewise.
1705         * tests/test-poll.c: Likewise.
1706         * tests/test-pthread_sigmask1.c: Likewise.
1707         * tests/test-select.h: Likewise.
1708         * tests/test-sethostname2.c: Likewise.
1709         * tests/test-sigprocmask.c: Likewise.
1710         * tests/test-spawn-pipe-child.c: Likewise.
1711         * tests/test-stat-time.c: Likewise.
1712         * tests/test-system-quote-main.c: Likewise.
1713         * tests/test-utimens-common.h: Likewise.
1714         * tests/test-wcrtomb-w32.c: Likewise.
1715         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1716         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1717         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1718         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1719         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1720         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1721         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1722         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1723         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1724         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1725         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1726         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1727         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1728         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1729         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1730         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1732 2018-05-02  Bruno Haible  <bruno@clisp.org>
1734         localename: Fix test failures on mingw.
1735         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1736         native Windows.
1737         (gl_locale_name_posix): Move code specific to native Windows here.
1738         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1739         Accept result without charset suffix, as it appears on mingw.
1741 2018-04-28  Paul Smith  <psmith@gnu.org>
1743         bootstrap: Avoid gnulib operations if not needed
1744         * build-aux/bootstrap: Remove unused variable gnulib_mk.
1745         Set $gnulib_extra_files early so it can be overridden in .conf.
1746         Remove redundant --import flag from $gnulib_tool_options.
1747         Set $use_gnulib to false if no gnulib modules or files are needed.
1748         If $use_gnulib is false, don't do anything related to gnulib.
1749         A lot of this is just whitespace (indentation) changes.
1751 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1753         manywarnings: port to GCC 8.0
1754         * build-aux/gcc-warning.spec: Add -Wcatch-value,
1755         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
1756         fact that the GCC help message now mentions operands for
1757         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
1758         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
1759         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
1760         and -Wunused-const-variable.
1761         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
1762         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
1763         -Wmissing-attributes, -Wmultistatement-macros,
1764         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
1765         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
1767 2018-04-24  Bruno Haible  <bruno@clisp.org>
1769         sys_socket: Make SO_REUSEPORT available across platforms.
1770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1771         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
1772         * doc/posix-headers/sys_socket.texi: Mention the issue.
1773         * tests/test-poll.c (SO_REUSEPORT): Remove.
1774         * tests/test-select.h: Include <sys/socket.h>.
1775         (SO_REUSEPORT): Remove.
1776         * modules/select-tests (Depends-on): Add 'sys_socket'.
1778 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1780         localcharset: short-circuit the search for an alias on a Mac
1781         * lib/localcharset.c (get_charset_aliases): Add a tautological
1782         UTF-8 entry to speed up the search for this case.
1783         Most machines default to a UTF-8 locale nowadays, so begin the
1784         list of aliases with a dummy UTF-8 entry so it will be found
1785         immediately and a time-consuming search through the rest of
1786         the list is avoided.
1788 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1790         fts: add comment
1791         * lib/fts.c (fts_build): Explain why ==, not >.
1792         See remark by Bernhard Voelker in:
1793         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
1795         fts: fix bug in find across filesystems
1796         This fixes a bug I introduced last summer.
1797         Problem reported by Kamil Dudka in:
1798         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
1799         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
1800         (leaf_optimization):
1801         New arg for file descriptor.  All callers changed.
1802         (fts_build): Check for whether inodes should be sorted
1803         before closing the directory.
1805 2018-04-07  Bruno Haible  <bruno@clisp.org>
1807         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
1808         Reported by Genki Sky <sky@genki.is>.
1809         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
1810         version 0.9.10 or newer.
1811         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
1812         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
1813         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
1814         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
1815         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
1817 2018-04-07  Bruno Haible  <bruno@clisp.org>
1819         execute: Update comment.
1820         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
1822 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1824         fts: treat CIFS like NFS
1825         Problem reported by Kamil Dudka in:
1826         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
1827         * lib/fts.c (S_MAGIC_CIFS): New macro.
1828         (dirent_inode_sort_may_be_useful, leaf_optimization):
1829         Treat CIFS like NFS.
1831 2018-03-28  Bruno Haible  <bruno@clisp.org>
1833         c-stack: Fix possible build failure on some platforms.
1834         * lib/c-stack.c (die): Define whenever this function is referenced.
1836 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
1838         time_rz: fix workaround for Mac OS X 10.6 infloop
1839         Problems reported by Charles A. Roelli (Bug#27736#117).
1840         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
1841         Also, discard output, which clutters the 'configure' log.
1843 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1845         havelib: port to Solaris 10 /bin/sh
1846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
1847         instead of '! test EXPR'.
1849 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1851         time_rz: work around Mac OS X 10.6 infloop
1852         * doc/posix-functions/localtime.texi:
1853         * doc/posix-functions/localtime_r.texi: Mention the bug.
1854         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
1855         better to fix localtime and localtime_r instead, but that would be
1856         more work and is not needed to fix the Emacs problem.
1857         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1859 2018-03-24  Jim Meyering  <meyering@fb.com>
1861         test-version-etc.sh: don't use diff directly: use init.sh's compare
1862         We'd rather not sacrifice readable "diff -u" output even for
1863         "diff -c" output (not supported by busybox) or for even less
1864         readable ed-style "diff" output.  So use init.sh's compare function
1865         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1866         Remove "./" from invocation of test-version-etc, so we use path.
1867         And s/diff/compare/.
1868         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1869         to get init.sh.
1870         Prompted by Eric Blake's comments in
1871         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1873 2018-03-24  Bruno Haible  <bruno@clisp.org>
1875         javacomp-script, javacomp: Add support for Java 10.
1876         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1877         target-version 10.
1878         * lib/javaversion.h: Update comments.
1879         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1880         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1881         TARGET_VERSION_BOUND, target_version_index,
1882         corresponding_classfile_version): Accept source_version 10 and
1883         target_version 10.
1884         * lib/javacomp.h: Update comments accordingly.
1886 2018-03-24  Bruno Haible  <bruno@clisp.org>
1888         javacomp-script, javacomp: Update comments.
1889         * m4/javacomp.m4: Update comments regarding gcj.
1890         * lib/javacomp.h: Likewise.
1892 2018-03-24  Bruno Haible  <bruno@clisp.org>
1894         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1895         * lib/javaversion.h: Update comments.
1896         * lib/javacomp.h: Likewise.
1897         * lib/javacomp.c (default_target_version, source_version_index,
1898         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1899         "1.9".
1900         (TARGET_VERSION_BOUND): Bump to 9.
1901         (target_version_index, corresponding_classfile_version): Recognize "9"
1902         instead of "1.9".
1903         (get_source_version_for_javac): New function.
1904         (is_envjavac_nongcj_usable, is_javac_usable): Add
1905         source_version_for_javac argument.
1906         (compile_java_class): Determine and pass source_version_for_javac.
1907         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1908         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1909         appropriate.
1911 2018-03-23  Jim Meyering  <meyering@fb.com>
1913         test-version-etc.sh: port to diff without -c
1914         * tests/test-version-etc.sh: Don't use diff's -c option.
1915         This caused spurious test failure on Alpine Linux, which
1916         uses busybox's diff. Reported by Assaf Gordon in
1917         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
1919 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1921         c-stack: port to recent GCC build
1922         Problem reported by The Fireplace (Bug#30913).
1923         * lib/c-stack.c (die): Define only if used.
1925 2018-03-20  Bruno Haible  <bruno@clisp.org>
1927         euidaccess: Port to native Windows.
1928         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
1929         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
1931 2018-03-19  Bruno Haible  <bruno@clisp.org>
1933         javacomp: Add support for Java 7, 8, 9.
1934         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1935         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1936         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
1937         and target_version 1,7, 1.8, 1.9.
1938         * lib/javacomp.h: Update comments accordingly.
1940 2018-03-19  Bruno Haible  <bruno@clisp.org>
1942         javacomp-script: Add support for Java 9.
1943         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
1944         target-version 1.9.
1946 2018-03-16  Bruno Haible  <bruno@clisp.org>
1948         glob: Don't compile replacements on recent glibc systems.
1949         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
1950         REPLACE_GLOB is 0, include the system's <glob.h> and use
1951         _GL_CXXALIAS_SYS.
1952         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
1953         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
1954         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
1955         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
1956         Remove snippet/warn-on-use.
1957         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
1958         (Makefile.am): Create glob.h always. Update list of substitutions in
1959         glob.h. Don't depend on $(WARN_ON_USE_H).
1961 2018-03-16  Bruno Haible  <bruno@clisp.org>
1963         glob: Fix link error on native Windows.
1964         * modules/glob (Depends-on): Add 'lstat'.
1966 2018-03-15  Bruno Haible  <bruno@clisp.org>
1968         glob: Fix compilation error in C++ mode.
1969         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
1971 2018-03-15  Bruno Haible  <bruno@clisp.org>
1973         host-cpu-c-abi: Support for RISC-V CPU.
1974         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
1975         riscv32 and riscv64 ABIs.
1976         References:
1977         https://github.com/riscv/riscv-toolchain-conventions
1978         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
1979         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
1981 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1983         fflush: be more paranoid about libio.h change
1984         Suggested by Eli Zaretskii in:
1985         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
1986         * lib/fbufmode.c (fbufmode):
1987         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1988         (disable_seek_optimization, rpl_fflush):
1989         * lib/fpending.c (__fpending):
1990         * lib/fpurge.c (fpurge):
1991         * lib/freadable.c (freadable):
1992         * lib/freadahead.c (freadahead):
1993         * lib/freading.c (freading):
1994         * lib/freadptr.c (freadptr):
1995         * lib/freadseek.c (freadptrinc):
1996         * lib/fseeko.c (fseeko):
1997         * lib/fseterr.c (fseterr):
1998         * lib/fwritable.c (fwritable):
1999         * lib/fwriting.c (fwriting):
2000         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
2002 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
2004         maint: write-file-hooks -> before-save-hook
2005         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
2006         it's time to use the recommended replacement.
2007         Problem reported by Glenn Morris in:
2008         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
2009         * build-aux/announce-gen, build-aux/bootstrap:
2010         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
2011         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
2012         * build-aux/gnu-web-doc-update, build-aux/gnupload:
2013         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
2014         * build-aux/update-copyright, build-aux/useless-if-before-free:
2015         * build-aux/vc-list-files:
2016         Update hook usage for files where Gnulib is the canonical source.
2018 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2020         binary-io: pacify gcc -Wunused-parameter
2021         Problem reported by Reuben Thomas in:
2022         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
2023         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
2024         Use _GL_UNUSED where appropriate.
2026         fflush: adjust to glibc 2.28 libio.h removal
2027         Problem reported by Daniel P. Berrangé in:
2028         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
2029         * lib/fbufmode.c (fbufmode):
2030         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2031         (disable_seek_optimization, rpl_fflush):
2032         * lib/fpending.c (__fpending):
2033         * lib/fpurge.c (fpurge):
2034         * lib/freadable.c (freadable):
2035         * lib/freadahead.c (freadahead):
2036         * lib/freading.c (freading):
2037         * lib/freadptr.c (freadptr):
2038         * lib/freadseek.c (freadptrinc):
2039         * lib/fseeko.c (fseeko):
2040         * lib/fseterr.c (fseterr):
2041         * lib/fwritable.c (fwritable):
2042         * lib/fwriting.c (fwriting):
2043         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
2044         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
2045         Define if not already defined.
2047 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
2049         environ: fix link error on 32-bit Cygwin
2050         Problem reported for GNU Emacs by Ken Brown in:
2051         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
2052         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
2054 2018-02-24  Bruno Haible  <bruno@clisp.org>
2056         mbrtowc tests: Fix regression on glibc.
2057         Reported by Bernhard Voelker.
2058         * tests/test-mbrtowc.c (main): Fix expected value of wc.
2060 2018-02-24  Bruno Haible  <bruno@clisp.org>
2062         striconveha, uniconv/*: Avoid test failures on musl libc.
2063         * tests/iconvsupport.c: New file.
2064         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
2065         does not support the ISO-2022-JP-2 encoding.
2066         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2067         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2071         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2072         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
2073         (Makefile.am): Link test-striconveha with iconvsupport.o.
2074         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
2075         tests/iconvsupport.c.
2076         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
2077         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
2078         tests/iconvsupport.c.
2079         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
2080         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
2081         tests/iconvsupport.c.
2082         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
2083         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
2084         tests/iconvsupport.c.
2085         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
2086         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
2087         tests/iconvsupport.c.
2088         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
2089         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
2090         tests/iconvsupport.c.
2091         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
2093 2018-02-24  Bruno Haible  <bruno@clisp.org>
2095         localename: Add support for musl libc.
2096         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
2097         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
2098         on Linux platforms which define NL_LOCALE_NAME.
2100 2018-02-24  Bruno Haible  <bruno@clisp.org>
2102         mbrtowc tests: Don't make assumptions about the charset the C locale.
2103         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
2104         particular mapping in the C locale.
2106 2018-02-24  Bruno Haible  <bruno@clisp.org>
2108         ptsname_r: Don't expect that this function sets errno.
2109         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
2110         from ptsname_r().
2111         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
2113 2018-02-23  Bruno Haible  <bruno@clisp.org>
2115         xmalloca: pacify gcc -Wbad-function-cast
2116         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
2118 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2120         nl_langinfo: pacify gcc -Wunused-function
2121         * lib/nl_langinfo.c (ctype_codeset): Do not define if
2122         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
2123         this case.  Without this change, I got a diagnostic when building
2124         coreutils on Fedora 27 with gcc 7.3.1 20180130.
2126         same: pacify gcc -Wunused-variable
2127         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
2128         Omit unused variable.
2130         malloca: pacify gcc -Wbad-function-cast
2131         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
2132         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
2133         To pacify GCC, I had to cast alloca’s result to some type other
2134         than void * before casting that to uintptr_t.
2136 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2138         utimecmp: new function utimecmpat
2139         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
2140         Do not include utimens.h.
2141         (utimecmpat): New function, generalizing utimecmp.
2142         (utimecmp): Now a thin layer around utimecmpat.
2143         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
2144         utimensat instead of on lstat and utimens.
2146         same: new function same_nameat
2147         * lib/same.c: Include fcntl.h.
2148         * lib/same.c (same_nameat): New function, generalizing same_name.
2149         (same_name): Now a thin layer around same_nameat.
2150         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
2151         * modules/same (Depends-on): Depend on fstatat, openat.
2153 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
2155         warnings: Add support for Objective C.
2156         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
2157         macro.
2159 2018-02-17  Bruno Haible  <bruno@clisp.org>
2161         lock: Fix test-once1 crash on FreeBSD11.
2162         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
2163         'pthread_create', not 'pthread_cancel'.
2165 2018-02-17  Bruno Haible  <bruno@clisp.org>
2167         lock: Add test of gl_once.
2168         * tests/test-once.c: New file.
2169         * modules/lock-tests (Files): Add it.
2170         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
2172 2018-02-17  Bruno Haible  <bruno@clisp.org>
2174         thread: Fix compilation error on IRIX.
2175         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
2176         needed; include it outside the C++ extern "C" {} block.
2177         * doc/posix-headers/pthread.texi: Mention the problem with
2178         pthread_atfork on IRIX.
2180 2018-02-04  Bruno Haible  <bruno@clisp.org>
2182         nl_langinfo: Override the system's nl_langinfo() when needed.
2183         Reported by Jim Meyering.
2184         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
2185         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
2187 2018-02-04  Bruno Haible  <bruno@clisp.org>
2189         signal-h, monetary, strings: Fix build failure in some cases.
2190         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2191         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
2192         as delimiter in sed command, not '|'.
2193         * modules/monetary (Makefile.am): Likewise.
2194         * modules/strings (Makefile.am): Likewise.
2196 2018-02-03  Jim Meyering  <meyering@fb.com>
2198         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
2199         * top/maint.mk (sc_file_system): Don't complain about
2200         "/proc/filesystems".
2202 2018-02-03  Bruno Haible  <bruno@clisp.org>
2204         stdlib: Fix compilation error on OpenIndiana.
2205         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
2206         <sys/time.h>.
2207         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2208         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2210 2018-02-03  Bruno Haible  <bruno@clisp.org>
2212         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
2213         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
2214         and use $EGREP instead of 'grep -E'.
2215         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
2216         'grep -E'.
2218 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
2220         malloca: Add a compile-time verification.
2221         * lib/malloca.c (small_t): Verify that it is wide enough.
2222         * modules/malloca (Depends-on): Add verify.
2224 2018-02-02  Bruno Haible  <bruno@clisp.org>
2226         malloca: Add an argument check.
2227         Suggested by Paul Eggert.
2228         * lib/malloca.c (freea): Check against an invalid argument.
2230 2018-02-02  Bruno Haible  <bruno@clisp.org>
2232         localename: Add support for OpenIndiana.
2233         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
2234         Solaris 11 variants with uselocale() but without getlocalename_l().
2236 2018-02-02  Bruno Haible  <bruno@clisp.org>
2238         malloca, xmalloca: Make multithread-safe.
2239         Reported by Florian Weimer <fweimer@redhat.com>.
2240         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
2241         * lib/malloca.h (malloca): In the stack allocation case, return a
2242         pointer that is a multiple of 2 * sa_alignment_max.
2243         (sa_increment): Remove enum item.
2244         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
2245         a pointer that is a multiple of 2 * sa_alignment_max.
2246         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
2247         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
2248         HASH_TABLE_SIZE, mmalloca_results): Remove.
2249         (small_t): New type.
2250         (mmalloca, free): Rewritten.
2251         * lib/malloca.valgrind: Remove file.
2252         * modules/malloca (Files): Remove it.
2253         (Depends-on): Remove verify.
2255 2018-01-31  Bruno Haible  <bruno@clisp.org>
2257         environ: Fix link error on 64-bit Cygwin.
2258         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
2259         __declspec(dllimport) attribute.
2260         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
2262 2018-01-30  Bruno Haible  <bruno@clisp.org>
2264         get-rusage-data: Add support for Minix 3.
2265         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
2267 2018-01-30  Bruno Haible  <bruno@clisp.org>
2269         vma-iter: Add support for Minix 3.
2270         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
2271         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
2273 2018-01-27  Bruno Haible  <bruno@clisp.org>
2275         Fix malfunction of socket functions on HP-UX in 64-bit mode.
2276         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
2277         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
2278         _HPUX_ALT_XOPEN_SOCKET_API.
2279         * modules/accept (Depends-on): Add 'extensions'.
2280         * modules/getpeername (Depends-on): Likewise.
2281         * modules/getsockname (Depends-on): Likewise.
2282         * modules/getsockopt (Depends-on): Likewise.
2283         * modules/recvfrom (Depends-on): Likewise.
2284         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
2285         * doc/posix-functions/getpeername.texi: Likewise.
2286         * doc/posix-functions/getsockname.texi: Likewise.
2287         * doc/posix-functions/getsockopt.texi: Likewise.
2288         * doc/posix-functions/recvfrom.texi: Likewise.
2290 2018-01-27  Bruno Haible  <bruno@clisp.org>
2292         getsockname tests: More tests.
2293         * tests/test-getsockname.c (open_server_socket): New function, mostly
2294         copied from test-poll.c.
2295         (main): Check that getsockname fills in addr.
2296         * modules/getsockname-tests (Depends-on): Add the necessary
2297         dependencies.
2298         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
2300 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
2302         manywarnings: fix maintainer comment
2303         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
2304         it does not mistakenly think that ‘-1)’ is an option.
2306 2018-01-26  Bruno Haible  <bruno@clisp.org>
2308         langinfo: Fix last commit.
2309         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2310         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
2312 2018-01-24  Bruno Haible  <bruno@clisp.org>
2314         langinfo, nl_langinfo: Add support for alternative month names.
2315         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
2316         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
2317         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
2318         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
2319         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
2320         * doc/posix-functions/nl_langinfo.texi: Likewise.
2322 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2324         Merge strftime.c changes from glibc
2325         This incorporates:
2326         2017-11-14 [BZ #10871] Implement alternative month names
2327         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
2328         2017-06-20 Use locale_t, not __locale_t, throughout glibc
2329         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
2330         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
2331         Use locale_t, not __locale_t.
2332         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
2333         (__strftime_internal): Add support for alternate months.
2335 2018-01-23  Bruno Haible  <bruno@clisp.org>
2337         doc: Mention another prerequisite for using Gnulib.
2338         Reported at <https://stackoverflow.com/questions/48378214/>.
2339         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
2340         AC_CONFIG_HEADERS.
2342 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
2344         build: GuixSD doesn't have /bin/bash
2345         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
2347 2018-01-21  Bruno Haible  <bruno@clisp.org>
2349         Avoid test failures on Microsoft Windows Subsystem for Linux.
2350         * tests/test-fcntl.c (main): Allow a different errno.
2351         * tests/test-rename.h (test_rename): Likewise.
2352         * tests/test-renameat.c (main): Likewise.
2353         * tests/test-renameat2.c (main): Likewise.
2355 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2357         filenamecat: make base a suffix of result
2358         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
2359         (mfile_name_concat): Always make BASE a suffix of the result, as
2360         cp expects this.  To implement this, separate with '.' instead of
2361         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
2362         * tests/test-filenamecat.c (main): Adjust tests to match
2363         current behavior.  Check that BASE_IN_RESULT points to
2364         a copy of BASE and is a suffix of the resultk, and that DIR
2365         is a prefix of the result that is no longer than the prefix
2366         indicated by BASE_IN_RESULT.
2368 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
2370         update-copyright: Handle use of ©
2371         * build-aux/update-copyright ($circle_c_re): Update regex to
2372         handle use of © in headers.
2374 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
2376         Fix -Wundef warning in user-included header lib/cdefs.h.
2377         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
2379 2018-01-04  Bruno Haible  <bruno@clisp.org>
2381         pthread_sigmask: Avoid compilation error on mingw.
2382         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2383         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
2384         macro.
2386 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2388         test-framework-sh: ‘ps -ef’, not ‘ps ef’
2389         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
2390         Suggested by Bob Proulx (Bug#29968).
2391         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
2393 2018-01-02  Eric Blake  <eblake@redhat.com>
2395         stat-time: silence -Wunused-parameter regression
2396         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2397         Prefer attribute over cast-to-void.
2398         (stat_time_normalize): Mark st as potentially unused.
2400 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2402         test-framework-sh: avoid netstat
2403         Problem reported by Kristýna Streitová (Bug#29947).
2404         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
2405         deprecated on SuSE and it's not that important anyway.
2407 2018-01-01  Jim Meyering  <meyering@fb.com>
2409         update-copyright: add code to handle more special cases
2410         After running "make update-copyright" this year, five files
2411         required additional manual changes.  Automate those adjustments
2412         for next year.
2413         * Makefile (_year_and_prev): Define.
2414         (update-copyright): Add perl commands to induce this year's post-
2415         update-copyright adjustments.
2417 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2419         version-etc: new year
2420         * build-aux/gendocs.sh (version):
2421         * doc/gendocs_template:
2422         * doc/gendocs_template_min:
2423         * doc/gnulib.texi:
2424         * lib/version-etc.c (COPYRIGHT_YEAR):
2425         Update copyright dates by hand in templates and the like.
2427         maint: fix 'make update-copyright'
2428         * Makefile (update-copyright): Adjust to 2016-11-23 change
2429         to config/srclist-update, which changed the format of srclist.txt.
2431 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2433         chdir-safer: remove this module
2434         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
2435         * NEWS: Document removal.
2436         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
2437         * modules/chdir-safer: Remove these files.
2439 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
2441         Add cross-compilation results for GNU/Hurd.
2442         * m4/calloc.m4: Add GNU/Hurd guess.
2443         * m4/cbrtl.m4: Likewise.
2444         * m4/ceil.m4: Likewise.
2445         * m4/ceilf.m4: Likewise.
2446         * m4/ceill.m4: Likewise.
2447         * m4/chown.m4: Likewise.
2448         * m4/duplocale.m4: Likewise.
2449         * m4/exp2l.m4: Likewise.
2450         * m4/expm1.m4: Likewise.
2451         * m4/fchdir.m4: Likewise.
2452         * m4/floor.m4: Likewise.
2453         * m4/floorf.m4: Likewise.
2454         * m4/fmod.m4: Likewise.
2455         * m4/fmodf.m4: Likewise.
2456         * m4/fmodl.m4: Likewise.
2457         * m4/getcwd.m4: Likewise.
2458         * m4/getgroups.m4: Likewise.
2459         * m4/gettimeofday.m4: Likewise.
2460         * m4/hypot.m4: Likewise.
2461         * m4/hypotf.m4: Likewise.
2462         * m4/hypotl.m4: Likewise.
2463         * m4/link-follow.m4: Likewise.
2464         * m4/link.m4: Likewise.
2465         * m4/linkat.m4: Likewise.
2466         * m4/log.m4: Likewise.
2467         * m4/log10.m4: Likewise.
2468         * m4/log10f.m4: Likewise.
2469         * m4/log1p.m4: Likewise.
2470         * m4/log1pf.m4: Likewise.
2471         * m4/log1pl.m4: Likewise.
2472         * m4/log2.m4: Likewise.
2473         * m4/log2f.m4: Likewise.
2474         * m4/logf.m4: Likewise.
2475         * m4/lstat.m4: Likewise.
2476         * m4/malloc.m4: Likewise.
2477         * m4/mbrlen.m4: Likewise.
2478         * m4/mbrtowc.m4: Likewise.
2479         * m4/mkdir.m4: Likewise.
2480         * m4/mkfifo.m4: Likewise.
2481         * m4/mknod.m4: Likewise.
2482         * m4/mkstemp.m4: Likewise.
2483         * m4/modf.m4: Likewise.
2484         * m4/modff.m4: Likewise.
2485         * m4/modfl.m4: Likewise.
2486         * m4/printf.m4: Likewise.
2487         * m4/pselect.m4: Likewise.
2488         * m4/ptsname.m4: Likewise.
2489         * m4/putenv.m4: Likewise.
2490         * m4/readlink.m4: Likewise.
2491         * m4/realloc.m4: Likewise.
2492         * m4/remainder.m4: Likewise.
2493         * m4/remainderf.m4: Likewise.
2494         * m4/remainderl.m4: Likewise.
2495         * m4/rmdir.m4: Likewise.
2496         * m4/round.m4: Likewise.
2497         * m4/roundf.m4: Likewise.
2498         * m4/roundl.m4: Likewise.
2499         * m4/select.m4: Likewise.
2500         * m4/setenv.m4: Likewise.
2501         * m4/signbit.m4: Likewise.
2502         * m4/sleep.m4: Likewise.
2503         * m4/stat.m4: Likewise.
2504         * m4/strerror.m4: Likewise.
2505         * m4/strtok_r.m4: Likewise.
2506         * m4/symlink.m4: Likewise.
2507         * m4/symlinkat.m4: Likewise.
2508         * m4/trunc.m4: Likewise.
2509         * m4/truncf.m4: Likewise.
2510         * m4/truncl.m4: Likewise.
2511         * m4/tzset.m4: Likewise.
2512         * m4/ungetc.m4: Likewise.
2513         * m4/usleep.m4: Likewise.
2514         * m4/wcwidth.m4: Likewise.
2516 2017-12-28  Bruno Haible  <bruno@clisp.org>
2518         gnulib-tool: Make --conditional-dependencies work better.
2519         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
2520         * gnulib-tool (Options): Don't reject the combination of
2521         --conditional-dependencies with --with-tests.
2522         (func_emit_autoconf_snippets): Add argument referenceable_modules.
2523         Don't reference $modules.
2524         (func_import, func_create_testdir): Pass it.
2526 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2528         regex: use re_malloc etc. consistently
2529         Problem and original patch reported by Arnold Robbins in:
2530         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
2531         * lib/regcomp.c (re_comp):
2532         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
2533         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
2535 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
2536             Paul Eggert  <eggert@cs.ucla.edu>
2538         glob: Silence warning about void pointer arithmetic.
2539         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
2540         arithmetic.
2542 2017-12-15  Bruno Haible  <bruno@clisp.org>
2544         spawn-pipe: Silence a clang warning.
2545         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2546         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
2547         in this file.
2549 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2551         explicit_bzero: port to macOS + Clang 9.0.0
2552         Problem reported by Marcus Johnson (Bug#29658).
2553         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
2554         Don’t use asm.
2556 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2558         doc: Improve explanation of supporting relocatable libraries.
2559         * doc/relocatable-maint.texi (Supporting Relocation): Explain
2560         properly how to build the relocatable module for
2561         libraries. (Method and example code from Bruno Haible.)
2563 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2565         doc: Use better texinfo tags in a few cases.
2566         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
2567         instead of @samp in a few places.
2569 2017-12-11  Bruno Haible  <bruno@clisp.org>
2571         unistr/base: Update comment.
2572         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
2574 2017-12-10  Pádraig Brady  <P@draigBrady.com>
2576         test-faccessat.c: unlink temp file to avoid subsequent test failure
2577         * tests/test-faccessat.c: Remove the file to avoid failure
2578         to open the file on subsequent runs due to being created
2579         with no permissions.
2581 2017-12-10  Bruno Haible  <bruno@clisp.org>
2583         doc: New sect. "Modifying the build rules of a Gnulib import directory".
2584         * doc/gnulib-tool.texi (Modified build rules): New node.
2586 2017-12-10  Bruno Haible  <bruno@clisp.org>
2588         doc: Tweak wording.
2589         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
2590         "binaries".
2592 2017-12-05  Sam Steingold  <sds@gnu.org>
2593             Bruno Haible  <bruno@clisp.org>
2595         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2596         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2597         AC_EGREP_CPP pattern.
2599 2017-12-03  Bruno Haible  <bruno@clisp.org>
2601         all: Replace more http URLs by https URLs.
2602         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2603         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2604         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2605         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2607 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2609         Port better to CentOS 5
2610         Problems reported by Tom G. Christensen in:
2611         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2612         * doc/glibc-functions/strverscmp.texi (strverscmp):
2613         Document strverscmp bug with glibc 2.9 and earlier.
2614         * doc/posix-functions/tzset.texi (tzset):
2615         Document that TZ with angle brackets is POSIX-2001 and later.
2616         * tests/test-nstrftime.c: Include unistd.h.
2617         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2618         (TZ): Use it to skip tests with angle brackets in TZ,
2619         for older systems.
2621         stat: add missing module dependencies
2622         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2623         Add stat-time.
2625 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2627         stat: fix compilation failure on macOS Sierra
2628         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2629         https://savannah.gnu.org/bugs/?52546
2630         * lib/stat.c: Add missing include of stat-time.h.
2632 2017-11-28  Jim Meyering  <meyering@fb.com>
2634         test-faccessat.c: correct BASE definition to avoid parallel test failure
2635         * tests/test-faccessat.c (BASE): Define using this file's name, not
2636         that of test-lstat.c.  Using the latter caused this test to fail
2637         sometimes when run concurrently with test-lstat.
2639 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2641         unicase: fix VPATH build
2642         * modules/unicase/special-casing (Makefile.am): Ensure that the
2643         base directory is created when generating
2644         unicase/special-casing.h.
2646 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2648         libunistring: update to Unicode 9.0.0
2649         * lib/gen-uni-tables.c (fill_properties): Recognize
2650         Sentence_Terminal and Prepended_Concatenation_Mark.
2651         (is_property_default_ignorable_code_point): Exclude U+08E2.
2652         (fill_arabicshaping): Allow missing whitespace when parsing;
2653         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2654         (output_blocks): Increase the element size of the level1 table to
2655         accommodate more blocks.
2656         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2657         Update each class according to the standard.
2658         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2659         E_Base_GAZ characters.
2660         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2661         Glue_After_Zwj, and E_Base_GAZ characters.
2662         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2663         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2664         enum value.
2665         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2666         value.
2667         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2668         LBP_ZWJ, LBP_EB, and LBP_EM.
2669         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2670         enum value.
2671         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2672         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2673         declaration.
2674         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2675         (uniwbrk_table): Implement WB14.
2676         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2677         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2678         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2679         uc-is-grapheme-break.
2680         * modules/unigbrk/uc-grapheme-breaks: New module.
2681         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2682         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2683         enum value.
2684         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2685         * lib/unigbrk/u-grapheme-breaks.h: New file.
2686         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2687         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2688         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2689         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2690         29.
2691         * tests/unigbrk/test-uc-gbrk-prop.c
2692         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2693         GBP_GAZ, and GBP_EBG.
2694         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2695         * tests/unigbrk/test-uc-is-grapheme-break.c
2696         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2697         GBP_GAZ, and GBP_EBG.
2698         (main): Skip unsupported rules involving 3 or more characters,
2699         namely GB10, GB12, and GB13.
2700         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2701         * all generated files under lib/uni* and tests/uni*: Regenerate.
2702         * all the affected modules: Bump version.
2704 2017-11-26  Bruno Haible  <bruno@clisp.org>
2706         strfmon_l: Fix compilation error with glibc 2.5.
2707         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2708         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2709         * lib/monetary.in.h: Include also <locale.h>.
2711 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2713         posixtm: remove PDS_LEADING_YEAR
2714         This changes the API slightly, in a hopefully-innocuous way.
2715         Without this change the code had undefined behavior when a
2716         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2717         Problem reported by Pádraig Brady in:
2718         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2719         * NEWS: Mention this.
2720         * lib/posixtm.c (posix_time_parse): Treat the absence of
2721         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2722         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2723         present, but define it as zero, for compatibility with existing
2724         source code).  All other PDS_* values moved up.
2725         * tests/test-posixtm.c (LY): New macro.
2726         (T): Use it.  Do not expect a particular numeric encoding
2727         for PDS_CENTURY etc.
2729 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2731         stat: work around Solaris bug with tv_nsec < 0
2732         * doc/posix-functions/fstat.texi (fstat):
2733         * doc/posix-functions/fstatat.texi (fstatat):
2734         * doc/posix-functions/lstat.texi (lstat):
2735         * doc/posix-functions/stat.texi (stat):
2736         Mention Solaris 11 bug.
2737         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2738         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2739         * lib/lstat.c (rpl_lstat):
2740         * lib/stat.c (rpl_stat):
2741         Normalize resulting timestamps.
2742         * lib/fstatat.c (normal_fstatat): New function.
2743         (rpl_fstatat): Use it.
2744         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
2745         (stat_time_normalize): New function.
2746         * m4/fstat.m4 (gl_FUNC_FSTAT):
2747         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
2748         * m4/lstat.m4 (gl_FUNC_LSTAT):
2749         * m4/stat.m4 (gl_FUNC_STAT):
2750         Replace on Solaris.
2751         * modules/fstat (Depends-on):
2752         * modules/fstatat (Depends-on):
2753         Add stat-time.
2754         * modules/stat-time (Depends-on): Add errno, intprops.
2756 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2758         regex: merge from glibc
2759         * lib/regcomp.c (init_word_char): Add comments.
2761 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2763         regex: merge from glibc
2764         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
2765         * lib/regex_internal.h (internal_function): Remove.
2766         All uses removed.
2768 2017-11-20  Bruno Haible  <bruno@clisp.org>
2770         crypto/gc-sm3: Fix buffer overrun.
2771         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
2772         Reported by Coverity.
2774 2017-11-12  Jim Meyering  <meyering@fb.com>
2776         maint: shorten https://lists.gnu.org/archive/html/... links
2777         Each /archive/html/ part can be replace with /r/.
2778         Run this to induce the change:
2779         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
2780         * ChangeLog: Perform that substitution.
2781         * Makefile: Likewise.
2782         * STATUS-libposix: Likewise.
2783         * build-aux/bootstrap: Likewise.
2784         * doc/maintain.texi: Likewise.
2785         * gnulib-tool: Likewise.
2786         * lib/allocator.h: Likewise.
2787         * lib/argp-ba.c: Likewise.
2788         * lib/argp-pv.c: Likewise.
2789         * lib/canon-host.c: Likewise.
2790         * lib/canonicalize-lgpl.c: Likewise.
2791         * lib/float.in.h: Likewise.
2792         * lib/fstat.c: Likewise.
2793         * lib/getdelim.c: Likewise.
2794         * lib/getprogname.c: Likewise.
2795         * lib/glthread/thread.h: Likewise.
2796         * lib/intprops.h: Likewise.
2797         * lib/mbsrtowcs-state.c: Likewise.
2798         * lib/safe-read.c: Likewise.
2799         * lib/signal.in.h: Likewise.
2800         * lib/stat.c: Likewise.
2801         * lib/stdbool.in.h: Likewise.
2802         * lib/stdio-impl.h: Likewise.
2803         * lib/stdio.in.h: Likewise.
2804         * lib/sysexits.in.h: Likewise.
2805         * lib/timespec.h: Likewise.
2806         * lib/wcsrtombs-state.c: Likewise.
2807         * m4/alloca.m4: Likewise.
2808         * m4/extern-inline.m4: Likewise.
2809         * m4/fstatat.m4: Likewise.
2810         * m4/gnulib-common.m4: Likewise.
2811         * m4/lib-ignore.m4: Likewise.
2812         * m4/printf.m4: Likewise.
2813         * m4/regex.m4: Likewise.
2814         * m4/stat-size.m4: Likewise.
2815         * m4/std-gnu11.m4: Likewise.
2816         * m4/stdbool.m4: Likewise.
2817         * m4/sys_types_h.m4: Likewise.
2818         * m4/threadlib.m4: Likewise.
2819         * m4/vararrays.m4: Likewise.
2820         * pygnulib/GLImport.py: Likewise.
2821         * tests/test-exp.h: Likewise.
2822         * tests/test-exp2.h: Likewise.
2823         * tests/test-expm1.h: Likewise.
2824         * tests/test-fflush2.c: Likewise.
2825         * tests/test-getopt_long.h: Likewise.
2826         * tests/test-intprops.c: Likewise.
2827         * tests/test-log.h: Likewise.
2828         * tests/test-log10.h: Likewise.
2829         * tests/test-log1p.h: Likewise.
2830         * tests/test-log2.h: Likewise.
2831         * tests/test-printf-posix.h: Likewise.
2832         * tests/test-regex.c: Likewise.
2833         * tests/test-snprintf-posix.h: Likewise.
2834         * tests/test-sprintf-posix.h: Likewise.
2835         * tests/test-stdalign.c: Likewise.
2836         * tests/test-stdbool.c: Likewise.
2837         * tests/test-vasnprintf-posix.c: Likewise.
2838         * tests/test-vasprintf-posix.c: Likewise.
2839         * top/maint.mk: Likewise.
2841 2017-11-12  Bruno Haible  <bruno@clisp.org>
2843         faccessat: Make the last change more robust.
2844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
2845         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
2847 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2849         faccessat: port to macOS (Bug#29231)
2850         macOS faccessat has the same bug that lstat does: if the file
2851         name ends in '/' it ignores the trailing slash.
2852         Problem reported for Emacs by Vincent Zhang.
2853         * doc/posix-functions/faccessat.texi (faccessat): Document this.
2854         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
2855         around the initial includes.  Include errno.h, string.h, sys/stat.h.
2856         (orig_faccessat) [HAVE_FACCESSAT]: New function.
2857         Include "unistd.h" after defining it.
2858         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2859         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2860         Handle in the usual way.
2861         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2862         lstat dereferences symlinks, since faccessat is likely to
2863         have the same problem.
2864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2865         * modules/faccessat (Depends-on): Add fstatat.
2866         Depend if REPLACE_FACCESSAT is 1, too.
2867         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2868         * modules/faccessat-tests (Depends-on): Add symlink.
2869         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2870         * tests/test-faccessat.c (main): Test for the bug.
2872 2017-11-11  Bruno Haible  <bruno@clisp.org>
2874         getprogname: Fix compilation error on IRIX.
2875         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2876         'namesize'.
2878 2017-11-11  Bruno Haible  <bruno@clisp.org>
2880         year2038: Tweak last patch.
2881         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2883 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2885         year2038: be more insistent about 64-bit time_t
2886         Applications requiring access to arbitrary files should not be
2887         built with 32-bit time_t on hosts that have 64-bit timestamps,
2888         as this can lead to real trouble at runtime.
2889         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2890         Check on all systems, not just MinGW.  Use a heuristic involving
2891         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2892         output a failure or just a warning, to make it more likely that
2893         builders will select 64-bit time_t.
2895 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2897         havelib: fix typo in previous change
2898         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2900         Don’t use AC_EGREP_CPP if affected by CFLAGS
2901         * m4/float_h.m4 (gl_FLOAT_H):
2902         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2903         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2904         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2905         * m4/year2038.m4 (gl_YEAR2038):
2906         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2907         likely to be affected by the choice of CFLAGS, since CFLAGS are
2908         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2909         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2911         fstatat: pacify GCC on unusual platform
2912         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2913         Omit, as it’s unused in this case.
2915 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2917         timespec: prefer ‘assume’ to ‘assure’
2918         This avoids some runtime tests.  The rest of the module makes
2919         similar assumptions and there is little point to testing here.
2920         * lib/timespec.h: Include verify.h instead of assure.h.
2921         (timespec_cmp): Use ‘assume’, not ‘assure’.
2922         Also, remove an unnecessary cast to ‘int’, as lots of other
2923         code in this module now causes -Wconversion to complain, and
2924         this is a problem with -Wconversion not with the code.
2926         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
2928         Port recent gnulib-tool change to Dash
2929         * gnulib-tool (func_create_testdir): Don't assume that the shell
2930         retokenizes after expanding "$@" inside the call to
2931         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
2933 2017-10-27  Jim Meyering  <meyering@fb.com>
2935         timespec.h: use "assure" to avoid a spurious warning
2936         * lib/timespec.h: Include "assure.h" and use it to help
2937         gcc7's -Wstrict-overflow avoid a false positive warning
2938         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
2939         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
2940         * modules/timespec (Depends-on): Add assure.
2942 2017-10-29  Bruno Haible  <bruno@clisp.org>
2944         Avoid several test failures with traditional locales on Haiku.
2945         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
2946         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
2947         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
2948         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
2949         LOCALE_ZH_CN=none.
2951 2017-10-29  Bruno Haible  <bruno@clisp.org>
2953         strerror_r-posix: Fix behaviour and test failure on Haiku.
2954         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
2955         are positive. Work around return value 0 instead of ERANGE on Haiku.
2956         For unknown error numbers, use a format string consistent with perror().
2957         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
2958         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
2959         are positive.
2961 2017-10-29  Bruno Haible  <bruno@clisp.org>
2963         get-rusage-data: Avoid crash on Haiku.
2964         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
2966 2017-10-29  Bruno Haible  <bruno@clisp.org>
2968         get-rusage-as: Avoid crash on Haiku.
2969         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
2971 2017-10-29  Bruno Haible  <bruno@clisp.org>
2973         ilogbl: Ensure replacement on Haiku.
2974         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
2975         REPLACE_ILOGBL if ilogbl does not work.
2976         (gl_FUNC_ILOGBL_WORKS): New macro.
2977         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
2978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
2979         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
2980         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
2981         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
2983 2017-10-29  Bruno Haible  <bruno@clisp.org>
2985         expl: Ensure replacement on Haiku.
2986         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
2987         zero.
2988         * doc/posix-functions/expl.texi: Mention the Haiku problem.
2990 2017-10-29  Bruno Haible  <bruno@clisp.org>
2992         math: Fix test failure on Haiku.
2993         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
2994         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
2995         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2996         * doc/posix-headers/math.texi: Mention the Haiku problem.
2998 2017-10-29  Bruno Haible  <bruno@clisp.org>
3000         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
3001         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
3002         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
3004 2017-10-29  Bruno Haible  <bruno@clisp.org>
3006         crypto/*: Verify that the header file is self-contained.
3007         * tests/test-gc-*.c: Include the module's header file immediately after
3008         <config.h>.
3009         * tests/test-hmac-*.c: Likewise.
3010         * tests/test-arcfour.c: Likewise.
3011         * tests/test-arctwo.c: Likewise.
3012         * tests/test-des.c: Likewise.
3013         * tests/test-md2.c: Likewise.
3014         * tests/test-md4.c: Likewise.
3015         * tests/test-md5.c: Likewise.
3016         * tests/test-rijndael.c: Likewise.
3017         * tests/test-sha1.c: Likewise.
3018         * tests/test-sm3.c: Likewise.
3020 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3021             Bruno Haible  <bruno@clisp.org>
3023         crypto/gc: fix build failure with -Werror=suggest-attribute=const
3024         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
3026 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3028         New module: crypto/gc-sm3
3029         * lib/gc.h: Declare SM3-related stuffs.
3030         * lib/gc-gnulib.c: Support sm3 in internal functions.
3031         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
3032         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
3033         * modules/crypto/gc-sm3: Define gc-sm3 module.
3034         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
3035         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
3036         * MODULES.html.sh: List gc-sm3 module.
3038 2017-10-29  Bruno Haible  <bruno@clisp.org>
3040         random, random_r: Mention different prototypes on Haiku.
3041         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
3042         * doc/glibc-functions/random_r.texi: Likewise.
3043         * doc/glibc-functions/initstate_r.texi: Likewise.
3044         * doc/glibc-functions/setstate_r.texi: Likewise.
3046 2017-10-28  Bruno Haible  <bruno@clisp.org>
3048         posix_spawn: Avoid spurious message in configure output.
3049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
3050         'cmp' command.
3052 2017-10-28  Bruno Haible  <bruno@clisp.org>
3054         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
3055         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
3056         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3058 2017-10-28  Bruno Haible  <bruno@clisp.org>
3060         ioctl: Override non-POSIX declaration on Haiku.
3061         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
3062         * lib/sys_ioctl.in.h: Add comment about Haiku.
3063         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
3064         * doc/glibc-headers/sys_ioctl.texi: Likewise.
3066 2017-10-28  Bruno Haible  <bruno@clisp.org>
3068         crypto/sm3: Add overview documentation to the .h file.
3069         * lib/sm3.h: Add comments.
3071 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3073         New module: crypto/sm3
3074         This new module can be used to compute SM3 message digest of files or
3075         memory blocks according to the specification GM/T 004-2012
3076         Cryptographic Hash Algorithm SM3, published by State Cryptography
3077         Administration, China.
3078         The official SM3 cryptographic hash algorithm specification is
3079         available at
3080         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
3081         * lib/sm3.h: Declare the APIs of sm3 module.
3082         * lib/sm3.c: Implement SM3 hash algorithm.
3083         * m4/sm3.m4: m4 file for sm3 module.
3084         * modules/crypto/sm3: Define sm3 module.
3085         * tests/test-sm3.c: Implement SM3 test case.
3086         * modules/crypto/sm3-tests: Define sm3 test module.
3087         * MODULES.html.sh: List sm3 module.
3089 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3091         gc-libgcrypt: fix undefined enum type in switch statement
3092         Resolve the following build failure:
3093         lib/gc-libgcrypt.c: In function 'gc_hash_open':
3094         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
3095         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
3096              case 0:
3097              ^~~~
3098         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
3099         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
3101 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3103         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
3104         Resolve the following build failure:
3105         lib/gc-libgcrypt.c: In function 'gc_hash_read':
3106         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
3107         in signedness [-Werror=pointer-sign]
3108             digest = gcry_md_read (ctx->gch, 0);
3109                    ^
3110         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
3112 2017-10-26  Bruno Haible  <bruno@clisp.org>
3114         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
3115         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
3116         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
3118 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3120         glob: fix another heap buffer overflow
3121         Problem reported by Tim Rühsen in:
3122         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
3123         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
3125 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3127         quotearg: pacify compiler re unsigned
3128         * lib/quotearg.c (quotearg_n_options):
3129         Rewrite to avoid diagnostic from overly-picky compiler.
3130         Problem reported by Sami Kerola in:
3131         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
3133         glob: fix heap buffer overflow
3134         * lib/glob.c (glob): Fix off-by-one error introduced into
3135         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
3136         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
3137         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
3138         Fix suggested by Bruno Haible.
3140 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
3142         glob: pacify fuzzer for mempcpy
3143         Problem reported by Tim Rühsen in:
3144         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
3145         * lib/glob.c (glob): Do not pass NULL to mempcpy.
3147 2017-10-12  Bruno Haible  <bruno@clisp.org>
3149         doc: Fix syntax error (regression from 2017-10-03).
3150         * doc/posix-functions/strncpy.texi: Fix syntax error.
3152 2017-10-12  Bruno Haible  <bruno@clisp.org>
3154         doc: Update for Solaris 11.3.
3155         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
3156         mention Solaris 11.3.
3157         * m4/log2.m4: Fix comments.
3158         * m4/log2f.m4: Likewise.
3159         * m4/printf.m4: Update comments.
3160         * m4/rename.m4: Likewise.
3161         * m4/strncat.m4: Likewise.
3163         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
3165 2017-10-10  Bruno Haible  <bruno@clisp.org>
3167         doc: Improve doc about ioctl.
3168         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
3169         prototype.
3171 2017-10-09  Bruno Haible  <bruno@clisp.org>
3173         wcwidth: Don't use obsolete syntax of 'test'.
3174         Reported by Eric Blake.
3175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
3176         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
3178 2017-10-09  Bruno Haible  <bruno@clisp.org>
3180         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
3181         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
3182         and Daniel P. Berrange <berrange@redhat.com>.
3183         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
3184         on glibc systems. The getopt-pfx-core.h file declares exactly what
3185         unistd.h needs, nothing more.
3187 2017-10-08  Bruno Haible  <bruno@clisp.org>
3189         vma-iter: Improve support for FreeBSD.
3190         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
3191         vma_iterate.
3192         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
3194 2017-10-08  Bruno Haible  <bruno@clisp.org>
3196         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
3197         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
3199 2017-10-07  KO Myung-Hun  <komh@chollian.net>
3201         test-framework-sh: Fix 'invalid path dir' error.
3202         On OS/2, a path separator is ';' not ':'. And ':' is used as a
3203         separator between a drive letter and directory parts.
3204         As a result, an absolute path such as x:/path/to/dir on OS/2 is
3205         treated as an invalid path dir.
3206         * tests/init.sh (PATH_SEPARATOR): Set at startup.
3207         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
3208         instead of hard coded ':'.
3210 2017-10-07  Bruno Haible  <bruno@clisp.org>
3212         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
3213         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
3214         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
3215         (rof_open): On Linux, do multiple read() calls and make sure
3216         MIN_LEFTOVER bytes are left when read() returns.
3218 2017-10-07  Bruno Haible  <bruno@clisp.org>
3220         vma-iter: Improve support for GNU/Hurd.
3221         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
3222         API, not the /proc file system.
3224 2017-10-07  Bruno Haible  <bruno@clisp.org>
3226         test-framework-sh: Don't require bash on Windows and OS/2.
3227         Reported by KO Myung-Hun.
3228         * tests/test-init.sh: Use 'shopt' only when running in bash.
3230 2017-10-06  KO Myung-Hun  <komh@chollian.net>
3232         wcwidth: check a macro version of wcwidth () as well
3233         * lib/wchar.in.h: Revert commit from 2016-01-14.
3234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
3236 2017-10-06  Bruno Haible  <bruno@clisp.org>
3238         getopt-posix: Clarify copyright header.
3239         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
3240         * lib/getopt-pfx-core.h: Likewise.
3241         * lib/getopt-pfx-ext.h: Likewise.
3242         * lib/getopt-cdefs.in.h: Likewise.
3244 2017-10-03  Bruno Haible  <bruno@clisp.org>
3246         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
3247         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
3248         gl_HOST_CPU_C_ABI.
3250 2017-10-03  Bruno Haible  <bruno@clisp.org>
3252         doc: warn about misuse of strncpy and wcsncpy.
3253         * doc/posix-functions/strcpy.texi: Describe requirements on prior
3254         memory allocation.
3255         * doc/posix-functions/wcscpy.texi: Likewise.
3256         * doc/posix-functions/strncpy.texi: Describe what this function is not
3257         useful for.
3258         * doc/posix-functions/wcsncpy.texi: Likewise.
3260 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
3262         fsuage: fix typo in previous change
3263         * lib/fsusage.c: Remove stray include of full-read.h.
3264         Problem reported by Sam Steingold for macOS (Bug#28669).
3266 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
3268         fsusage: remove SVR2 support
3269         SVR2 was obsolete by 1986 and is no longer supported by anybody,
3270         and its code was getting in the way of use of this module by
3271         Emacs, which has its own ‘read’ function anyway.
3272         * lib/fsusage.c: Do not include sys/filsys.h.
3273         (get_fs_usage): Remove SVR2-specific code.
3274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
3275         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
3276         * modules/fsusage (Depends-on): Do not depend on full-read.
3278         Simplify autoupdate of licenses
3279         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
3280         place.
3282 2017-10-01  Bruno Haible  <bruno@clisp.org>
3284         vma-iter: Add support for GNU/Hurd.
3285         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
3286         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3288 2017-09-30  Bruno Haible  <bruno@clisp.org>
3290         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
3291         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
3292         fail when module 'largefile' is in use.
3293         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
3294         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
3295         Don't test HAVE_SYS_PROCFS_H.
3297 2017-09-30  Bruno Haible  <bruno@clisp.org>
3299         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
3300         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
3301         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
3302         * modules/havelib (Depends-on): Add host-cpu-c-abi.
3304 2017-09-30  Bruno Haible  <bruno@clisp.org>
3306         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
3307         * lib/uniname/uniname.c (unicode_name_character): Add braces around
3308         scope of local variables.
3310 2017-09-28  Bruno Haible  <bruno@clisp.org>
3312         string: code style
3313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
3314         substitutable variables.
3315         * modules/string (Makefile.am): Likewise.
3317 2017-09-26  Bruno Haible  <bruno@clisp.org>
3319         uniname/uniname-tests: Tighten code.
3320         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
3321         local variables into one.
3323 2017-09-26  Bruno Haible  <bruno@clisp.org>
3325         vma-iter: Improvements for Linux and BSD platforms.
3326         - Add support for DragonFly BSD.
3327         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
3328         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
3329         Read the entire file into memory in a single system call.
3330         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
3331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
3333 2017-09-26  Bruno Haible  <bruno@clisp.org>
3335         vma-iter: Provide the protection flags on FreeBSD.
3336         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
3337         skip three fields between the addresses and the protection flags.
3339 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3341         glob: remove bogus extern decl
3342         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3343         extern declaration.  Problem reported by Adhemerval Zanella in:
3344         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
3346 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3348         uniname/uniname-tests: integer overflow fix
3349         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
3350         Check for integer overflow.
3352         duplocale-tests: fix unlikely crash
3353         * tests/test-duplocale.c (get_locale_dependent_values):
3354         Don’t crash with absurdly long month names.
3356         maint: fix overflow checking in nap.h
3357         * modules/chown-tests:
3358         * modules/fchownat-tests, modules/fdutimensat-tests:
3359         * modules/futimens-tests, modules/lchown-tests:
3360         * modules/stat-time-tests, modules/utime-tests:
3361         * modules/utimens-tests, modules/utimensat-tests:
3362         Depend on intprops.
3363         * tests/nap.h: Include intprops.h.
3364         (diff_timespec): Handle overflow properly.
3366         sys_types: update URL
3367         * m4/sys_types_h.m4: Use https: URL.
3369         parse-datetime: fix dependency
3370         * modules/parse-datetime (Depends-on): Depend
3371         on nstrftime, not strftime.
3373         parse-datetime, posixtm: avoid uninit access
3374         * lib/parse-datetime.y (parse_datetime2):
3375         * lib/posixtm.c (posixtime):
3376         Do not access uninitialized storage, even though the resulting
3377         value is never used.
3379 2017-09-25  Bruno Haible  <bruno@clisp.org>
3381         vma-iter: Improvements for BSD platforms.
3382         - Add support for GNU/kFreeBSD.
3383         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
3384         - Speed up on OpenBSD.
3385         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
3386         (vma_iterate_bsd): New function.
3387         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
3388         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
3389         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3390         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
3392 2017-09-23  Bruno Haible  <bruno@clisp.org>
3394         strfmon_l: New module.
3395         * modules/strfmon_l: New file.
3396         * lib/strfmon_l.c: New file.
3397         * m4/strfmon_l.m4: New file.
3398         * doc/posix-functions/strfmon_l.texi: Mention the new module.
3399         * modules/strfmon_l-tests: New file.
3400         * tests/test-strfmon_l.c: New file.
3402         monetary: New module.
3403         * modules/monetary: New file.
3404         * lib/monetary.in.h: New file.
3405         * m4/monetary_h.m4: New file.
3406         * doc/posix-headers/monetary.texi: Mention the new module.
3407         * modules/monetary-tests: New file.
3408         * tests/test-monetary.c: New file.
3409         * modules/monetary-c++-tests: New file.
3410         * tests/test-monetary-c++.cc: New file.
3411         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
3413 2017-09-23  Bruno Haible  <bruno@clisp.org>
3415         duplocale tests: Fix test crash on Linux/x86.
3416         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
3417         locale from the current thread before freeing it.
3419 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
3421         mktime: port to OpenVMS
3422         Problem reported by John E. Malmberg in:
3423         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
3424         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
3426 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3428         manywarnings: port to GCC on 64-bit MS-Windows
3429         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
3430         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
3431         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
3433 2017-09-13  Bruno Haible  <bruno@clisp.org>
3435         all: Replace many more http URLs by https URLs. Update stale URLs.
3436         * users.txt: Remove mention of 'newts'.
3437         * lib/localename.c: Update comment about LANG_SOTHO.
3439 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3441         all: Replace many http URLs by https URLs.
3443 2017-09-12  Bruno Haible  <bruno@clisp.org>
3445         doc: Prefer https URLs where possible.
3446         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
3447         * doc/ld-output-def.texi: Remove unavailable URL.
3449 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3451         maintainer-makefile: FTP -> HTTPS
3452         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
3453         of FTP, which is planned to be decommissioned on 2017-11-01.
3455 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3457         libc-config: Fix __GNUC_PREREQ macro.
3458         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
3459         __GNUC_MINOR.
3461 2017-09-09  Bruno Haible  <bruno@clisp.org>
3463         gnulib-tool: Simplify commit from 2015-08-20.
3464         * gnulib-tool (func_add_or_update): Remove local variable
3465         is_binary_file.
3467 2017-09-08  Bruno Haible  <bruno@clisp.org>
3469         stddef: Avoid conflict with system-defined max_align_t.
3470         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
3471         Reported by Werner Lemberg <wl@gnu.org> in
3472         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
3473         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
3474         (max_align_t): Define as a macro.
3475         (GNULIB_defined_max_align_t): New macro. Guards against multiple
3476         definitions of rpl_max_align_t in different copies of gnulib-generated
3477         <stddef.h>.
3479 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3481         libc-config: port to MSVC
3482         Problems reported by Gisle Vanem in:
3483         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
3484         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
3485         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
3486         * m4/__inline.m4: New file.
3487         * modules/libc-config (Files): Add it.
3488         (Depends-on): Use it.
3490         glob: Use enum for __glob_pattern_type result
3491         From a patch proposed by Adhemerval Zanella in:
3492         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
3493         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3494         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3495         * lib/glob_internal.h (__glob_pattern_type):
3496         * lib/glob.c (glob):
3497         * lib/glob_pattern_p.c (__glob_pattern_p):
3498         Use them.
3500         glob: fix for use in glibc
3501         Problem reported by Adhemerval Zanella in:
3502         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
3503         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
3504         Do not redefine if _LIBC.
3506 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3508         glob: fix bugs with long login names
3509         Problem reported by Adhemerval Zanella in:
3510         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
3511         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
3512         (glob): Use the same scratch buffer for both getlogin_r and
3513         getpwnam_r.  Don’t require preallocation of the login name.  This
3514         simplifies storage allocation, and corrects the handling of
3515         long login names.
3517 2017-09-02  Bruno Haible  <bruno@clisp.org>
3519         dirent: Update doc.
3520         * doc/posix-headers/dirent.texi: More concrete list of platforms.
3522 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3524         glob: fix getpwnam_r errno typo
3525         * lib/glob.c (glob): Fix longstanding misuse of errno after
3526         getpwnam_r, which returns an error number rather than setting
3527         errno.
3529         glob: fix typo in recent change
3530         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
3531         Fix recently-introduced typo.
3533 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3535         glob: don't save and restore errno unnecessarily
3536         * lib/glob.c (glob): Don't save and restore errno
3537         merely because we have getpwnam_r.
3539         glob: don't assume getpwnam_r
3540         * lib/glob.c (glob): Port recent patches to platforms
3541         lacking getpwnam_r.
3543         scratch_buffer: don’t use private glibc API
3544         Suggested by Florian Weimer in:
3545         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
3546         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
3547         * lib/scratch_buffer_grow.c: Rename to
3548         lib/malloc/scratch_buffer_grow.c.
3549         * lib/scratch_buffer_grow_preserve.c: Rename to
3550         lib/malloc/scratch_buffer_grow_preserve.c.
3551         * lib/scratch_buffer_set_array_size.c: Rename to
3552         lib/malloc/scratch_buffer_set_array_size.c.
3553         * lib/scratch_buffer.h: New file.
3554         * modules/scratch_buffer (Files, Makefile.am):
3555         Adjust to source-file renaming.
3557 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3559         glob: use scratch_buffer instead of extend_alloca
3560         Much of the lib/glob.c part of this patch comes from a glibc patch
3561         proposed by Adhemerval Zanella in:
3562         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
3563         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
3564         included via glob.h, does this for us now.
3565         (__set_errno): Remove, as libc-config does this for us now.
3566         Include <scratch_buffer.h>.
3567         (GETPW_R_SIZE_MAX): Remove.
3568         (glob): Use struct scratch_buffer instead of extend_alloca.
3569         * lib/glob.in.h: Include libc-config.h rather than
3570         including <sys/cdefs.h> conditionally.
3571         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
3572         (__glibc_unlikely, __restrict, weak_alias):
3573         Remove, as libc-config does this for us now.
3574         * m4/glob.m4 (gl_PREREQ_GLOB):
3575         Remove sys/cdefs.h tests; no longer needed.
3576         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
3577         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
3579         scratch_buffer: new module
3580         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
3581         * lib/scratch_buffer_grow_preserve.c:
3582         * lib/scratch_buffer_set_array_size.c:
3583         New files, copied from glibc with very minor changes that can be
3584         copied back.
3585         * modules/scratch_buffer: New file.
3587         libc-config: new module
3588         * MODULES.html.sh: Add libc-config.
3589         * lib/cdefs.h: New file, copied from the GNU C Library with very
3590         minor changes that can be copied back.
3591         * lib/libc-config.h, modules/libc-config: New files.
3593 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3595         glob: match dangling symlinks
3596         This fixes a bug I inadvertently introduced to Gnulib when I
3597         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3598         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3599         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3600         * doc/posix-functions/glob.texi: Update list of affected platforms.
3601         * lib/glob.c (__lstat64): New macro.
3602         (is_dir): New function.
3603         (glob, glob_in_dir): Match symlinks even if they are dangling.
3604         (link_stat, link_exists_p): Remove.  All uses removed.
3605         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3606         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3607         * modules/glob-tests (Depends-on): Add symlink.
3608         * tests/test-glob.c: Include errno.h, unistd.h.
3609         (BASE): New macro.
3610         (main): Test dangling symlinks, if symlinks are supported.
3612         glob, backupfile: inode 0 is a valid inode number
3613         * doc/posix-functions/readdir.texi (readdir):
3614         * doc/posix-headers/dirent.texi (dirent.h):
3615         Document more readdir portability issues.
3616         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3617         (numbered_backup): Don’t treat inode 0 any differently from
3618         other inode values.
3619         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3620         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3621         All uses removed.
3622         * modules/glob (Depends-on): Remove d-ino.
3624         glob: simplify symlink detection
3625         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3626         uint8_t, as C99 does not require uint8_t.
3627         (struct readdir_result): Use it.  Do not define skip_entry unless
3628         it is needed; this saves a byte on platforms lacking d_ino.
3629         (readdir_result_type, readdir_result_skip_entry):
3630         New functions, replacing ...
3631         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3632         ... these functions, which were removed.  This makes the callers
3633         easier to read.  All callers changed.
3634         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3636 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3638         fts-tests: tag as a longrunning-test so not included by default
3639         * modules/fts-tests: This test takes about 20s on current systems,
3640         and uses about 285M of space on ext4.
3642 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3644         renameat2: fix compilation on alpine linux
3645         * m4/renameat.m4: Check for <linux/fs.h> presence.
3646         * lib/renameat2.h: Only include <linux/fs.h> if present.
3647         Reported by Assaf Gordon on Alpine Linux.
3649 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3651         glob: try to port recent changes to MS-Windows
3652         Problem reported by Bruno Haible in:
3653         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3654         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3655         * lib/glob.in.h (__glob_pattern_p): ... to here.
3657 2017-08-24  Eric Blake  <eblake@redhat.com>
3659         warnings: fix compilation with old autoconf
3660         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3661         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3662         AC_DEFUN.
3663         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3664         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3666 2017-08-24  Bruno Haible  <bruno@clisp.org>
3668         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3669         * modules/glob (Depends-on): Add c99.
3671 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3673         glob: fix typo that broke platforms lacking d_ino
3674         This typo also hurt performance on GNU/Linux and similar hosts.
3675         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3676         in previous change.
3678 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3680         glob: merge from glibc with Zanella glob changes
3681         Merge glob from glibc, with changes for glob proposed
3682         by Adhemerval Zanella in the thread starting here:
3683         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3684         plus some fixes for this merge.
3685         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3686         New files, ported from glibc.
3687         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3688         with __restrict.
3689         (__size_t): Remove.  All uses replaced by size_t.
3690         (size_t): Define by defining __need_size_t and including <stddef.h>.
3691         This should work even in non-glibc platforms, where any name
3692         pollution is OK.
3693         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3694         (struct stat64): Don’t worry about __GLOB_GNULIB.
3695         (glob, globfree, glob_pattern_p): Remove macros for
3696         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3697         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3698         but set errno.
3699         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3700         removed since the glibc behavior works on null pointers.
3701         Do not include stdio.h; old SunOS is irrelevant now.
3702         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3703         Include glob_internal.h.
3704         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3705         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3706         worked only coincidentally.
3707         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3708         Remove macros; now done in glob.in.h.
3709         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3710         (glob): Properly initialize glob structure with
3711         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3712         Remove old code using SHELL since Bash no longer
3713         uses this.
3714         (glob, prefix_array): Separate MS code better.
3715         (glob, glob_in_dir): Use C99 decls before statements when glibc
3716         does.
3717         (glob_in_dir): Remove old Amiga and VMS code.
3718         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3719         separate files.
3720         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3721         (__glibc_unlikely):
3722         Move here from glob.c.
3723         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3724         (weak_alias): New macro.
3725         (__size_t): Remove.  All uses replaced by size_t.
3726         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3727         * modules/glob (Files): Add +lib/glob_internal.h,
3728         lib/glob_pattern_p.c, lib/globfree.c.
3729         (Depends-on): Remove snippet/arg-nonnull.
3731 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3733         glob: port to clang's Undefined Sanitizer
3734         Problem reported by Tim Rühsen in:
3735         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3736         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3737         (glob_in_dir): Do not rely on undefined behavior in accessing
3738         struct members beyond their bounds.  Use a flexible array member
3739         instead.
3741 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3743         vc-list-files: port to Solaris 10
3744         * build-aux/vc-list-files: Don't assume test -e works.
3746 2017-08-21  Karl Berry  <karl@freefriends.org>
3748         * doc/posix-functions/srandom.texi (srandom): typo }.
3750 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3752         git-version-gen: port to Solaris 10
3753         Problem reported by Dagobert Michelsen in:
3754         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
3755         * build-aux/git-version-gen (v_from_git):
3756         Use expr instead of shell substitution.
3758 2017-08-19  Bruno Haible  <bruno@clisp.org>
3760         host-cpu-c-abi: Improve detection of MIPS ABI.
3761         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
3762         _MIPS_SIM.
3764 2017-08-17  Bruno Haible  <bruno@clisp.org>
3766         hypot tests: Fix test failure on FreeBSD 11.0/x86.
3767         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
3769 2017-08-17  Bruno Haible  <bruno@clisp.org>
3771         float: Fix LDBL_MIN value on FreeBSD/x86.
3772         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
3774 2017-08-17  Bruno Haible  <bruno@clisp.org>
3776         random: Fix test compilation failure on Cygwin 1.5.25.
3777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
3778         HAVE_DECL_SETSTATE.
3779         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
3780         declared.
3781         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
3782         HAVE_DECL_SETSTATE.
3783         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
3784         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
3785         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
3786         * doc/posix-functions/random.texi: Likewise.
3787         * doc/posix-functions/setstate.texi: Likewise.
3788         * doc/posix-functions/srandom.texi: Likewise.
3790 2017-08-16  Bruno Haible  <bruno@clisp.org>
3792         stdnoreturn: Fix test compilation failure on Cygwin.
3793         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
3794         <stdnoreturn.h> replacement.
3795         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
3796         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
3798 2017-08-16  Bruno Haible  <bruno@clisp.org>
3800         thread: Fix conflict with pthread_sigmask module.
3801         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
3802         it's defined as a macro.
3803         * modules/thread (Depends-on): Add pthread_sigmask.
3805 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3807         rename: port better to NetBSD
3808         * doc/posix-functions/rename.texi (rename): NetBSD 7
3809         does not have the link-count bug.
3810         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
3811         broken merely because rename ("a", "b") removes "a" when the two
3812         names are hard links to the same file.
3814 2017-08-16  Bruno Haible  <bruno@clisp.org>
3816         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
3817         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
3818         the target file names with '$(srcdir)/'.
3819         * modules/unicase/locale-language (Makefile.am): Likewise.
3820         * modules/unicase/special-casing (Makefile.am): Likewise.
3821         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
3822         * modules/unictype/category-byname (Makefile.am): Likewise.
3823         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
3824         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
3825         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
3826         * modules/unictype/property-byname (Makefile.am): Likewise.
3827         * modules/unictype/scripts (Makefile.am): Likewise.
3828         * modules/uninorm/composition (Makefile.am): Likewise.
3830 2017-08-16  Bruno Haible  <bruno@clisp.org>
3832         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
3833         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
3834         value for OpenBSD.
3836 2017-08-16  Bruno Haible  <bruno@clisp.org>
3838         rename, renameat: Update doc regarding NetBSD.
3839         * doc/posix-functions/rename.texi: Clarify that when using
3840         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
3841         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
3842         version.
3844 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3846         renameat2: port better to macOS
3847         * lib/renameat2.c (renameat2): Use renameatx_np if available.
3849         futimens: don’t assume struct timespec layout
3850         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
3851         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
3852         * tests/test-fdutimensat.c (main):
3853         * tests/test-futimens.h (test_futimens):
3854         * tests/test-lutimens.h (test_lutimens):
3855         * tests/test-utimens.h (test_utimens):
3856         * tests/test-utimensat.c (main):
3857         Don’t assume that struct timespec is a two-member structure in
3858         tv_sec, tv_nsec order.  Although this is true on all platforms we
3859         know about, POSIX does not guarantee it.
3861         rename: document+test NetBSD rename
3862         Test failure reported by Bruno Haible in:
3863         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3864         This is an area where NetBSD is better-behaved than POSIX,
3865         so allow the NetBSD behavior in tests.
3866         * doc/posix-functions/rename.texi:
3867         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3868         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3870 2017-08-15  Bruno Haible  <bruno@clisp.org>
3872         renameat: Ensure declaration in <stdio.h> on NetBSD.
3873         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3874         * doc/posix-functions/renameat.texi: Mention this problem.
3876 2017-08-15  Bruno Haible  <bruno@clisp.org>
3878         duplocale: Work around NetBSD 7.0 bug.
3879         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3880         * lib/duplocale.c: Add comment about NetBSD problem.
3881         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3883 2017-08-15  Bruno Haible  <bruno@clisp.org>
3885         duplocale tests: Verify use with *_l functions.
3886         * modules/duplocale-tests (configure.ac): Test for uselocale and
3887         some *_l functions.
3888         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3889         from main.
3890         (get_locale_dependent_values_from, test_with_locale_parameter): New
3891         functions.
3892         (main): Test both test_with_uselocale and test_with_locale_parameter.
3894 2017-08-15  Bruno Haible  <bruno@clisp.org>
3896         extensions: Enable NetBSD specific extensions.
3897         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3899 2017-08-14  Bruno Haible  <bruno@clisp.org>
3901         open, openat: Update doc about O_CLOEXEC.
3902         * doc/posix-functions/open.texi: More concrete list of platforms.
3903         * doc/posix-functions/openat.texi: Likewise.
3905 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3907         open: support O_CLOEXEC
3908         * NEWS, doc/posix-functions/open.texi:
3909         * doc/posix-functions/openat.texi: Document this.
3910         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3911         (GNULIB_defined_O_CLOEXEC): New symbol.
3912         * lib/open.c: Include cloexec.h.
3913         (open): Support O_CLOEXEC.
3914         * lib/openat.c: Include cloexec.h.
3915         (rpl_openat): Support O_CLOEXEC.
3916         * lib/popen-safer.c: Do not include cloexec.h.
3917         (open_noinherit): Remove.
3918         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
3919         * lib/save-cwd.c: Do not include cloexec.h.
3920         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
3921         * m4/open-cloexec.m4: New file.
3922         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
3923         Replace 'open' if O_CLOEXEC is not present.
3924         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
3925         Replace 'openat' if O_CLOEXEC is not present.
3926         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
3927         * modules/open (Files): Add m4/open-cloexec.m4.
3928         (Depends-on): Depend on cloexec if replacing 'open'.
3929         * modules/openat (Files): Add m4/open-cloexec.m4.
3930         (Depends-on): Depend on cloexec if replacing openat.
3931         * modules/popen-safer (Depends-on): Remove cloexec.
3932         * modules/save-cwd (Depends-on): Remove cloexec, and add
3933         fd-safer-flag and 'open'.
3935 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
3937         reallocarray: minor fixes
3938         * doc/glibc-functions/reallocarray.texi: Update version numbers.
3939         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
3940         * modules/reallocarray (License): Change from GPL to LGPL.
3941         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
3942         Indent properly and don't use tabs.
3944 2017-08-13  Darshit Shah  <darnir@gnu.org>
3946         reallocarray: New module
3947         reallocarray is a new function in glibc 2.26 to safely allocate an array
3948         of memory locations with integer overflow protection.
3949         * MODULES.html.sh: Add reallocarray.
3950         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
3951         * lib/reallocarray.c: New file to implement module reallocarray.
3952         * lib/stdlib.in.h: Add function declarations for reallocarray.
3953         * m4/reallocarray.m4: New file.
3954         * m4/stdlib_h.m4: Declare reallocarray.
3955         * modules/reallocarray: New file.
3956         * modules/reallocarray-test: New file.
3957         * modules/stdlib: Coerce stdlib.h to export reallocarray.
3958         * tests/test-reallocarray.c: New test.
3960 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3962         dirent-safer: fix cloexec race
3963         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
3964         (opendir_safer): Use F_DUPFD_CLOEXEC.
3965         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
3966         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
3967         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
3968         instead of dup_safer.
3970         fts: fix cloexec races
3971         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
3972         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
3973         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
3974         (fd_ring_check): Set cloexec flag on new file descriptors.
3975         (fts_build, fd_ring_check): While we’re at it, make sure the
3976         resulting file descriptor is not 0, 1, or 2, since that is easy.
3978 2017-08-11  Bruno Haible  <bruno@clisp.org>
3980         fts tests: Fix link error.
3981         Reported by Tom G. Christensen in
3982         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
3983         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
3985 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3987         fts: port recent changes to CentOS 6
3988         Problem reported by Tom G. Christensen in:
3989         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
3990         * lib/fts.c (fsword): New type.
3991         (struct dev_type, filesystem_type): Use it.
3992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
3993         Also, check for f_type only if fstatfs and sys/vfs.h work.
3995 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3997         tempname: do not depend on secure_getenv
3998         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
3999         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
4000         * modules/tempname (Depends-on): Remove secure_getenv.
4002 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
4004         extensions: add _OPENBSD_SOURCE
4005         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
4007 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
4008             Bruno Haible  <bruno@clisp.org>
4010         manywarnings: Add support for C++.
4011         * build-aux/g++-warning.spec: New file.
4012         * m4/manywarnings-c++.m4: New file.
4013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
4014         redirects to manywarnings-c++.m4.
4015         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
4017 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4019         git-version-gen: another fix for tags with "-"
4020         * build-aux/git-version-gen: Improve fix for tags containing "-".
4021         Suggested by Markus Armbruster in:
4022         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
4024 2017-08-06  Bruno Haible  <bruno@clisp.org>
4026         warnings, manywarnings: Add support for multiple languages, not just C.
4027         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
4028         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
4029         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
4030         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
4031         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
4032         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
4033         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
4034         of the current language. If C++ is the current language, modify
4035         WARN_CXXFLAGS instead of WARN_CFLAGS.
4036         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
4037         gl_MANYWARN_ALL_GCC.
4038         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
4040 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
4042         git-version-gen: Fix for tags containing '-'
4044         Really old versions of git-describe (before v1.5.0, Feb 2007)
4045         don't have the number of commits in their long format output,
4046         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
4047         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
4048         recognizes both patterns, and normalizes the old format to the new one.
4050         Unfortunately, this normalization code gets confused when the tag
4051         contains '-'.  Reproducer:
4053             $ git-tag -m test v0.2-rc1
4054             $ build-aux/git-version-gen .tarball-version; echo
4055             build-aux/git-version-gen: WARNING: git rev-list failed
4056             UNKNOWN
4058         We take exact tag "v0.2-rc1" for the old format, extract the presumed
4059         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
4060         commits since tha tag.  Fails, because tag "v0.2" does not exist.
4062         * git-version-gen: We could perhaps drop support for versions from
4063         more than a decade ago.  But tightening the pattern match is easy
4064         enough, so do that.  Still breaks when you use version tags ending in
4065         something matching -g????, but you arguably get what you deserve then.
4067 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
4069         valgrind-tests: use ls, and cache
4070         * m4/valgrind-tests.m4: Test ls, not bash.
4071         Problem reported by Reuben Thomas.
4072         Also, cache the result so that it can be overridden.
4074 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4076         manywarnings: port to 64-bit GCC builds of Emacs
4077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
4078         object size rather than hardwiring 2147483647.  This is needed to
4079         build GNU Emacs, which has one conditional (and used
4080         only-in-theory) call to malloc with a literal greater than
4081         2147483647.
4083 2017-08-04  Bruno Haible  <bruno@clisp.org>
4085         Relax the license of some modules with no runtime code.
4086         * modules/std-gnu11 (License): Set to 'unlimited'.
4087         * modules/c99 (License): Likewise.
4088         Reported by Reuben Thomas <rrt@sc3d.org>.
4089         * modules/d-ino (License): Set to 'LGPL'.
4090         * modules/host-os (License): Likewise.
4091         * modules/longlong (License): Likewise.
4093 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
4095         renameat2: port to RHEL 7 + NFS
4096         * lib/renameat2.c (renameat2) [SYS_renameat2]:
4097         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
4098         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
4100 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4102         renameat2: port to non-renameat platforms
4103         Problem reported for MSVC-2015 by Gisle Vanem in:
4104         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
4105         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
4106         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
4108 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4110         manywarnings: port to 32-bit GCC bug
4111         Problem reported by Pino Toscano in:
4112         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
4113         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
4114         not 2**63 - 1, to work around the following GCC bug:
4115         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
4117 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4119         backupfile: new function to validate backup suffix
4120         * lib/backupfile.c (set_simple_backup_suffix): New function.
4121         (backupfile_internal): Use it.
4123         canonicalize: fix EOVERFLOW commentary
4124         Problem reported by Bruno Haible in:
4125         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
4126         * lib/canonicalize.c (canonicalize_filename_mode):
4127         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
4129         Don't interpret EOVERFLOW to mean nonexistence
4130         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
4131         may be EOVERFLOW; this is likely more useful than reporting the
4132         stat errno.
4133         * lib/glob.c (link_stat): Rename from link_exists2_p and
4134         return -1/0 instead of 0/1.  Caller changed.
4135         * lib/glob.c (link_exists_p):
4136         * lib/renameat2.c (rename_noreplace, renameat2):
4137         * lib/tempname.c (try_nocreate):
4138         If errno == EOVERFLOW then the directory entry exists, so do not
4139         act as if it does not exist.
4141         backup-rename: new module
4142         It is like backupfile, except it avoids some race conditions,
4143         and it does not output to stderr or exit.
4144         * MODULES.html.sh: Add backup-rename.
4145         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
4146         * modules/backup-rename: New files.
4147         * lib/backupfile.c: Turn this into an internals file, which
4148         contains code common to backupfile and backup_rename.  Include
4149         backupfile-internal.h instead of backupfile.h.  Do not include
4150         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
4151         renameat2.h and fcntl.h.
4152         (BACKUP_NOMEM): New constant.
4153         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
4154         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
4155         (backupfile_internal): Rename from find_backup_file_name.
4156         Support new arg RENAME.
4157         (backup_args, backup_types, get_version, xget_version):
4158         Move to lib/backup-find.c.
4159         * lib/backupfile.h (backup_file_rename): New decl.
4160         * modules/backupfile (Files): Add lib/backup-internal.h,
4161         lib/backup-find.c.
4162         (Depends-on): Add dirfd, fcntl, renameat2.
4163         (lib_SOURCES): Add backup-find.c.
4165         renameat2: port better to older Solaris
4166         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
4167         Add goto to use a label, to silence picky compilers.
4169         fts-tests: port to gcc -Wwrite-strings
4170         * tests/test-fts.c (base, base_d): New static vars.
4171         (argv, remove_tree, main): Use them.
4173 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4175         relocatable-lib{,-lgpl}: improve documentation
4176         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
4177         Various other updates.
4179 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
4180             Bruno Haible  <bruno@clisp.org>
4182         relocatable-lib{,-lgpl}: add Valgrind suppressions
4183         * lib/relocatable.valgrind: New file.
4184         * modules/relocatable-lib (Files): Add relocatable.valgrind.
4185         * modules/relocatable-lib-lgpl: Likewise.
4187 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4189         relocatable: Make the license on the sources the GPL.
4190         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
4191         LGPL, which was a special case so that the relocatable source files
4192         could be used without gnulib-tool, to GPL. They can still be used under
4193         the LGPL, using the --lgpl option to gnulib-tool.
4195 2017-07-30  Bruno Haible  <bruno@clisp.org>
4197         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
4198         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
4199         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
4200         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
4201         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
4203 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4205         faccessat: document AT_SYMLINK_NOFOLLOW issue
4206         * doc/posix-functions/faccessat.texi: Modernize platform list.
4207         Document AT_SYMLINK_NOFOLLOW limitation.
4209         renameat2: port to Solaris 10
4210         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
4211         with AT_SYMLINK_NOFOLLOW (which is not portable).
4212         (renameat): Undef before using, to avoid endless recursion when
4213         the replacement renameat calls renameat2 which calls the
4214         replacement renameat.
4215         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
4216         * modules/renameat2 (Depends-on): Remove faccessat.
4217         * modules/renameat-tests (test_renameat_LDADD):
4218         * modules/renameat2-tests (test_renameat2_LDADD):
4219         Remove $(LIB_EACCESS).
4221         renameat2: new module
4222         Although the Linux syscall renameat2 is not in glibc (yet?), it is
4223         useful to have access to its RENAME_NOREPLACE flag.
4224         * MODULES.html.sh (func_all_modules): Add renameat2.
4225         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
4226         * modules/renameat2-tests, tests/test-renameat2.c: New files.
4227         * lib/renameat.c (renameat): Move most of the implementation
4228         to renameat2, and just call renameat2.
4229         * modules/renameat (Files): Remove lib/at-func2.c.
4230         (Depends-on): Depend only on renameat2.
4231         (Include): Remove <fcntl.h>.
4232         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
4233         since renameat (via renameat2) might use faccessat.
4235 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
4237         vc-list-files: Adjust the script to support git worktrees
4238         * build-aux/vc-list-files: Require existence, not directory.
4240 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4242         doc: bring MODULES.html.sh up to date
4243         Somehow a few months ago we stopped updating MODULES.html.sh.
4244         I don’t recall explicitly deciding this, so I updated it now.
4245         Alternatively I suppose we could remove it.
4246         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
4247         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
4248         truncate, utime, utime-h, windows-stat-inodes,
4249         windows-stat-override, windows-stat-timespec, year2038.  Sort.
4251 2017-07-26  Jim Meyering  <meyering@fb.com>
4253         fprintftime: fix build-break caused by recent renaming
4254         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
4255         "strftime.c".
4256         * modules/fprintftime: Depend directly on nstrftime.
4258 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4260         regex: work with GCC7's -Werror=implicit-fallthrough=
4261         * lib/regex_internal.h (FALLTHROUGH): New macro.
4262         * lib/regcomp.c (peek_token_bracket, parse_expression):
4263         * lib/regexec.c (check_node_accept): Use it.
4265 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4267         fts: simplify fts_build
4268         * lib/fts.c (fts_build): Simplify, and be lazier about
4269         calling leaf_optimization.
4271         fts: three levels of leaf optimization
4272         * lib/fts.c (enum leaf_optimization): New type with three values.
4273         (S_MAGIC_AFS): New macro.  Sort them.
4274         (leaf_optimization): Rename from leaf_optimization_applies, and
4275         return enum leaf_optimization instead of bool.  All uses changed.
4276         Add cases for unknown type and for AFS.
4277         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
4279         fts: cache dirent_inode_sort_may_be_useful too
4280         * lib/fts.c (struct dev_type): New struct.
4281         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
4282         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
4283         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
4284         Now takes FTSENT const *, not int.  All uses changed.  Use
4285         filesystem_type to cache.
4286         (link_count_optimize_ok): Remove.  Caller changed to use
4287         leaf_optimization_applies, which now uses shared cache.
4289         fts: introduce MIN_DIR_NLINK
4290         * lib/fts.c (MIN_DIR_NLINK): New constant.
4291         Use it instead of 2, whenever we are talking about link counts.
4293         fts: nlink_t signedness fixups
4294         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
4295         so that root need not be a special case later.
4296         (fts_read): Remove now-redundant test for fts_level.
4297         Do not assume that nlink_t is signed.
4298         (fts_build): Remove useless decrement of nlinks.
4299         (fts_stat): Avoid unlikely signed integer overflow later, if
4300         nlink_t is signed.
4302         fts-tests: new module
4303         * modules/fts-tests, tests/test-fts.c: New files.
4305 2017-07-23  Bruno Haible  <bruno@clisp.org>
4307         Rename module 'strftime' to 'nstrftime'.
4308         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
4309         * lib/nstrftime.c: Renamed from lib/strftime.c.
4310         * modules/nstrftime: Renamed from modules/strftime.
4311         (Files, Makefile.am): Update.
4312         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
4313         Fix comment.
4314         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
4315         (Files, Makefile.am): Update.
4316         * modules/strftime: New file, an obsolete indirection.
4317         * doc/posix-functions/strftime.texi: Update reference.
4318         * config/srclist.txt: Update info.
4319         * NEWS: Mention the change.
4321 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
4323         malloca: Silence a warning from clang's memory sanitizer.
4324         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
4325         (freea): Use it.
4327 2017-07-18  Bruno Haible  <bruno@clisp.org>
4329         host-cpu-c-abi: Fix detection of MIPS ABI.
4330         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
4331         ABI, not the CPU instruction set.
4333 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4335         explicit_bzero: new module
4336         The explicit_bzero function has been added to glibc.
4337         This module is intended to supports its use in GNU programs.
4338         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
4339         * m4/explicit_bzero.m4, modules/explicit_bzero:
4340         New files.
4341         * doc/gnulib.texi (Glibc string.h): Link to new doc.
4342         * lib/string.in.h (explicit_bzero): Declare.
4343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
4344         * modules/string (string.h): Substitute its vars.
4346 2017-07-16  Bruno Haible  <bruno@clisp.org>
4348         threadlib: Support static linking.
4349         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
4350         set gl_cv_have_weak to 'no'.
4352 2017-07-16  Bruno Haible  <bruno@clisp.org>
4354         unicase/locale-language: Fix link dependencies.
4355         * modules/unicase/locale-language (Link): New section.
4356         * modules/unicase/locale-language-tests (Makefile.am): Link
4357         test-locale-language program with $(LIBTHREAD).
4359 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4361         sys_socket: Add support for OpenVMS.
4362         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
4363         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
4365 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4367         sys_resource: Add support for OpenVMS.
4368         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
4369         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
4371 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4372             Bruno Haible  <bruno@clisp.org>
4374         math: Add support for OpenVMS.
4375         * lib/math.in.h [__VMS]: Include <fp.h>.
4376         * doc/posix-headers/math.texi: Mention OpenVMS issues.
4378 2017-07-15  Bruno Haible  <bruno@clisp.org>
4380         getdtablesize: Add minimal support for OpenVMS.
4381         Reported by John E. Malmberg <wb8tyw@qsl.net>.
4382         * modules/getdtablesize (Description): Fix.
4383         * lib/getdtablesize.c: Fix comment.
4384         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
4385         getdtablesize() function, even though the test fails.
4386         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
4387         limitation on OpenVMS.
4389 2017-07-13  Bruno Haible  <bruno@clisp.org>
4391         Revisit cross-compilation guesses.
4392         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
4394 2017-07-13  Bruno Haible  <bruno@clisp.org>
4396         Improve cross-compilation guesses for native Windows.
4397         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
4398         Windows.
4399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
4400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
4401         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4402         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
4403         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
4404         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4405         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4406         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4407         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4408         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4409         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4410         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
4411         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4412         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4413         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
4414         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4415         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
4416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4417         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4418         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
4419         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4420         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4421         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
4422         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
4423         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
4424         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4425         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4426         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4428         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
4429         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4430         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4431         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4432         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
4433         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
4434         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
4435         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4436         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4437         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4438         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4439         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4441         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
4442         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
4443         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4444         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
4445         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
4446         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
4447         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4448         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
4449         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4450         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
4451         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
4452         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
4453         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
4454         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
4455         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
4456         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4457         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
4458         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4460         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4461         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4462         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4463         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4465         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4466         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4467         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
4468         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
4469         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4470         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4471         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4472         * m4/regex.m4 (gl_REGEX): Likewise.
4473         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4474         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
4475         gl_FUNC_REMAINDERF_WORKS): Likewise.
4476         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
4477         gl_FUNC_REMAINDERL_WORKS): Likewise.
4478         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4479         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4481         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4483         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4484         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4485         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4486         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
4487         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4488         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
4489         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4490         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4491         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4492         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4493         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4494         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4495         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4496         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4497         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4498         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4499         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4500         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4501         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4502         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4503         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4504         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4505         Likewise.
4506         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4507         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
4508         Windows. Enable also on Autoconf 2.70.
4509         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4510         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4511         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4512         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
4513         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4514         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
4515         for native Windows.
4516         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4517         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
4519 2017-07-13  Bruno Haible  <bruno@clisp.org>
4521         Improve cross-compilation guesses for native Windows.
4522         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
4523         Windows.
4524         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
4525         memchr.m4.
4526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4528 2017-07-13  Bruno Haible  <bruno@clisp.org>
4530         Improve cross-compilation guesses for native Windows.
4531         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
4532         native Windows.
4533         (gl_FUNC_FFLUSH): Update accordingly.
4534         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
4535         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4537 2017-07-11  Bruno Haible  <bruno@clisp.org>
4539         More systematic m4 quoting and indentation.
4540         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
4541         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4542         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4543         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4544         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4545         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4546         gl_WINSIZE_IN_PTEM): Likewise.
4547         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
4548         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4549         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4550         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
4551         Correct indentation.
4552         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4554         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4555         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4556         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4557         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4559 2017-07-10  Bruno Haible  <bruno@clisp.org>
4561         round, roundf: Avoid compiler warning in configure test.
4562         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
4563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4565 2017-07-10  Bruno Haible  <bruno@clisp.org>
4567         getlogin tests: Avoid #ifdefs when sharing code between modules.
4568         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
4569         * modules/getlogin-tests (Files): Likewise. Remove
4570         tests/test-getlogin_r.c.
4571         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
4572         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
4573         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
4574         getlogin().
4576 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4578         getlogin: don’t assume one name per uid
4579         Problem reported by Wolfgang F. Muthmann (Bug#27640).
4580         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
4581         (ttyname): Remove test.
4582         * modules/getlogin_r-tests (ttyname): Remove test.
4583         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
4584         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
4585         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
4586         getlogin rather than getlogin_r.  This avoids code duplication.
4587         (main): Use isatty and fstat rather than ttyname and stat.
4588         Use getpwnam instead of getpwuid, to be portable to test platforms
4589         that have multiple login names for the same uid.
4591 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
4592             Bruno Haible  <bruno@clisp.org>
4594         glob: Fix more memory leaks.
4595         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4596         returning.
4597         Reported by Tim Rühsen.
4599 2017-07-10  Bruno Haible  <bruno@clisp.org>
4601         Make sure $host and $host_os are defined when used.
4602         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4603         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4604         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4606         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4607         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4608         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4609         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4610         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4611         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4612         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4613         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4614         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4615         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4616         m4_ifdef block.
4618 2017-07-09  Bruno Haible  <bruno@clisp.org>
4620         *printf: Fix cross-compilation guess for Solaris.
4621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4622         2010-12-21.
4624 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4625             Bruno Haible  <bruno@clisp.org>
4627         vasnprintf: port to macOS 10.13
4628         Problem reported by comex in:
4629         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4630         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4632 2017-07-06  Bruno Haible  <bruno@clisp.org>
4634         imaxdiv tests: Fix logic.
4635         * tests/test-imaxdiv.c (main): Use == instead of =.
4636         Reported by Coverity.
4638 2017-07-06  Bruno Haible  <bruno@clisp.org>
4640         uninorm/filter: Fix use-after-free bug.
4641         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4642         sortbuf == filter->sortbuf invariant.
4643         Reported by Coverity.
4645 2017-07-06  Bruno Haible  <bruno@clisp.org>
4647         glob: Fix more memory leaks.
4648         * lib/glob.c (glob): Free dirname before returning.
4649         Reported by Coverity and Tim Rühsen.
4651 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4653         parse-datetime: fix uninit var bug
4654         Reported by Bruno Haible in:
4655         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4656         * lib/parse-datetime.y (parse_datetime2): Do not use
4657         uninitialized.
4659 2017-07-05  Bruno Haible  <bruno@clisp.org>
4661         doc: Update for MSVC 14.
4662         * doc/posix-headers/*.texi: Add info about MSVC 14.
4663         * doc/posix-functions/*.texi: Likewise.
4664         * doc/pastposix-functions/*.texi: Likewise.
4665         * doc/glibc-headers/*.texi: Likewise.
4666         * doc/glibc-functions/*.texi: Likewise.
4668 2017-07-05  Bruno Haible  <bruno@clisp.org>
4670         sched: Fix build failure on native Windows (regression from 2017-06-19).
4671         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4673 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4675         stdioext: Port to OpenVMS.
4676         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4677         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4678         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4679         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4680         * lib/fpurge.c (fpurge): Likewise.
4681         * lib/freadable.c (freadable): Likewise.
4682         * lib/freadahead.c (freadahead): Likewise.
4683         * lib/freading.c (freading): Likewise.
4684         * lib/freadptr.c (freadptr): Likewise.
4685         * lib/freadseek.c (freadseek): Likewise.
4686         * lib/fseeko.c (fseeko): Likewise.
4687         * lib/fseterr.c (fseterr): Likewise.
4688         * lib/fwritable.c (fwriteable): Likewise.
4689         * lib/fwriting.c (fwriting): Likewise.
4691 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4693         glob: Declare variables at the very start of their scope.
4694         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4695         its separate scope, so the functions will compile on Haiku.
4697 2017-07-01  Bruno Haible  <bruno@clisp.org>
4699         logbl: Work around a glibc bug on PowerPC64LE.
4700         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4701         numbers.
4702         * doc/posix-functions/logbl.texi: Update.
4704 2017-06-29  Bruno Haible  <bruno@clisp.org>
4706         stat, fstat: Compile stat-w32.c only on platforms that need it.
4707         Suggested by Paul Eggert.
4708         * modules/stat (configure.ac): Request stat-w32.o only on native
4709         Windows.
4710         * modules/fstat (configure.ac): Likewise.
4712 2017-06-25  Bruno Haible  <bruno@clisp.org>
4714         stat: Improve last change.
4715         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4717 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4719         stat: port to xlc 12.01
4720         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4721         12.01 complains "Compilation unit is empty."
4723 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4725         xalloc-oversized: port to icc
4726         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4727         __builtin_mul_overflow if ICC is defined, as this results in
4728         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4729         20170213.
4731 2017-06-19  Bruno Haible  <bruno@clisp.org>
4733         classpath: Avoid including config.h twice, as it produces warnings.
4734         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4735         * lib/classpath.h: Conditionalize the include of config.h.
4737 2017-06-19  Bruno Haible  <bruno@clisp.org>
4738             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4740         sched: Fix compilation failure on OpenVMS.
4741         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4742         test whether <pthread.h> exists and defines struct sched_param.
4743         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
4745 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4747         diffseq: port to GCC 7 with --enable-gcc-warnings
4748         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
4749         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
4750         not complain about big_snake being defined but not used.
4752 2017-06-15  Bruno Haible  <bruno@clisp.org>
4754         gettext-h: Update theoretical condition for use of variable size arrays.
4755         Reported by Paul Eggert.
4756         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
4757         to include the theoretical condition for availability of variable size
4758         arrays, if we could trust the value of __STDC_VERSION__.
4760 2017-06-12  Bruno Haible  <bruno@clisp.org>
4762         Relicense some modules under LGPLv2+.
4763         Daiki Ueno's approval is in
4764         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
4765         * modules/uniwidth/base (License): Change to LGPLv2+.
4766         * modules/uniwidth/width (License): Likewise.
4768 2017-06-11  Bruno Haible  <bruno@clisp.org>
4770         localename: Fix test failure on DragonFly BSD.
4771         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
4772         like FreeBSD.
4774 2017-06-11  Bruno Haible  <bruno@clisp.org>
4776         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
4777         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
4778         * lib/float.in.h: Likewise.
4779         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
4781 2017-06-11  Bruno Haible  <bruno@clisp.org>
4783         gnulib-tool: Clean up after autotools.
4784         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
4785         useless directory left over by the Autotools.
4787 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
4789         getopt-posix: port to glibc 2.25.90
4790         Problem reported by Daniel P. Berrange in:
4791         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
4792         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
4793         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
4794         #undef if __GETOPT_PREFIX is defined.
4796 2017-06-11  Bruno Haible  <bruno@clisp.org>
4798         strtod-obsolete: Fix license.
4799         * modules/strtod-obsolete (License): Change to LGPL.
4801 2017-06-10  Jim Meyering  <meyering@fb.com>
4803         maint: update to work with GCC7's -Werror=implicit-fallthrough=
4804         * lib/savewd.c (FALLTHROUGH): Define.
4805         (savewd_save, savewd_restore): Use this, rather than a comment,
4806         whenever one switch case falls through into the next.
4808 2017-06-08  Bruno Haible  <bruno@clisp.org>
4810         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
4811         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
4812         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
4813         case.
4815 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4817         doc: remove robots, add prereqs
4818         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
4819         builds.  Simon's robot site does not seem to be up, so remove
4820         mentions of it for now.
4822 2017-06-08  Bruno Haible  <bruno@clisp.org>
4824         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
4825         * gnulib-tool (func_symlink_target): New function, extracted from
4826         func_symlink.
4827         (func_symlink, func_symlink_if_changed): Use it.
4829 2017-06-08  Bruno Haible  <bruno@clisp.org>
4831         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
4832         * gnulib-tool (func_ln_s): Determine cp_src correctly.
4834 2017-06-07  Bruno Haible  <bruno@clisp.org>
4836         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
4837         Reported by John E. Malmberg <wb8tyw@gmail.com> in
4838         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
4839         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
4840         override, pass 2 arguments to getcwd, not 3.
4842 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4844         same-inode: port better to VMS 8.2 and later
4845         Problem reported by John E. Malmberg in:
4846         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
4847         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
4848         Use the usual POSIX definition.
4849         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
4851 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4853         error: fix POSIX violation for va_end
4854         Problem reported by Bruno Haible in:
4855         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
4856         * lib/error.c (error_tail): Do not call va_end here.
4857         (error, error_at_line): Call it here instead.
4859 2017-05-28  Bruno Haible  <bruno@clisp.org>
4861         c-strtod: Make it usable in C++ mode.
4862         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4864 2017-05-25  Jim Meyering  <meyering@fb.com>
4866         quotearg: fix compilation failure due to FALLTHROUGH misuse
4867         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4868         macro back to /* fall through */ comment.  The macro can apply only
4869         to a following case statement.  Reported by Assaf Gordon.
4871 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4873         intprops: port to recent icc
4874         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4875         but does not support __builtin_add_overflow etc.
4876         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4877         Define to 0.
4879 2017-05-23  Karl Berry  <karl@freefriends.org>
4881         * config/srclist.txt (iconv.m4): sync broken, comment out
4882         until (hopefully) the next gettext release.
4884 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4886         Remove repeated words in comments.
4888 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4890         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4891         quotearg.c: Reinstate this instance which is significant
4892         when the if branch is not taken.
4894 2017-05-21  Bruno Haible  <bruno@clisp.org>
4896         gnulib-tool: Add options to create hard links.
4897         * gnulib-tool (func_usage): Document options --hardlink,
4898         --local-hardlink, --more-hardlinks.
4899         (func_symlink): Renamed from func_ln.
4900         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4901         (func_hardlink): New function.
4902         (copymode, lcopymode): New variables.
4903         (symbolic, lsymbolic): Remove variables.
4904         (Options): Implement options --hardlink, --local-hardlink,
4905         --more-hardlinks.
4906         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4907         (func_add_file, func_update_file): Update invocation of
4908         func_should_link. Invoke func_hardlink when appropriate.
4909         (func_import): Update comments.
4910         (func_create_testdir): Update invocation of func_should_link. Invoke
4911         func_hardlink when appropriate.
4912         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4913         the hard links on git.
4915 2017-05-20  Bruno Haible  <bruno@clisp.org>
4917         argp: Simplify bit manipulation.
4918         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
4919         on a signed integer type.
4921 2017-05-20  Bruno Haible  <bruno@clisp.org>
4923         Avoid wrong configure results with gcc -fsanitize=address.
4924         This completes the work done on 2016-02-06 on this topic.
4925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
4926         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4929         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
4930         returning.
4931         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4932         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4933         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4934         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4935         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4936         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
4938         free allocated memory before returning.
4939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
4941         objects before returning.
4942         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
4943         returning.
4945 2017-05-20  Bruno Haible  <bruno@clisp.org>
4947         gnulib-tool: Don't create hard links between gnulib and its testdirs.
4948         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
4950 2017-05-20  Bruno Haible  <bruno@clisp.org>
4952         argp, tsearch tests: Fix file list.
4953         * modules/argp-tests (Files): Add tests/macros.h.
4954         * modules/tsearch-tests (Files): Likewise.
4956 2017-05-20  Bruno Haible  <bruno@clisp.org>
4958         getopt-posix tests: Remove redundant include.
4959         * tests/test-getopt.h: Don't include "macros.h". It's already included
4960         by tests/test-getopt-main.h.
4962 2017-05-19  Jim Meyering  <meyering@fb.com>
4964         dfa: two small simplifications
4965         * lib/dfa.c (build_state): Avoid repeating longer expressions.
4967 2017-05-18  Jim Meyering  <meyering@fb.com>
4969         fallthrough: update for GCC 7/8
4970         * lib/quotearg.c (FALLTHROUGH): New macro.
4971         Use it whenever one switch case falls through into the next,
4972         replacing "/* Fall through */" comments.  This exposed one
4973         instance of an unwarranted "fall through" comment: unwarranted
4974         because it preceded a "goto" label not a case statement.
4975         * lib/freopen-safer.c (freopen_safer): Likewise.
4976         * lib/fts.c (leaf_optimization_applies): Likewise.
4977         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4978         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
4979         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
4980         tests/macros.h for the definition.
4981         * tests/test-argp.c (group1_parser): Likewise.
4982         * tests/test-getopt.h (getopt_loop): Likewise.
4984 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4986         argp: fix shift bug
4987         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
4988         behavior on shift overflow, caught by gcc -fsanitize=undefined.
4990         argp: fix pointer-subtraction bug
4991         * lib/argp-help.c (hol_append): Don’t subtract pointers to
4992         different arrays, as this can run afoul of -fcheck-pointer-bounds.
4993         See the thread containing Bruno Haible’s report in:
4994         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
4996 2017-05-19  Bruno Haible  <bruno@clisp.org>
4998         printf-posix tests: Avoid test failure with "gcc --coverage".
4999         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5000         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
5001         than 5000000.
5002         * tests/test-fprintf-posix2.c (main): Likewise.
5004 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5006         closeout: don’t close stderr when sanitizing
5007         * NEWS: Document this.
5008         * lib/closeout.c (__has_feature): New macro, if not already defined.
5009         (SANITIZE_ADDRESS): New constant.
5010         (close_stdout): Don’t close stderr if sanitizing addresses.
5012 2017-05-19  Bruno Haible  <bruno@clisp.org>
5014         get-rusage-data tests: Avoid failure on Linux/glibc.
5015         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
5016         on glibc systems.
5018 2017-05-18  Bruno Haible  <bruno@clisp.org>
5020         localename: Include necessary header files on Cygwin.
5021         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
5022         where NL_LOCALE_NAME is defined.
5024 2017-05-18  Bruno Haible  <bruno@clisp.org>
5026         gettext: Update macros from gettext git.
5027         * m4/intldir.m4: Require Autoconf >= 2.60.
5028         * m4/progtest.m4: Fix typos in copyright notice.
5030 2017-05-18  Bruno Haible  <bruno@clisp.org>
5032         copy-file tests: Fix link error (regression from 2017-05-01).
5033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5034         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
5035         $(LIB_CLOCK_GETTIME).
5037 2017-05-18  Bruno Haible  <bruno@clisp.org>
5039         unicase/special-casing: Fix incompatibility with gperf-3.0.4
5040         (regression from 2017-02-13).
5041         * lib/unicase/special-casing.in.h: Renamed from
5042         lib/unicase/special-casing.h.
5043         * modules/unicase/special-casing (Files): Add
5044         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
5045         (Makefile.am): Add rule for generating unicase/special-casing.h.
5046         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
5047         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
5048         not "special-casing.h".
5049         * lib/unicase/u*.c: Likewise.
5051 2017-05-17  Bruno Haible  <bruno@clisp.org>
5053         README: Don't ask people to read a TeXinfo file.
5054         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5055         * README: Tell people how to read the HTML formatted manual.
5057 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5059         parse-datetime: Fix memleak
5060         * lib/parse-datetime.y (parse_datetime2): Cleanup on
5061         localtime_rz() failure.
5063 2017-05-16  Bruno Haible  <bruno@clisp.org>
5065         javacomp: Fix handle leak.
5066         Found by Coverity.
5067         * lib/javacomp.c (get_classfile_version): Close fd before returning.
5069 2017-05-16  Bruno Haible  <bruno@clisp.org>
5071         relocate: Make it easier to reclaim allocated memory.
5072         * lib/relocatable.h (relocate2): New declaration/macro.
5073         * lib/relocatable.c (relocate2): New function.
5074         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
5075         relocate2 function.
5076         * lib/localcharset.c (relocate2): Define fallback.
5077         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
5078         allocated memory.
5079         * lib/javaversion.c (relocate2): Define fallback.
5080         (javaexec_version): Invoke relocate2 instead of relocate. Free the
5081         allocated memory.
5083 2017-05-16  Bruno Haible  <bruno@clisp.org>
5085         relocate: Simplify EMX specific code.
5086         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
5087         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
5089 2017-05-16  Bruno Haible  <bruno@clisp.org>
5091         sigpipe tests: Fix file list.
5092         * modules/sigpipe-tests (Files): Add tests/macros.h.
5094 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5096         manywarnings: update for GCC 7
5097         * build-aux/gcc-warning.spec:
5098         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
5099         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
5100         requires a non-comment fallthrough attribute.  This is a bit
5101         cleaner than the comment versions.
5102         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
5103         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
5104         Use it whenever one switch case falls through into the next.
5105         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
5106         Use FALLTHROUGH macro.
5108 2017-05-15  Bruno Haible  <bruno@clisp.org>
5110         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
5111         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
5112         @ALLOCA@, not @LTALLOCA@.
5114 2017-05-15  Bruno Haible  <bruno@clisp.org>
5116         sys_select: Avoid "was expanded before it was required" warning.
5117         * modules/sys_select (configure.ac): Require, not invoke,
5118         gl_HEADER_SYS_SELECT.
5120 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5122         gnulib-tool: improve GNU Make debugging
5123         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
5124         Report autoconf diagnostics when it fails, in the output makefile.
5126 2017-05-14  Bruno Haible  <bruno@clisp.org>
5128         stat-time tests: Improve comment.
5129         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
5131 2017-05-14  Bruno Haible  <bruno@clisp.org>
5133         same-inode: Adapt for windows-stat-inodes.
5134         * lib/same-inode.h: Include <sys/types.h>.
5135         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
5136         * modules/same-inode (Depends-on): Add sys_types.
5138 2017-05-14  Bruno Haible  <bruno@clisp.org>
5140         windows-stat-inodes: New module.
5141         * m4/windows-stat-inodes.m4: New file.
5142         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
5143         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
5144         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
5145         (_GL_WINDOWS_STAT_INODES): New macro.
5146         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
5147         (GetFileInformationByHandleExFunc): New variable.
5148         (initialize): Initialize it.
5149         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
5150         st_ino appropriately.
5151         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
5152         a fallback, because it does not provide st_dev and st_ino values.
5153         * modules/fstat (Depends-on): Add 'verify'.
5154         * modules/windows-stat-inodes: New file.
5155         * doc/windows-stat-inodes.texi: New file.
5156         * doc/gnulib.texi: Include it.
5157         * doc/posix-headers/sys_stat.texi: Mention the new module.
5159 2017-05-14  Bruno Haible  <bruno@clisp.org>
5161         stat-time tests: Workaround for native Windows.
5162         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
5163         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
5164         New variables.
5165         (initialize_filenames): New function.
5166         (main): Invoke it.
5167         (cleanup, prepare_test): Update.
5169 2017-05-14  Bruno Haible  <bruno@clisp.org>
5171         stat-time: Adapt for windows-stat-timespec.
5172         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
5173         entire st_ctim field.
5175 2017-05-13  Jim Meyering  <meyering@fb.com>
5177         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
5178         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
5179         file that uses the assume macro, claiming that verify.h is unused.
5181 2017-05-13  Bruno Haible  <bruno@clisp.org>
5183         Use symbolic values for _WIN32_WINNT.
5184         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
5185         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5187 2017-05-13  Bruno Haible  <bruno@clisp.org>
5189         year2038: New module.
5190         * m4/year2038.m4: New file.
5191         * modules/year2038: New file.
5192         * doc/year2038.texi: New file.
5193         * doc/gnulib.texi: Include it.
5195 2017-05-13  Bruno Haible  <bruno@clisp.org>
5197         largefile: Simplify.
5198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
5199         of _GL_WINDOWS_64_BIT_ST_SIZE.
5201 2017-05-13  Bruno Haible  <bruno@clisp.org>
5203         largefile: Improve and document.
5204         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
5205         the mingw headers already define 'stat' appropriately.
5206         * modules/largefile (Description): Clarify.
5207         * doc/largefile.texi: New file.
5208         * doc/gnulib.texi: Include it.
5209         * doc/posix-headers/sys_types.texi: Update.
5211 2017-05-13  Bruno Haible  <bruno@clisp.org>
5213         truncate: New module.
5214         * lib/unistd.in.h (truncate): New declaration.
5215         * lib/truncate.c: New file.
5216         * m4/truncate.m4: New file.
5217         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
5218         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
5219         REPLACE_TRUNCATE.
5220         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
5221         HAVE_TRUNCATE, REPLACE_TRUNCATE.
5222         * modules/truncate: New file.
5223         * tests/test-unistd-c++.cc (truncate): Test signature.
5224         * doc/posix-functions/truncate.texi: Mention the new module.
5226         * tests/test-truncate.c: New file.
5227         * modules/truncate-tests: New file.
5229 2017-05-13  Bruno Haible  <bruno@clisp.org>
5231         windows-stat-timespec: New module.
5232         * modules/windows-stat-timespec: New file.
5233         * m4/windows-stat-timespec.m4: New file.
5234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
5235         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
5236         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
5237         fields st_atim, st_mtim, st_ctim.
5238         (st_atime, st_mtime, st_ctime): Define as macros.
5239         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
5240         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
5241         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
5242         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
5243         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
5244         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
5245         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5246         FILETIME to 'struct timespec', not 'time_t'.
5247         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5248         FILETIME to 'struct timespec', not 'time_t'.
5249         * lib/stat-time.h (STAT_TIMESPEC): Define also if
5250         _GL_WINDOWS_STAT_TIMESPEC.
5251         * doc/windows-stat-timespec.texi: New file.
5252         * doc/gnulib.texi: Include it.
5254 2017-05-13  Bruno Haible  <bruno@clisp.org>
5256         windows-stat-override: New module.
5257         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
5258         definition. Define GNULIB_defined_struct_stat.
5259         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
5260         link error if this symbol is used and the corresponding module is not
5261         in use.
5262         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
5263         GNULIB_OVERRIDES_STRUCT_STAT.
5264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
5265         GNULIB_OVERRIDES_STRUCT_STAT.
5266         * modules/sys_stat (Makefile.am): Substitute
5267         GNULIB_OVERRIDES_STRUCT_STAT.
5268         * modules/windows-stat-override: New file.
5270 2017-05-13  Bruno Haible  <bruno@clisp.org>
5272         fstat: Fix module dependency conditions.
5273         * modules/fstat (Depends-on): Fix typo.
5275 2017-05-13  Bruno Haible  <bruno@clisp.org>
5277         stat, fstat: Complete removal of old native Windows code.
5278         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
5279         * lib/fstat.c: Likewise.
5280         * lib/stat-w32.c: Likewise.
5282 2017-05-13  Bruno Haible  <bruno@clisp.org>
5284         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
5285         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
5287 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5289         getopt-posix: port to mingw
5290         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
5291         Problem reported by Daniel P. Berrage in:
5292         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
5294 2017-05-11  Bruno Haible  <bruno@clisp.org>
5296         gettimeofday: Increase precision on mingw.
5297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
5298         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
5299         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
5300         GetSystemTimePreciseAsFileTime based implementation always.
5301         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
5302         mingw.
5304 2017-05-11  Bruno Haible  <bruno@clisp.org>
5306         poll: Fix confusion between SOCKETs and FDs on native Windows.
5307         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
5308         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
5310 2017-05-11  Bruno Haible  <bruno@clisp.org>
5312         doc: Clarify doc about socket functions on native Windows.
5313         This reworks doc that was added on 2008-09-29.
5314         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
5315         clearer wording.
5316         * doc/posix-functions/accept.texi: Use clearer wording.
5317         * doc/posix-functions/bind.texi: Likewise.
5318         * doc/posix-functions/connect.texi: Likewise.
5319         * doc/posix-functions/getpeername.texi: Likewise.
5320         * doc/posix-functions/getsockname.texi: Likewise.
5321         * doc/posix-functions/getsockopt.texi: Likewise.
5322         * doc/posix-functions/ioctl.texi: Likewise.
5323         * doc/posix-functions/listen.texi: Likewise.
5324         * doc/posix-functions/recv.texi: Likewise.
5325         * doc/posix-functions/recvfrom.texi: Likewise.
5326         * doc/posix-functions/send.texi: Likewise.
5327         * doc/posix-functions/sendto.texi: Likewise.
5328         * doc/posix-functions/setsockopt.texi: Likewise.
5329         * doc/posix-functions/shutdown.texi: Likewise.
5330         * doc/posix-functions/socket.texi: Likewise.
5332 2017-05-10  Bruno Haible  <bruno@clisp.org>
5334         poll: Fix link error on native Windows.
5335         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
5337 2017-05-10  Bruno Haible  <bruno@clisp.org>
5339         time: Fix missing initialization of HAVE_TIMEZONE_T.
5340         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
5341         here...
5342         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
5343         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
5344         gl_HEADER_SYS_TIME_H_DEFAULTS.
5345         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
5346         (configure.ac): Remove useless quoting.
5348 2017-05-10  Bruno Haible  <bruno@clisp.org>
5350         Implement a way to opt out from MSVC support, part 2.
5351         * modules/msvc-inval (Include): Document recommended idiom.
5352         * modules/msvc-nothrow (Include): Likewise.
5354         Implement a way to opt out from MSVC support.
5355         This is useful for Emacs.
5356         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
5357         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
5358         * lib/error.c: Likewise.
5359         * lib/fcntl.c: Likewise.
5360         * lib/flock.c: Likewise.
5361         * lib/fstat.c: Likewise.
5362         * lib/fsync.c: Likewise.
5363         * lib/ioctl.c: Likewise.
5364         * lib/isapipe.c: Likewise.
5365         * lib/lseek.c: Likewise.
5366         * lib/nonblocking.c: Likewise.
5367         * lib/poll.c: Likewise.
5368         * lib/select.c: Likewise.
5369         * lib/sockets.h: Likewise.
5370         * lib/sockets.c: Likewise.
5371         * lib/stdio-read.c: Likewise.
5372         * lib/stdio-write.c: Likewise.
5373         * lib/utimens.c: Likewise.
5374         * lib/w32sock.h: Likewise.
5375         * lib/w32spawn.h: Likewise.
5376         * tests/test-cloexec.c: Likewise.
5377         * tests/test-dup-safer.c: Likewise.
5378         * tests/test-dup2.c: Likewise.
5379         * tests/test-dup3.c: Likewise.
5380         * tests/test-fcntl.c: Likewise.
5381         * tests/test-pipe.c: Likewise.
5382         * tests/test-pipe2.c: Likewise.
5383         * lib/ftruncate.c: Likewise.
5384         (chsize_nothrow): Renamed from chsize.
5385         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
5386         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5387         * lib/close.c: Likewise.
5388         * lib/dup.c: Likewise.
5389         * lib/fclose.c: Likewise.
5390         * lib/raise.c: Likewise.
5391         * tests/test-fgetc.c: Likewise.
5392         * tests/test-fputc.c: Likewise.
5393         * tests/test-fread.c: Likewise.
5394         * tests/test-fwrite.c: Likewise.
5395         * lib/getdtablesize.c: Likewise.
5396         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
5397         * lib/isatty.c: Don't include msvc-inval.h if
5398         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5399         Include <io.h> as an alternative to msvc-nothrow.h.
5400         * lib/read.c: Likewise.
5401         * lib/write.c: Likewise.
5402         * lib/dup2.c: Likewise.
5403         (dup2_nothrow): New function.
5404         (ms_windows_dup2): Use it.
5405         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
5406         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
5407         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5408         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5409         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
5410         * m4/read.m4 (gl_FUNC_READ): Likewise.
5411         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
5412         * doc/windows-without-msvc.texi: New file.
5413         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
5414         section.
5416 2017-05-10  Bruno Haible  <bruno@clisp.org>
5418         wait-process: Adjust native Windows support.
5419         * lib/wait-process.c: Use the usual condition for recognizing a native
5420         Windows platform.
5422 2017-05-10  Bruno Haible  <bruno@clisp.org>
5424         doc: New chapter "Native Windows Support".
5425         * doc/gnulib.texi (Native Windows Support): New chapter.
5426         * doc/windows-libtool.texi: Small wording changes.
5427         * doc/windows-sockets.texi: Small wording and formatting changes.
5429 2017-05-10  Bruno Haible  <bruno@clisp.org>
5431         doc: Move section "Library version handling".
5432         * doc/gnulib.texi: Move section "Library version handling"
5433         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
5435 2017-05-10  Bruno Haible  <bruno@clisp.org>
5437         doc: Move section "Running self-tests under valgrind".
5438         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
5439         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
5441 2017-05-10  Bruno Haible  <bruno@clisp.org>
5443         doc: New chapter "Build Infrastructure Modules".
5444         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
5446 2017-05-10  Bruno Haible  <bruno@clisp.org>
5448         Prepare for reordering sections in the manual.
5449         * doc/gnulib.texi: Move several sections to separate files. Include
5450         these files.
5451         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
5452         * doc/obsolete.texi: Likewise.
5453         * doc/extra-tests.texi: Likewise.
5454         * doc/transversal.texi: Likewise.
5455         * doc/namespace.texi: Likewise.
5456         * doc/check-version.texi: Likewise.
5457         * doc/windows-sockets.texi: Likewise.
5458         * doc/windows-libtool.texi: Likewise.
5459         * doc/licenses-texi.texi: Likewise.
5460         * doc/build-automation.texi: Likewise.
5461         * doc/c-locale.texi: Likewise.
5463 2017-05-10  Bruno Haible  <bruno@clisp.org>
5465         Fix instructions how to update manual on www.gnu.org.
5466         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
5468 2017-05-09  Bruno Haible  <bruno@clisp.org>
5470         tzset: Expand comment about TZ problem on native Windows.
5471         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
5472         Paul Eggert.
5473         * lib/ctime.c (rpl_ctime): Likewise.
5474         * lib/localtime.c (rpl_localtime): Likewise.
5475         * lib/mktime.c (mktime): Likewise.
5476         * lib/strftime-fixes.c (rpl_strftime): Likewise.
5477         * lib/wcsftime.c (rpl_wcsftime): Likewise.
5479 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5481         intprops: don’t depend on ‘verify’
5482         Problem reported by Ævar Arnfjörð Bjarmason in:
5483         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
5484         * lib/intprops.h: Do not include verify.h, and move compile-time
5485         checks from here ...
5486         * tests/test-intprops.c (main): ... to here, if they’re not here
5487         already.  Check widths of other standard integer types.
5488         * modules/intprops (Depends-on): Remove ‘verify’.
5490 2017-05-07  Bruno Haible  <bruno@clisp.org>
5492         utimens: On native Windows, support 100ns resolution also if fd < 0.
5493         * lib/utime.in.h: Include <time.h>.
5494         (_gl_utimens_windows): New declaration.
5495         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
5496         (utime): Invoke it.
5497         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
5498         instead of utime.
5499         * modules/utime (Depends-on): Add 'time'.
5501 2017-05-07  Bruno Haible  <bruno@clisp.org>
5503         utimens: Improve error code on native Windows.
5504         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
5505         error code EACCES, not EINVAL.
5507 2017-05-07  Bruno Haible  <bruno@clisp.org>
5509         utime: Handle more Windows error codes.
5510         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
5511         Based on explanations by Billy O'Neal.
5513 2017-05-05  Bruno Haible  <bruno@clisp.org>
5515         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
5516         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
5517         union.
5518         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
5519         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
5520         value of cipher->IV.
5522 2017-05-05  Bruno Haible  <bruno@clisp.org>
5524         wctype-h-c++-tests: Update.
5525         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
5527 2017-05-05  Bruno Haible  <bruno@clisp.org>
5529         wchar-c++-tests: Update.
5530         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
5532 2017-05-05  Bruno Haible  <bruno@clisp.org>
5534         utime-h-c++-tests: New module.
5535         * tests/test-utime-h-c++.cc: New file.
5536         (utime): Declare, missing since 2017-04-30.
5537         * modules/utime-h-c++-tests: New file.
5539 2017-05-05  Bruno Haible  <bruno@clisp.org>
5541         unistd-c++-tests: Update.
5542         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
5543         (read): Declare, missing since 2011-04-15.
5544         (sethostname): Declare, missing since 2011-12-03.
5546 2017-05-05  Bruno Haible  <bruno@clisp.org>
5548         time-c++-tests: Update.
5549         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
5550         (localtime, gmtime): Declare, missing since 2017-04-30.
5551         (ctime): Declare, missing since 2017-04-30.
5552         (strftime): Declare, missing since 2017-04-30.
5553         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
5554         2015-07-24.
5556 2017-05-05  Bruno Haible  <bruno@clisp.org>
5558         sys_resource-c++-tests: New module.
5559         * tests/test-sys_resource-c++.cc: New file.
5560         (getrusage): Declare, missing since 2012-04-13.
5561         * modules/sys_resource-c++-tests: New file.
5563 2017-05-05  Bruno Haible  <bruno@clisp.org>
5565         strings-c++-tests: New module.
5566         * tests/test-strings-c++.cc: New file.
5567         (ffs): Declare, missing since 2011-07-12.
5568         * modules/strings-c++-tests: New file.
5570 2017-05-05  Bruno Haible  <bruno@clisp.org>
5572         string-c++-tests: Update.
5573         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
5574         (ffsll): Declare, missing since 2011-07-15.
5576 2017-05-05  Bruno Haible  <bruno@clisp.org>
5578         stdlib-c++-tests: Update.
5579         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
5580         2011-10-18.
5581         (ptsname_r): Declare, missing since 2011-11-07.
5582         (qsort_r): Declare, missing since 2014-08-29.
5583         (random, srandom, initstate, setstate): Declare, missing since
5584         2012-01-14.
5585         (secure_getenv): Declare, missing since 2013-02-05.
5587 2017-05-05  Bruno Haible  <bruno@clisp.org>
5589         stdio-c++-tests: Update.
5590         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
5592 2017-05-05  Bruno Haible  <bruno@clisp.org>
5594         signal-h-c++-tests: Update.
5595         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5597 2017-05-05  Bruno Haible  <bruno@clisp.org>
5599         math-c++-tests: Update.
5600         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5601         (fma): Declare, missing since 2011-10-17.
5602         (fmal): Declare, missing since 2011-10-17.
5604 2017-05-05  Bruno Haible  <bruno@clisp.org>
5606         locale-c++-tests: Update.
5607         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5608         2012-03-25.
5610 2017-05-05  Bruno Haible  <bruno@clisp.org>
5612         inttypes-c++-tests: New module.
5613         * tests/test-inttypes-c++.cc: New file.
5614         (strtoimax): Declare, missing since 2012-01-05.
5615         (strtoumax): Declare, missing since 2012-01-05.
5616         * modules/inttypes-c++-tests: New file.
5618 2017-05-05  Bruno Haible  <bruno@clisp.org>
5620         dirent-c++-tests: Update.
5621         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5622         (rewinddir): Declare, missing since 2011-09-13.
5623         (dirfd): Declare, missing since 2010-03-08.
5625 2017-05-04  Bruno Haible  <bruno@clisp.org>
5627         argp: Fix mistake in 2017-04-23 commit.
5628         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5629         assume that strerror_r returns 'int', not 'char *'.
5631 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5633         argp: Fix typo.
5634         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5636 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5638         utimens: port to Emacs + MS-Windows
5639         Skip the new MS-Windows-specific code if Emacs.
5640         * lib/utimens.c [EMACS_CONFIGUATION]:
5641         Avoid new MS-Windows-specific code.
5642         (USE_SETFILETIME): New macro.
5643         (fdutimens): Use it.
5645 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5647         tzset: update doc for TZ problems on MS-Windows
5648         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5649         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5650         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5651         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5652         * doc/posix-functions/wcsftime.texi:
5653         Mention some issues with TZ under MS-Windows.
5655 2017-05-01  Bruno Haible  <bruno@clisp.org>
5657         copy-file: Fix build error on mingw.
5658         * modules/copy-file (Depends-on): Add 'close'.
5660 2017-05-01  Bruno Haible  <bruno@clisp.org>
5662         tzset: Work around TZ problem on native Windows.
5663         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5664         Windows, set REPLACE_TZSET to 1.
5665         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5666         invoke '_tzset' instead of 'tzset'.
5667         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5669         * modules/time_rz (Depends-on): Add tzset.
5670         * lib/time_rz.c (tzset): Remove fallback definition.
5671         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5673 2017-05-01  Bruno Haible  <bruno@clisp.org>
5675         mktime: Fix dependencies.
5676         * modules/mktime (Depends-on): Add 'time'.
5678 2017-05-01  Bruno Haible  <bruno@clisp.org>
5680         New module 'localtime-buffer', split off from module 'gettimeofday'.
5681         * lib/localtime-buffer.h: New file.
5682         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5683         * lib/time.in.h (tzset): New declaration.
5684         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5685         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5686         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5687         moved to lib/localtime-buffer.c or lib/tzset.c.
5688         * m4/localtime-buffer.m4: New file.
5689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5690         HAVE_TZSET, REPLACE_TZSET.
5691         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5692         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5693         gl_LOCALTIME_BUFFER_NEEDED.
5694         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5695         since 2007-01-18.
5696         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5697         tzset.
5698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5699         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5700         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5701         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5702         * modules/localtime-buffer: New file.
5703         * modules/time (Depends-on): Remove 'gettimeofday'.
5704         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5705         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5706         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5707         (Files): Add lib/tzset.c.
5708         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5709         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5710         gl_TIME_MODULE_INDICATOR.
5711         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5713 2017-05-01  Bruno Haible  <bruno@clisp.org>
5715         copy-file: Preserve sub-second time stamps.
5716         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5717         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5718         transport the time stamps from the original file to the destination
5719         file.
5720         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5721         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5722         utime-h.
5724 2017-05-01  Bruno Haible  <bruno@clisp.org>
5726         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5727         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5728         also on MSVC.
5729         Reported by Eli Zaretskii <eliz@gnu.org>.
5731 2017-05-01  Bruno Haible  <bruno@clisp.org>
5733         wchar: Fix compilation error with the original mingw.org mingw.
5734         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5735         <stddef.h> instead.
5736         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5737         gl_WCTYPE_H.
5738         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5739         gl_TYPE_WINT_T_PREREQ instead.
5740         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5741         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5742         Reported by Eli Zaretskii <eliz@gnu.org>.
5744 2017-04-30  Bruno Haible  <bruno@clisp.org>
5746         utimecmp: Add support for native Windows.
5747         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
5749 2017-04-30  Bruno Haible  <bruno@clisp.org>
5751         utimens: Add support for native Windows.
5752         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
5753         (fdutimens): Provide a native Windows implementation, like utime.c with
5754         added tv_nsec support.
5755         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
5756         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
5758 2017-04-30  Bruno Haible  <bruno@clisp.org>
5760         wcsftime: New module.
5761         * lib/wchar.in.h (wcsftime): New declaration.
5762         * lib/wcsftime.c: New file.
5763         * m4/wcsftime.m4: New file.
5764         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
5765         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
5766         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
5768         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5769         * modules/wcsftime: New file.
5770         * doc/posix-functions/wcsftime.texi: Mention the new module.
5772 2017-04-30  Bruno Haible  <bruno@clisp.org>
5774         strftime-fixes: New module.
5775         * lib/time.in.h (strftime): New declaration.
5776         * lib/strftime-fixes.c: New file.
5777         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
5778         (gl_FUNC_STRFTIME): Remove macro.
5779         * m4/strftime-fixes.m4: New file.
5780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
5781         REPLACE_STRFTIME.
5782         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
5783         REPLACE_STRFTIME.
5784         * modules/strftime-fixes: New file.
5785         * doc/posix-functions/strftime.texi: Mention the new module.
5787 2017-04-30  Bruno Haible  <bruno@clisp.org>
5789         mktime: Work around TZ problem on native Windows.
5790         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
5791         from the native Windows workaround.
5792         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
5793         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
5794         'guessing no'.
5795         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
5796         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
5797         NEED_MKTIME_WINDOWS.
5798         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
5799         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
5800         NEED_MKTIME_INTERNAL.
5801         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
5802         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
5803         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
5804         not REPLACE_MKTIME.
5805         * doc/posix-functions/mktime.texi: Mention the native Windows
5806         workaround.
5808 2017-04-30  Bruno Haible  <bruno@clisp.org>
5810         localtime: New module.
5811         * lib/time.in.h (localtime): Declare also if requested by module
5812         'localtime'.
5813         * lib/localtime.c: New file.
5814         * m4/localtime.m4: New file.
5815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
5816         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
5817         * modules/localtime: New file.
5818         * doc/posix-functions/localtime.texi: Mention the new module.
5820 2017-04-30  Bruno Haible  <bruno@clisp.org>
5822         ctime: New module.
5823         * lib/time.in.h (ctime): New declaration.
5824         * lib/ctime.c: New file.
5825         * m4/ctime.m4: New file.
5826         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
5827         REPLACE_CTIME.
5828         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
5829         * modules/ctime: New file.
5830         * doc/posix-functions/ctime.texi: Mention the new module.
5832 2017-04-30  Bruno Haible  <bruno@clisp.org>
5834         gettimeofday: Provide higher resolution on native Windows.
5835         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
5836         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
5837         (initialize): Initialize it.
5838         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
5839         'struct timeval'. Don't use _ftime().
5840         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
5841         <sys/timeb.h> and _ftime.
5843 2017-04-30  Bruno Haible  <bruno@clisp.org>
5845         Document the problem with the Cygwin environment variable TZ.
5846         * doc/posix-functions/tzset.texi: Add note about TZ.
5847         * doc/posix-functions/ctime.texi: Likewise.
5848         * doc/posix-functions/localtime.texi: Likewise.
5849         * doc/posix-functions/mktime.texi: Likewise.
5850         * doc/posix-functions/strftime.texi: Likewise.
5851         * doc/posix-functions/wcsftime.texi: Likewise.
5852         * doc/pastposix-functions/ftime.texi: Likewise.
5854 2017-04-30  Bruno Haible  <bruno@clisp.org>
5856         utime-tests: New module.
5857         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5858         * tests/test-utimens-common.h: Include <sys/stat.h>.
5859         * modules/utime-tests: New file.
5861 2017-04-29  Bruno Haible  <bruno@clisp.org>
5863         utime: New module.
5864         * lib/utime.in.h: Add comment for snippets.
5865         (utime): New declaration.
5866         * lib/utime.c: New file.
5867         * m4/utime.m4: New file.
5868         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5869         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5870         REPLACE_UTIME.
5871         * modules/utime-h (Depends-on): Add snippets.
5872         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5873         Insert snippets.
5874         * modules/utime: New file.
5875         * doc/posix-functions/utime.texi: Mention the new module.
5877 2017-04-29  Bruno Haible  <bruno@clisp.org>
5879         utime-h: Modernize handling of 'struct utimbuf'.
5880         * lib/utime.in.h: Include next <utime.h> if it exists.
5881         (utimbuf): Define to _utimbuf on native Windows.
5882         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5883         Set UTIME_H on native Windows.
5884         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5885         * modules/utime-h (Depends-on): Add include_next.
5886         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5887         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5889         * lib/utimens.c (utimbuf): Remove fallback definition.
5890         * m4/utimens.m4 (gl_UTIMENS): Don't require
5891         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5892         * m4/utimbuf.m4: Remove file.
5893         * modules/utimens (Files): Remove m4/utimbuf.m4.
5895 2017-04-29  Bruno Haible  <bruno@clisp.org>
5897         Make use of module 'utime-h'.
5898         * modules/copy-file (Depends-on): Add utime-h.
5899         * lib/copy-file.c: Assume that <utime.h> exists.
5900         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5902         * modules/utimens (Depends-on): Add utime-h.
5903         * lib/utimens.c: Assume that <utime.h> exists.
5905 2017-04-29  Bruno Haible  <bruno@clisp.org>
5907         utime-h: New module.
5908         * m4/utime_h.m4: New file.
5909         * lib/utime.in.h: New file.
5910         * modules/utime-h: New file.
5911         * doc/posix-headers/utime.texi: Mention the new module.
5913         * tests/test-utime-h.c: New file.
5914         * modules/utime-h-tests: New file.
5916 2017-04-30  Bruno Haible  <bruno@clisp.org>
5918         Fix a few typos.
5919         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
5920         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
5921         * doc/posix-functions/fstat.texi: Fix a plural typo.
5922         * doc/posix-functions/stat.texi: Likewise.
5923         * m4/include_next.m4: Update comments.
5925 2017-04-29  Bruno Haible  <bruno@clisp.org>
5927         error: Fix mistake in 2017-04-23 commit.
5928         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
5929         assume that strerror_r returns 'int', not 'char *'.
5931 2017-04-29  Bruno Haible  <bruno@clisp.org>
5933         stat: Fix time_t values and other problems on native Windows platforms.
5934         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
5935         implementations of stat().
5936         * lib/stat.c: Include filename.h instead of dosname.h. Include
5937         malloca.h, stat-w32.h.
5938         (is_unc_root): New function.
5939         (rpl_stat): New implementation for native Windows. Remove
5940         REPLACE_FUNC_STAT_DIR code.
5941         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
5942         Don't define REPLACE_FUNC_STAT_DIR.
5943         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
5944         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5945         (Depends-on): Remove dosname. Add filename, malloca.
5946         (configure.ac): Also compile lib/stat-w32.c.
5948 2017-04-29  Bruno Haible  <bruno@clisp.org>
5950         fstat: Fix time_t values on native Windows platforms.
5951         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
5952         * lib/stat-w32.h: New file.
5953         * lib/stat-w32.c: New file.
5954         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
5955         stat-w32.h instead.
5956         (fstat_nothrow): Remove function.
5957         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
5958         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
5959         always.
5960         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
5961         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5962         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
5963         (configure.ac): Also compile lib/stat-w32.c.
5965 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5967         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
5968         Problem reported by Assaf Gordon and Gavin Smith in:
5969         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
5970         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
5971         #define this, too.
5973 2017-04-29  Bruno Haible  <bruno@clisp.org>
5975         strerror_r-posix: Fixes for MSVC 14.
5976         * lib/strerror_r.c: Include <stdarg.h>.
5977         (strerror_r): Provide error messages for errno values 100...140.
5978         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
5980 2017-04-28  Bruno Haible  <bruno@clisp.org>
5982         noreturn: New module.
5983         * lib/noreturn.h: New file.
5984         * modules/noreturn: New file.
5985         * tests/test-noreturn.c: New file.
5986         * modules/noreturn-tests: New file.
5987         * tests/test-noreturn-c++.cc: New file.
5988         * modules/noreturn-c++-tests: New file.
5990 2017-04-27  Bruno Haible  <bruno@clisp.org>
5992         wctype-h: Fix compilation error with the original mingw.org mingw.
5993         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
5994         HAVE_CRTDEFS_H.
5995         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
5996         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5997         <stddef.h> instead.
5998         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
6000 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6002         nap.h: Fix compilation on non windows platforms
6003         * tests/nap.h: Move misplaced endif.
6005 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6006         and Paul Eggert  <eggert@cs.ucla.edu>
6008         time_rz: fix heap buffer overflow vulnerability
6009         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
6010         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
6011         whether there is enough buffer space available, thus avoiding
6012         the problematic promotion of signed to unsigned causing an invalid
6013         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
6014         the start of the buffer.
6015         * tests/test-parse-datetime.c (main): Add a test case written by
6016         Paul Eggert, which overwrites enough of the heap so that
6017         standard glibc will fail with "free(): invalid pointer"
6018         without the patch applied.
6020 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6022         xalloc: add missing integer overflow check
6023         * lib/xalloc.h (x2nrealloc): Also check for multiplication
6024         overflow when P is null.
6026 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6028         parse-datetime: make it standalone
6029         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
6030         (_GL_ATTRIBUTE_FORMAT): New macro.
6031         These are needed to get './gnulib-tool --test parse-datetime' to work.
6033 2017-04-23  Bruno Haible  <bruno@clisp.org>
6035         nap.h: Port to native Windows.
6036         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
6037         use nap_fd instead. On native Windows, close and reopen nap_fd.
6038         (nap_works): Don't compare the ctimes, because on native Windows, these
6039         are the creation times.
6040         (nap): Update.
6042 2017-04-23  Bruno Haible  <bruno@clisp.org>
6044         nap.h: Fix logic.
6045         * tests/nap.h (nap): Avoid signed integer overflow in loop.
6047 2017-04-23  Bruno Haible  <bruno@clisp.org>
6049         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6050         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
6051         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
6052         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
6053         * lib/argp-help.c (__argp_failure): Likewise.
6055 2017-04-23  Bruno Haible  <bruno@clisp.org>
6057         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
6058         * m4/strerror_r.m4: Revert changes since 2016-10-16.
6059         * lib/strerror_r.c: Likewise.
6061 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6063         Target a C99 subset, not a C89 subset
6064         For many years Gnulib has targeted C89 and has resisted using C99
6065         features, as some Gnulib-using programs still wanted to target
6066         C89.  As this no longer seems to be the case, relax the porting
6067         requirements to allow some C99 features.  This is merely a change
6068         to the documentation, to give other Gnulib developers a chance to
6069         weigh in on the topic.
6070         * doc/extern-inline.texi (extern inline):
6071         * doc/gnulib-readme.texi (Portability guidelines):
6072         * doc/gnulib-tool.texi (Initial import):
6073         * doc/gnulib.texi (Header files):
6074         Modernize to talk about C99 and C11 instead of C89 and C99.
6075         * doc/gnulib-readme.texi (Portability guidelines):
6076         Now a section, not merely a subsection, so that it
6077         can be split up.  Modernize a bit.
6078         (C language versions, C99 features assumed)
6079         (C99 features avoided):
6080         New sections.
6082 2017-04-23  Bruno Haible  <bruno@clisp.org>
6084         doc: New section "Modules that modify the way other modules work".
6085         * doc/gnulib.texi (Modules that modify the way other modules work): New
6086         section.
6088 2017-04-23  Bruno Haible  <bruno@clisp.org>
6090         stat-time: Update comments.
6091         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
6092         * tests/test-utimens-common.h: Add reference regarding st_ctime on
6093         Windows.
6095 2017-04-01  Bruno Haible  <bruno@clisp.org>
6097         glob: Fix more memory leaks.
6098         * lib/glob.c (glob): Free allocated memory before returning.
6099         Reported by Coverity via Tim Rühsen.
6101 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6103         poll: improve fast check for out-of-range NFD
6104         * lib/poll.c: Do not include intprops.h.
6105         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
6106         * modules/poll (Depends-on): Remove intprops.
6108         ftoastr: cite a newer paper
6109         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
6110         instead of Loitsch 2010.
6112 2017-04-22  Bruno Haible  <bruno@clisp.org>
6114         poll: Enable argument check also in the Windows implementation.
6115         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
6116         Reported by Paul Eggert.
6118 2017-04-22  Bruno Haible  <bruno@clisp.org>
6120         getlogin_r: Work around bug in Mac OS X 10.12.
6121         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
6122         bug.
6123         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
6124         given size minus 1, call getlogin_r a second time, on a larger buffer.
6125         * modules/getlogin_r (Depends-on): Add malloca.
6126         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
6128 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6130         parse-datetime: fix %z and prefer signed int
6131         %z problem reported by Pádraig Brady in:
6132         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
6133         While fixing it, I decided to prefer signed ints to size_t, as
6134         they are less error-prone (e.g., ubsan catches overflow).
6135         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
6136         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
6137         counts, since signed integers make for better debugging.
6138         (date): Don’t assume %z works in printf formats.
6139         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
6140         sizes of buffers known to be small, e.g., because we’re using snprintf.
6141         (parse_datetime2): Simplify call to debug_mktime_not_ok.
6143 2017-04-22  Bruno Haible  <bruno@clisp.org>
6145         *printf: Work around rounding bug on Mac OS X.
6146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
6147         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
6148         Mac OS X and FreeBSD.
6149         * doc/glibc-functions/*printf.texi: Likewise.
6151 2017-04-22  Bruno Haible  <bruno@clisp.org>
6153         vasnprintf tests: Avoid warnings.
6154         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
6155         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
6156         test.
6158 2017-04-22  Bruno Haible  <bruno@clisp.org>
6160         sys_file tests: Avoid warning.
6161         * tests/test-sys_file.c (main): Add a default clause to the switch
6162         statement.
6164 2017-04-22  Bruno Haible  <bruno@clisp.org>
6166         sethostname: Update doc.
6167         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
6168         Mac OS X.
6170 2017-04-22  Bruno Haible  <bruno@clisp.org>
6172         quotearg tests: Avoid warnings.
6173         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
6174         false.
6176 2017-04-22  Bruno Haible  <bruno@clisp.org>
6178         poll: Enable argument check.
6179         * lib/poll.c: Include intprops.h.
6180         (poll): Check value of nfd correctly.
6181         * modules/poll (Depends-on): Add intprops.
6183 2017-04-22  Bruno Haible  <bruno@clisp.org>
6185         get-rusage-data: Avoid warnings on Mac OS X.
6186         * lib/get-rusage-data.c: On Mac OS X, don't define
6187         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
6188         (get_rusage_data) [Mac OS X]: Just return 0.
6190 2017-04-22  Bruno Haible  <bruno@clisp.org>
6192         xbinary-io: Fix build error.
6193         * modules/xbinary-io (Depends-on): Add gettext-h.
6194         * lib/xbinary-io.c: Include gettext.h and define _().
6195         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6196         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
6198 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6200         parse-datetime: overflow and debug cleanups
6201         This long patch was triggered by this bug report from Ruediger Meier:
6202         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
6203         I fixed the bug he noted, then found some others nearby, and then
6204         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
6205         up some of the code to follow GNU standards while I was at it.
6206         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
6207         use c_isdigit.
6208         (EPOCH_YEAR): Remove; unused.
6209         (TM_YEAR_BASE): Now an enum rather than a macro.
6210         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
6211         time zone offset, since timezones now are in terms of seconds and
6212         not minutes.
6213         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
6214         appropriate.  Verify that intmax_t is wide enough.
6215         (time_overflow, time_zone_str): New functions, used to deal
6216         more reliably with overflow.
6217         (dbg_printf): Add printf attribute, to help catch integer width errors.
6218         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
6219         (%union, to_hour, yylex, parse_datetime2):
6220         Use intmax_t instead of long int and/or long_time_t.
6221         All uses changed.
6222         (DBGBUFSIZE): Move earlier.
6223         (relative_time, set_hhmmss, parser_control):
6224         Just use int for nanoseconds and for time zones; that’s wide enough.
6225         (parser_control): Use bool for members like year_seen that can
6226         be booleans instead of counters.  All uses changed.
6227         Remove debug_default_input_timezone; no longer needed.
6228         All uses removed.
6229         (apply_relative_time): Return a bool overflow flag.
6230         All uses changed to check for overflow.
6231         (apply_relative_time, zone, date, relunit, relunit_snumber)
6232         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
6233         Check for integer overflow portably.
6234         (str_days): Use just int for N, as it’s wide enough.
6235         Prefer 2D char arrays to arrays of char * when it looks like
6236         2D is a win on typical platforms.
6237         Prefer snprintf to strncpy/strncat, for simplicity;
6238         all buffers are smaller than INT_MAX so this is safe.
6239         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
6240         (debug_print_current_time): Don’t assume tv_nsec is of type long,
6241         as this is not true on x32.  Output "." before any nanoseconds.
6242         (debug_print_current_time, parse_datetime2):
6243         Output local zones using a more-consistent format.
6244         (debug_print_current_time, date, parse_datetime2):
6245         (main) [TEST]:
6246         Don’t assume time_t is the same width as long.
6247         (print_rel_part): New function, replacing ...
6248         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
6249         (debug_print_relative_time): Use bool for boolean.
6250         (local_zone): dsts_seen now counts only tDST instances.
6251         (date): Fix printf of size_t to use %z.  Do not assume numeric
6252         tokens have negative values merely because the context suggests
6253         a syntax with "-" separating tokens.
6254         (time_zone_hhmm): Return bool success indicator, which checks for
6255         overflow.  Store result into PC->time_zone instead.  All callers
6256         changed.
6257         (tm_year_str): New function.  Return a bool success indicator and
6258         store the result into a buffer.  All callers changed.  Output the
6259         numerically correct string even if adding 1900 to the year would
6260         overflow.
6261         (to_tm_year): New function, replacing the old to_year.  All
6262         callers changed.
6263         (tm_diff): Sync with glibc.
6264         (lookup_word): Use to_uchar instead of doing it by hand.
6265         (TZBUFSIZE): Now local to the only function that needs it.
6266         (debug_strfdatetime): Simplify now that time zones are int seconds.
6267         (debug_strfdate): Work even if tm_year + 1900 would overflow.
6268         (get_effective_timezone): Remove.  All uses removed.
6269         (parse_datetime2): Use fprintf in pieces instead of snprintfing
6270         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
6271         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
6272         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
6273         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
6274         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
6275         * modules/parse-datetime (Depends-on): Add inttypes.
6277 2017-04-21  Bruno Haible  <bruno@clisp.org>
6279         gettext-h: Avoid -Wundef warning.
6280         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
6281         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6282         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
6284 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
6286         error: Avoid "function declaration isn't a prototype" warning.
6287         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
6289 2017-04-21  Bruno Haible  <bruno@clisp.org>
6291         vasnprintf: Fix for MSVC 14.
6292         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
6293         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
6294         of !HAVE_SNPRINTF_RETVAL_C99.
6296 2017-04-21  Bruno Haible  <bruno@clisp.org>
6298         mbrtowc tests: Fix test failures on MSVC 14.
6299         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
6300         behaviour for invalid input.
6302 2017-04-21  Bruno Haible  <bruno@clisp.org>
6304         mbsinit: Fix for MSVC 14.
6305         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
6306         implementation that is in sync with mbrtowc.c. On other platforms, use
6307         an adequate ad-hoc implementation.
6309 2017-04-21  Bruno Haible  <bruno@clisp.org>
6311         Fix test-mbrtowc5.sh failure on native Windows.
6312         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
6313         "C".
6315 2017-04-21  Bruno Haible  <bruno@clisp.org>
6317         Avoid accidental use of native Windows APIs on Cygwin.
6318         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
6319         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
6320         * lib/localename.c (WINDOWS_NATIVE): Likewise.
6322 2017-04-20  Bruno Haible  <bruno@clisp.org>
6324         Remove red warnings from the generated MODULES.html.
6325         * modules/fcntl (Description): Disambiguate function references.
6326         * modules/getcwd-lgpl (Description): Likewise.
6327         * modules/hostent (Description): Likewise.
6328         * modules/servent (Description): Likewise.
6329         * modules/tempname (Description): Likewise.
6331 2017-04-20  Bruno Haible  <bruno@clisp.org>
6333         verify tests: Fix spurious failure with parallel make.
6334         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
6335         EXTRA_PROGRAMS.
6336         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
6337         * tests/test-verify-try.c: New file.
6338         * modules/verify-tests (Files): Add it.
6339         (EXTRA_PROGRAMS): Add test-verify-try.
6340         (MOSTLYCLEANFILES): Update accordingly.
6341         Reported by Adam James Stewart <ajstewart@anl.gov>.
6343 2017-04-18  Bruno Haible  <bruno@clisp.org>
6345         vma-iter: Fix compilation error on Solaris 7.
6346         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
6347         like on IRIX, OSF/1.
6348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6350 2017-04-18  Bruno Haible  <bruno@clisp.org>
6352         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
6353         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
6354         included.
6355         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
6356         <sys/procfs.h>.
6357         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
6358         <sys/procfs.h> cannot be included.
6359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6361 2017-04-18  Bruno Haible  <bruno@clisp.org>
6363         getopt-gnu: Add comments.
6364         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
6365         * modules/getopt-gnu (configure.ac): Likewise.
6367 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6369         regex: port better to Solaris 10
6370         Solaris 10 <locale.h> includes <libintl.h>, which #defines
6371         gettext, and this causes a double #define.
6372         Problem reported by Gavin Smith in:
6373         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
6374         * lib/regex_internal.h (gettext): #undef before #defining.
6376 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6378         intprops: improve comments
6379         * lib/intprops.h: Improve and shorten commentary.
6380         For the record, if we ever run into a pedantic compiler that
6381         behaves differently from GCC when converting an out-of-range value
6382         to a signed integer, we can work around the problem with something
6383         like the following code, where UCT is the signed counterpart of T
6384         (UCT is sometimes narrower than UT) and all callers are changed
6385         accordingly:
6386         #if __SUNPRO_C <= 0x5120
6387         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6388            ((t) ((ut) (a) op (ut) (b)))
6389         #else
6390         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6391            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
6392             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
6393                + TYPE_MINIMUM (t)) \
6394             : (t) (uct) ((ut) (a) op (ut) (b)))
6395         #endif
6397 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6399         intprops: try to avoid tickling similar bugs
6400         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
6401         needs to be the same width as T; it can be wider.
6402         Change callers so that UT is at least as wide as unsigned int,
6403         as I suspect that this is less likely to run into compiler bugs.
6405         intprops: port to Oracle Studio 12.3 x86
6406         Problem reported by Gavin Smith in:
6407         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
6408         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6409         Convert unsigned to signed via the usual rather than the standard way,
6410         to avoid a compiler bug in Oracle Studio 12.3 x86.
6412 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6414         getopt: prefer - to _ in new file names
6415         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
6416         * lib/getopt-core.h: Rename from lib/getopt_core.h.
6417         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
6418         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
6419         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
6420         All uses changed.
6422         getopt: port recent getopt changes to macOS
6423         Problem reported by Harald Maier (Bug#26398).
6424         The macOS C compiler uses __nonnull for its own purposes and that
6425         clashes with glibc's __nonnull.
6426         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
6427         * lib/getopt_cdefs.in.h (__nonnull): Remove.
6428         * lib/getopt_core.h (getopt):
6429         * lib/getopt_ext.h (getopt_long, getopt_long_only):
6430         Use _GL_ARG_NONNULL, not __nonnull.
6431         * lib/unistd.in.h: Move snippet hooks to before where the getopt
6432         .h files are included, so that _GL_ARG_NONNULL is defined in time.
6433         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
6434         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
6436 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6438         getopt-gnu: omit some duplicate code
6439         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
6440         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
6441         gnulib-tool already does this.
6442         * modules/getopt-gnu (configure.ac): Omit code duplicated from
6443         getopt-posix, which we depend on.
6445         getopt-posix: use angle-bracket include
6446         * lib/getopt1.c: Include <config.h>, not "config.h".
6448 2017-04-06  Zack Weinberg  <zackw@panix.com>
6450         getopt: annotate files with relationship to glibc
6452         As the final act in this patchset, adjust the message at the top of
6453         each file to indicate which files are synced with glibc.  (This has
6454         already been done for most of the headers.)
6456         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
6457         Mention in top-of-file boilerplate that these files are shared
6458         between glibc and gnulib.
6461         getopt: split up getopt.in.h and eliminate __need_getopt
6463         Over in glibc, all of the __need macros are being phased out in favor
6464         of small headers that declare only the necessary components, as this
6465         is much simpler and less prone to bugs.  As getopt is shared with
6466         glibc, gnulib needs to do the same for __need_getopt.
6468         __need_getopt is misnamed; what it really means is "we want only the
6469         getopt features specified in POSIX, not the GNU extensions".  glibc
6470         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
6471         these files can be shared verbatim with gnulib.  The portability
6472         wrapper, on the other hand, they have renounced altogether; glibc's
6473         getopt.h will no longer be shared with gnulib at all.  In exchange,
6474         certain glibc-specific quirks (having to do with __posix_getopt) no
6475         longer need appear in gnulib's headers at all.
6477         This patch merges getopt_core.h and getopt_ext.h from glibc, and
6478         splits up the current gnulib-side portability wrapper into three
6479         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
6480         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
6481         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
6482         unistd.in.h just use them.  All new files are clearly marked with
6483         whether they are shared with glibc.
6485         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
6486         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
6487         with glibc, and ...
6488         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
6489         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
6490         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
6491         instead of defining __need_getopt and including the full getopt.h.
6493         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
6494         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
6495         * modules/getopt-posix (Files): Add new headers and sort list.
6496         (Depends-on): No longer need snippet/arg-nonnull.
6497         (Makefile.am): Generate getopt_cdefs.h.
6500         getopt: better handling of ambiguous options
6502         glibc's getopt uses alloca to construct a linked list of possibilities
6503         for an "ambiguous" long option.  In gnulib, malloc should be used
6504         instead.  Providing for both cases complicates things a fair bit.
6506         This patch rewrites ambiguous-option handling to use a boolean vector
6507         instead of a linked list.  There is then only one allocation that
6508         might need freeing; in glibc it can honor __libc_use_alloca as usual,
6509         and in gnulib we define __libc_use_alloca to always be false, so we
6510         don't need ifdefs in the middle of the function.  This should also be
6511         slightly more efficient in the normal case of long options being fully
6512         spelled out -- I think most people aren't even aware they _can_
6513         sometimes abbreviate long options.
6515         One interesting consequence is that the list of possibilities is now
6516         printed in exactly the order they appear in the list of long options,
6517         instead of the first possibility being shuffled to the end.
6519         (The patch looks bigger than it really is because there's a fair bit
6520         of reindentation and code rearrangement.)
6522         * lib/getopt.c: When used standalone, define __libc_use_alloca
6523         as always false and alloca to abort if called.
6524         (process_long_option): Rewrite handling of ambiguous long options
6525         to use a single boolean vector, not a linked list; use
6526         __libc_use_alloca to decide whether to allocate this using alloca.
6529         getopt: refactor long-option handling
6531         There were two copies of the bulk of the code to handle long options.
6532         Now there is only one.
6534         This change temporarily removes the logic to avoid using alloca when
6535         standalone; the next patch in the series will restore it.
6537         * lib/getopt.c (process_long_option): New function split out
6538         from _getopt_internal_r.
6539         (_getopt_internal_r): Replace both copies of the long-option
6540         processing code with calls to process_long_option.
6543         getopt: tidy up _getopt_initialize a bit
6545         _getopt_data.__posixly_correct is completely redundant to
6546         _getopt_data.__ordering, and some work that logically belongs in
6547         _getopt_initialize was being done by _getopt_internal_r, making the
6548         code harder to understand.
6550         As a side effect, getenv will no longer be called if the first
6551         character of the options string is '+' or '-', which is probably a
6552         Good Thing.  (Perhaps we should have a flag character that
6553         specifically asks for the permutation behavior?)
6555         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
6556         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
6557         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
6560         getopt: merge from glibc: repetition reduction
6562         The definitions of the entry point functions 'getopt' and
6563         '__posix_getopt' can be made substantially less repetitive with a
6564         helper macro.
6566         While I was merging the const-correctness changes from gnulib into
6567         glibc I noticed there are still some unnecessary casts in
6568         _getopt_internal_r.
6570         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
6571         a macro.  Consistently cast 'argv' to 'char **' when calling
6572         _getopt_internal.
6573         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
6576         getopt: clean up error reporting
6578         getopt can print a whole bunch of error messages, and when used
6579         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
6580         cancellation point and getopt isn't, and also applying fprintf to a
6581         stream in wide-character mode is not allowed.  So every single error
6582         reporting case has an #ifdef _LIBC block in which it calls internal
6583         libc functions instead.  The counterpart patch series in glibc makes
6584         it possible to simplify all of that down to a set of #defines at the
6585         top of the file; core code is written as if it is safe to just call
6586         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
6587         call any *other* stdio functions.)
6589         * lib/getopt.c: When _LIBC is defined, define fprintf to
6590         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
6591         to _IO_funlockfile.  When neither _LIBC nor
6592         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
6593         funlockfile as no-ops.
6594         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6595         standalone error-printing code can now be used for libc as well.
6596         Add an flockfile/funlockfile pair around one case where the error
6597         message is printed in several chunks.  Don't use fputc.
6600         getopt: fix fencepost error in ambiguous-W-option handling
6602         getopt_long contains an undocumented (AFAICT) feature in which, if you
6603         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6604         treated as equivalent to '--foo'.  This is implemented with a partial
6605         second copy of the code for handling long options, and that code
6606         increments optind one too many times when recovering from an ambiguous
6607         abbreviated option, which can cause the main loop to walk past the end
6608         of argv and crash.
6610         I discovered this while writing a test case that tries to exercise all
6611         of getopt's error reporting paths; I wouldn't be surprised to learn
6612         that this feature is never used by real applications.
6614         * lib/getopt.c (_getopt_internal_r): Don't increment
6615         d->optind a second time when reporting ambiguous -W options.
6618         getopt: clean up getopt.c and getopt1.c file headers
6620         In getopt.c, there is no need to include wchar.h at all, and it is
6621         safe nowadays to assume that stdlib.h does declare getenv (several
6622         other gnulib modules make this assumption).
6624         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6625         by using "" inclusions consistently, and there is no actual need to
6626         include stdlib.h (except in the #ifdef TEST block, where it should be
6627         unconditional), nor to provide a backup definition of NULL at all.
6629         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6630         Move inclusion of stdlib.h to #ifdef TEST block and make
6631         unconditional.  Do not define NULL.
6632         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6633         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6634         * modules/getopt-gnu, modules/getopt-posix: Don't call
6635         gl_PREREQ_GETENV.
6638         getopt: harmonize comments with glibc
6640         The comments explaining how the behavior of 'getopt' varies depending
6641         on whether it's the standalone version and whether there are special
6642         characters at the beginning of the options string were inconsistent
6643         between gnulib and glibc, and also out of sync with the code.
6645         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6648         getopt: remove USE_NONOPTION_FLAGS
6650         getopt includes code to parse an environment variable named
6651         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6652         in decimal); but all of it has been #ifdefed out since 2001, with no
6653         official way to turn it back on.
6655         According to commentary in glibc's config.h.in, bash version 2.0
6656         set this environment variable to indicate argv elements that were
6657         the result of glob expansion and therefore should not be treated
6658         as options, but the feature was "disabled later" because "it
6659         caused problems".  According to bash's CHANGES file, "later" was
6660         release 2.01; it gives no more detail about what the problems
6661         were.
6663         Version 2.0 of bash was released on the last day of 1996, and version
6664         2.01 in June of 1997.  Twenty years later, I think it is safe to
6665         assume that this environment variable isn't coming back.
6667         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6668         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6669         __libc_argc and __libc_argv externs, which were only used by
6670         #ifdef USE_NONOPTION_FLAGS blocks.
6673         getopt: tabify, in preparation for merge with glibc
6675         glibc sticks to the GNU default of indenting with a mix of
6676         8-column tabs and spaces; make the gnulib copy match.
6678         getopt.h is not included because it is *not* going to be merged in its
6679         present form.
6681         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6683 2017-04-02  Bruno Haible  <bruno@clisp.org>
6685         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6686         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6687         like it was done in modules/relocatable-lib on 2011-05-21 and in
6688         modules/relocatable-prog on 2011-08-15.
6689         Reported by Reuben Thomas <rrt@sc3d.org>.
6691 2017-03-31  Bruno Haible  <bruno@clisp.org>
6693         glob: Fix invalid free() call.
6694         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6695         static storage to home_dir.
6696         Reported by Coverity via Tim Rühsen.
6698 2017-03-31  Bruno Haible  <bruno@clisp.org>
6700         glob: Fix memory leaks.
6701         * lib/glob.c (glob): Free allocated memory before returning.
6702         Reported by Coverity via Tim Rühsen.
6704 2017-03-31  Bruno Haible  <bruno@clisp.org>
6706         md5, sha1, sha256, sha512: Add comments regarding correctness.
6707         * lib/md5.h (buflen): Add comments regarding range.
6708         * lib/sha1.h (buflen): Likewise.
6709         * lib/sha256.h (buflen): Likewise.
6710         * lib/sha512.h (buflen): Likewise.
6711         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6712         * lib/sha1.c (sha1_process_bytes): Likewise.
6713         * lib/sha256.c (sha256_process_bytes): Likewise.
6714         * lib/sha512.c (sha512_process_bytes): Likewise.
6715         Reported by Coverity via Tim Rühsen.
6717 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6719         getopt: merge from glibc
6720         This does not change anything substantial; it merely simplifies
6721         hypothetical merges back to glibc.
6722         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6723         Change copyright notice to match what is in glibc.
6724         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6725         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6726         __open_memstream rather than open_memstream and __glibc_likely
6727         instead of __builtin_expect.
6728         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6730 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6732         dfa: make [0-9] faster in non-C locales
6733         Problem reported by John P. Linderman (Bug#26193).
6734         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6735         If both ends of the range are ASCII digits, do not worry about
6736         multi-character collating sequences and the like.  Be consistent
6737         about using isalpha as a precondition for setbit_case_fold_c.
6739 2017-03-19  Bruno Haible  <bruno@clisp.org>
6741         lock: Fix compilation error with HP-UX IA64 cc.
6742         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6743         weak on non-glibc platforms.
6745 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6747         stdalign: tweak version# and test for HP-UX IA64
6748         Problems reported by Bruno Haible in:
6749         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
6750         * lib/stdalign.in.h (_Alignas):
6751         * m4/stdalign.m4 (gl_STDALIGN_H):
6752         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
6753         used octal (as that is how they document it), but it is decimal in
6754         practice now and the ancient implementations no longer matter.
6755         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
6757 2017-03-19  Bruno Haible  <bruno@clisp.org>
6759         vma-iter: Add support for Solaris.
6760         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
6761         approach.
6762         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
6763         * lib/get-rusage-as.c: Update comment about Solaris.
6764         * lib/get-rusage-data.c: Likewise.
6766 2017-03-19  Bruno Haible  <bruno@clisp.org>
6768         vma-iter: Prefer HP-UX specific API on HP-UX.
6769         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
6770         * lib/vma-iter.h: Update.
6771         Just in case HP-UX ever implements mquery().
6773 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6775         stdalign: restore previous behavior for HP-UX IA64
6776         See Bruno Haible's email in:
6777         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6778         which cites p 150 of a manual saying that 'aligned' works on Itanium.
6779         * lib/stdalign.in.h (_Alignas):
6780         Assume the '061200' applies to Itanium, not to PA-RISC.
6781         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
6783 2017-03-17  Bruno Haible  <bruno@clisp.org>
6785         stat-time, timespec: Support use of the header files in C++ mode.
6786         * lib/stat-time.h: Add "C" linkage declaration.
6787         * lib/timespec.h: Likewise.
6789 2017-03-17  Bruno Haible  <bruno@clisp.org>
6791         stdalign: Make it work with HP-UX cc.
6792         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
6793         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6794         for HP-UX cc.
6796 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6798         flexmember: try to detect HP-UX 11.31 cc bug
6799         Problem reported by Bruno Haible in:
6800         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6801         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6802         Attempt to detect bug in HP-UX 11.31 cc.
6804 2017-03-16  Bruno Haible  <bruno@clisp.org>
6806         stdint: Fix test compilation failure with HP-UX 11 cc.
6807         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
6808         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
6809         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
6810         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
6812 2017-03-14  Bruno Haible  <bruno@clisp.org>
6814         gnulib-tool: Don't produce a tests directory with only snippet .h files.
6815         * gnulib-tool (func_modules_transitive_closure_separately): If
6816         testsrelated_modules ends up with no "real" modules, aside from
6817         modules with applicability 'all', set it to empty.
6819 2017-03-14  Bruno Haible  <bruno@clisp.org>
6821         vma-iter: Add support for HP-UX.
6822         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
6823         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
6824         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
6825         * lib/get-rusage-as.c: Update comment about HP-UX.
6826         * lib/get-rusage-data.c: Likewise.
6827         (get_rusage_data): Use get_rusage_data_via_setrlimit.
6829 2017-03-14  Bruno Haible  <bruno@clisp.org>
6831         limits-h: Make it work with HP-UX cc.
6832         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
6833         defined.
6835 2017-03-14  Bruno Haible  <bruno@clisp.org>
6837         Fix test failures on DragonFlyBSD.
6838         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
6839         * tests/test-select.h (test_bad_fd): Likewise.
6840         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
6842 2017-03-14  Bruno Haible  <bruno@clisp.org>
6844         freadahead: Silence warning on DragonFlyBSD.
6845         * lib/freadahead.c (__sreadahead): Declare ourselves.
6847 2017-03-14  Bruno Haible  <bruno@clisp.org>
6849         vma-iter: Add comment about AIX.
6850         * lib/vma-iter.c: Add comment about why this module is not implemented
6851         on AIX.
6853 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6855         snippets: move unadjusted snippet sources to lib
6856         Problem reported by Michal Privoznik in:
6857         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6858         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6859         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6860         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6861         * lib/unused-parameter.h: Rename from
6862         build-aux/snippet/unused-parameter.h.
6863         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6864         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6865         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6866         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6867         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6868         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6869         Adjust to file renamings.
6871 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6873         gnulib-tool: don't automatically distribute files from top/
6874         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6875         not distribute top/README-release by default, don't distribute files
6876         from top/ unconditionally.
6877         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6878         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6880 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6882         gnulib-tool: fix typo in comment output
6883         * gnulib-tool (func_import): Fix typo with previous change.
6885         snippets: work around GNU Make 3.82 VPATH
6886         When using 'gnulib-tool --gnu-make' on Emacs, and building
6887         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6888         an out-of-source (VPATH) build failed because the sans-copyright
6889         snippet file was not built before the file that used it.
6890         Presumably this is some sort of VPATH thing.  Work around the
6891         problem by using the original snippet, i.e., don’t bother to
6892         remove its copyright notice.
6893         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6894         Don’t assume Automake in comments.  Omit long-incorrect comment.
6895         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6896         (MOSTLYCLEANFILES):
6897         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6898         (MOSTLYCLEANFILES):
6899         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6900         (MOSTLYCLEANFILES):
6901         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6902         (MOSTLYCLEANFILES):
6903         Remove.
6904         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6905         * modules/snippet/c++defs (CXXDEFS_H):
6906         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6907         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6908         Don’t bother to remove the copyright notice; just use the
6909         original snippet as-is.
6911 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6913         gnulib-tool: minor --gnu-make fixups
6914         * gnulib-tool (func_emit_lib_Makefile_am):
6915         Remove useless code that was a blind alley during implementation.
6916         Problem reported by Thien-Thi Nguyen in:
6917         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
6918         (func_import): Note the "--gnu-make" option in the output comment.
6920 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
6922         gnulib-tool: new option --gnu-make
6923         This is for applications like GNU Emacs that use GNU Make
6924         features instead of Automake.
6925         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
6926         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
6927         Do not assume Automake.
6928         * gnulib-tool (func_determine_path_separator)
6929         (func_modules_transitive_closure, func_update_file)
6930         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6931         (func_import): Add support for --gnu-make.
6933 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6935         gnulib-common.m4: avoid aclocal.m4 bloat
6936         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
6937         Hide AM_PROG_AR from aclocal, so that aclocal does not
6938         install irrelevant macro definitions into aclocal.m4.
6940 2017-03-10  Bruno Haible  <bruno@clisp.org>
6942         vma-iter: Let callers know about error.
6943         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
6944         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
6946 2017-03-05  Bruno Haible  <bruno@clisp.org>
6948         Fix value of LD for 64-bit compilers on AIX.
6949         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
6950         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
6952 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
6954         dtotimespec: simplify
6955         * lib/dtotimespec.c (dtotimespec): Simplify.
6957 2017-03-04  Bruno Haible  <bruno@clisp.org>
6959         test-calloc-gnu: Reenable test also for GCC 7.
6960         * tests/test-calloc-gnu.c (eight): New function.
6961         (main): Don't skip test; use eight() instead.
6963 2017-03-04  Jim Meyering  <meyering@fb.com>
6965         test-calloc-gnu: port to GCC7
6966         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
6967         that attempts to calloc more than SIZE_MAX bytes, because GCC7
6968         and newer would detect that at compilation time.
6970 2017-03-04  Bruno Haible  <bruno@clisp.org>
6972         tests: Avoid compiler warning about uses of null_ptr.
6973         * tests/null-ptr.h: New file.
6974         * tests/test-canonicalize.c: Include null-ptr.h.
6975         (null_ptr): Remove function.
6976         * tests/test-canonicalize-lgpl.c: Likewise.
6977         * tests/test-memmem.c: Likewise.
6978         * tests/test-ptsname_r.c: Likewise.
6979         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
6980         * modules/canonicalize-lgpl-tests: Likewise.
6981         * modules/memmem-tests: Likewise.
6982         * modules/ptsname_r-tests: Likewise.
6983         Reported by Jim Meyering.
6985 2017-03-03  Bruno Haible  <bruno@clisp.org>
6987         doc: Mention Mac OS X deficiencies regarding semaphores.
6988         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
6989         * doc/posix-functions/sem_destroy.texi: Likewise.
6990         * doc/posix-functions/sem_getvalue.texi: Likewise.
6992 2017-03-03  Bruno Haible  <bruno@clisp.org>
6994         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
6995         Reported by Assaf Gordon <assafgordon@gmail.com> via
6996         Pádraig Brady <P@draigBrady.com>.
6997         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
6998         semaphores.
6999         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
7000         (atomic_int_semaphore): New macro.
7002 2017-02-28  Bruno Haible  <bruno@clisp.org>
7004         perror tests: Tweak for z/OS.
7005         Reported by Daniel Richard G. <skunk@iskunk.org>.
7006         * tests/test-perror.sh: Don't fail z/OS style perror output.
7008 2017-02-26  Bruno Haible  <bruno@clisp.org>
7010         nproc: Refactor large function.
7011         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
7012         from num_processors.
7013         (num_processors): In this function, only deal with OMP.
7015 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7017         nproc: adjust handling of OpenMP environment variables
7018         to match the return value from omp_get_num_threads(), i.e.:
7019          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
7020          - Treat 0 as an invalid value and ignore
7021         Also remove the call to omp_get_num_threads() because
7022         it's ineffective without the omp pragmas in place.
7023         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
7024         so that it can be ignored.
7025         (num_processors): Honor OMP_THREAD_LIMIT even without
7026         OMP_NUM_THREADS being set.  Also fix a typo in the environment
7027         variable being checked, from the previous recent commit.
7029 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7031         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
7032         * lib/nproc.c (parse_omp_threads): A new function refactored
7033         from num_processors() to support parsing both of the
7034         above environment variables.
7035         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
7036         to accurately reflect the current OpenMP nesting level.
7037         Also support the OMP_THREAD_LIMIT environment variable
7038         to limit the max value determined from OMP_NUM_THREADS.
7039         * modules/nproc: Depend on minmax header.
7040         Suggested by Oliver Heimlich.
7042 2017-02-25  Bruno Haible  <bruno@clisp.org>
7044         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
7045         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
7047 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7049         ftoastr: port to -Wdouble-promotion
7050         Work around -Wdouble-promotion false alarm in recent GCCs.
7051         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
7052         (ftoastr_snprintf, FTOASTR): Use it.
7054 2017-02-21  Bruno Haible  <bruno@clisp.org>
7056         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
7057         Reported by Rene Saavedra <rennes@openmailbox.org> in
7058         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
7059         * lib/glthread/lock.h: On glibc systems without
7060         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
7061         implementation of rwlocks.
7062         * lib/glthread/lock.c: Likewise.
7064 2017-02-20  Bruno Haible  <bruno@clisp.org>
7066         lock tests: Fix build failure on z/OS.
7067         Reported by Daniel Richard G. <skunk@iskunk.org>.
7068         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
7069         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
7070         exist.
7072 2017-02-19  Bruno Haible  <bruno@clisp.org>
7074         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
7075         This helps when CC=clang.
7076         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
7077         of /usr/bin/gcc.
7079         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
7080         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
7082 2017-02-19  Bruno Haible  <bruno@clisp.org>
7084         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
7085         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
7086         --with-tests --single-configure is specified.
7088 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7090         users.txt: Update links, use HTTPS where possible
7091         * users.txt: Updated to HTTPS where possible,
7092         fixed some links to new locations.
7094 2017-02-16  Bruno Haible  <bruno@clisp.org>
7096         xbinary-io: Fix inlining.
7097         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
7099 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7101         xbinary-io: rename from xsetmode
7102         This patch is taken from suggestions by Bruno Haible in:
7103         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
7104         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
7105         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
7106         not ENOTTY, when it is an inappropriate device.
7107         * lib/binary-io.h (SET_BINARY): Resurrect.
7108         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
7109         (xset_binary_mode_error): Rename from xsetmode_error.
7110         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
7111         (xset_binary_mode): Rename from xsetmode.
7112         All uses changed.
7113         * modules/xbinary-io: Rename from modules/xsetmode.
7114         Update file names.
7115         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
7116         * NEWS: Update to match revised behavior.
7118 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7120         tests: Adjust to recent SET_BINARY change
7121         * tests/test-binary-io.c (main):
7122         * tests/test-binary-io.sh: Remove test for SET_BINARY.
7123         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
7124         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
7125         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
7127         xsetmode: new module
7128         This is to fix a problem noted by Eric Blake.
7129         Code was using xfreopen to change files to binary mode, but this
7130         fails for stdout when in append mode.  Such code should use
7131         xsetmode instead.
7132         * NEWS: Document incompatible changes to binary-io module.
7133         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
7134         New function.
7135         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
7136         (set_binary_mode): New function, which also checks for tty.
7137         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
7139 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7141         headers: fix begin-end typos
7142         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
7143         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
7145         selinux-h: port to PGI 16.10
7146         * lib/se-selinux.in.h: Don't assume that include_next skips over
7147         duplicate -I DIR options.
7149         argp: port to PGI 16.10
7150         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
7152 2017-02-13  Darshit Shah  <darnir@gnu.org>
7154         unicase: Update function protoype to match definition.
7155         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
7156         uses 'size_t' as the datatype for the 'len' parameter in the functions
7157         it generates. Update the prototype specified here to match the newly
7158         generated function.
7160 2017-02-12  Bruno Haible  <bruno@clisp.org>
7162         times test: Avoid gcc warnings on Linux/x32.
7163         * tests/test-times.c (main): Really cast printf arguments from clock_t
7164         to 'long int'.
7166 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7168         glob: port better to emscripten
7169         Problem reported by Bruno Haible in:
7170         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
7171         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
7173 2017-02-11  Bruno Haible  <bruno@clisp.org>
7175         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
7176         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
7177         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
7178         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
7179         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
7180         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
7181         Distinguish hppa64 from hppa.
7183 2017-02-10  Bruno Haible  <bruno@clisp.org>
7185         search: Don't assume that tsearch() exists if 'VISIT' is defined.
7186         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
7187         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
7188         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
7190 2017-02-09  Bruno Haible  <bruno@clisp.org>
7192         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
7193         * doc/gnulib.texi (Libtool and Windows): Recommend
7194         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
7195         Reported by Reuben Thomas <rrt@sc3d.org>.
7197 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7199         stddef-tests: port to SIZE_MAX <= INT_MAX
7200         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
7201         Do not assume that INT_MAX < SIZE_MAX.
7203 2017-02-01  Bruno Haible  <bruno@clisp.org>
7205         lock tests: Fix link error.
7206         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
7207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7209 2017-01-31  Bruno Haible  <bruno@clisp.org>
7211         lock: Fix link error (regression from 2017-01-05).
7212         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
7213         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
7214         pthread_rwlockattr_destroy weak.
7215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7217 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7219         Port to PGI 16.10 x86-64
7220         This patch fixes one real bug in gl_anylinked_list2.h, along with
7221         some minor glitches that are not bugs.  It does not silence PGI’s
7222         thousands of bogus warnings when compiling test-intprops.c.
7223         Fortunately, the warnings do not cause a failure.
7224         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
7225         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
7226         My goodness, PGI goes back a long ways - this predates C89!
7227         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
7228         For example, ASYNCSAFE (const void *) should expand to
7229         ‘const void *volatile’, not to ‘volatile const void *’.
7230         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
7231         * lib/verify.h (verify) [!__GNUC__]:
7232         Use shorter albeit meaningless string to bypass silly compiler limits.
7233         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
7234         * tests/nan.h (NaNf, NaNd, NaNl):
7235         Use static functions to avoid misguided compiler diagnostics.
7236         Is there some reason we don’t use static functions on all platforms?
7238 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7240         parse-datetime: handle timezones reentrantly
7241         This API change was prompted by a report by Pádraig Brady in:
7242         https://bug.debian.org/851934#10
7243         To help fix the bug, make parse_datetime2 more reentrant.
7244         * NEWS: Document this incompatible change.
7245         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
7246         Add two arguments, the timezone and the timezone name.
7247         All callers changed.  If TZ="..." is specified, use it for
7248         calculating defaults.
7249         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
7250         this code should be usable in a library.
7251         (mktime_ok, get_effective_timezone):
7252         Accept timezone arg too.  All callers changed.
7253         (get_tz): Remove.
7254         (get_effective_timezone): Check for failures.
7256 2017-01-20  Eric Blake  <eblake@redhat.com>
7258         localename: port to cygwin 2.6
7259         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
7260         Cygwin.
7261         * modules/localename (Depends-on): Add extensions, since
7262         NL_LOCALE_NAME() is not visible without it.
7264 2017-01-17  Pádraig Brady  <P@draigBrady.com>
7266         parse-datetime: fix dependence on AC_PROG_SED
7267         * modules/parse-datetime: Use `sed` directly like all other modules.
7268         Reported by J William Piggott
7270 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7272         intprops: update doc URLs
7273         * doc/intprops.texi (Integer Range Overflow): Update URLs.
7275 2017-01-16  Bruno Haible  <bruno@clisp.org>
7277         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
7278         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
7279         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
7280         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
7281         distinguish s390 and s390x.
7282         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
7283         * NEWS: Mention the change regarding 'armel'.
7285 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7287         localeinfo: case_folded_counterparts and WEOF
7288         * NEWS: Document this.
7289         * lib/localeinfo.c (case_folded_counterparts):
7290         First arg is now wint_t, not wchar_t.  This generalizes the
7291         function to also work on WEOF, where it returns 0.
7293         dfa: port to gcc -fsanitize=undefined
7294         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
7295         as this runs afoul of gcc -fsanitize=undefined.
7297 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
7299         strftime: %z is -00 if unknown
7300         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
7301         the caller's responsibility to set 'negative_number'.  All uses changed.
7302         (__strftime_internal): Put '-' before a zero UTC offset if the time
7303         zone abbreviation starts with "-", which is the recently-introduced
7304         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
7305         * tests/test-strftime.c: Test for this.
7307 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7309         dfa: port to older GCC
7310         Problem reported by Assaf Gordon in:
7311         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
7312         * modules/c99: New module.  This merely attempts to use the latest
7313         C version, which should be enough to solve this particular problem.
7314         The idea is to document which Gnulib modules assume C99 or later.
7315         * modules/dfa (Depends-on): Add it.
7317 2017-01-10  Bruno Haible  <bruno@clisp.org>
7319         Update DEPENDENCIES.
7320         * DEPENDENCIES: List only https URLs. Update recommended version for
7321         autoconf, automake, gperf.
7323 2017-01-10  Jim Meyering  <meyering@fb.com>
7325         maint.mk: enforce spelling of "timestamp" (i.e., no space)
7326         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
7327         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
7329 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7331         dfa: minor simplification with emptyset
7332         * lib/dfa.c (build_state): Simplify by using emptyset.
7334 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7336         dfa: shrink constraints from 4 bits to 3
7337         * lib/dfa.c (newline_constraint, letter_constraint)
7338         (other_constraint, prev_newline_dependent)
7339         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
7340         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
7341         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
7342         Constraints need only 3 bits, not 4.  Using smaller integers
7343         shrinks the code a bit and makes grep a tad faster on x86-64.
7345         dfa: omit unnecessary ptrdiff_t check
7346         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
7347         overflow, since xnmalloc does that now.
7349         dfa: omit unnecessary allocation
7350         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
7351         an all-zero follow set works just fine.
7353         dfa: omit unused local
7354         * lib/dfa.c (build_state): Fix up recent change.
7356         maint: remove stray .texi files
7357         Although these were superseded by other files like
7358         doc/posix-functions/ctime.texi, the old files were not removed.
7359         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
7361 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7363         getprogname: fix port to IRIX
7364         * lib/getprogname.c (getprogname) [__sgi]:
7365         Don't dump core if malloc returns NULL.
7367         dfa: fix reallocation bug when matching newlines
7368         Problem reported for sed by S. Gilles (Bug#25390).
7369         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
7370         (dfastate): Reallocate before moving any newline transition ...
7371         (build_state): ... instead of reallocating here, where it is too late.
7373 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7375         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
7376         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
7378 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7380         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
7381         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
7383 2017-01-07  Bruno Haible  <bruno@clisp.org>
7385         stdioext: Port to Minix 3.2 and newer.
7386         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
7387         * lib/fseeko.c (fseeko): Likewise.
7388         Reported by Nelson Beebe via Paul Eggert.
7390 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7392         getprogname: port to IRIX
7393         * lib/getprogname.c (getprogname): Port to IRIX.
7394         Based on an idea by Bastien Roucariès at:
7395         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
7396         via code from Bruno Haible at:
7397         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7399         localename-tests: port to NetBSD 7
7400         Problem reported by Nelson H. F. Beebe.
7401         * tests/test-localename.c:
7402         Test newlocale and uselocale only if both exist.
7404         glob, intprops, xalloc: work around Clang bug
7405         Work around LLVM bug 16404, which is still not fixed.
7406         https://llvm.org/bugs/show_bug.cgi?id=16404
7407         Problem reported by Nelson H. F. Beebe.
7408         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
7409         Remove.
7410         * lib/glob.c (size_add_wrapv):
7411         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
7412         * lib/xalloc-oversized.h (xalloc_oversized):
7413         Do not use overflow builtins if Clang.
7415         dfa: fix 'return' typo
7416         Problem reported by Nelson H. F. Beebe.
7417         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
7419 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7421         parse-datetime: fix generated paths for coverage files
7422         * modules/parse-datetime: Adjust the paths for parse-datetime.y
7423         within parse-datetime.c, so that gcc generates appropriate .gcno
7424         files, allowing lcov to proceed without error.  Previously it
7425         would error trying to find "lib/lib/parse-datetime.y".
7427 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7429         maint.mk: support parallel execution of coverage
7430         * top/maint.mk (coverage): Run dependencies serially,
7431         thus supporting parallel processing of each one,
7432         particularly build-coverage, which builds and runs tests.
7434 2017-01-05  Bruno Haible  <bruno@clisp.org>
7436         lock tests: Prefer semaphore over mutex.
7437         * tests/test-lock.c (USE_SEMAPHORE): New constant.
7438         (struct atomic_int, init_atomic_int, get_atomic_int_value,
7439         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
7440         Suggested by Torvald Riegel <triegel@redhat.com>.
7442 2017-01-05  Bruno Haible  <bruno@clisp.org>
7444         lock: Provide guarantee to avoid writer starvation for rwlocks.
7445         The rationale is: 1) Read-preferring read-write locks are prone to
7446         writer starvation if the number of reader threads multiplied by the
7447         percentage of time they have the lock held is too high. 2) Write-
7448         preferring read-write locks are the only reliable way to avoid this.
7449         3) There have been reports of 'test-lock' hanging on glibc systems
7450         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
7451         and glibc indeed implements read-preferring rwlocks by default, see
7452         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
7453         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
7454         * m4/pthread_rwlock_rdlock.m4: New file.
7455         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7456         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
7457         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7458         of rwlock initialization on glibc systems without
7459         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7460         of rwlocks altogether on non-glibc systems without
7461         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7462         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
7463         * lib/glthread/lock.c [USE_POSIX_THREADS]
7464         (glthread_rwlock_init_for_glibc): New function.
7465         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
7466         comment.
7467         [USE_PTH_THREADS]: New implementation of rwlocks.
7468         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
7469         readers.
7470         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
7471         (Depends-on): Add 'extensions'.
7472         * tests/test-rwlock1.c: New file.
7473         * lock-tests (Files): Add it.
7474         (Depends-on): Add usleep.
7475         (Makefile.am): Add test-rwlock1 to the tests.
7477 2017-01-05  Bruno Haible  <bruno@clisp.org>
7479         thread: Fix pth port.
7480         * lib/glthread/thread.h (pth_init): Declare weak.
7481         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
7482         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
7483         function.
7485 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
7487         parse-datetime: fix debug message on lone year number
7488         Input dates such as
7489           date -d "Apr 11 22:59:00 2011"
7490         are parsed as date (Apr 11, with default year 2016), then time, then a
7491         number (2011). Based on the combination of previously seen tokens,
7492         'digits_to_date_time' determines 2011 to be a year value.
7493         This fixes the debug messages to correctly show the updated year.
7494         Before:
7495             $ date --debug -d 'Apr 11 22:59:00 2011'
7496             date: parsed date part: (Y-M-D) 2016-04-11
7497             date: parsed time part: 22:59:00
7498             date: parsed number part: today/this/now
7499         After:
7500             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
7501             date: parsed date part: (Y-M-D) 2016-04-11
7502             date: parsed time part: 22:59:00
7503             date: parsed number part: year: 2011
7504         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
7505         'debug_year_seen' member fields.
7506         (digits_to_date_time): Update 'year_seen' as needed.
7507         (debug_print_current_time): Inform about year updates.
7508         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
7510         parse-datetime: fix local timezone debug messages
7511         "Local timezones" are strings that affect only DST relative to the
7512         default timezone. The debug messages in parse-datetime.y printed
7513         wrong information when encountering local timezones.
7514         Examples:
7515         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
7516              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
7517              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
7518         When the default timezone relates to the zone strings, EET/EEST are
7519         parsed as local timezones (tLOCAL_ZONE), and only change the DST
7520         value (0/1, respectively):
7521              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
7522              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
7523         * lib/parse-datetime.y (debug_print_current_time): If local timezone
7524         was seen, inform about DST change, don't print actual timezone.
7525         (debug_strfdatetime): If local timezone was seen, use default timezone
7526         (and adjust as needed) instead of using incorrect timezone.
7527         (parse_datetime2): Use correct time-zone source string, and adjust
7528         default timezone as needed.
7530         parse-datetime: add debug warning about DST changes
7531         Incorrect date arithmetic due to daylight saving time (DST) are a
7532         common (false) bug report in coreutils.
7533         Detect two such cases and print a warning:
7534         1. year/month/day adjustments (performed on 'struct tm'),
7535            where 'mktime' returns a different isdst value.
7536         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
7537            where the result of 'localtime(3)' on the value will return a
7538            different isdst value.
7539         Note: DST changes could be harmless or unnoticeable.
7540         Examples (with 'TZ=America/New_York'):
7541         Unnoticeable: result is 2016-Dec-14
7542            $ date -d '2016-06-15 EDT + 6 months' +%b
7543            Dec
7544         Unnoticeable: result is 2016-Dec-15 11:00:00
7545            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
7546            2016-12-15
7547         This is unexpected:
7548            $ date -d '2016-06-01 EDT + 6 months' +%F
7549            2016-11-30
7550         The new debug warnings will show:
7551            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
7552            ...
7553            date: warning: daylight saving time changed after date adjustment
7554            ...
7555         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
7556         print an appropriate warning message.
7558         parse-datetime: add debug warning about date arithmetic
7559         Date arithmetic are done directly on the fields of 'struct tm',
7560         which can result in invalid dates. Normalization with 'mktime(3)'
7561         will then produce a different date - which might cause unexpected
7562         results.
7563         Examples:
7564           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
7565           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
7566         Note that date normalization is not inherently wrong and not rejected,
7567         as it has legitimate uses:
7568           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
7569         If the user asked to adjust months but 'mday' changed,
7570         or user asked to adjust years but 'month' changed - warn about it.
7571             $ ./src/date --debug -d '2016-10-31 - 1 month'
7572             ...
7573             date: warning: when adding relative months/years, \
7574                            it is recommended to specify the 15th of the month
7575             ...
7576             date: warning: month/year adjustment resulted in shifted dates:
7577             date:      adjusted Y M D: 2016 09 31
7578             date:    normalized Y M D: 2010 10 01
7579             ...
7580         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
7581         a warning message. Improve recommendation of when to use 15 of the
7582         month or noon for date arithmetic.
7584         parse-datetime: fix debug message of relative part after timezone
7585         Relative part (e.g '+8 days') after a timezone string was not
7586         reported (was only reported after a timezone number). Due to the
7587         parser's structure, timezone strings with numbers were handled
7588         separately.
7589         before:
7590              # Timezone number + relative part: OK
7591              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
7592              ...
7593              date: parsed relative part: -8 day(s)
7594              # Timezone string + relative part: missing
7595              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7596              [ missing message ]
7597         After: messages are printed in both cases.
7598         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7600         parse-datetime: fix incorrect debug message on lone number
7601         A lone number is an absolute value, not a relative time part.
7602         before:
7603            $ date --debug -d '20130101'
7604            date: parsed number part: today/this/now
7605         After:
7606            $ ./src/date --debug -d '20130101'
7607            date: parsed number part: (Y-M-D) 2013-01-01
7608         * lib/parse-datetime.y ('item'/'number' tokens): Call
7609         'debug_print_current_time' instead of 'debug_print_relative_time'.
7611 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7613         doc: modernize for C11 etc.
7614         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7615         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7616         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7618         dfa: prefer functions to FETCH_WC macro
7619         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7620         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7621         wint_t result into DFA->lex.wctok instead of to a separate arg.
7622         All callers changed.  Move more local decls closer to where
7623         they're used.
7625         dfa: narrow more local var scopes
7626         * lib/dfa.c: Move more local decls to be more local.
7628         dfa: remove duplicate assignment
7629         Problem reported by Bruno Haible in:
7630         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7631         * lib/dfa.c (parse_bracket_exp): Simplify.
7633 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7635         dfa: simplify constraint-dependency checking
7636         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7637         (prev_other_constraint): Remove.
7638         (prev_newline_dependent, prev_letter_dependent):
7639         Simplify, to avoid an unnecessary bitwise AND operation.
7641         dfa: prefer functions and constants to macros
7642         * lib/dfa.c: Prefer constants to macros where either will do.
7643         (streq, isasciidigit, newline_constraint)
7644         (letter_constraint, other_constraint, succeeds_in_context)
7645         (prev_newline_constraint, prev_letter_constraint)
7646         (prev_other_constraint, prev_newline_dependent)
7647         (prev_letter_dependent, accepting, accepts_in_context):
7648         Now static functions instead of function-like macros.
7649         Use lower-case names accordingly.  All uses changed.
7651         dfa: narrow more local var scopes
7652         * lib/dfa.c: Move some more local decls down to nearer where
7653         they're needed.
7655 2016-12-31  Jim Meyering  <meyering@fb.com>
7657         dfa: narrow the scope of many local variables
7658         * lib/dfa.c: Now that we are no longer constrained to c89, move
7659         declarations of many variables (often indices) "down" into the
7660         scope(s) where used or to the point of definition.  This is a
7661         no-semantic-change diff.
7663 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7665         version-etc: new year
7666         * build-aux/gendocs.sh (version):
7667         * doc/gendocs_template:
7668         * doc/gendocs_template_min:
7669         * doc/gnulib.texi:
7670         * lib/version-etc.c (COPYRIGHT_YEAR):
7671         Update copyright dates by hand in templates and the like.
7672         * all files: Run 'make update-copyright'.
7674 2016-12-31  Eric Blake  <eblake@redhat.com>
7676         do-release-commit-and-tag: avoid shell syntax error
7677         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7678         contain spaces when rebasing.
7680         maint.mk: hoist gnulib_dir definition earlier
7681         * top/maint.mk (gnulib_dir): Move near top of file.
7683 2016-12-31  Jim Meyering  <meyering@fb.com>
7685         maint.mk: do not always evaluate intprops-related shell
7686         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7687         using gnulib_dir undefined (gnulib_dir is defined later in the
7688         file, which will be fixed separately), and besides, there is no
7689         need to incur the cost of this shell invocation for every single
7690         use of this .mk file.  Reported by Eric Blake in
7691         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7693 2016-12-30  Jim Meyering  <meyering@fb.com>
7695         maint.mk: improve sc_prohibit_intprops_without_use
7696         * top/maint.mk (_intprops_names): Don't hard-code the list of
7697         symbol names.  Instead, derive it on the fly.
7699 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7701         dfa: shorten sbit, success
7702         * lib/dfa.c (struct regex_syntax.sbit):
7703         (struct dfa.success): Use char, not int, for array elements, since
7704         they are all in the range 0..7.
7706         dfa: simplify multibyte_prop etc.
7707         This follows up on a change made when dfa.c was in grep, namely grep
7708         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7709         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7710         That earlier simplification allows for some more simplification
7711         and trimming down here.
7712         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7713         (struct lexer_state): New mamber brack.
7714         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7715         since they must be in the range 0..3 now.
7716         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7717         the brack member now supersedes them.
7718         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7719         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7720         (dfaparse): Remove unnecessary initializations of already-0 storage.
7721         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7722         (dfassbuild): No need to clear sup->mbcsets.
7724         dfa: minor performance tweak
7725         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7727         dfa: wrap charclass inside a struct
7728         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7729         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7730         about 5% faster, where list.txt is generated by 'aspell dump
7731         master | head -n 100000 >list.txt'.  See Bug#22239.
7732         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7733         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7734         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7735         Adjust to this, e.g., by using charclass * rather than charclass.
7736         All callers changed as needed.
7737         (copyset): Remove.  All uses changed to simple assignment.
7738         (parse_bracket_exp): Use zeroset instead of memset.
7740 2016-12-30  Jim Meyering  <meyering@fb.com>
7742         maint.mk: update list of intprops.h symbol names
7743         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
7744         This avoids a false failure of the sc_prohibit_intprops_without_use
7745         rule in grep.
7747 2016-12-29  Eric Blake  <eblake@redhat.com>
7749         getopt: fix parallel test failure
7750         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
7751         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
7752         * tests/test-getopt-main.h (main): Use different file names
7753         in case test-getopt-gnu and test-getopt-posix run in parallel.
7755 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7757         xalloc: x2nrealloc check for ptrdiff_t overflow
7758         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
7759         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
7761 2016-12-24  Bruno Haible  <bruno@clisp.org>
7763         lock test: Fix performance problem on multi-core machines.
7764         * tests/test-lock.c (USE_VOLATILE): New macro.
7765         (struct atomic_int): New type.
7766         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
7767         functions.
7768         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
7769         as 'struct atomic_int'.
7770         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
7771         reclock_checker_thread, test_recursive_lock): Use the new functions.
7772         Reported by Eric Blake in
7773         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
7774         and by Pádraig Brady in
7775         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
7777 2016-12-19  Bruno Haible  <bruno@clisp.org>
7779         vma-iter: Fix endless loop on 64-bit Windows.
7780         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
7781         'unsigned long'.
7783 2016-12-19  Bruno Haible  <bruno@clisp.org>
7785         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
7786         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
7787         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
7788         Invoke gt_TYPE_WINT_T instead.
7789         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
7790         * modules/stdint (Files): Add m4/wint_t.m4.
7791         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7792         * modules/wctype-h (Makefile.am): Likewise.
7793         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
7794         not only on MSVC.
7795         * lib/wctype.in.h (wint_t): Likewise.
7797 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7799         getopt-posix-tests: fix Makefile typo
7800         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
7801         Fix typo: the last ‘_’ was missing in the name.
7802         I suspect that the typo explains this build failure:
7803         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
7804         although I can’t reproduce the problem on Solaris 10 sparc.
7806 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7808         dfa: improve worst-case 'replace' performance
7809         See my note in Bug#22357#71.
7810         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
7811         (merge_constrained): New function, which is like
7812         the old 'merge' function, except with a new argument C2.
7813         Simplify the body by avoiding the need for different sections
7814         of code depending on whether one input is exhausted.
7815         (merge): Use the new function.
7816         (delete): Return the constraint of the deleted position,
7817         not the entire position.  Caller changed.
7818         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
7820 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7822         dfa: performance improvement for removal of epsilon closure
7823         See Bug#22357#32.
7824         * lib/dfa.c (delete): Use binary search to find deleted index.
7825         (replace): New function.  It replaces a position with the followed set.
7826         (epsclosure): Replace it with a new algorithm.  Update caller.
7828 2016-12-18  Bruno Haible  <bruno@clisp.org>
7830         Split tests for getopt-posix and getopt-gnu.
7831         * tests/test-getopt-posix.c: New file.
7832         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
7833         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
7834         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
7835         GNULIB_TEST_GETOPT_GNU.
7836         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
7837         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
7838         (Makefile.am): Test test-getopt-posix instead of test-getopt.
7839         * modules/getopt-gnu-tests: New file.
7840         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
7842 2016-12-18  Bruno Haible  <bruno@clisp.org>
7844         posix-modules: Add options for specific platforms.
7845         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
7846         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
7847         Invoke func_tmpdir. Filter out the excludes.
7849 2016-12-18  Bruno Haible  <bruno@clisp.org>
7851         getopt: Fix link error for users of getopt() in <unistd.h>.
7852         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
7853         __need_getopt is defined. Undefine all macros before defining them.
7854         * modules/getopt (Include): Clarify that including <unistd.h> is also
7855         OK.
7856         * tests/test-getopt.c: Add comment.
7858 2016-12-17  Bruno Haible  <bruno@clisp.org>
7860         getaddrinfo tests: Avoid compilation error on MSVC.
7861         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7862         getaddrinfo on native Windows.
7864 2016-12-17  Bruno Haible  <bruno@clisp.org>
7866         getlogin, getlogin_r: Fix link errors on MSVC.
7867         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7868         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7869         (Link): New section.
7870         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7871         (configure.ac): Require gl_LIB_GETLOGIN.
7872         (Link): New section.
7873         * NEWS: Mention the new link requirements.
7874         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7875         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7877 2016-12-17  Bruno Haible  <bruno@clisp.org>
7879         Un-deprecate the 'progname' module.
7880         * NEWS: Describe the appropriate use-cases of 'progname' versus
7881         'getprogname'. Based on discussion summary at
7882         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7884 2016-12-17  Bruno Haible  <bruno@clisp.org>
7886         Reorganize NEWS a bit.
7887         * NEWS: Move some not so important changes away from section
7888         "Important Notes".
7890 2016-12-17  Bruno Haible  <bruno@clisp.org>
7892         tanhf: Avoid redefinition error on MSVC.
7893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7894         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7895         may be defined as an inline function.
7896         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7897         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7899 2016-12-17  Bruno Haible  <bruno@clisp.org>
7901         tanf: Avoid redefinition error on MSVC.
7902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7903         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7904         may be defined as an inline function.
7905         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7906         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7908 2016-12-17  Bruno Haible  <bruno@clisp.org>
7910         sqrtf: Avoid redefinition error on MSVC.
7911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7912         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7913         may be defined as an inline function.
7914         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7915         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7917 2016-12-17  Bruno Haible  <bruno@clisp.org>
7919         sinhf: Avoid redefinition error on MSVC.
7920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
7921         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
7922         may be defined as an inline function.
7923         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
7924         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
7926 2016-12-17  Bruno Haible  <bruno@clisp.org>
7928         sinf: Avoid redefinition error on MSVC.
7929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
7930         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
7931         may be defined as an inline function.
7932         * modules/math (Makefile.am): Substitute REPLACE_SINF.
7933         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
7935 2016-12-17  Bruno Haible  <bruno@clisp.org>
7937         logf: Avoid redefinition error on MSVC.
7938         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
7939         may be defined as an inline function.
7941 2016-12-17  Bruno Haible  <bruno@clisp.org>
7943         log10l: Avoid redefinition error on MSVC.
7944         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
7945         may be defined as an inline function.
7947 2016-12-17  Bruno Haible  <bruno@clisp.org>
7949         log10f: Avoid redefinition error on MSVC.
7950         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
7951         may be defined as an inline function.
7953 2016-12-17  Bruno Haible  <bruno@clisp.org>
7955         hypotl: Avoid redefinition error on MSVC.
7956         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
7957         may be defined as an inline function.
7959 2016-12-17  Bruno Haible  <bruno@clisp.org>
7961         hypotf: Avoid redefinition error on MSVC.
7962         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
7963         may be defined as an inline function.
7965 2016-12-17  Bruno Haible  <bruno@clisp.org>
7967         fmodl: Avoid redefinition error on MSVC.
7968         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
7969         may be defined as an inline function.
7971 2016-12-17  Bruno Haible  <bruno@clisp.org>
7973         fmodf: Avoid redefinition error on MSVC.
7974         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
7975         may be defined as an inline function.
7977 2016-12-17  Bruno Haible  <bruno@clisp.org>
7979         expf: Avoid redefinition error on MSVC.
7980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
7981         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
7982         may be defined as an inline function.
7983         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
7984         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
7986 2016-12-17  Bruno Haible  <bruno@clisp.org>
7988         coshf: Avoid redefinition error on MSVC.
7989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
7990         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
7991         may be defined as an inline function.
7992         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
7993         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
7995 2016-12-17  Bruno Haible  <bruno@clisp.org>
7997         cosf: Avoid redefinition error on MSVC.
7998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
7999         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
8000         may be defined as an inline function.
8001         * modules/math (Makefile.am): Substitute REPLACE_COSF.
8002         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
8004 2016-12-17  Bruno Haible  <bruno@clisp.org>
8006         atan2f: Avoid redefinition error on MSVC.
8007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
8008         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
8009         may be defined as an inline function.
8010         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
8011         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
8013 2016-12-17  Bruno Haible  <bruno@clisp.org>
8015         atanf: Avoid redefinition error on MSVC.
8016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
8017         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
8018         may be defined as an inline function.
8019         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
8020         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
8022 2016-12-17  Bruno Haible  <bruno@clisp.org>
8024         asinf: Avoid redefinition error on MSVC.
8025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
8026         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
8027         may be defined as an inline function.
8028         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
8029         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
8031 2016-12-17  Bruno Haible  <bruno@clisp.org>
8033         acosf: Avoid redefinition error on MSVC.
8034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
8035         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
8036         may be defined as an inline function.
8037         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
8038         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
8040 2016-12-17  Bruno Haible  <bruno@clisp.org>
8042         Avoid redefinition errors on MSVC.
8043         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
8044         the function may be defined as an inline function.
8045         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
8046         the function may be defined as an inline function.
8048 2016-12-17  Bruno Haible  <bruno@clisp.org>
8050         Avoid redefinition errors on MSVC.
8051         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
8052         * lib/unistd.in.h: Include <stdio.h> when necessary.
8054 2016-12-17  Bruno Haible  <bruno@clisp.org>
8056         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
8057         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
8058         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
8059         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
8060         WINT_MAX.
8062 2016-12-17  Bruno Haible  <bruno@clisp.org>
8064         Avoid autoconf warning.
8065         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
8066         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
8068 2016-12-17  Bruno Haible  <bruno@clisp.org>
8070         fpending: Revert workaround against Emacs bug.
8071         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
8072         The Emacs bug is fixed by Eli Zaretskii in
8073         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
8075 2016-12-17  Bruno Haible  <bruno@clisp.org>
8077         getlogin_r tests: Port to mingw.
8078         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
8079         regression introduced on 2014-05-19.
8081 2016-12-17  Bruno Haible  <bruno@clisp.org>
8083         getlogin: Port to newer mingw.
8084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
8085         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
8086         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
8087         HAVE_GETLOGIN.
8088         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
8089         HAVE_GETLOGIN.
8090         * doc/posix-functions/getlogin.texi: Mention the issue.
8091         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
8092         regression introduced on 2014-05-14.
8094 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8096         builtin-expect: improve port to IBM XL C
8097         Problem reported for z/OS by Daniel Richard G. in:
8098         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
8099         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8100         Test for <builtins.h> directly.
8102         builtin-expect: port to IBM XL C
8103         Problem reported for z/OS by Daniel Richard G. in:
8104         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
8105         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8106         Also allow __builtin_expect defined via a standard include file.
8108         regex: fix dependency
8109         Problem reported by Bruno Haible in:
8110         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
8111         * modules/regex: Depend on builtin-expect.
8113         builtin-expect: new module
8114         Fix fnmatch to use it.
8115         Problem reported for z/OS by Daniel Richard G.
8116         * lib/fnmatch.c (__builtin_expect):
8117         * lib/glob.c (__builtin_expect):
8118         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
8119         * lib/memmem.c (__builtin_expect) [!_LIBC]:
8120         * lib/scandir.c (__builtin_expect):
8121         * lib/strstr.c (__builtin_expect) [!_LIBC]:
8122         Remove macro; config.h now does this.
8123         * lib/gl_anytreehash_list1.h (add_to_bucket):
8124         * lib/regex_internal.h (BE):
8125         Assume __builtin_expect.
8126         * m4/builtin-expect.m4, modules/builtin-expect: New files.
8127         * modules/avltreehash-list, modules/fnmatch, modules/glob:
8128         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
8129         * modules/scandir, modules/strstr-simple:
8130         Depend on builtin-expect.
8132 2016-12-15  Bruno Haible  <bruno@clisp.org>
8134         init.sh: Add possibility to not delete temporary files.
8135         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
8136         to yes, don't erase the temporary directory.
8138 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8140         regex: fix integer-overflow bug in never-used code
8141         Problem reported by Clément Pit–Claudel in:
8142         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
8143         * lib/regex_internal.h: Include intprops.h.
8144         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
8145         behavior on integer overflow.
8146         * modules/regex (Depends-on): Add intprops.
8148         fpending: fix port to MinGW on Emacs
8149         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
8150         Problem reported by Eli Zaretskii in:
8151         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
8152         Is Plan 9 still a valid porting target, anyway?
8154 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8156         safe-alloc: use xalloc-oversized
8157         * lib/safe-alloc.c: Include xalloc-oversized.h.
8158         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
8159         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
8161         xalloc: do not exceed PTRDIFF_MAX
8162         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
8163         xalloc_oversized check, since objects larger than PTRDIFF_MAX
8164         bytes have pointer-subtraction problems.
8166         malloca: do not exceed PTRDIFF_MAX
8167         * lib/malloca.h: Include xalloc-oversized.
8168         (nmalloca): Use xalloc_oversized instead of rolling our own.
8169         * modules/malloca (Depends-on):
8170         * modules/relocatable-prog-wrapper (Depends-on):
8171         Add xalloc-oversized.
8173         quotearg: pacify GCC better
8174         * modules/quotearg (Depends-on): Add minmax, stdint.
8175         * lib/quotearg.c: Include minmax.h, stdint.h.
8176         (nslots): Now int, as there seems little point to going to extra
8177         work merely to support the INT_MAX slot, which nobody ever uses.
8178         (quotearg_n_options): Redo size-overflow checks to pacify GCC
8179         and to catch (mostly-theoretical) ptrdiff_t problems too.
8180         This can be done via one comparison.
8182 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8184         xalloc-oversized: check for PTRDIFF_MAX too
8185         This avoids undefined behavior when subtracting pointers to
8186         objects containing more than PTRDIFF_MAX bytes.
8187         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
8188         Also return 1 if the result would exceed PTRDIFF_MAX>
8189         * modules/xalloc-oversized (Depends-on):
8190         Add stdint.
8192         dfa: fix glitches in previous commit
8193         Sorry, I don't know how I managed to commit the wrong version.
8194         * lib/dfa.c (MIN): Move up.
8195         (xpalloc): Now static.
8197         dfa: fix some unlikely integer overflows
8198         I found these while reviewing the recent Coverity-related fix.
8199         This patch changes part of dfa.c to prefer ptrdiff_t instead of
8200         size_t for object counts.  Using ptrdiff_t is the style typically
8201         used in Emacs; although it wastes a sign bit as sizes can never be
8202         negative, it makes -fsanitize=undefined more likely to catch
8203         integer overflows in index calculation, and nowadays the upside is
8204         typically more important than the downside.  Although perhaps the
8205         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
8206         of dfa.c already does, since it uses state_num which is signed),
8207         that is a bigger change and is not needed to fix the bugs I found.
8208         * lib/dfa.c: Include stdint.h and intprops.h.
8209         (TOKEN_MAX): New macro.
8210         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
8211         (charclass_index, parse_bracket_exp, addtok, insert, merge)
8212         (realloc_trans_if_necessary, free_mbdata):
8213         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
8214         This is safe because xpalloc checks that the sizes do not exceed
8215         either SIZE_MAX or PTRDIFF_MAX.
8216         (xpalloc): New function, mostly taken from Emacs.
8217         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
8218         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
8219         (charclass_index): Check for integer overflow in computing
8220         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
8221         added to it later.
8222         (alloc_position_set): Check for integer overflow.  On typical
8223         platforms this check has zero overhead, since the constant
8224         expression is false.
8225         (realloc_trans_if_necessary):
8226         Remove assertion, which I hope Coverity no longer needs.
8228         * modules/dfa (Depends-on): Add intprops, stdint.
8230 2016-12-12  Jim Meyering  <meyering@fb.com>
8232         dfa: add an assertion to avoid coverity false positive
8233         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
8234         warned that "newalloc1 - 2" could overflow.
8236 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
8238         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
8239         * dfa.h (DFA_CASE_FOLD): Remove.
8240         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
8242 2016-12-13  John W. Eaton  <gnu@jweaton.org>
8244         link: fix test to declare use of rename()
8245         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
8246         -Werror=implicit-function-declaration
8248 2016-12-12  Bruno Haible  <bruno@clisp.org>
8250         fpending: Port to native Windows with MSVC.
8251         * lib/fpending.c: Include stdio-impl.h.
8252         (__fpending): Include all known implementations. Err out if it's not
8253         ported.
8254         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
8255         * modules/fpending (Files): Add lib/stdio-impl.h.
8256         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
8258 2016-12-12  Bruno Haible  <bruno@clisp.org>
8260         stdioext: Port to native Windows with MSVC.
8261         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
8262         (struct _gl_real_FILE): New type.
8263         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
8264         Windows.
8265         * lib/fbufmode.c (fbufmode): Add code for native Windows.
8266         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
8267         other SystemV derived implementations.
8268         * lib/fpurge.c (fpurge): Likewise.
8269         * lib/freadable.c (freadable): Likewise.
8270         * lib/freadahead.c (freadahead): Likewise.
8271         * lib/freading.c (freading): Likewise.
8272         * lib/freadptr.c (freadptr): Likewise.
8273         * lib/freadseek.c (freadptrinc): Likewise.
8274         * lib/fseeko.c (fseeko): Likewise.
8275         * lib/fseterr.c (fseterr): Likewise.
8276         * lib/fwritable.c (fwritable): Likewise.
8277         * lib/fwriting.c (fwriting): Likewise.
8278         Reported by Gisle Vanem <gvanem@yahoo.no>.
8280 2016-12-11  Jim Meyering  <meyering@fb.com>
8282         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
8283         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
8284         to work with most shells, but not with the one provided by many
8285         Solaris 10 systems, so running configure with such a /bin/sh evokes
8286         e.g., "./configure: syntax error at line 33602: `(' unexpected".
8287         Reported by Assaf Gordon in
8288         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
8290 2016-12-10  Bruno Haible  <bruno@clisp.org>
8292         threadlib: Optimize out runtime test on Solaris >= 10.
8293         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
8294         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
8295         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
8297 2016-12-10  Bruno Haible  <bruno@clisp.org>
8299         stdint: Update doc about Solaris 9.
8300         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
8302 2016-12-09  Bruno Haible  <bruno@clisp.org>
8304         c-ctype tests: Fix link error on Solaris 9.
8305         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
8306         Reported at <https://savannah.gnu.org/bugs/?46827>.
8308 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8310         dfa: fix performance bug that recomputes trans
8311         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
8312         25 on-demand changes.  The bug caused build_state to reset all
8313         d->trans elements to -2 even when d->trans was already non-null.
8314         Use C99 style decls after statements in this function.
8316         same-inode: port to MinGW
8317         Here st_ino is always 0, so change the definition of SAME_INODE so
8318         that 1 means the two files are the same, 0 with st_ino != 0 means
8319         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
8320         reported by Bruno Haible (Bug#25146).
8321         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
8322         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
8324 2016-12-04  Bruno Haible  <bruno@clisp.org>
8326         javacomp-script: Support Java 7 and 8.
8327         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
8328         target-version 1.7, 1.8.
8330 2016-12-02  Daiki Ueno  <ueno@gnu.org>
8332         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
8333         GPLv2" rewriting.
8335 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
8337         * gnulib-tool (func_import): Adhere to the license guideline when
8338         rewriting the license text to "LGPLv3+ or GPLv2":
8339         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
8341 2016-12-02  Bruno Haible  <bruno@clisp.org>
8343         localcharset: Avoid theoretical buffer overrun.
8344         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
8345         return value from setlocale if it would lead to a buffer overrun.
8347 2016-12-01  Bruno Haible  <bruno@clisp.org>
8349         Relicense some modules under LGPLv2+.
8350         Kevin Cernekee's approval is in
8351         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
8352         * modules/fseterr (License): Change to LGPLv2+.
8353         * modules/mbchar (License): Likewise.
8354         * modules/mbiter (License): Likewise.
8355         * modules/mbsnlen (License): Likewise.
8356         * modules/wcwidth (License): Likewise.
8358 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8360         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
8361         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
8362         OS/2 kLIBC.
8364 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8366         alphasort, scandir: Port to OS/2 kLIBC
8367         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
8368         declaration.
8369         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
8371 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8373         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
8374         * lib/relocatable.c (relocate): Do not touch pathname if it is started
8375         with '/@unixroot'.
8377 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8379         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
8380         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
8381         OS/2 kLIBC unless TCPV40HDRS is defined.
8383 2016-11-29  Jim Meyering  <meyering@fb.com>
8385         dfa: avoid new infinite loop
8386         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
8387         * lib/dfa.c (dfastate): When constructing a new state table, we could
8388         initially declare that we had found a match, and later find that
8389         constraints eliminate that possibility, yet continue to use the
8390         now stale "matched" indicator.  That would lead to an infinite loop.
8391         The solution is to update "matched" when necessary.
8392         Introduced by commit v0.1-983-g403adf1.
8394 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8396         dfa: avoid match middle in multibyte character
8397         * lib/dfa.c (transit_state): If fails in matching single byte characters
8398         on a state including period expression in non-UTF8 multibyte locales,
8399         skip trailing bytes.
8400         (dfa_supported): Revert previous change.
8402 2016-11-27  Jim Meyering  <meyering@fb.com>
8404         dfa: avoid false match in non-UTF8 multibyte locales
8405         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
8406         as "not supported" so that callers will resort to using regex-based
8407         matcher.  This will surely hurt performance, but correctness trumps
8408         performance here, and the affected locales are less and less relevant,
8409         these days.  See grep's bug report https://bugs.gnu.org/24975.
8411 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
8413         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
8414         * lib/ptsname_r.c: Include the appropriate headers.
8415         [__sun]: Delete sys/sysmacros.h include.
8416         [_AIX || __osf__]: Likewise.
8417         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
8419 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8421         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
8422         * lib/md4.c (md4_process_bytes): The existing define is made internal
8423         in recent versions of glibc, so also use this new public define.
8424         * lib/md5.c (md5_process_bytes): Likewise.
8425         * lib/sha1.c (sha1_process_bytes): Likewise.
8426         * lib/sha256.c (sha256_process_bytes): Likewise.
8427         * lib/sha512.c (sha512_process_bytes): Likewise.
8429 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8431         maint: use a more standard return from mbrtowc test
8432         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
8433         from the test program as this often indicates an
8434         unhandled case in the test program.
8435         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
8436         (gl_MBRTOWC_SANITYCHECK): Likewise.
8437         (gl_MBRTOWC_NULL_ARG2): Likewise.
8438         (gl_MBRTOWC_NUL_RETVAL): Likewise.
8440 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8442         freopen: work around glibc bug with closed fd
8443         Work around glibc bug#15589, where freopen mishandles the case
8444         where stdin etc. are already closed.
8445         * doc/posix-functions/freopen.texi (freopen): Document the bug.
8446         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
8447         instead of __need_FILE, as the latter does not work with glibc.
8448         Include <fcntl.h>, for open flags.
8449         (rpl_freopen): Work around glibc bug.
8450         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
8451         * modules/freopen (Depends-on): Add fcntl-h.
8452         * tests/test-freopen.c (main): Test for bug.
8454 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8456         fnmatch: fix typo introduced on 2016-08-17
8457         This fixes the port to non-GCC compilers that lack __builtin_expect.
8458         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
8460         dfa: simplify with new function fillset
8461         * lib/dfa.c (fillset): New function.
8462         Use it for clarity when applicable.
8464         dfa: fix glitches with on-demand states
8465         Also, adjust commentary to better match new code.
8466         Some of these glitches predate the recent change.
8467         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
8468         only non-initial states.
8469         (dfastate): Rename locals to better match new roles.
8470         Move them into nested scopes if this is easy.
8471         Omit unnecessary calls to zeroset.
8472         Simplify test for whether to throw in the positions of state 0.
8473         Omit C99-ism (decl after statement) since Gawk still wants C89.
8474         (build_state): Omit unnecessary test and assignment.
8475         Fix some confusion that counted transition tables inaccurately
8476         and could cause a memory leak.
8477         (dfaexec_main): Redo to make it clearer to the compiler that
8478         -1 and -2 are the only negative state numbers here.
8480 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8482         dfa: addition of new state on demand
8483         * src/dfa.c (dfastate): Add argument UC, the current input character.
8484         Fill only a group including the character in transition table.
8485         (realloc_trans_if_necessary): Add the dummy state which means that a
8486         transition table is assigned but the next state is not assigned.
8487         (build_state): Return the next state.  All callers updated.
8488         (transit_state_singlebyte): If we get the dummy state,
8489         fill the transition table.
8490         (dfaexec_main): Handle the dummy state.
8491         (free_mbdata, dfafree): Consider the dummy state.
8493 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8495         srclist: sync with released gettext
8496         * config/srclist.txt: Set "release" option to the files under
8497         $GETTEXT.
8499 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8501         srclist: add "release" option
8502         * config/srclist.txt: Change the format so that the first column
8503         of each line points to the top-level directory of the source
8504         archive.
8505         * config/srclist-update: Accept "release" option that checks files
8506         from the most recently tagged revision in the source archive.
8508 2016-11-21  Bruno Haible  <bruno@clisp.org>
8510         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
8511         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8512         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
8513         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
8514         Inline and remove member function 'rpl ()' of the wrapper struct.
8516 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8518         dfa: fix logic typo
8519         Problem reported by Stephane Chazelas (Bug#24973).
8520         * lib/dfa.c (using_simple_locale): Fix typo that caused some
8521         non-simple locales like fr_FR to be treated as simple.
8523 2016-11-20  Jim Meyering  <meyering@fb.com>
8525         fix test driver leaks: exclude, malloc, realloc
8526         * tests/test-exclude.c (main): Fix trivial leak.
8527         * tests/test-malloc-gnu.c (main): Likewise.
8528         * tests/test-realloc-gnu.c (main): Likewise.
8529         With these changes, grep's tests are now leak free.
8530         I.e., running them with ASAN elicits no failure:
8531           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
8532             AM_LDFLAGS='-fsanitize=address -static-libasan' check
8534 2016-11-11  Bruno Haible  <bruno@clisp.org>
8536         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
8537         * modules/libunistring: (License): Change from LGPL to
8538         "LGPLv3+ or GPLv2".
8539         * modules/libunistring-optional: Likewise.
8540         * modules/unicase/*: Likewise.
8541         * modules/uniconv/*: Likewise.
8542         * modules/unictype/*: Likewise.
8543         * modules/unigbrk/*: Likewise.
8544         * modules/unilbrk/*: Likewise.
8545         * modules/uniname/*: Likewise.
8546         * modules/uninorm/*: Likewise.
8547         * modules/unistdio/*: Likewise.
8548         * modules/unistr/*: Likewise.
8549         * modules/uniwbrk/*: Likewise.
8550         * modules/uniwidth/*: Likewise.
8552 2016-11-12  Bruno Haible  <bruno@clisp.org>
8554         Relicense some modules under LGPLv2+.
8555         Paul Eggert's approval is in
8556         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
8557         Eric Blake's approval is in
8558         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
8559         Ludovic Courtès's approval is in
8560         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
8561         * modules/isnand-nolibm (License): Change to LGPLv2+.
8562         * modules/isnanf-nolibm (License): Likewise.
8563         * modules/isnanl-nolibm (License): Likewise.
8565 2016-11-19  Bruno Haible  <bruno@clisp.org>
8567         Relicense some modules under LGPLv2+.
8568         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
8569         modules/vasnprintf.
8570         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
8571         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
8572         All other significant changes to the files in lib/ of these modules
8573         are from me.
8574         * modules/memcmp2 (License): Change to LGPLv2+.
8575         * modules/amemxfrm (License): Likewise.
8576         * modules/fpieee (License): Likewise.
8577         * modules/fpucw (License): Likewise.
8578         * modules/frexp-nolibm (License): Likewise.
8579         * modules/frexpl-nolibm (License): Likewise.
8580         * modules/printf-frexp (License): Likewise.
8581         * modules/printf-frexpl (License): Likewise.
8582         * modules/printf-safe (License): Likewise.
8583         * modules/signbit (License): Likewise.
8585 2016-11-17  Bruno Haible  <bruno@clisp.org>
8587         Enable Unicode decoder safety unconditionally.
8588         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
8589         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
8590         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8591         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8592         * lib/unistr/u8-prev.c (u8_prev): Likewise.
8593         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8594         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8595         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8596         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8597         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8598         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8599         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8600         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8601         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8602         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8603         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8604         * lib/unistr/u32-next.c (u32_next): Likewise.
8605         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8606         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8607         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8608         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8609         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8610         CONFIG_UNICODE_SAFETY tests unconditionally.
8611         * tests/unistr/test-u32-mblen.c (main): Likewise.
8612         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8613         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8614         * tests/unistr/test-u32-next.c (main): Likewise.
8615         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8616         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8617         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8618         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8619         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8620         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8621         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8622         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8623         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8624         * lib/unistr/u16-check.c (u16_check): Update comment.
8625         * NEWS: Mention the changes that callers should be aware of.
8627 2016-11-19  Bruno Haible  <bruno@clisp.org>
8629         relocatable-prog-wrapper: Fix breakage on Cygwin.
8630         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8631         (Depends-on): Remove intprops.
8632         * lib/relocwrapper.c: Update dependency tree.
8633         (strerror): Undefine.
8634         * build-aux/install-reloc (func_create_wrapper): Do not compile
8635         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8637 2016-11-19  Bruno Haible  <bruno@clisp.org>
8639         strerror: Make it compile in C++ mode.
8640         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8642 2016-11-15  Pedro Alves  <palves@redhat.com>
8644         sys_time: add gnulib::timeval for C++
8645         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8646         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8647         timeval macro.
8649 2016-11-14  Pedro Alves  <palves@redhat.com>
8651         snippet/c++defs: fix real-floating arg functions in C++ mode
8652         Also, define isfinite, isinf, isnan, signbit in the gnulib
8653         namespace instead of in the global namespace.
8654         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8655         (_GL_END_NAMESPACE): New.
8656         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8657         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8658         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8659         instead of in the global namespace.
8660         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8661         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8662         of in the global namespace.
8664 2016-11-13  Jim Meyering  <meyering@fb.com>
8666         strftime: don't use __THROW
8667         Each use of __THROW would provoke this from gcc-7-to-be:
8669           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8670             on unit local functions [-Wattributes]
8671           static int iso_week_days (int, int) __THROW;
8672           ^~~~~~
8673         * lib/strftime.c (__THROW): Don't define.
8674         Remove each use of __THROW.
8675         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8676         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8678 2016-11-14  Paul Eggert  <eggert@union>
8680         obstack: port to gcc -fcheck-pointer-bounds
8681         Problem found by 'make check' failure on bleeding-edge coreutils
8682         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8683         6.2.0-5ubuntu12), configured via "./configure
8684         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8685         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8686         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8687         New macro, copied from fts_.h.
8688         (struct _obstack_chunk.contents): Use it.
8690 2016-11-14  Eric Blake  <eblake@redhat.com>
8692         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8693         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8694         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8696 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8698         strptime: fix compile error in recent change
8699         * lib/strptime.c (__strptime_internal): Fix ported code.
8701 2016-11-11  Bruno Haible  <bruno@clisp.org>
8703         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8704         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8705         (func_import): Extend determination of license_incompatibilities.
8706         (func_create_testdir): Extend table of license compatibility. Handle
8707         also the licenses GPLv3+, GPL, LGPLv3+.
8709 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8711         strftime: tune %q
8712         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8714         Merge strftime.c changes from glibc
8715         This incorporates:
8716         2007-10-16 [BZ #5184] Add tzset_called argument
8717         2008-06-13 [BZ #6612] pass reference to tzset_called around
8718         2009-10-30 Implement Burmese language locale for Myanmar
8719         2010-01-09 Add support for XPG7 testing
8720         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8721         2015-10-20 Convert miscellaneous function definitions to prototype style
8722         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8723         it anyway and this lessens the difference between gnulib and glibc.
8724         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8725         (__THROW): Define if standard headers do not.
8726         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8727         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8728         Declare with __THROW.
8729         (__strftime_internal): Rename from strftime_case_. Add arg for
8730         whether tzset is called.  All uses changed.  Call tzset at most
8731         once.  Allow %OC, for Burmese.
8732         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8733         Don't assume values are in range.
8735 2016-11-12  Eric Blake  <eblake@redhat.com>
8737         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8738         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8739         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8740         different value.
8742 2006-11-12  Pedro Alves  <palves@redhat.com>
8744         Fix gnulib C++ namespace support and std::frexp
8745         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
8746         _GL_CXXALIASWARN.
8748 2006-11-12  Pedro Alves  <palves@redhat.com>
8750         GNULIB_NAMESPACE::func need not pull in rpl_func
8751         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8752         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
8753         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
8754         struct instead of a function pointer.
8756 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
8758         manywarnings: fix -Wno-missing-field-initializers detection
8759         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
8760         to be independent of -Wunused-variable.  I.E. ensure the latter
8761         warning doesn't occur so that detection of the former is accurate.
8763 2016-11-05  Pádraig Brady  <pbrady@fb.com>
8765         strftime,strptime: support %q to represent the quarter
8766         * lib/strftime.c (strftime_case_): Add %q case.
8767         * lib/strptime.c (__strptime_internal): Likewise.
8768         * tests/test-strftime.c (quarter_test): A new test case.
8770 2016-11-03  Eric Blake  <eblake@redhat.com>
8772         bootstrap: Fix get_version() for AIX 5.3
8773         * build-aux/bootstrap (get_version): Factor out sed script, since
8774         indented comments choke AIX 5.3 sed.
8775         Reported-by: Michael Felt <aixtools@gmail.com>
8777 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8779         intprops: port to older XL C
8780         Problem reported by Alexander Samoilov in:
8781         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
8782         http://savannah.nongnu.org/bugs/?49448
8783         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
8784         Define to 1 only for XL C 12.1 or later, since this bug
8785         occurs in XL C for AIX 6.0 but not in 12.1.
8787 2016-11-02  Pádraig Brady  <P@draigBrady.com>
8789         backupfile: initialize default suffix within the implementation
8790         * lib/backupfile.c (find_backup_file_name): Initialize the
8791         global variable here, to simplify usage, and to only call
8792         getenv() when needed.
8794 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8796         futimens: remove FIXME for old Linux kernels
8797         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
8798         this in 2012" FIXME, like that for utimensat.
8800         utimensat: remove FIXME for old Linux kernels
8801         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
8802         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
8803         this in 2012" FIXME, by assuming the file system bug is absent
8804         unless demonstrated to be present.  We no longer need to worry
8805         about Linux kernel 2.6.32 when building with newer kernels.
8807 2016-10-16  Bruno Haible  <bruno@clisp.org>
8809         qsort_r: Fix macrology for platforms that lack the function.
8810         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
8811         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
8812         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
8813         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
8814         not exist.
8815         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
8816         the function exists.
8817         * modules/qsort_r: Add comments.
8819 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8821         sys_types: fix Texinfo typos
8822         * doc/glibc-functions/gnu_dev_major.texi:
8823         * doc/glibc-functions/gnu_dev_makedev.texi:
8824         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
8826 2016-10-26  John David Anglin  <dave.anglin@bell.net>
8828         getprogname: port to HP-UX
8829         See Bug#24805.
8830         * lib/getprogname.c (getprogname) [__hpux]: Port.
8831         * tests/test-getprogname.c (STREQ) [__hpux]:
8832         Special-case for HP-UX limitations on program name length.
8834 2016-10-20  Bruno Haible  <bruno@clisp.org>
8836         Update doc about target platforms.
8837         * doc/gnulib-intro.texi (Target Platforms): Update list.
8839 2016-10-15  Bruno Haible  <bruno@clisp.org>
8841         opendir, readdir, closedir: Relicense under LGPLv2+.
8842         * modules/opendir (License): Change to LGPLv2+.
8843         * modules/readdir (License): Likewise.
8844         * modules/closedir (License): Likewise.
8846 2016-10-16  Bruno Haible  <bruno@clisp.org>
8848         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
8850         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
8851         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
8852         HAVE_DECL_STRERROR_R.
8854 2016-10-16  Bruno Haible  <bruno@clisp.org>
8856         Make the 'argp' module work without the 'error' module.
8857         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8859 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8861         diffseq: restore TOO_EXPENSIVE heuristic
8862         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8863         (Bug#24715).  The simplest solution is to restore the
8864         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8865         using a higher threshold to avoid Bug#16848 on smaller files.
8866         * lib/diffseq.h (struct context): Restore member too_expensive.
8867         (struct partition): Restore members lo_minimal, hi_minimal.
8868         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8869         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8870         1993 to make 'diff' run faster (but not as well) on large inputs,
8871         but use a threshold of 4096 instead of the old 256.
8872         * lib/fstrcmp.c (strcmp_bounded):
8873         * lib/git-merge-changelog.c (compute_differences):
8874         Adjust to diffseq.h changes.
8876 2016-10-22  Bruno Haible  <bruno@clisp.org>
8878         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8879         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8880         declaration yet, define ICONV_CONST to empty.
8882 2016-10-15  Bruno Haible  <bruno@clisp.org>
8884         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8885         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8886         module.
8888 2016-10-16  Bruno Haible  <bruno@clisp.org>
8890         system-quote tests: Avoid compiler warning on AIX.
8891         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8892         <stdio.h> does.
8894 2016-10-16  Bruno Haible  <bruno@clisp.org>
8896         Fix some "gcc -Wall" warnings.
8897         * tests/test-ffsl.c (main): Use variable x, not i.
8898         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8899         freopen.
8900         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8901         of sethostname.
8903 2016-10-16  Bruno Haible  <bruno@clisp.org>
8905         gnulib-tool: Make --create-testdir on all modules work again.
8906         * gnulib-tool (func_create_testdir): Don't include the
8907         non-recursive-gnulib-prefix-hack module.
8909 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8911         libunistring: change the maintainer to 'all'
8912         * modules/gen-uni-tables, modules/libunistring:
8913         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8914         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8915         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8916         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8917         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
8918         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
8919         * modules/uniwidth/*: Change the maintainer to 'all'.
8921 2016-10-16  Bruno Haible  <bruno@clisp.org>
8923         Simplify "configure: checking ..." messages.
8924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
8925         AC_MSG_NOTICE.
8926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8928 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8930         quotearg-tests: pacify gcc -Wall
8931         Problem reported by Bruno Haible in:
8932         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
8933         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
8934         * tests/test-quotearg.h: ... from here.
8936 2016-10-20  Pádraig Brady  <P@draigBrady.com>
8938         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
8939         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
8940         Needed on Centos <= 4.
8942 2016-10-20  Jim Meyering  <meyering@fb.com>
8944         printf.m4: fix a bug in detecting printf %j support
8945         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
8946         uintmax_t is defined in neither stdint.h nor inttypes.h.
8947         Before, this macro might have mistakenly set
8948         gl_cv_func_printf_sizes_c99=yes on such a system.
8949         Spotted by Zev Weiss.
8951 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8953         sched: substitute HAVE_SYS_CDEFS_H too
8954         Problem reported by Tom G. Christensen in:
8955         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
8956         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
8957         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
8959 2016-10-19  Pádraig Brady  <P@draigBrady.com>
8961         quotearg: never write beyond the returned length
8962         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
8963         scan of the string when we initially encounter a single quote when
8964         shell quoting, so that if we then switch to a more concise quoting method
8965         we will not have written beyond that returned length.
8966         This is significant for sh-quote, which has separate routines
8967         to determine the length and do the actual quoting.
8968         * tests/test-quotearg.h: Reinstate the buffer bounds checking
8969         now that we never write more than the returned length.
8971 2016-10-18  Bruno Haible  <bruno@clisp.org>
8973         getprogname tests: Avoid failure in packages that use libtool.
8974         * tests/test-getprogname.c (main): Strip "lt-" prefix.
8975         Based on a patch by Jim Meyering.
8977 2016-10-16  Bruno Haible  <bruno@clisp.org>
8979         getprogname: Fix test failure on Cygwin. Comments.
8980         * lib/getprogname.h: Add comments.
8981         * lib/getprogname.c: Add comments. Fix #elif indentation.
8982         * tests/test-getprogname.c (main): On Cygwin, expect a result without
8983         ".exe" suffix.
8985 2016-10-16  Bruno Haible  <bruno@clisp.org>
8987         Make sure the libunistring detection rejects older versions with a
8988         known bug.
8989         * modules/unistr/u8-strtok (configure.ac): Bump required version.
8990         * modules/unistr/u16-strtok (configure.ac): Likewise.
8991         * modules/unistr/u32-strtok (configure.ac): Likewise.
8993 2016-10-18  Bruno Haible  <bruno@clisp.org>
8995         sh-quote, system-quote: revert regression of unit test.
8996         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
8997         * tests/test-system-quote-main.c (check_one): Likewise.
8999 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9001         quotearg: fix stale tests
9002         * tests/test-quotearg.c [locale_results]: Add the missing str7
9003         entries to the expected results.
9004         * tests/test-system-quote-main.c (check_one): Don't enforce that we
9005         don't write beyond the returned length, since that's no longer the
9006         case if we switch to a more concise quoting style.
9007         * tests/test-sh-quote.c (check_one): Likewise.
9008         (main): Adjust for the new more concise quoting style.
9009         Reported by Bruno Haible.
9011 2016-10-16  Jim Meyering  <meyering@fb.com>
9013         non-recursive-gnulib-prefix-hack: fix inconsequential typo
9014         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
9015         to "$1".  This macro is always invoked with $1 == lib.
9016         Spotted by Bruno Haible
9018 2016-10-16  Bruno Haible  <bruno@clisp.org>
9020         Fix a test crash.
9021         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
9022         fails.
9024 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9026         test-limits-h: suppress -Woverlength-strings
9027         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
9029 2016-10-15  Bruno Haible  <bruno@clisp.org>
9031         gettime, timespec, utimens: Relicense under LGPL.
9032         * modules/gettime (License): Change to LGPL.
9033         * modules/timespec (License): Likewise.
9034         * modules/utimens (License): Likewise.
9036 2016-10-14  Bruno Haible  <bruno@clisp.org>
9037             Pádraig Brady  <P@draigBrady.com>
9039         canonicalize-lgpl: Support the case path_max > INT_MAX.
9040         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
9041         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
9043 2016-10-13  Jim Meyering  <meyering@fb.com>
9045         getprogname: IBM z/OS: avoid NULL-dereference
9046         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
9047         upon strdup failure.
9049 2016-10-12  Jim Meyering  <meyering@fb.com>
9051         test-stdint: use _GL_VERIFY rather than "verify" for some tests
9052         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
9053         and an abbreviated diagnostic rather than verify with the full one,
9054         because the full-length strings would evoke warnings from gcc with
9055         -Woverlength-strings.
9057 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9059         stdint: port SIZE_MAX to glibc s390
9060         Problem reported by Eric Blake in:
9061         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
9062         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
9063         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
9064         correct type, if possible.
9066 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
9068         getprogname: port to IBM z/OS
9069         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
9071 2016-10-11  Jim Meyering  <meyering@fb.com>
9073         maint: remove stray space after "." in AC_DEFINE comment.
9074         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
9075         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9077 2016-10-05  Jim Meyering  <meyering@fb.com>
9079         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9080         * lib/long-options.c (parse_long_options): Add a break statement
9081         to avoid this new warning/failure:
9082         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9083           --create-testdir --dir=/t/x --with-tests --test long-options
9084         ../../gllib/long-options.c: In function 'parse_long_options':
9085         ../../gllib/long-options.c:66:12: error: this statement may \
9086           fall through [-Werror=implicit-fallthrough]
9087                    (*usage_func) (EXIT_SUCCESS);
9088                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9090 2016-10-05  Jim Meyering  <meyering@fb.com>
9092         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9093         Testing this module would fail when using GCC 7 like this:
9094         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9095           --dir=/tmp/x --with-tests --test utimecmp
9096         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9097         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9098           [-Werror=bool-operation]
9099                          time_t s = src_s & ~ (res == 2 * BILLION);
9100                                             ^
9101         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9102           [-Werror=bool-operation]
9103                src_s &= ~ (res == 2 * BILLION);
9104                         ^
9105         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9106         Instead, make it explicit that we intend to apply it to 0 or 1.
9108 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9110         dfa: save memory for states
9111         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
9112         states if dfa has a lot of caches.
9114 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
9116         wchar, wctype-h: fix for MinGW 3.22.2
9117         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
9118         special invocation, to fix issues with MinGW 3.22.2 wchar.h
9119         when included from <string.h>.
9120         * lib/wctype.in.h [__MINGW32__]: Add special invocation
9121         convention for MinGW 3.22.2, to solve issues with their
9122         wctype.h when included from <ctype.h>.
9124 2016-10-05  Jim Meyering  <meyering@fb.com>
9126         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9127         * lib/long-options.c (parse_long_options): Add a break statement
9128         to avoid this new warning/failure:
9129         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9130           --create-testdir --dir=/t/x --with-tests --test long-options
9131         ../../gllib/long-options.c: In function ‘parse_long_options’:
9132         ../../gllib/long-options.c:66:12: error: this statement may \
9133           fall through [-Werror=implicit-fallthrough]
9134                    (*usage_func) (EXIT_SUCCESS);
9135                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9137         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9138         Testing this module would fail when using GCC 7 like this:
9139         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9140           --dir=/tmp/x --with-tests --test utimecmp
9141         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9142         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9143           [-Werror=bool-operation]
9144                          time_t s = src_s & ~ (res == 2 * BILLION);
9145                                             ^
9146         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9147           [-Werror=bool-operation]
9148                src_s &= ~ (res == 2 * BILLION);
9149                         ^
9150         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9151         Instead, make it explicit that we intend to apply it to 0 or 1.
9153 2016-10-03  Pádraig Brady  <P@draigBrady.com>
9155         quotearg: minimize shell quoting using double quotes
9156         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
9157         quote in encountered then use double quotes (c style quoting)
9158         when possible, as it simplifies the quoting.
9159         * tests/test-quotearg-simple.c: Add test cases.
9160         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
9161         for the fact we now may write beyond the returned length.
9163 2016-10-02  Jim Meyering  <meyering@fb.com>
9165         vasnprintf.c: avoid spurious warning from GCC 7
9166         The presence of cpp directives renders this "FALLTHROUGH" comment
9167         ineffective, so does not suppress the -Wimplicit-fallthrough warning
9168         from GCC 7 built from git on 2016-10-02.
9169         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
9170         directives, so that it takes effect once again.  This is clearly
9171         not a proper change, and I will revert it once this bug is fixed:
9172         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
9174 2016-10-01  Jim Meyering  <meyering@fb.com>
9176         getprogname: correct the test for a __progname variable
9177         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
9178         and AC_LINK_IFELSE to check for a global __progname.  If found,
9179         define HAVE_VAR___PROGNAME.
9180         * lib/getprogname.c (getprogname): Reflect the new name of the
9181         feature- checked preprocessor symbol:
9182         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
9184 2016-09-28  Jim Meyering  <meyering@fb.com>
9186         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
9187         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
9188         fall-through case with a /* fallthrough */ comment.
9190         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
9191         * lib/dfa.c (dfassbuild): Mark the end of this case with a
9192         /* fallthrough */ comment.
9194         getprogname: avoid __progname vs program_invocation_short_name pitfall
9195         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
9196         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
9197         not with Fedora 24's glibc-2.23.1-10.
9198         * lib/getprogname.c (__progname): Move this declaration down...
9199         (getprogname): ... into the #elif block where used, and make it
9200         explicitly "extern".
9202         getprogname: port to OpenBSD 5.1
9203         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
9204         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
9205         * modules/getprogname (configure.ac): Move most of this code...
9206         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
9207         increment serial number, and add a test for __progname.
9208         https://bugs.gnu.org/24562
9209         Reported by Nelson H. F. Beebe.
9211 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9213         sched: port to GCC 6.2.1 on macOS Sierra
9214         Problem reported by Denis Davydov in:
9215         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
9216         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
9217         Include <sys/cdefs.h> before <sched.h>.
9218         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
9219         so that we needn’t worry about the sched.h include bug here.
9220         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
9221         and include it before <sched.h> if it exists, when
9222         checking for <sched.h>.
9224         tests/init.sh: port Alpine fix to AIX 7.1
9225         * tests/init.sh (compare_): When attempting to use diff -U3,
9226         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
9227         diff -u not outputting a space after leading '+', as the users
9228         of 'compare' should not be that picky about its output format.
9229         In the AIX 7.1 case, return with diff exit status (or with 2 if
9230         trouble), instead of some random nonzero exit status.
9231         * tests/test-init.sh (test_compare): Remove space after leading
9232         '+', so that AIX 7.1 'diff' passes the test.
9234 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9236         nl_langinfo: pacify GCC
9237         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
9238         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
9240         stdint: also set GL_GENERATE_LIMITS_H
9241         Problem reported by Jim Meyering in:
9242         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
9243         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
9245         limits-h, stdint: Don't assume extensions, fix typo
9246         * m4/limits-h.m4 (gl_LIMITS_H):
9247         * m4/stdint.m4 (gl_STDINT_H):
9248         Don't assume AC_USE_SYSTEM_EXTENSIONS.
9249         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
9250         reported by Jim Meyering in:
9251         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
9253 2016-09-21  Jim Meyering  <meyering@fb.com>
9255         getprogname: port to AIX
9256         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
9257         and strdup to obtain a short program name string.  Using code from
9258         Bruno Haible and an idea from Bastien ROUCARIÈS, in
9259         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9260         Assaf Gordon reported that this new file would fail to compile on
9261         AIX-7.1 32bit.
9263 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9265         extensions: fix typo in comment
9266         * m4/extensions.m4: Sync from Autoconf master.
9268         stdint: support new _WIDTH macros
9269         * doc/posix-headers/stdint.texi: Document this.
9270         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
9271         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
9272         support for INTMAX_WIDTH, etc. as well as for support for just C99.
9273         * modules/stdint (Depends-on): Add limits-h.
9274         (Makefile.am): Substitute HAVE_C99_STDINT_H.
9275         * modules/stdint-tests (Depends-on): Add extensions, so that
9276         INTMAX_MAX etc. are defined.
9277         * tests/test-stdint.c: Verify the new macros.
9279         limits-h: new module
9280         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
9281         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
9282         * doc/posix-headers/limits.texi: Document new module.
9283         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
9284         * modules/limit-h-tests, tests/test-limits-h.c: New files.
9286         stdio: don't redefine __USE_MINGW_ANSI_STDIO
9287         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
9288         if it is already defined.  Apparently GNU Emacs relies on this.  See:
9289         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
9291 2016-09-15  Eric Blake  <eblake@redhat.com>
9293         sys_types: avoid glibc 2.25 warnings about major()
9294         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
9295         older autoconf.
9296         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
9297         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
9298         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
9299         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
9301         mountlist: include sysmacros.h for glibc
9302         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
9303         AC_HEADER_MAJOR.
9304         * lib/mountlist.c (includes): Use correct headers.
9306 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9308         extensions: port to more ISO C TSes
9309         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
9310         master, to add support for more recent ISO C TRs and TSes.
9312 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9314         intprops: new macro TYPE_WIDTH
9315         * lib/intprops.h (TYPE_WIDTH): New macro.
9316         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
9317         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
9318         * lib/parse-datetime.y (parse_datetime2):
9319         Use it.
9321         extensions: port to recent ISO C TRs
9322         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9323         Sync from Autoconf master, to add support for recent ISO C TRs.
9324         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
9325         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
9326         the MinGW option is not an extension.
9328 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9330         dfa: port to Solaris 9
9331         Problems reported by Tom G. Christensen in:
9332         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
9333         * modules/dfa (Depends-on): Add isblank.
9334         * modules/dfa-tests (dfa_match_aux_LDADD):
9335         Rename from test_stat_LDADD, to fix typo.
9336         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
9338 2016-09-10  Jim Meyering  <meyering@fb.com>
9340         strverscmp: avoid link failure on OS X
9341         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
9342         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
9344 2016-08-16  Jim Meyering  <meyering@fb.com>
9346         dfa: new module, importing grep's DFA matcher
9347         Since grep's DFA matcher is now being used by two gnulib-enabled
9348         projects, grep and sed, it makes sense to version-control its
9349         sources and unit tests in one place: here.
9350         * modules/dfa: New module.
9351         * modules/dfa-tests: New file.
9352         * lib/dfa.c: New file, from grep.
9353         * lib/dfa.h: Likewise.
9354         * lib/localeinfo.c: Likewise.
9355         * lib/localeinfo.h: Likewise.
9356         * tests/dfa-match-aux.c: Likewise.
9357         * tests/dfa-invalid-char-class.sh: Likewise.
9358         * tests/dfa-match.sh: Likewise, with minor changes.
9359         * MODULES.html.sh (Misc): Add "dfa" to this list.
9361 2016-09-09  Jim Meyering  <meyering@fb.com>
9363         getprogname-tests: don't depend on assert-h
9364         * modules/getprogname-tests (Depends-on): Remove assert-h.
9365         It was not needed, and in fact would cause build failure for
9366         coreutils on some systems.  Reported by Assaf Gordon in https:
9367         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
9369 2016-09-07  Jim Meyering  <meyering@fb.com>
9371         getprogname-tests: work also when EXEEXT is nonempty
9372         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
9373         * tests/test-getprogname.c (main): Use it.
9374         Suggested by Gisle Vanem.
9376 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
9378         getprogname: fix errors in previous change
9379         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
9380         s/program_invocation_name/base/
9381         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
9383 2016-09-08  Pádraig Brady  <P@draigBrady.com>
9385         parse-datetime: restrict debug output to input string
9386         * lib/parse-datetime.y (parse_datetime2): If we parse
9387         all of the input but determine it's invalid, ensure
9388         we don't output the now invalid input pointer.
9389         This issue was seen with `date -d 'now +1'`.
9391 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9393         flexmember: new macro FLEXALIGNOF
9394         * lib/flexmember.h: Include <stddef.h>, for offsetof.
9395         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
9396         this macro.  Update comments.
9398 2016-09-07  Jim Meyering  <meyering@fb.com>
9400         getprogname: port to systems with __argv (mingw, msvc)
9401         * lib/getprogname.c (getprogname): Include "dirname.h" and use
9402         last_component: more general than open coding it with hard-coded "/".
9403         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
9404         * modules/getprogname (Depends-on): Add dirname-lgpl.
9405         (configure.ac): Check for __argv in <stdlib.h>.
9406         * modules/getprogname-tests: New file.
9407         * tests/test-getprogname.c: New file.
9408         Suggested by Gisle Vanem in
9409         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
9411 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9413         flexmember: port better to GCC + valgrind
9414         With a char[] flexible array member in a struct with nontrivial
9415         alignment, GCC-generated code can access past the end of the
9416         array, because GCC assumes there are padding bytes to get the
9417         struct aligned.  So the common idiom of malloc (offsetof (struct
9418         s, m), n) does not properly allocate an n-byte trailing member, as
9419         malloc’s argument should be the next multiple of alignof (struct s).
9420         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9421         Although C11 apparently permits this GCC optimization (i.e., there
9422         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
9423         See the thread containing:
9424         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
9425         * lib/flexmember.h: New file.
9426         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
9427         * lib/localename.c, lib/time_rz.c:
9428         Include flexmember.h.
9429         * lib/fnmatch_loop.c (struct patternlist):
9430         * lib/localename.c (struct hash_node):
9431         Use FLEXIBLE_ARRAY_MEMBER.
9432         * lib/fnmatch_loop.c (EXT):
9433         * lib/fts.c (fts_alloc):
9434         * lib/glob.c (glob_in_dir):
9435         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9436         * lib/localename.c (gl_lock_define_initialized):
9437         * lib/time_rz.c (tzalloc):
9438         Use FLEXSIZEOF instead of offsetof.
9439         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9440         Check that the size of the struct can be taken.
9441         * modules/flexmember (Files): Add lib/flexmember.h.
9442         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
9443         Add flexmember.
9445 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9447         getprogname: port to Solaris 10
9448         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
9449         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
9450         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
9452         stdalign: correct mistake in alignof doc
9453         Problem reported by Joseph Myers in:
9454         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
9455         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
9456         alignof(S) where S is a structure containing a flexible array
9457         member.  The Gnulib substitute does not support this, but C11 does.
9459 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9461         main.mk: remove sc_program_name, since there is no more need to
9462         use set_program_name in tools (getprogname is enough for most
9463         of the cases).
9464         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
9465         * top/maint.mk (sc_program_name): Remove.
9467 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9469         Port tests away from progname, since modules that need the
9470         program name already depend on getprogname.
9471         * modules/acl-tests (Depends-on): Remove progname.
9472         * modules/argmatch (Depends-on): Likewise.
9473         * modules/argmatch-tests (Depends-on): Likewise.
9474         * modules/argp-tests (Depends-on): Likewise.
9475         * modules/argp-version-etc-tests (Depends-on): Likewise.
9476         * modules/array-list-tests (Depends-on): Likewise.
9477         * modules/array-oset-tests (Depends-on): Likewise.
9478         * modules/avltree-list-tests (Depends-on): Likewise.
9479         * modules/avltree-oset-tests (Depends-on): Likewise.
9480         * modules/avltreehash-list-tests (Depends-on): Likewise.
9481         * modules/carray-list-tests (Depends-on): Likewise.
9482         * modules/copy-file-tests (Depends-on): Likewise.
9483         * modules/exclude-tests (Depends-on): Likewise.
9484         * modules/fchownat-tests (Depends-on): Likewise.
9485         * modules/fdopendir-tests (Depends-on): Likewise.
9486         * modules/filenamecat-tests (Depends-on): Likewise.
9487         * modules/fstatat-tests (Depends-on): Likewise.
9488         * modules/fstrcmp-tests (Depends-on): Likewise.
9489         * modules/linked-list-tests (Depends-on): Likewise.
9490         * modules/linkedhash-list-tests (Depends-on): Likewise.
9491         * modules/mkdirat-tests (Depends-on): Likewise.
9492         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
9493         * modules/nonblocking-socket-tests (Depends-on): Likewise.
9494         * modules/obstack-printf-tests (Depends-on): Likewise.
9495         * modules/openat-tests (Depends-on): Likewise.
9496         * modules/parse-datetime-tests (Depends-on): Likewise.
9497         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
9498         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
9499         * modules/quotearg-simple-tests (Depends-on): Likewise.
9500         * modules/quotearg-tests (Depends-on): Likewise.
9501         * modules/rbtree-list-tests (Depends-on): Likewise.
9502         * modules/rbtree-oset-tests (Depends-on): Likewise.
9503         * modules/rbtreehash-list-tests (Depends-on): Likewise.
9504         * modules/spawn-pipe-tests (Depends-on): Likewise.
9505         * modules/system-quote-tests (Depends-on): Likewise.
9506         * modules/uniname/uniname-tests (Depends-on): Likewise.
9507         * modules/uninorm/nfc-tests (Depends-on): Likewise.
9508         * modules/uninorm/nfd-tests (Depends-on): Likewise.
9509         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
9510         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
9511         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
9512         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
9513         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
9514         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
9515         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
9516         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
9517         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
9518         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
9519         * modules/unlinkat-tests (Depends-on): Likewise.
9520         * modules/version-etc-tests (Depends-on): Likewise.
9521         * modules/xalloc-die-tests (Depends-on): Likewise.
9522         * modules/xmemdup0-tests (Depends-on): Likewise.
9523         * modules/xprintf-posix-tests (Depends-on): Likewise.
9524         * modules/xvasprintf-tests (Depends-on): Likewise.
9525         * tests/test-argmatch.c: Do not include progname.h.
9526         (main) Stop calling set_program_name.
9527         * tests/test-argp-version-etc.c: Likewise.
9528         * tests/test-argp.c: Likewise.
9529         * tests/test-argv-iter.c: Likewise.
9530         * tests/test-array_list.c: Likewise.
9531         * tests/test-array_oset.c: Likewise.
9532         * tests/test-avltree_list.c: Likewise.
9533         * tests/test-avltree_oset.c: Likewise.
9534         * tests/test-avltreehash_list.c: Likewise.
9535         * tests/test-carray_list.c: Likewise.
9536         * tests/test-copy-acl.c: Likewise.
9537         * tests/test-copy-file.c: Likewise.
9538         * tests/test-exclude.c: Likewise.
9539         * tests/test-fchownat.c: Likewise.
9540         * tests/test-fdopendir.c: Likewise.
9541         * tests/test-filenamecat.c: Likewise.
9542         * tests/test-fstatat.c: Likewise.
9543         * tests/test-fstrcmp.c: Likewise.
9544         * tests/test-linked_list.c: Likewise.
9545         * tests/test-linkedhash_list.c: Likewise.
9546         * tests/test-mkdirat.c: Likewise.
9547         * tests/test-nonblocking-pipe-main.c: Likewise.
9548         * tests/test-nonblocking-socket-main.c: Likewise.
9549         * tests/test-obstack-printf.c: Likewise.
9550         * tests/test-openat.c: Likewise.
9551         * tests/test-parse-datetime.c: Likewise.
9552         * tests/test-pipe-filter-gi1.c: Likewise.
9553         * tests/test-pipe-filter-gi2-main.c: Likewise.
9554         * tests/test-pipe-filter-ii1.c: Likewise.
9555         * tests/test-pipe-filter-ii2-main.c: Likewise.
9556         * tests/test-quotearg-simple.c: Likewise.
9557         * tests/test-quotearg.c: Likewise.
9558         * tests/test-rbtree_list.c: Likewise.
9559         * tests/test-rbtree_oset.c: Likewise.
9560         * tests/test-rbtreehash_list.c: Likewise.
9561         * tests/test-sameacls.c: Likewise.
9562         * tests/test-set-mode-acl.c: Likewise.
9563         * tests/test-spawn-pipe-main.c: Likewise.
9564         * tests/test-system-quote-main.c: Likewise.
9565         * tests/test-unlinkat.c: Likewise.
9566         * tests/test-version-etc.c: Likewise.
9567         * tests/test-xalloc-die.c: Likewise.
9568         * tests/test-xfprintf-posix.c: Likewise.
9569         * tests/test-xmemdup0.c: Likewise.
9570         * tests/test-xprintf-posix.c: Likewise.
9571         * tests/test-xvasprintf.c: Likewise.
9572         * tests/uniname/test-uninames.c: Likewise.
9573         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9574         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9575         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9576         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9577         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9578         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9579         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9580         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9581         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9582         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9583         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9584         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9585         * tests/test-c-stack.c: (program_name): Do not define.
9586         (main): Do not set program_name.
9587         * tests/test-closein.c: Likewise.
9588         * tests/test-xstrtol.c: Likewise.
9589         * tests/test-yesno.c: Likewise.
9591 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9593         Port modules to use getprogname explicitly, instead of requiring
9594         progname to be used (or program_name to be provided).
9595         * lib/argmatch.c: Do not include progname.h.
9596         [TEST] (program_name): Do not define.
9597         [TEST] (main): Call getprogname instead of using program_name.
9598         * lib/c-stack.c: Do not include progname.h.
9599         (program_name): Do not define.
9600         (die): Call getprogname instead of using program_name.
9601         * lib/chdir-long.c: Do not include progname.h.
9602         [TEST_CHDIR] (main): Do not set program_name.
9603         * lib/error.c [!_LIBC]: Include progname.h.
9604         [!_LIBC] (program_name): Define using getprogname.
9605         * lib/euidaccess.c: Do not include progname.h.
9606         [TEST] (main): Do not set program_name.
9607         * lib/git-merge-changelog.c: Include getprogname.h instead of
9608         progname.h.
9609         (usage): Call getprogname instead of using program_name.
9610         (main): Likewise.  Stop calling set_program_name.
9611         * lib/group-member.c: Do not include progname.h.
9612         [TEST] (main): Do not set program_name.
9613         * modules/argmatch (Depends-on): Add getprogname.
9614         * modules/c-stack (Depends-on): Likewise.
9615         * modules/error (Depends-on): Likewise.
9616         * modules/git-merge-changelog (Depends-on): Likewise.
9617         Also remove progname.
9619 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9621         * NEWS: Document the deprecation of the 'progname' module.
9623 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9625         getprogname: new module
9626         This provides a LGPL module for getting the name of the current
9627         program, using the same API found on *BSD systems.
9628         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9629         * modules/getprogname: New files.
9630         * MODULES.html.sh (Misc): Add getprogname.
9632 2016-09-02  Jim Meyering  <meyering@fb.com>
9634         manywarnings: add -fno-common
9635         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9636         to the list.  Quoting the manual, "Compiling with -fno-common is
9637         useful on targets for which it provides better performance, or if
9638         you wish to verify that the program will work on other systems that
9639         always treat uninitialized variable declarations this way [putting
9640         it in the data section]."  If diffutils had been using this sooner,
9641         it would have prevented this duplicate declaration issue:
9642         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9644 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9646         parse-datetime: Fix typo.
9647         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9649 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9651         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9652         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9653         GCC 5 and 6 that have __builtin_sub_overflow but not
9654         __builtin_sub_overflow_p.  With the recent changes, these
9655         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9656         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9657         since the former needs just one runtime comparison whereas the
9658         latter needs two.
9660         strverscmp: sync with glibc
9661         Although this doesn't exactly synchronize with glibc
9662         byte-for-byte, it makes the code behave the same as glibc.
9663         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9664         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9665         difference shouldn't matter in practical use.  All uses changed
9666         back to isdigit.
9667         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9668         (next_state): Now unsigned char array; redo elements.
9669         (result_type): Now signed char array; redo elements.
9670         (__strverscmp): Fix glibc bug 9913 by using new states.
9671         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9673 2016-08-29  Jim Meyering  <meyering@fb.com>
9675         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9676         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9677         similarly to how it was done to intprops.h.
9679 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9681         intprops.h: port recent changes to GCC 6.2.0
9682         * lib/intprops.h (__has_builtin): Move earlier.
9683         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9684         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9685         the last argument can be null.  All uses changed.
9686         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9687         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9688         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9689         and it's not clear which GCC versions it works for.
9690         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9691         its definiens.
9693         intprops.h: use __typeof__ with GCC 7
9694         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9695         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9696         This avoids computing the expression's value (which might overflow!).
9698 2016-08-29  Jim Meyering  <meyering@fb.com>
9700         intprops.h, xalloc-oversized.h: work with gcc 7
9701         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9702         __builtin_mul_overflow each accept a NULL pointer as the third
9703         argument.  However in gcc 7, that is no longer accepted.
9704         Instead, one must use the "_p"-suffixed names, with which, the
9705         third parameter is no longer a pointer.
9706         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9707         the definition: not true for gcc 7 and subsequent.
9708         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9709         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9710         Provide new definitions for gcc 7 and subsequent.
9711         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9712         that works with gcc-7.
9714         intprops.h: fix missing-backslash problems
9715         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9716         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9718 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9720         intprops: fix paren typo on old platforms
9721         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9722         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9723         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9724         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9725         && !defined LLONG_MAX]:
9726         Remove stray paren.
9728         intprops: port to OpenVMS
9729         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9730         * doc/posix-headers/limits.texi: Document the problem.
9731         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9732         Define if not already defined.
9734 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9736         parse-datetime: improve debug implementation
9737         Follow-up to commit 12ad79069 ("add optional debug printing").
9738         Improve parse-datetime's debug implementation: remove macros,
9739         replace global debug flag variable with a function parameter,
9740         use nstrftime for formatting.
9741         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9742         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9743         (parse_datetime2): New function, accepts 'flags' parameter, supporting
9744         debug flag. Existing interface 'parse_datetime' left unmodified.
9745         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
9746         (struct parser_control): add 'parse_datetime_debug' member variable.
9747         (parse_datetime): Call new function 'parse_datetime2' without debug.
9748         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
9749         pc.parse_datetime_debug variable as needed.
9750         (to_year): Accept new flags parameter, instead of using global variable.
9751         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
9752         use struct 'debug' variable instead of global variable.
9753         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
9754         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
9755         correspnding functions directly instead of using macros.
9756         * modules/parse-datetime: Add gnulib's strftime module.
9758 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
9760         c-strcase-tests: port to EBCDIC
9761         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
9762         which assume ASCII encoding semantics to run only in ASCII
9763         mode, as they fail in EBCDIC.
9765         sigpipe-tests: fix typo
9766         * tests/test-sigpipe.sh: C, not B.
9768 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9770         canonicalize-lgpl: fix errno after malloca fails
9771         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
9772         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
9773         * lib/canonicalize-lgpl.c (__realpath):
9774         Don't assume malloca sets errno on failure.
9776 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9778         strtod: port errno handling to z/OS
9779         * lib/strtod.c (strtod): Save and restore errno more reliably.
9781 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9783         strtod: port to z/OS
9784         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9785         implementation.
9787 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9789         strtod: port to z/OS
9790         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9791         implementation.
9793         regex, string: rename to avoid '__string'
9794         * lib/regex.h, lib/string.in.h: Do not use the identifier
9795         '__string', as it is effectively reserved by string.h on z/OS.
9797         c-strcase-tests, wcwidth-tests: depend on c-ctype
9798         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
9799         Add c-ctype.
9801 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9803         thread: port to z/OS
9804         * lib/glthread/thread.c, lib/glthread/thread.h:
9805         Rudimentary gl_thread support for z/OS.
9807         maint: port tests to z/OS errno behavior
9808         * tests/test-nonblocking-reader.h:
9809         * tests/test-nonblocking-writer.h:
9810         Accommodate z/OS errno code preferences. (I believe this should
9811         still be within spec; IBM is good at following the letter if not
9812         the spirit of such things.)
9814         maint: preprocessor changes to support z/OS
9815         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
9816         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
9817         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
9818         * tests/test-nonblocking-pipe.h:
9820         fclose, strstr-simple, wchar: port to z/OS
9821         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
9822         Changes to the Autoconf M4 code to support z/OS.  Note that
9823         fclose() is broken in a different way on z/OS than it is on other
9824         systems, thus the special-case in fclose.m4.
9826         iconv_open-utf-tests, iconv-tests: port to EBCDIC
9827         * tests/test-iconv-utf.c, tests/test-iconv.c:
9828         Added appropriately conditional #pragmas so that the test strings
9829         in test-iconv-utf.c are correctly interpreted in ASCII instead of
9830         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
9831         addressed in a more portable way by simply rewriting all the ASCII
9832         literal characters as octal escapes, but then you would lose the
9833         partial readability that the strings have now. Also, iconv_open()
9834         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
9836         c-strcase-tests, wcwidth-tests: port to EBCDIC
9837         * tests/test-c-strcasecmp.c: Include c-ctype.h.
9838         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
9839         * tests/test-wcwidth.c: Likewise.
9841 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9843         stdbool: don't require _Bool for C++
9844         Problem reported by David Seifert in:
9845         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
9846         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
9847         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
9848         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
9849         stricter about checking that bool and _Bool are compatible in C.
9851 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9853         getdelim: remove dependency on realloc-posix
9854         * lib/canonicalize-lgpl.c (alloc_failed)
9855         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
9856         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
9857         Use __set_errno where needed, for consistency.
9858         * lib/getdelim.c (alloc_failed): New function.
9859         (getdelim): Use it.
9861 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9863         parse-datetime: add optional debug printing
9864         Print parsing information, warnings, and errors to stderr.
9865         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9866         * lib/parse-datetime.y:
9867         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9868         (PROGRESS*): Same as DEBUG, for progress reporting.
9869         (dbg_printf): Print message to stderr, with 'date' prefix.
9870         (struct parser_control): Add 'debug_*_seen' variables.
9871         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9872         (debug_print_current_time, debug_print_relateive_time): Prints the
9873         current/relative date/time value of parser_control.
9874         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9875         (to_year): Warn about 2-digit year parsing.
9876         (yylex):   Warn about unrecognized words.
9877         (get_effective_timezone): Returns current timezone in minutes.
9878         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9879         clearly and unambigiously as possible.
9880         (debug_mktime_not_ok): Print detailed information about failed
9881         date/time values.
9882         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9883         PROGRESS messages for status messages.
9884         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9886 2016-08-06  Jim Meyering  <meyering@fb.com>
9888         tests/init.sh: exclude dash with bad "local" semantics
9889         * tests/init.sh (gl_shell_test_script_): Add a function to
9890         eliminate a shell like "dash" (unlike bash, zsh) that has
9891         surprising/risky "local var='...'" semantics.  Inspired by
9892         the problem and discussion in https://bugs.gnu.org/24116#11.
9894 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9896         maint.mk: expand the prohibit_doubled_word regex
9897         This check has a static list of words that are checked for
9898         repetitions.  Expand it before running the perl script to
9899         avoid using expensive captures.  This decreases the cost
9900         for libvirt from 1.66s to 0.66s.
9901         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9902         (sc_prohibit_doubled_word): Use it.
9904 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9906         useless-if-before-free: skip non-matching lines early
9907         * build-aux/useless-if-before-free: First match each line with the
9908         simple/quick /\bif\b/ and reject if there is no match. This often
9909         saves the cost of the much more involved regular expression.
9910         For libvirt, this decreases the cost from 1.44s to 1.02s.
9912 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9914         maint.mk: speed up sc_po_check
9915         sc_po_check would skip files based on their names, or on the
9916         existence of files with derived names. Rewrite it to use perl
9917         instead of shell to make the check faster.
9918         * top/maint.mk (perl_translatable_files_list_): Define.
9919         (sc_po_check): Use it.
9921 2016-07-30  Ján Tomko  <jtomko@redhat.com>
9923         maint.mk: speed up require_config_h_first
9924         Instead of spawning three processes per file,
9925         rewrite the check in perl and run it once for all the files.
9926         * top/maint.mk (perl_config_h_first_): Define.
9927         (sc_require_config_h_first): Use it in place of shell code.
9929 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9931         maint.mk: speed up sc_po_check
9932         sc_po_check would skip files based on their names, or on the
9933         existence of files with derived names. Rewrite it to use perl
9934         instead of shell to make the check faster.
9935         * top/maint.mk (perl_translatable_files_list_): Define.
9936         (sc_po_check): Use it.
9938 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9940         obstack: pacify GCC 6 with -Wnull-dereference
9941         Problem reported by Assaf Gordon in:
9942         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
9943         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
9944         Declare with __attribute_noreturn__.
9945         * lib/obstack.h (__attribute_noreturn__): New macro.
9947 2016-07-13  Eric Blake  <eblake@redhat.com>
9949         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
9950         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
9951         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
9953 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9955         doc: mention glibc SSIZE_MAX buglet
9956         * doc/posix-headers/limits.texi (limits.h): Document the bug.
9958 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
9960         printf-posix: Fix mingw build
9961         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
9962         expression for detecting C symbol prefixes but forgot to qoute square
9963         brackets in the command line arguments for grep.  That way when
9964         building with mingw the condition was false although it ought to be
9965         true instead.  In particular scenarios this led to the following
9966         compile error:
9968             Cannot export rpl_printf: symbol not found
9969             Cannot export rpl_scanf: symbol not found
9970             collect2: error: ld returned 1 exit status
9972         Fix this by properly quoting square brackets.
9974 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9976         mktime: call tzset as per POSIX
9977         Problem reported by Ludovic Courtès in:
9978         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
9979         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
9980         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
9982 2016-06-26  Pádraig Brady  <P@draigBrady.com>
9984         fts: handle readdir() errors
9985         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
9986         but also upon error when it will also set errno.  Therefore
9987         flag the error case from readdir().  We treat the case where
9988         no items are read the same as if the dir can't be accessed,
9989         i.e. by setting fts_errno to FTS_DNR.
9991 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9993         intprops: port better to GCC 7
9994         GCC 7 __builtin_add_overflow supports a new usage form, where the
9995         last argument is a null pointer, and which merely returns 1 if an
9996         overflow would occur.  This is a constant expression if all
9997         arguments are constants, and should generate faster code when code
9998         needs to be generated.
9999         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
10000         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10001         Use builtin operations if available.
10002         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
10003         operations are available, as it's almost surely faster.
10005 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10007         intprops-test: port to GCC 6
10008         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
10009         since the bug is not fixed in GCC 6.1.
10011 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10013         xalloc-oversized: port to GCC 7; fewer warnings
10014         GCC 7 will have a better way to deal with integer overflow.
10015         Plus, fix a warnings problem reported by Tim Ruehsen in:
10016         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
10017         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
10018         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
10019         For GCC 5, use __xalloc_oversized if both args are constants,
10020         or if pedantic.
10022 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10024         regex: port to Sun C
10025         Reported by Daiki Ueno.
10026         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
10027         __restrict, in prototype.  This fixes a problem I introduced in
10028         the 2016-02-19 merge from glibc.
10030 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10032         stdbool: Restore __bool_true_false_are_defined check
10033         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
10034         __bool_true_false_are_defined is still defined, even with C++11.
10036 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
10038         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
10039         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
10041 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10043         Use GCC_LINT, not lint
10044         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
10045         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
10046         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
10047         Document problem with lint and _Noreturn.
10048         * lib/diffseq.h (IF_LINT, IF_LINT2):
10049         * lib/fts.c (sccsid):
10050         * lib/getndelim2.c (IF_LINT):
10051         * lib/gl_anylinked_list2.h (gl_linked_iterator)
10052         (gl_linked_iterator_from_to):
10053         * lib/gl_anytree_list2.h (gl_tree_iterator)
10054         (gl_tree_iterator_from_to):
10055         * lib/gl_anytree_oset.h (gl_tree_iterator):
10056         * lib/gl_array_list.c (gl_array_iterator)
10057         (gl_array_iterator_from_to):
10058         * lib/gl_array_oset.c (gl_array_iterator):
10059         * lib/gl_carray_list.c (gl_carray_iterator)
10060         (gl_carray_iterator_from_to):
10061         * lib/idcache.c:
10062         * lib/inet_ntop.c (IF_LINT):
10063         * lib/regcomp.c (build_charclass_op, create_tree):
10064         * lib/regex_internal.c (re_acquire_state)
10065         (re_acquire_state_context):
10066         * lib/trigl.c (rcsid):
10067         * lib/trim.c (IF_LINT):
10068         * lib/vasnprintf.c (IF_LINT):
10069         * lib/verify.h (assume):
10070         Treat GCC_LINT like lint.
10072 2016-05-29  Bruno Haible  <bruno@clisp.org>
10074         secure_getenv: Port to many more platforms.
10075         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
10076         functions.
10077         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
10078         for non-BSD Unix platforms and for native Windows.
10079         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
10080         Prompted by a request from Nikos Mavrogiannopoulos.
10082 2016-05-27  Eric Blake  <eblake@redhat.com>
10084         canonicalize: Fix broken probe for realpath.
10085         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
10086         in logic introduced in 54615b95.
10088 2016-05-26  Eric Blake  <eblake@redhat.com>
10090         unsetenv: relax to LGPLv2+
10091         * modules/unsetenv (License): Match setenv license.
10093 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
10095         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
10096         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
10097         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
10098         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
10099         (commonarg, dirargs, dirs, infoarg, generate_ascii)
10100         (generate_html, generate_info, generate_tex, outdir)
10101         (source_extra, split, srcfile, texarg): Move above 'version'.
10102         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
10104 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10106         manywarnings: update for GCC 6.1
10107         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10108         Add GCC 6.1 options that apply to C.
10109         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
10110         do not apply to C, are obsolescent, etc.
10112 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
10114         glob: size_t overflow checks
10115         * lib/glob.c (__has_builtin): New macro.
10116         (size_add_wrapv, glob_use_alloca): New static functions.
10117         (glob, glob_in_dir): Check for size_t overflow in several places,
10118         and fix some size_t checks that were not quite right.
10120         glob: don't assume INT_MAX < SIZE_MAX
10121         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
10122         latter is not portable to (probably theoretical) hosts where
10123         SIZE_MAX <= INT_MAX.
10125 2016-05-09  Bruno Haible  <bruno@clisp.org>
10127         Fix undefined behaviour in gettext.h.
10128         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
10129         pointer's value after the storage it points to has been freed.
10130         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
10131         Spotted by Coverity.
10133 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10135         git-version-gen: avoid undefined shift
10136         Problem reported by Mosè Giordano in:
10137         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
10138         * build-aux/git-version-gen: Avoid undefined behavior if invoked
10139         with --prefix or --fallback but without a later argument.  While
10140         we're at it, omit unnecessary quotes.
10142 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
10144         glob: merge glibc changes into lib/glob.c
10145         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
10146         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
10147         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
10148           struct dirent [BZ #19779]
10149         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
10150           callback gl_readdir
10151         2015-10-20 Convert miscellaneous function definitions to prototype style
10152         2015-10-20 Convert 113 more function definitions to prototype style
10153           (files with assertions)
10154         2015-06-12 Fix getlogin_r namespace (bug 18527).
10155         2014-02-10 Use glibc_likely instead __builtin_expect.
10156         2013-10-20 When glob pattern contains a trailing slash match only
10157           directories. Fixes bug 10278.
10158         2013-09-04 glob: silence -Wattribute warnings
10159         2013-06-07 Avoid use of "register" as optimization hint.
10160         2012-09-25 Use size_t instead of int for internal variables in glob
10161           (bug 14621)
10162         2011-07-20 Check for overflows in expressions
10163         2011-05-28 Remove unused variable
10164         2011-05-22 Add a few more alloca size checks
10165         2010-03-27 Whitespace fixes
10166         2010-03-27 Fix one more issue with the glob patch
10167         2010-03-24 Fix glob with empty pattern
10168         2008-05-27 Remove useless more "if" tests before "free"
10169         * modules/glob (Depends-on): Add stdint.
10171 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10173         mktime: port to stricter signed overflow checking
10174         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
10175         (long_int): Require width for INT_MAX * 3 * (seconds per year),
10176         instead of merely for INT_MAX * 2.  In practice platforms that
10177         do the latter also do the former.
10178         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
10179         (shr): New static function, replacing SHR.  All uses changed.
10180         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
10181         and TIME_T_MAX.  All uses changed.
10182         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
10183         Use long_int, not time_t.
10184         (long_int_avg): New static function, replacing time_t_avg.
10185         All uses changed.  Round toward positive infinity, as that
10186         generates slightly better code.
10187         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
10188         by INT_ADD_WRAPV.
10189         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
10190         (convert_time): New static function.
10191         (ranged_convert): Use it
10192         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
10193         Use simpler test for loop exit.
10194         (__mktime_internal): Store negative of guessed offset, to simplify
10195         overflow checking.  Remove no-longer-needed test for small time_t
10196         overflows.
10198         mktime: speed up DEBUG_MKTIME benchmarks
10199         Call tzset just once, at the start, rather than for every test
10200         case.  This lets us measure the CPU cost of mktime as opposed to
10201         that of tzset.  This is relevant when TZ is not set and glibc is
10202         being used.  This speeds up tests by a factor of 40 on my Fedora
10203         23 x86-64 platform.
10204         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
10205         to call tzset and as a sanity check.  Later on, use localtime_r
10206         instead of localtime.
10208         mktime: resurrect DEBUG_MKTIME testing
10209         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
10210         Include <string.h>, for strcmp.
10212         mktime: simplify DEBUG_MKTIME
10213         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
10214         Simplify later usage accordingly.
10216         Port mktime_internal offset to unsigned time_t
10217         This avoids some assumptions about wraparound arithmetic on
10218         signed integer overflow.
10219         * lib/mktime-internal.h (mktime_offset_t): New type.
10220         (mktime_internal): Use it in decl.
10221         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
10223         * lib/mktime.c (__mktime_internal, localtime_offset):
10224         * lib/timegm.c (timegm): Use it.
10225         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
10226         (gl_FUNC_MKTIME): Require it.
10228 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10230         xstrtol: prohibit monstrosities like "1bB"
10231         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
10232         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
10233         "B" only if the first suffix needs a base.
10234         * tests/test-xstrtol.sh: Test this.
10236 2016-04-21  Pádraig Brady  <P@draigBrady.com>
10238         xstrtod: reinstate setting of *result upon ERANGE
10239         * lib/xstrtod.c (XSTRTOD): The user may decide to use
10240         the returned limits upon ERANGE, so allow and document that.
10242 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
10244         xstrtod: modify *result only if no errors
10245         * lib/xstrtod.c (XSTRTOD).
10247 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10249         btowc: document problems in C locale
10250         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
10251         with mbrtowc.  See: http://bugs.gnu.org/23269#32
10253 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10255         mktime: improve integer overflow checking
10256         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
10257         (WRAPV): Remove; no longer needed.
10258         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
10259         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
10260         Remove.  Use intprops.h defns instead.
10261         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
10262         Use bool for Boolean, for clarity.
10263         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
10264         detect integer overflow.
10265         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
10267         intprops: check two's complement assumption
10268         Suggested by Eric Blake in:
10269         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
10270         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
10271         short, int, long, and (if available) long long are two's complement.
10272         * modules/intprops (Depends-on): Add 'verify'.
10274         intprops, mktime, strtol: assume two's complement
10275         These macros were not portable to every conforming C11 ones'
10276         complement platform.  It's not worth the hassle of porting to some
10277         platforms that use ones' complement or signed magnitude, as such
10278         platforms are almost purely theoretical nowadays and porting even
10279         to some of them makes the code harder to review for little
10280         practical benefit.  Problem reported by Florian Weimer in:
10281         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
10282         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10283         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
10284         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
10285         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10286         (TYPE_SIGNED_MAGNITUDE):
10287         Remove.  All uses rewritten to assume two's complement, which is
10288         all we can reasonably test nowadays anyway.
10289         * top/maint.mk (_intprops_names): Remove the removed macros.
10291 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
10293         stdint: port to strict C11 left shift
10294         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
10295         Pacify clang -Wshift-negative-value, which should be an issue only
10296         on clang setups where stdint.h does not conform to C11 or to C++11.
10297         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
10299 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10301         mbrtowc: work around glibc bug#19932
10302         Fix mbrtowc so that it never returns -1 in the C locale,
10303         as this conflicts with a future version of POSIX
10304         http://austingroupbugs.net/view.php?id=663#c2738
10305         and causes problems with GNU grep: http://bugs.gnu.org/23234
10306         See glibc bug 19932:
10307         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
10308         * doc/posix-functions/mbrlen.texi (mbrlen):
10309         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10310         Document the glibc bug.
10311         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
10312         Include hard-locale.h, locale.h.
10313         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
10314         if the bug is possible.
10315         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
10316         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
10317         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
10318         * modules/mbrtowc (Depends-on): Add hard-locale.
10319         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
10320         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
10321         * tests/test-mbrtowc5.sh: New file.
10323 2016-04-03  Pedro Alves  <palves@redhat.com>
10325         stdint: detect good enough pre-C++11 stdint.h in C++ mode
10326         When gnulib is configured in C++ mode for a system with a working C99
10327         implementation of stdint.h that predates C++11, gnulib ends up
10328         substituting stdint.h anyway.  This works on most targets, but on e.g.,
10329         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
10330         MinGW is LLP64.  Instead of trying to detect the right types, detect
10331         good-enough-pre-C++11 stdint.h and in such case define
10332         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
10333         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
10334         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
10335         conforms to C99.  If it does, check whether it hides symbols
10336         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
10337         does, define those macros in config.h.
10339 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10341         argp: merge changes from glibc
10342         Among other things, this should fix problems found by a Coverity
10343         scan and reported by Andrei Borzenkov:
10344         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
10345         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
10346         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
10347         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
10348         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
10349         * lib/argp.h:
10350         Merge changes from glibc.
10351         * tests/test-argp-2.sh: Adjust to match new behavior.
10353 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10355         stddef: support configuring with g++
10356         Problem reported by Ángel González in:
10357         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
10358         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
10359         Do not define if _GCC_MAX_ALIGN_T is defined.
10361 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10363         test-framework-sh: minor cleanups
10364         * tests/init.sh (testdir_prefix_): Output a trailing newline,
10365         since strictly speaking POSIX requires this.
10366         (setup_): Do not use the variable 'fail', as that makes the
10367         trace output harder to read ('fail' is typically used by
10368         tests to mean the test failed).  Treat // portably.
10369         Check that new directory is not merely a sibling of the tmp dir.
10370         Avoid unnecessary invocation of tr.
10372         test-framework-sh: revert port to NetBSD 7.0
10373         It was a false alarm; I misinterpreted Assaf Gordon's report.
10374         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10375         Restore.
10376         (test_dir_): Adjust to mktempd_ change.
10377         (mktempd_): Restore 2nd arg.  Use -t again.
10378         (base_template_, template_, nx_): Resurrect old code.
10380         Port better to Alpine Linux
10381         Its diff implementation does not support -c, but does support -U3.
10382         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10383         * tests/init.sh (diff_opt_): New var.
10384         (compare_): Prefer diff -U3 to diff -c to plain diff.
10386 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10388         test-framework-sh: port to NetBSD 7.0
10389         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10390         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10391         Remove.  All uses removed.
10392         (test_dir_): Adjust to mktempd_ change.
10393         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
10394         (base_template_, template_, nx_): Simplify by hardcoding.
10396 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10398         gitlog-to-changelog: suppress ignored chatter
10399         * build-aux/gitlog-to-changelog: Do not warn about skipping
10400         an SHA if it would have been ignored anyway.
10402 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
10404         setlocale: add "sv" to Windows language table
10405         * lib/setlocale.c (language_table) [W32]: Add "sv".
10406         Reported in <https://savannah.gnu.org/bugs/?44588>.
10408 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10410         sys_select: port to new Cygwin
10411         Problem reported by Ken Brown in:
10412         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
10413         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
10414         diagnostics.
10416 2016-03-17  Jim Meyering  <meyering@fb.com>
10418         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
10419         * tests/test-userspec.c (main): Remove unnecessary braces and fix
10420         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
10421           test-userspec.c:176:9: error: statement is indented as if it were \
10422             guarded by... [-Werror=misleading-indentation]
10423                    {
10424                    ^
10425           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
10426                  if (!diag && !T[i].result)
10427                  ^~
10429 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
10431         time_rz: port to clang -Wunused-const-variable
10432         * lib/time_rz.c (TZ): Remove.  All uses removed.
10434         std-gnu11: improve clang support
10435         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
10436         2016-03-15 Also try clang
10437         2016-03-15 Port C11 and C++11 testing to clang
10439         select: port more to Intel 2016.1.150 compiler
10440         Problem reported by Balázs Hajgató in:
10441         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
10442         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
10444 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
10446         select: try to port to 2016.1.150 compiler
10447         Problem reported by Balázs Hajgató in:
10448         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
10449         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
10450         POSIX specifies 'restrict'.
10452 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10454         localename-tests: memory allocation fixes
10455         * tests/test-localename.c (test_locale_name)
10456         (test_locale_name_thread): Don't call freelocale on a locale
10457         that was the base of a successful newlocale, as that
10458         results in a double free.  Problem reported by Assaf Gordon.
10459         (test_locale_name_thread): Free saved names after use, to pacify
10460         gcc -fsanitize=address.
10462 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10464         intprops: make .h file license match module
10465         * lib/intprops.h: Change the license wording to match glibc format.
10466         This is what is in modules/intprops anyway.  See:
10467         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
10469 2016-03-08  Eric Blake  <eblake@redhat.com>
10471         acl: fix missing return on Cygwin
10472         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
10473         fall off end of function. Fixes http://bugs.gnu.org/22949
10475 2016-03-05  Bruno Haible  <bruno@clisp.org>
10477         extern-inline: port to PGI CC
10478         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
10479         keyword 'inline'.
10480         Reported by Adam James Stewart in:
10481         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
10483 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10485         signbit: port back to pre-C++11 GCC
10486         * lib/math.in.h (signbit): Do previous change only if
10487         __cplusplus < 201103.  See Jonathan Wakely in:
10488         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
10490 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
10492         mountlist: recognize autofs-mounted remote file systems, too
10493         Originally reported at: https://bugzilla.redhat.com/1309247
10494         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
10495         "-hosts" because it is used by autofs to mount remote file systems.
10497 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10499         signbit: port to C++ with GCC 6
10500         * lib/math.in.h (signbit) [__cplusplus]:
10501         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
10502         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
10504         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
10506         regex: make it closer to libc
10507         Make Idx a signed type, rather than possibly unsigned.
10508         The unsignedness was not really buying us anything, since the code
10509         overflows for other reasons before getting to PTRDIFF_MAX.  Making
10510         it signed allows us to use -1 and -2 with abandon, like libc does,
10511         thus lessening the number of differences between gnulib and libc.
10512         Also, it should help avoid gratuitous warnings like the one
10513         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
10514         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
10517         regex: merge patches from libc
10519         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
10520         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
10521         Convert miscellaneous function definitions to prototype style.
10522         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
10523         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
10524         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
10525         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
10526         (re_search_internal):
10527         Convert to prototype-style function definition.
10528         Use internal_function for internal functions.
10530 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10532         stdalign: port to older HP and IBM cc
10533         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
10534         C compilers, by checking their version numbers.  These version
10535         numbers appear in MariaDB and in Qt code that dates way back and
10536         that conditiionally uses the 'aligned' attribute.
10538 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10540         stdalign: port to clang 3.7.0
10541         Problem reported by Herbert J. Skuhra in:
10542         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
10543         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
10544         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
10545         https://llvm.org/bugs/show_bug.cgi?id=26547
10547 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10549         readdir_r: now obsolescent
10550         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
10551         * lib/mountlist.c (read_file_system_list): Add a FIXME.
10553 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10555         misc: port better to gcc -fsanitize=address
10556         Without these patches, ./configure CFLAGS='-fsanitize=address'
10557         would compute incorrect values.  This patch fixes some (but not all)
10558         test failures with recent glibc, with this configuration.
10559         * m4/acl.m4 (gl_ACL_GET_FILE):
10560         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
10561         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
10562         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
10563         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
10564         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10565         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10566         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
10567         * m4/getline.m4 (gl_FUNC_GETLINE):
10568         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
10569         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
10570         * m4/regex.m4 (gl_REGEX):
10571         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10572         * tests/test-calloc-gnu.c (main):
10573         * tests/test-duplocale.c (main):
10574         * tests/test-getgroups.c (main):
10575         * tests/test-getline.c (main):
10576         * tests/test-inttostr.c (main):
10577         * tests/test-localename.c (test_locale_name)
10578         (test_locale_name_thread, test_locale_name_environ)
10579         (test_locale_name_default):
10580         * tests/test-regex.c (main):
10581         * tests/test-setlocale1.c (main):
10582         * tests/test-stat.h (test_stat_func):
10583         Free heap-allocated storage before exiting.
10584         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
10585         Don't match *_foo symbols inserted by AddressSanitizer.
10586         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
10588 2016-02-02  Jim Meyering  <meyering@fb.com>
10590         verify-tests: also remove stray test-verify.Tpo
10591         * modules/verify-tests (Makefile.am): Arrange for "make clean"
10592         to remove the test-verify.Tpo file that is left behind by
10593         the automake-generated rule upon compilation failure.
10594         Otherwise, that .Tpo file would cause a failed "make distcheck"
10595         at least for grep.
10597 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10599         std-gnu11: new module
10600         This makes it easier for applications to prefer C11 and C++11
10601         to older variants, when compiling C and C++ code.
10602         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10603         a nontrivial chunk of GPLed Autoconf source code.
10604         * COPYING: Mention the m4/*.m4 copyright situation.
10605         * MODULES.html.sh (std-gnu11): New module.
10606         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10608 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10610         get-permissions, strftime: fix grammar in comments
10611         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10612         some grammar fixes Alan Mackenzie made to GNU Emacs.
10614 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10616         gettext: mark as obsolete
10617         Suggested by Paul Eggert in:
10618         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10619         * modules/gettext (Status): Mark as obsolete.
10620         (Notice): Suggest to use 'gettext-h' instead.
10621         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10622         the 'gettext' module.
10624 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10626         gnulib-tool: don't give up on ln -s so easily
10627         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10628         because an earlier one failed.  The targets could be on different
10629         file systems.  Problem reported by KO Myung-Hun in:
10630         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10632         closedir: fix OS/2-related typos
10633         Problem reported by KO Myung-Hun in:
10634         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10635         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10636         in the last couple of changes.
10638 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10640         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10641         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10642         copying a directory.
10644 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10646         regex: treat [x] as x if x is a unibyte encoding error
10647         Problem reported by Aharon Robbins in:
10648         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10649         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10650         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10652         closedir, dirfd, opendir: port to OpenSolaris 5.10
10653         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10654         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10655         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10656         Don't use ${word##pat} substitution, as it doesn't work in
10657         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10658         http://bugs.gnu.org/22443#11
10660 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10662         bootstrap: use American spelling
10663         * build-aux/bootstrap: Honor American spelling.
10665 2016-01-22  Karl Berry  <karl@freefriends.org>
10667         * doc/posix-functions/localtime.texi,
10668         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10670 2016-01-21  Bruno Haible  <bruno@clisp.org>
10672         hash-pjw-bare: fix comment
10673         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10675         wcwidth: Replace also on OpenBSD 5.8
10676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10677         * doc/posix-functions/wcwidth.texi: Update.
10679 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10681         gnu-web-doc-update: fix addition of new files
10682         If there were already added (emnpty) dirs,
10683         then cvs aborts the add with the message:
10684           cvs [add aborted]: there is a version in <./dirname> already
10685         * build-aux/gnu-web-doc-update: Add directories separately
10686         to the addition of files, to avoid the above issue
10687         impacting the addition of files.
10689 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10691         utimens-tests: avoid pulling gettext .m4 files
10692         Although this is not the right fix to the original problem:
10693         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10694         it makes it possible again for consumer projects to use arbitrary
10695         version of gettext, through the steps described at:
10696         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10697         See here for details:
10698         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10699         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10700         'gettext'.
10701         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10702         'gettext'.
10704 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10706         regex: pacify static checkers
10707         Problem and draft fix reported by Aharon Robbins in:
10708         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10709         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10710         Clear memory to pacify static checkers.
10712         regex: fix [ diagnostic
10713         Problem and fix reported by Aharon Robbins in:
10714         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10715         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10717         regex: fix memory leaks
10718         Problem and draft fix reported by Aharon Robbins in:
10719         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10720         * lib/regcomp.c (build_range_exp, build_charclass_op)
10721         * lib/regex_internal.c (re_dfa_add_node):
10722         Fix memory leak on failure.
10724 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10726         fts: don't unconditionally use leaf optimization for NFS
10727         NFS st_nlink are not accurate on all implementations,
10728         leading to aborts() if that assumption is made.
10729         See <https://bugzilla.redhat.com/1299169>
10730         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10731         the white list, and document the issue.
10733 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10734             KO Myung-Hun  <komh@chollian.net>
10736         gnulib-tool: don't assume ln -s works
10737         * gnulib-tool (func_ln_s): New function.
10738         (func_ln): Use it.
10740 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10742         utimes: detect utimes() correctly on OS/2 kLIBC
10743         utimes() of OS/2 kLIBC has some limitations.
10744         1. OS/2 itself supports a file date since 1980 year in local time.
10745         2. OS/2 itself supports only even seconds for a file time.
10746         3. utimes() of OS/2 kLIBC does not work on an opened file.
10747         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
10748         * doc/posix-functions/utimes.texi: Document the above limitations of
10749         utimes() on OS/2 kLIBC.
10751 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10752             KO Myung-Hun  <komh@chollian.net>
10754         openat_proc_name: port to OS/2 kLIBC
10755         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
10756         instead of /proc/self/fd.
10757         * lib/openat-proc.c (openat_proc_name):
10758         Don't assume file name length is less than INT_MAX.
10759         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
10761 2016-01-14  KO Myung-Hun  <komh@chollian.net>
10763         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
10764         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
10765         definitions of intptr_t and uintptr_t (which use int and unsigned)
10766         to avoid clashes with declarations of system functions like sbrk.
10767         * lib/stdint.in.h (intptr_t, uintptr_t): Check
10768         _INTPTR_T_DECLARED before defining them.
10770         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
10771         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
10772         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
10773         Declare on kLIBC.
10774         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
10775         fd associated with dirp.
10776         (_gl_register_dirp_fd): New. Register fd associated with dirp to
10777         dirp_fd_list.
10778         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
10779         (dirfd): Implemented for kLIBC.
10780         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
10781         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
10782         succeeds.
10783         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
10784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10785         (REPLACE_DIRFD): Define to 1 if replaced.
10786         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
10787         * modules/closedir (Depends-on): Add dirfd.
10788         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
10789         condition.
10790         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
10791         * modules/opendir (Depends-on): Add dirfd.
10793         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
10794         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
10795         * lib/dup.c (dup_nothrow): New.
10796         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
10797         (klibc_dup2): New.
10798         * lib/fcntl.c (klibc_fcntl): New.
10799         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
10800         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
10801         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
10802         fd.
10804         pipe_filter_ii_execute: port to OS/2 kLIBC
10805         Pipes on kLIBC do not support O_NONBLOCK like Win32.
10806         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
10807         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
10808         Reuse Win32 code on OS/2 kLIBC.
10809         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
10810         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
10812         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
10813         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
10814         static inline function.  The implementation of wcwidth in wcwidth.c
10815         causes a "conflicting types" error.
10816         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
10818         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
10819         spawn() on OS/2 kLIBC is not silly like one on Windows
10820         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
10821         empty string on OS/2 kLIBC.
10823         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
10824         On OS/2 kLIBC, select() works only on sockets.
10825         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
10827         binary-io: don't put fd in binary mode if it is a console on EMX
10828         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
10829         a console on EMX.
10831 2016-01-15  Pádraig Brady  <P@draigBrady.com>
10833         doc: mention unfixed issues with unsupported localtime() values
10834         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
10835         returns nonsense for localtime(2^56).
10836         * doc/posix-functions/localtime_r.texi: Likewise.
10838 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10840         doc: mention setlocale() issues on OpenBSD
10841         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
10842         never fails, and the need to check categories individually.
10844 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10846         sig2str: list all signals on FreeBSD >= 7
10847         FreeBSD >= 7 is contravening POSIX by not defining NSIG
10848         to the maximal statically defined signal value.
10849         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
10850         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
10851         where available, even when NSIG is defined.
10853 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10855         acl-permissions: port to USE_ACL==0 platforms
10856         I ran into this problem when building bleeding-edge GNU Emacs
10857         with gcc -fsanitize=address on Fedora 23.  On this platform
10858         the ACL library does not pass the 'configure' test and Emacs
10859         then does not build due in part to what appear to be typos in the
10860         ACL part of Gnulib.
10861         * lib/acl-internal.c (free_permission_context):
10862         * lib/acl-internal.h (struct permission_context):
10863         Test whether USE_ACL is nonzero, not whether it is defined.
10865 2016-01-12  Martin Sebor  <msebor@redhat.com>
10867         mktime: rename macro to avoid glibc clash
10868         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10869         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10871 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10873         Port "$@" to OpenIndiana ksh93
10874         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10875         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10876         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10877         bug long-dead shells, so remove the workaround.
10878         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10879         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10880         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10881         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10882         Use "$@" instead of ${1+"$@"}.
10884         Port Universal Time settings to strict POSIX
10885         * build-aux/announce-gen, build-aux/bootstrap:
10886         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10887         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10888         * build-aux/gnupload, build-aux/mkinstalldirs:
10889         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10890         * build-aux/update-copyright, build-aux/useless-if-before-free:
10891         * build-aux/vc-list-files, tests/test-strftime.c:
10892         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10893         but POSIX says the behavior of TZ="UTC" is undefined.
10895 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10897         msvc-inval: fix problem with unset shell var
10898         Problem reported by Karl Berry in:
10899         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10900         * modules/msvc-inval (Depends-on):
10901         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10902         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10904 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10906         tests: for compare_(), use cmp -s where available
10907         * tests/init.sh (compare_): Only fall back to cmp without
10908         the POSIX defined -s option, where this is not available.
10910 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10912         version-etc: new year
10913         * build-aux/gendocs.sh (version):
10914         * doc/gendocs_template:
10915         * doc/gendocs_template_min:
10916         * doc/gnulib.texi:
10917         * lib/version-etc.c (COPYRIGHT_YEAR):
10918         Update copyright dates by hand in templates and the like.
10919         * all files: Run 'make update-copyright'.
10921 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10923         human: fix output buffer overrun by 1
10924         * lib/human.c (human_readable): Fix off-by-one typo in buffer
10925         calculation that could lead to a one-byte buffer overrun.
10927 2015-12-28  Daiki Ueno  <ueno@gnu.org>
10929         maint: fix operator precedence in mbrtowc test
10930         This is a fix for test breakage introduced by commit 45228d96; the
10931         equality expression must be parenthesized when negated with '!',
10932         otherwise we always get:
10934           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
10936         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
10937         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10939 2015-12-23  James Youngman  <jay@gnu.org>
10941         regexprops-generic: update from regex.h
10942         * doc/regexprops-generic.texi: update by running the regexprops binary
10943         from findutils (the command line is 'regexprops "Regular Expressions"
10944         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
10945         gnulib with GNU grep had made this document out-of-date.
10947 2015-12-23  Pádraig Brady  <P@draigBrady.com>
10949         strftime-tests: avoid false failure on OS X
10950         * tests/test-strftime.c (struct localtime_rz_test): Add an
10951         ahistorical member which is used to warn rather than fail
10952         when tm_isdst isn't set for such entries.  This is the case for
10953         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
10955 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
10957         fts: ensure leaf optimization is used for NFS
10958         NFS provides usable dirent.d_type but not necessarily for all entries
10959         of large directories.  See <https://bugzilla.redhat.com/1252549>
10960         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
10962 2015-12-20  Pádraig Brady  <P@draigBrady.com>
10964         fts: enable leaf optimization for XFS
10965         XFS provides usable dirent.d_type only for DT_DIR,
10966         but the noleaf optimization still applies.
10967         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
10969 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10971         intprops: comment fix
10972         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
10973         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
10975         intprops-test: work around GCC bug 68971
10976         Problem reported by Pádraig Brady in:
10977         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
10978         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
10979         (main): Add a case that better tests 64-bit long in this area.
10981 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
10983         gnulib-tool: allow multiple --local-dir usage
10984         * gnulib-tool: Use --local-dir to construct compound
10985         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
10986         PATH_SEPARATOR early.
10987         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
10988         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
10989         func_determine_path_separator because that needs to be detected
10990         earlier now.
10991         (func_determine_path_separator): New function.
10992         (func_path_foreach, func_path_foreach_inner): New functions.
10993         (func_path_prepend, func_path_append): Likewise.
10994         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
10995         (func_lookup_file, func_all_modules): Use new functions to work
10996         with local_gnulib_path.
10997         (func_modules_in_dir, func_exists_module): New callbacks for
10998         func_path_foreach.
10999         (func_exists_module, func_get_tests_module): Likewise.
11000         (func_is_local_file, func_should_symlink): New helper methods.
11001         (func_add_file, func_update_file): Use new func_should_symlink
11002         instead, DRY.
11003         (func_reconstruct_cached_local_gnulib_path): New helper.
11004         (func_reconstruct_cached_dir): New callback.
11005         (func_import): The cached_local_gnulib_dir renamed to
11006         cached_local_gnulib_path similarly to local_gnulib_dir.
11007         Use new func_reconstruct_cached_local_gnulib_path.
11008         (func_count_relative_local_gnulib_path): New sub-method.
11009         (func_create_testdir): Use func_should_symlink, DRY.
11010         (func_create_megatestdir): Use new functions to work with
11011         local_gnulib_path correctly.
11012         (func_append_local_dir): New helper.
11014 2015-12-08  Pádraig Brady  <P@draigBrady.com>
11016         fix freadptr to work with ungetc on all uClibc configs
11017         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
11018         where GNU coreutils cut(1) generates invalid output on uClibc
11019         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
11020         * lib/freadptr.c (freadptr): Return NULL if there are
11021         ungotten chars.  In this case freadseek() will iterate
11022         again to process the ungotten character.
11024 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11026         xalloc-oversized: improve performance with GCC 5
11027         * lib/xalloc-oversized.h (xalloc_oversized):
11028         Improve performance with GCC 5 by using __builtin_mul_overflow.
11030 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11032         intprops: new public macro EXPR_SIGNED
11033         Emacs can use this macro, so make it public.
11034         * doc/intprops.texi (Arithmetic Type Properties): Rename from
11035         'Integer Type Determination', since some of these macros apply
11036         to non-integer types.  Clarify what kinds of constant expressions
11037         these macros return.  Say when the arguments can be non-integers.
11038         Mention newly published macro EXPR_SIGNED.
11039         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
11040         make it public.  All uses changed.
11042         intprops: fix typo in clang port
11043         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
11044         '__builtin_add_overflow' that is not caught by compiler.
11046 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11048         test-timespec: fix typo in previous change
11049         * tests/test-timespec.c (main): Fix typo that reduced test quality.
11051         timespec-sub: fix overflow bug; add tests
11052         * lib/timespec-add.c (timespec_add):
11053         * lib/timespec-sub.c (timespec_sub):
11054         Work even if time_t is narrower than int (a theoretical
11055         possibility).  Redo code for a bit more clarity.
11056         * lib/timespec-sub.c (timespec_sub):
11057         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
11058         * modules/timespec-tests, tests/test-timespec.c: New files.
11060         intprops-test: suppress -Woverlength-strings
11061         Problem reported by Pádraig Brady in:
11062         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
11063         It is not worth the hassle to port this test to compilers that
11064         cannot handle long strings in diagnostics.
11065         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
11067 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11069         quotearg: add quotearg_n_style_colon()
11070         This quotes with default options of the specified style,
11071         but with quoting enabled for instances of ':'.
11072         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
11073         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
11075 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11077         intprops: revise _WRAPV macros, revert _OVERFLOW
11078         The incompatible changes to the _OVERFLOW macros were too much of
11079         a hassle in practice, so revert them.  Instead, change the new
11080         _WRAPV macros to make them closer in behavior to GCC 5's new
11081         builtin_add_overflow etc. functions.  No other software was using
11082         these newly-added macros yet, so this should be OK.
11083         * NEWS: Revert previous change, since the incompatible change
11084         has been reverted, and nobody used the incompatible version.
11085         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
11086         Document revised behavior.
11087         (Integer Range Overflow): Adjust example to match above revisions.
11088         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
11089         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
11090         these can be used in integer constant expressions again.
11091         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
11092         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
11093         needed.
11094         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11095         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11096         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
11097         Remove, as they did not seem that useful.
11098         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
11099         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
11100         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
11101         Support new semantics.
11102         (__has_builtin): New macro, if not alreay defined.
11103         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
11104         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11105         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11106         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11107         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
11108         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
11109         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
11110         New macros.
11111         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
11113 2015-11-03  Jim Meyering  <meyering@fb.com>
11115         intprops: add parentheses for when OP has precedence lower than "-"
11116         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
11117         "a OP b" must be parenthesized for when OP is like "<<", which has
11118         lower precedence than the following "-". Reported by Pádraig Brady.
11120 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11122         quotearg: constify get_quoting_style parameters
11123         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
11124         * lib/quotearg.c (get_quoting_style): Likewise.
11126 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11128         quotearg: add support for $'' shell escaping
11129         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
11130         items and descriptions.
11131         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
11132         above types by quoting like "shell", but using $'...' syntax
11133         for non printable characters, which should provide unambiguous
11134         printable output for any input.
11135         * tests/test-quotearg-simple.c: Update accordingly.
11137 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11139         maint: use a more standard return from mbrtowc test
11140         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
11141         from the test program as this is non standard and often
11142         indicates an unhandled case in the test program.
11143         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11145 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11147         intprops: add WRAPV and const flavors for GCC 5
11148         If available, use GCC 5's builtin functions for efficient integer
11149         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
11150         and safely compute the low-order bits of the correct answer.
11151         A downside of these efficient functions is that they cannot be
11152         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
11153         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
11154         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
11155         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
11156         Document the changes.
11157         (Wraparound Arithmetic): New section.
11158         (Integer Range Overflow):
11159         Put this subsection last, since it's least useful.
11160         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
11161         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
11162         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
11163         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11164         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11165         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
11166         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11167         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
11168         New macros.
11169         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11170         Generate calls to GCC builtins if available, for speed.
11171         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11172         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11173         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11174         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
11175         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
11176         (CHECK_QUOTIENT, CHECK_REMAINDER):
11177         Test WRAPV and CONST flavors (when available) too.
11179 2015-10-30  Pádraig Brady  <P@draigBrady.com>
11181         doc: use extended timezone format in iso-8601 example
11182         * doc/parse-datetime.texi: The standard states that extended format
11183         is to be used consistently throughout.
11184         Note that lib/parse-datetime.y can handle either tz format.
11186 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11188         stdalign: port to Sun C 5.9
11189         * doc/posix-headers/stdalign.texi: Document this.
11190         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
11191         __attribute__ ((__aligned__ (...))).
11193 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11195         time_rz: fix comment about tzalloc
11196         * lib/time_rz.c (tzalloc): Fix comment.
11198 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11200         stdalign: work around pre-4.9 GCC x86 bug
11201         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
11202         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
11203         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
11205 2015-10-18  Pádraig Brady  <P@draigBrady.com>
11207         maint.mk: sc_tight_scope: remove extraneous expressions
11208         * top/maint.mk (tight_scope): This is not really required since
11209         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
11210         that matches all nm entries.  But it does remove extraneous entries
11211         that may be confusing or cause issue in future maintenance.
11213 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11215         time_rz: return NULL if localtime_r fails
11216         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
11217         while still attempting to pacify bleeding-edge GCC.
11219         fts: port to C11 alignof
11220         * doc/posix-headers/stdalign.texi (stdalign.h):
11221         Document the C11 restriction.
11222         * lib/fts.c: Include stddef.h, for max_align_t.
11223         (fts_alloc): Align using max_align_t, not FTSENT.
11224         * modules/fts (Depends-on): Add stddef.
11226 2015-10-18  Jim Meyering  <meyering@fb.com>
11228         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
11229         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
11230         would see this:
11232         lib/time_rz.c: In function 'localtime_rz':
11233         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
11234           [-Werror=nonnull]
11235                    if (tm && !save_abbr (tz, tm))
11236                        ^
11238         That was complaining about "tm" because it is a parameter that was
11239         declared with the __nonnull__ attribute.
11240         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
11241         result of localtime_r.
11243 2015-10-17  Jim Meyering  <meyering@fb.com>
11245         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
11246         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
11247         name-extraction regexp mistakenly used \S+, and would mistakenly
11248         extract "*F" from "extern int *F()" rather than the desired "F".
11249         Use \w+ instead.
11251 2015-10-17  Jim Meyering  <meyering@fb.com>
11253         maint.mk: sc_tight_scope: factor and support OS X
11254         * top/maint.mk (_gl_tight_scope): Address three issues:
11255         - factor out four instances of code that wraps a string in "^...$"
11256         - allow nm-reported symbol names to have an optional leading "_"
11257         - add "main" to the list of ignored variable names, because on os x,
11258         "main" has nm-reported type "S" in the variable-checking section.
11260 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
11262         safe-alloc-tests: fix typo in license header
11263         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
11265 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
11267         copy-file: fix mem leak in error case
11268         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
11269         upon error opening or performing I/O to the src and dest files.
11271 2015-10-15  Mike Frysinger  <vapier@chromium.org>
11273         localename: control langinfo.h inclusion
11274         This header is only used to work around buggy behavior in old
11275         versions of glibc, so do not include it all the time.  Otherwise
11276         we get build failures on systems that do not provide langinfo.h.
11277         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
11278         in the source later on.
11279         The patch was originally submitted to gettext as:
11280         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
11282 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11284         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
11285         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
11286         * lib/u64.c, lib/unistd.c:
11287         Append 'typedef int dummy;', to pacify compilers that are picky
11288         about empty translation units.
11290 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
11292         accept4-tests: fix to avoid non portable flags
11293         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
11294         as they are the only documented ones, and passing others may trigger
11295         EINVAL (seen on FreeBSD 10.1-RELEASE).
11296         * doc/glibc-functions/accept4.texi: Mention that we don't provide
11297         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
11299 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
11301         gnulib-tool: fix tests of 'extensions' module
11302         This complements f8fe25fab60e3c687a124 commit.
11303         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
11304         emitting of initial gl_EARLY macros.
11305         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
11306         replaced with func_emit_pre_early_macros call.
11308 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11310         unicase/locale-language: fix typo in utf-8 cookie
11311         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
11312         Problem reported by Zbigniew Jędrzejewski-Szmek.
11314 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11316         xalloc: do not worry about GCC 5 warning on 32 bit
11317         * lib/xalloc.h: Revert previous change.
11318         I found a better way to fix this in coreutils.
11320 2015-10-02  Pádraig Brady  <P@draigBrady.com>
11322         xalloc: avoid GCC 5.1 warning on 32 bit
11323         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
11324         xalloc_oversized(), which was seen to give this warning
11325         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
11326         when simplifying conditional".
11328 2015-10-02  Daiki Ueno  <ueno@gnu.org>
11330         uniname/uniname-tests: avoid compiler warnings
11331         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
11332         unused local variables.
11333         (test_alias_lookup): Fix alias name display in failure cases.
11335 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11337         c-ctype: do not worry about EBCDIC + char signed
11338         Drop support for EBCDIC with char being signed, as this breaks too
11339         many programs.  Problem reported by Ben Pfaff in:
11340         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
11341         * lib/c-ctype.h: Verify that we are not using EBCDIC with
11342         char being signed.
11343         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
11344         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
11345         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
11346         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
11347         * tests/test-c-ctype.c (test_all):
11348         Simplify by assuming standard char values cannot be negative.
11349         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
11351 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11353         c-ctype: port better to z/OS EBCDIC
11354         Problems reported by Daniel Richard G. in:
11355         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
11356         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
11357         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
11358         (_C_CTYPE_OTHER_CNTRL): New macro.
11359         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
11360         from SCHAR_MIN, as the functions are defined only from values
11361         promoted from char or from unsigned char, not necessarily from
11362         signed char.
11364 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
11366         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
11368         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
11369         and ARFLAGS variables.  Doing this unconditionally could break
11370         later Automake's AM_PROG_AR invocation (at least it's
11371         AC_CHECK_TOOLS call to detect correct 'ar' binary).
11373         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
11374         Amsterdam Compiler Kit, so make the previous code to have effects
11375         only on ACK, and rather automatically call the Automake's
11376         AM_PROG_AR as soon as possible to decide other cases.
11378         References:
11379         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
11381         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
11382         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
11383         is possible, keep setting AR/ARFLAGS to reasonable defaults.
11384         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
11385         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
11386         'extensions' module is used.
11387         * modules/extensions (configure.ac-early): Remove as this snippet
11388         is added to gnulib-comp.m4 earlier anyway.
11390 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11392         sockets: MS Windows initalization fixes
11393         Problem reported by Test User in:
11394         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
11395         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
11396         Correct the endianness.
11397         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
11398         number mismatch, not just on <.  Cleanup before any such failure.
11400 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11402         gc: fix detection of installed libgcrypt version
11403         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
11404         at least as recent as 1.4.4.  The previously used macro is not
11405         available now, since modules were removed in version 1.6.0.
11407 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11409         c-ctype: rewrite to use inline functions
11410         This simplifies maintenance, since it makes for just one
11411         implementation of each function, letting the compiler have the fun
11412         of optimization.  In practice this works well nowadays with GCC.
11413         E.g., c_isascii might need only three instructions even though the
11414         source code lists every ASCII character individually in a large
11415         switch statement.
11416         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
11417         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
11418         * NEWS: Document the API change.
11419         * lib/c-ctype.c: Drastically simplify, since this now just expands
11420         inline functions.
11421         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11422         (C_CTYPE_INLINE): New macro.
11423         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
11424         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
11425         Verify that either ASCII or EBCDIC is being used.
11426         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
11427         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
11428         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
11429         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
11430         New private macros.
11431         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
11432         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
11433         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
11434         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
11435         (c_tolower, c_toupper): When converting, return the unsigned char,
11436         as that is what z/OS does.
11437         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
11438         of some c-ctype.h macros.
11439         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
11440         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
11441         c_tolower promotion to be compatible with z/OS.
11443 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
11445         gitlog-to-changelog: trim only trailing whitespaces
11446         This is fix for --format regression introduced by commit
11447         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
11448         doubled %n string) had no effect anymore.  This format
11449         specification has been used e.g. by GNU paxuitils (commit
11450         edfd8bcc3).
11452         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
11453         newlines in commmit messages.
11455 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11457         Test that c_iscntrl agrees with iscntrl, etc.
11458         Suggested by Daniel Richard G. in:
11459         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
11460         * modules/c-ctype-tests (Depends-on): Add ctype.
11461         * tests/test-c-ctype.c: Include <ctype.h>.
11462         (NCHARS): New constant.
11463         (test_agree_with_C_locale): New function.
11464         (main): Use it.
11465         (test_all): Use named constants.
11467         c-ctype: improve c_isascii testing
11468         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
11469         Add a test to count the number of ASCII characters.
11471 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11473         savewd: remove SAVEWD_CHDIR_READABLE
11474         It was problematic in the light of file systems that ignore umask.
11475         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
11476         * NEWS: Document this.
11477         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
11478         successful, -1 (setting errno) on failure, rather than something
11479         more complicated than that.
11480         * lib/mkdir-p.c (make_dir_parents):
11481         Do not use SAVEWD_CHDIR_READABLE.
11482         * lib/savewd.c (savewd_chdir):
11483         Remove support for SAVEWD_CHDIR_READABLE.
11484         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
11486         c-ctype: port better to EBCDIC
11487         Problems reported by Daniel Richard G. in
11488         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
11489         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
11490         Include "verify.h".
11491         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
11492         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
11493         Define as enum constants with value false, if not defined, so that
11494         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
11495         code more portable, as both branches of the 'if' are compiled on
11496         all platforms.
11497         (C_CTYPE_EBCDIC): New constant.
11498         Verify that the character set is either ASCII or EBCDIC.
11499         (to_char): New static function.
11500         (c_isascii, c_iscntrl):
11501         Assume standard control-character assignments for EBCDIC.
11502         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
11503         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
11504         Rewrite to use 'if' instead of 'ifdef'.
11505         Use to_char if non-ASCII.  Prefer <= to >=.
11506         Prefer true and false to 1 and 0, for booleans.
11507         (c_iscntrl): Use 'if', not 'ifdef'.
11508         * modules/c-ctype (Depends-on): Add verify.
11509         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
11510         (to_char): New function.
11511         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
11513 2015-09-21  Pádraig Brady  <P@draigBrady.com>
11515         nanosleep: fix return code for interrupted replacement
11516         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
11517         that we return -1 in the case the call is interrupted by a signal,
11518         rather than the current value of 1.
11519         Diagnosed and tested by Daniel Richard G.
11521 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11523         Diagnose ERE '()|\1'
11524         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
11525         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
11526         track of the set of previously-completed subexpressions available
11527         before the first alternative, and restore this set just before
11528         parsing each subsequent alternative.  This lets us diagnose the
11529         invalid back-reference in the ERE '()|\1'.
11531         regex: merge patches from libc
11533         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11534         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
11535         * lib/regex_internal.h:
11536         Include <libc-lock.h> instead of <bits/libc-lock.h>.
11538         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
11539         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
11540         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
11541         wcscoll.
11542         * lib/regexec.c (check_node_accept_bytes): Likewise.
11544         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11545         Fix regex wcrtomb namespace (bug 18496).
11546         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
11547         instead of wcrtomb.
11549         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11550         Fix regex wctype namespace (bug 18495).
11551         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
11552         instead of towlower.
11553         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
11554         instead of iswlower.  Call __towupper instead of towupper.
11555         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
11556         instead of iswalnum.
11558         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
11559         * lib/regcomp.c (parse_bracket_exp): Initialize type to
11560         COLL_SYM in a couple of places to avoid uninitialized variable
11561         wanings on tilegx gcc 4.8.2.
11563         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11564         * lib/regex_internal.h: Remove NOT_IN_libc.
11566         2014-11-17  Andreas Schwab  <schwab@suse.de>
11567         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
11569         2014-09-11  Roland McGrath  <roland@hack.frob.com>
11570         Move findidx nested functions to top-level.
11571         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
11572         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
11573         Pass new arguments to findidx.
11574         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
11575         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
11576         Don't #include it inside the function.  Pass new arguments to findidx.
11577         * lib/regex_internal.h:
11578         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
11579         (re_string_elem_size_at): Don't #include it inside the function.
11580         Pass new arguments to findidx.
11582         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11583         Check if DEBUG is defined in regex_internal.c
11584         * lib/regex_internal.c: Check if DEBUG is defined and is set.
11586 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
11588         ceill: detect buggy OpenBSD implementation
11589         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
11590         which returns zero for small values.  Discussed here:
11591         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
11593 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11595         mountlist: add me_mntroot field on Linux machines
11596         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11597         mount_entry so Linux machines based on /proc/self/mountinfo can
11598         distinguish between bind mounts and original mounts.  In reality bind
11599         mounts aren't treated differently than mountroot=/ mounts by the
11600         kernel, but the user often wants these bind mounts distinguished.
11601         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11602         More details at https://pad.lv/1432871
11604 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11606         doc: Describe to use multiple instances of gnulib
11607         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11608         instances of gnulib with different modules can be used, for example one
11609         for a lib and another one for associated tools.
11611 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11613         base32: mark function as __attribute__ const
11614         * lib/base32.h (isbase32): Mark __attribute__ const as
11615         suggested by GCC, and consistent with the base64 module.
11617 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11619         gnulib-tool: don't transform binary files with sed
11620         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11621         .mo and .class files.
11622         Reported by Denis Denisov.
11624 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11626         gperf: respect silent rules
11627         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11628         V_GPERF_0 for silent rules.
11629         * modules/iconv_open (Makefile.am): Use V_GPERF.
11630         * modules/unicase/locale-language (Makefile.am): Likewise.
11631         * modules/unicase/special-casing (Makefile.am): Likewise.
11632         * modules/unictype/category-byname (Makefile.am): Likewise.
11633         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11634         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11635         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11636         * modules/unictype/property-byname (Makefile.am): Likewise.
11637         * modules/unictype/scripts (Makefile.am): Likewise.
11638         * modules/uninorm/composition (Makefile.am): Likewise.
11640 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11642         Improve port of stdalign to C++11
11643         Problem reported by Sundaram in:
11644         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11645         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11646         (__alignas_is_defined): Define if C++11 or newer.
11648 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11650         pmccabe2html: fix gawk regex escaping
11651         * build-aux/pmccabe2html: Add one more backslash to properly
11652         escape the gsub replacement value.  Fixes this error:
11653         gawk: ./build-aux/pmccabe2html:425: \
11654         warning: escape sequence `\&' treated as plain `&'
11656 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11658         time_rz: port to pedantic memcpy
11659         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11660         that reject memcpy (..., NULL, 0).
11662 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11664         time_rz: port better to MinGW
11665         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11666         Instead, store the tzname copy in the struct tm_zone object.
11667         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11668         * lib/strftime.c [!_LIBC]:
11669         * lib/time_rz.c: Include time-internal.h.
11670         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11671         name from *TZ rather than from TZNAME, doable because *TZ now has
11672         a tzname_copy member.
11673         * lib/time-internal.h: New file, with contents taken from
11674         lib/time_rz.c.  It's separate because strftime.c now accesses
11675         struct tm_zone members.
11676         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11677         New member tzname_copy.
11678         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11679         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11680         Initialize tzname_copy member.
11681         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11682         in tzname_copy member.
11683         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11684         (restore_tzname): Remove; no longer needed.  All calls removed.
11685         * modules/time_rz (Files): Add lib/time-internal.h.
11687         time: port __need_time_t to MinGW
11688         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11689         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11691 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11693         strftime: fix newly-introduced bug on Solaris
11694         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11695         consistently at the start, rather than doing some of the setup at
11696         the start and some in the %Z format spec.  This is cleaner, and
11697         works better with time_rz on platforms like Solaris where struct
11698         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11699         mktime_z and localtime_rz can mess up the tzname cache.
11701         test-strftime: test for Solaris bug
11702         * modules/strftime-tests (Depends-on): Add strerror.
11703         * tests/test-strftime.c: Include <errno.h>.
11704         (posixtm_test): New function, containing the old 'main'.
11705         (struct tzalloc_test, struct localtime_rz_test): New types.
11706         (TZ, LT): New static vars.
11707         (tzalloc_test): New function.
11708         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11710         time_rz: port to Solaris etc.
11711         Works around a tzname problem on platforms like Solaris that have
11712         tzname but not tm_zone, by setting tzname at the appropriate time
11713         and restoring it later.
11714         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11715         New static vars.
11716         (save_abbr) [HAVE_TZNAME]: Set them.
11717         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11718         (restore_tzname): New function.
11719         (localtime_rz, mktime_z): Use it.
11721         time_rz: now LGPL
11722         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11724         time_rz: make a constant 'const'
11725         * lib/time_rz.c (local_tz): Now const.
11727         time_rz: fix off-by-one typo
11728         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11730 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11732         fprintftime, strftime: use timezone_t args
11733         * NEWS: Document the change.
11734         * lib/fprintftime.h (fprintftime):
11735         * lib/strftime.c (extra_args) [my_strftime]:
11736         * lib/strftime.h (nstrftime):
11737         Time zone arg is now of type timezone_t, not int.
11738         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11739         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11740         (my_strftime) [emacs && !my_strftime]:
11741         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11742         Remove; Emacs doesn't need this any more.
11743         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
11744         fprintftime and nstrftime to call tzset.
11745         (ut) [!my_strftime]: Remove, replacing with ...
11746         (tz) [!my_stftime]: ... this new macro.  All uses changed.
11747         (strftime_case_): Use localtime_rz and mktime_z instead
11748         of localtime_r and mktime.
11749         * modules/fprintftime (Depends-on): Add time_rz.
11750         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
11751         * tests/test-strftime.c (main): Adjust to new nstrftime API.
11753         time_rz: new module
11754         * MODULES.html.sh: Add time_rz.
11755         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
11756         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
11757         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
11758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
11759         New var HAVE_TIMEZONE_T (default 0).
11760         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11761         New var GNULIB_TIME_RZ (default 0).
11762         * modules/time (time.h): Substitute the new vars.
11764         flexmember: license is now unlimited
11765         * modules/flexmember (License): Change to unlimited,
11766         since its only source file gives an unlimited license.
11768 2015-07-15  Eric Blake  <eblake@redhat.com>
11770         maint: update copyright paper procedures
11771         * config/srclist.txt: Drop outdated files.
11772         * doc/Copyright/conditions.txt: Update to latest.
11773         * doc/Copyright/assign.changes.manual: Delete.
11774         * doc/Copyright/assign.future.manual: Likewise.
11775         * doc/Copyright/assign.manual: Likewise.
11776         * doc/Copyright/assign.translation.manual: Likewise.
11777         * doc/Copyright/disclaim.changes.manual: Likewise.
11778         * doc/Copyright/disclaim.manual: Likewise.
11779         * doc/Copyright/disclaim.program: Likewise.
11781 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11783         localename: fix link error on Illumos
11784         Illumos defines __sun, but does not have getlocalename_l nor the
11785         equivalent.  This partially reverts commit 387c214.
11786         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
11787         available, as well as uselocale.
11788         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
11789         use getlocalename_l if it is not available.
11791 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11793         unistr/uN-strtok-tests: avoid a trivial leak
11794         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
11795         input and delim after the multibyte delimiter tests.
11797 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11799         file-has-acl, acl-permissions: fix HP-UX typos
11800         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
11801         * lib/file-has-acl.c (file_has_acl):
11802         * lib/set-permissions.c (context_acl_from_mode)
11803         (context_aclv_from_mode, set_acls):
11804         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
11805         They were introduced by the recent ACL changes.
11807         regex: match current GNU grep behavior
11808         These symbols have not matched GNU grep behavior for quite some time.
11809         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
11810         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
11811         Change to match current GNU behavior.
11812         Simplify by expressing it as differences from POSIX BREs and EREs.
11813         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
11815 2015-07-03  Jim Meyering  <meyering@fb.com>
11817         set-permissions.c: adjust acl_from_mode's cpp guard
11818         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
11819         directives identical to those guarding the sole use.
11820         Otherwise, on some systems, we'd get a warning about
11821         the function being defined but not used.
11822         Also, filter through cppi to correct misleading indentation
11823         of cpp directives.
11825 2015-07-03  Pádraig Brady  <P@draigBrady.com>
11827         tests: restrict shells to those that support 'local'
11828         The local keyword is very widely supported and used
11829         in tests in coreutils and grep at least.  Therefore
11830         restrict to testing with shells that support it.
11831         This mainly excludes /bin/sh on Solaris.
11832         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
11834 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
11835         and Daiki Ueno  <ueno@gnu.org>
11837         unistr/uN-strtok: handle multibyte delimiters
11838         Previously, uN_strtok moved PTR to the next unit to the token end.
11839         When DELIM contained a multibyte character, the new position could
11840         be a middle of a multibyte character.
11841         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
11842         after the token.
11843         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
11844         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
11845         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
11846         * modules/unistr/u8-strtok (Depends-on): Depend on
11847         unistr/u8-strmblen.
11848         * modules/unistr/u16-strtok (Depends-on): Depend on
11849         unistr/u16-strmblen.
11850         * modules/unistr/u32-strtok (Depends-on): Depend on
11851         unistr/u32-strmblen.
11852         * tests/unistr/test-u-strtok.h: New file.
11853         * tests/unistr/test-u8-strtok.c: New file.
11854         * tests/unistr/test-u16-strtok.c: New file.
11855         * tests/unistr/test-u32-strtok.c: New file.
11856         * modules/unistr/u8-strtok-tests: New file.
11857         * modules/unistr/u32-strtok-tests: New file.
11858         * modules/unistr/u16-strtok-tests: New file.
11860 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11862         update-copyright: fix test failure with perl >= 5.22 (trivial)
11863         * build-aux/update-copyright: Escape a literal left curly bracket,
11864         required with perl >= 5.22
11866 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11868         u{16,32}-strstr-tests: relax timeout condition
11869         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11870         tests can take longer than 5 seconds to complete.
11871         Reported by Dagobert Michelsen in:
11872         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11873         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11874         seconds to 10 seconds.
11875         * tests/unistr/test-u32-strstr.c (main): Likewise.
11877 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11879         gnulib-common.m4: change the ARFLAGS default to 'cr'
11880         In some GNU/Linux distributions people started to compile 'ar'
11881         binary with --enable-deterministic-archives (binutils project).
11882         That, however, in combination with previous autotools long time
11883         working default AR{_,}FLAGS=cru causes warnings on such
11884         installations:
11885         ar: `u' modifier ignored since `D' is the default (see `U')
11886         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11887         set already.
11889 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11891         selinux-h: avoid double free after *getfilecon()
11892         Originally reported by Ben Shelton on bug-tar:
11893         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11894         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11895         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11896         param should be freed by freecon(3) (regardless the return value).
11898 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11900         fix pty related tests issues on Windows (trivial)
11901         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11902         however it's still present in tests/ subdirectory of the final project.
11903         Therefore avoid it to pass `make check`.
11904         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11905         will just return -ENOSYS, so avoid this non applicable test allowing
11906         the build to proceed.
11908 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11910         acl: fix definition of acl_from_mode on FreeBSD
11911         This was causing basic coreutils copy operations to fail
11912         with ENOTSUP or ENOENT error messages.
11913         * lib/acl-internal.h (acl_from_mode): Only define when
11914         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11915         of acl_from_mode() defined in lib/set-permissions.c to
11916         be used on FreeBSD at least.
11917         * lib/set-permissions.c: Fix up comment spelling,
11918         and a redundant variable assignment; noticed in passing.
11920 2015-06-30  Pádraig Brady  <P@draigBrady.com>
11922         readutmp: port to FreeBSD >= 9
11923         * lib/readutmp.h: Map utmpxname() to setutxdb().
11924         With that coreutils who(1) and pinky(1) tests pass.
11926 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11928         mgetgroups: port to strict OS X
11929         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
11930         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
11931         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
11932         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
11934 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
11936         mgetgroups: port to strict OS X
11937         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
11938         Document the getgrouplist problem.
11939         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
11940         New macro.
11941         (mgetgroups): Use it.
11942         * m4/mgetgroups.m4 (gl_MGETGROUPS):
11943         Check for OS X signature for getgrouplist.
11945 2015-06-29  Jim Meyering  <meyering@fb.com>
11947         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
11948         It started like this when building coreutils' latest on OS X,
11949         invoking ./configure with a nonempty --cache=.cache:
11951           lib/linkat.c:46:42: error: operator '||' has no right operand
11952           lib/linkat.c: In function 'rpl_linkat':
11953           lib/linkat.c:330:27: error: #if with no expression
11955         Here's linkat.c's line 46:
11957           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
11959         Here's some context:
11961           $ grep linkat_nofoll .cache
11962           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
11963           $ grep LINKAT_SYM lib/config.h
11964           #define LINKAT_SYMLINK_NOTSUP
11966         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
11967         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
11968         but that violates a tenet of AC_CACHE_CHECK: it must
11969         have no side effect other than setting its cache variable.
11971         What happens is that when the cache is set, we'd skip the
11972         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
11973         defined to whatever value it happened to have in configure's
11974         environment.  In my case, it was not defined, so this later code:
11976           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
11977             [Define to 1 if linkat can create hardlinks to symlinks])
11979         would emit code with an empty RHS.
11981         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
11982         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
11984 2015-06-28  Jim Meyering  <meyering@fb.com>
11986         mountlist: avoid an unused-label warning on OS X
11987         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
11988         Building on OS X, I saw a warning about the "free_then_fail" label
11989         being unused.  Give it the _GL_UNUSED_LABEL attribute.
11991         error.c: correct printf-style format: %d -> %u
11992         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
11993         rather than %d, to match the type of "line_number", unsigned int.
11995 2015-06-25  Pádraig Brady  <P@draigBrady.com>
11997         fts: avoid reading beyond the heap allocation
11998         GCC 5.1.1 with -O2 and -fsanitize=address reports
11999         a read of size 4 from a heap object of size 3 is indeed invalid,
12000         though this may be due to incorrect padding assumptions by GCC, see:
12001         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
12002         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
12003         * modules/fts: Depend on stdalign.
12005 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12007         savedir: avoid undefined behavior in qsort call
12008         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12009         "runtime error: null pointer passed as argument 1,
12010          which is declared to never be null"
12011         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
12013 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12015         userspec: avoid undefined behavior in gettext call
12016         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12017         "runtime error: null pointer passed as argument 2,
12018          which is declared to never be null"
12019         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
12021 2015-06-20  Glenn Morris  <rgm@gnu.org>
12023         gitlog-to-changelog: improve gitmerge.el commits
12024         Let the Emacs ChangeLog generation process exclude "skipped"
12025         messages from merge commits (Bug#20717).
12026         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
12028 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12030         wchar: fix MinGW compilation warnings
12031         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
12032         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
12033         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
12035 2015-06-20  Daiki Ueno  <ueno@gnu.org>
12037         uniname/uniname-tests: use pristine data files
12038         For copyright and maintenance reasons, use the data files from UCD
12039         without modification.
12040         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
12041         (getfield): Remove.
12042         (aliases_count): New global variable.
12043         (fill_names): Skip comments and empty lines in the input.  Don't
12044         use getfield.
12045         (fill_aliases): Likewise.
12046         (main): Change the expected command line arguments to:
12047         NAMES... ["--" ALIASES...].
12048         * tests/uniname/test-uninames.sh: Adjust to the change in
12049         test-uninames.c.
12050         * tests/uniname/UnicodeDataNames.txt: Remove.
12051         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
12052         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
12053         file from Unicode 8.0.0.
12055 2015-06-19  Pádraig Brady  <P@draigBrady.com>
12057         linked-list, linkedhash-list: avoid compiler warnings
12058         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12059         -Werror=suggest-attribute=pure (from GCC 5.1.1).
12061 2015-06-19  Daiki Ueno  <ueno@gnu.org>
12063         libunistring: bump minimum version to 0.9.6
12064         * all modules depending on updated Unicode data: Regenerate.
12065         The modules are listed by a script that does:
12066         - for each file listed by: git show --oneline --name-only 705f4efc
12067           - deduce the containing modules, based on "Files:"
12068         - deduce the modules which depend on the containing modules, based
12069           on "Depends-on:"
12071 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12073         uniname/uniname: update to Unicode 8.0.0
12074         * lib/uniname/uninames.h: Regenerate.
12075         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
12076         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
12078 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12080         libunistring: update to Unicode 8.0.0
12081         * lib/gen-uni-tables.c (SIZEOF): New macro.
12082         (output_numeric): Increase the maximum number of fractions from
12083         128 to 160.  Increase the level3 value width from 7 bits to 8
12084         bits.  Use SIZEOF instead of a hard-coded integer.
12085         (output_blocks): Decrease the cut-off threshold from 0x30000 to
12086         0x28000.
12087         (fill_blocks): Increase the maximum number of blocks from 256 to
12088         384.  Use SIZEOF instead of a hard-coded integer.
12089         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
12090         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
12091         value width.
12092         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
12093         a new case added to LBP22.
12094         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
12095         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
12096         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
12097         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
12098         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
12099         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12100         lib/uniwidth/width.c.
12101         * all generated files under lib/uni* and tests/uni*: Regenerate.
12103 2015-06-16  Pádraig Brady  <P@draigBrady.com>
12105         gnu-web-doc-update: add --mirror to remove stale files
12106         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
12107         out of date files from the CVS server.  Since this is usually
12108         appropriate, a prompt is given when the option is not specified,
12109         along with the `cvs remove` command that would be run.
12111 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12113         acl-permissions: pacify -Wsuggest-attribute=const
12114         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
12115         * lib/acl-internal.h (free_permission_context):
12116         Declare with attribute const if ! (defined USE_ACL &&
12117         (HAVE_ACL_GET_FILE || defined GETACL)).
12119         fsync: document AIX misbehavior
12120         * doc/posix-functions/fsync.texi (fsync):
12121         Document failure on AIX with read-only file descriptor.
12123 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
12125         stdio: Don't redefine gets when using C++
12126         * lib/stdio.in.h (gets): Disable warning on C++.
12128 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
12130         acl-permissions: port to AIX, C89 HP-UX
12131         Problems reported by Michael Felt.
12132         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
12133         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
12134         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
12135         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
12136         Add cast for AIX, whose system calls are declared to accept
12137         char * even though the arguments are really char const *.
12138         * lib/get-permissions.c (get_permissions):
12139         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
12140         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
12141         that broke a build.
12142         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
12143         Rework types to pacify xlc.
12145 2015-06-03  Pádraig Brady  <P@draigBrady.com>
12147         vasprintf-posix: avoid compiling vasnprintf where possible
12148         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
12149         module where not required.  For example on a GNU/Linux system
12150         when gnulib-tool is run with the --conditional-dependencies option.
12152 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12154         file-has-acl: fix build on Mac OS X 10
12155         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
12156         which has an incompatible 6 parameter getxattr() call.
12157         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
12158         call on Mac OS X >= 10.4.
12159         * doc/glibc-functions/fgetxattr.texi: Likewise.
12160         * lib/file-has-acl.c: Revert to more complete combined check.
12161         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
12162         Reported by Jack Howarth.
12164 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12166         prefix-gnulib-mk: remove no longer needed special case
12167         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
12168         continued lib_SOURCES lines are no longer present,
12169         so special case handling of such entries is not required.
12171 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12173         acl: don't depend on the deprecated qacl module
12174         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
12176 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12178         gnulib-tool: concatenate lib_SOURCES to a single line
12179         * gnulib-tool: Refactor the line merging sed logic,
12180         and use that to output a single lib_SOURCES line for each module.
12181         gnulib using projects often postprocess this output to prepend
12182         subdir paths to each item, and having a single line simplifies this
12183         processing allowing better decoupling from the gnulib-tool output.
12185 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
12187         pthread_sigmask: discount system version if a simple macro (trivial)
12188         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
12189         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
12190         function to ensure it's available.
12192 2015-05-31  Pádraig Brady  <P@draigBrady.com>
12194         readlinkat: avoid OS X 10.10 trailing slash bug
12195         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
12196         has this bug.
12197         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
12198         that OS X 10.10 has this function.
12199         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
12200         as done for readlink().
12201         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
12202         trailing slash bug, and assume readlinkat() has the same issue.
12203         Also fix a typo where $gl_cv_decl_readlink_works was tested,
12204         rather than the correct $gl_cv_decl_readlinkat_works.
12206 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12208         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
12209         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
12210         module rewrite.
12212         acl-permissions: Fix build on Solaris and Cygwin
12213         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
12214         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
12215         ace_entries variables have moved into struct permission_context but
12216         they were still accessed as local variables here.
12218 2015-05-29  Pádraig Brady  <P@draigBrady.com>
12220         linkat: avoid OS X 10.10 trailing slash with symlink bug
12221         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
12222         causes the symlink to be dereferenced, and if it points
12223         to a non existent file, that file will be created as
12224         a hard link to "path1".
12225         This fixes a test failure in test-linkat.c.
12226         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
12227         this case.  The existing workaround in linkat.c for
12228         trailing slash issues, suffices for this case.
12229         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
12230         the list of platforms with trailing slash issues.
12232 2015-05-28  Pádraig Brady  <P@draigBrady.com>
12234         unlinkat: handle ignoring of ".." on Darwin 14
12235         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
12236         on Mac OS X 10.10, where it ignores paths with a trailing "..",
12237         so handle in the same manner.
12238         * m4/unlinkat.m4: Comment on this Darwin issue.
12239         * doc/posix-functions/unlink.texi: Update the latest version
12240         where the issue was seen.
12241         * doc/posix-functions/unlinkat.texi: Mention this issue.
12242         Fixes a test failure in test-unlinkat.c.
12244 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12246         qacl: split into qcopy-acl and qset-acl
12247         Emacs needs the former, but not the latter.
12248         * modules/acl-permissions: New file, containing most of the old qacl.
12249         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
12250         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
12251         * modules/qcopy-acl, modules/qset-acl: New files.
12252         * MODULES.html.sh (File system functions):
12253         Mention the new modules, and mention qacl while we're at it.
12255 2015-05-27  Glenn Morris  <rgm@gnu.org>
12257         gitlog-to-changelog: new option --ignore-line
12258         (This patch is imported from the GNU Emacs master.)
12259         This option ignores individual commit lines matching a pattern.
12260         * build-aux/gitlog-to-changelog: Add --ignore-line option.
12262 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
12264         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
12265         Implement get_permissions and set_permissions primitives for getting all
12266         the permissions of a file, storing them, and later setting them. (In the
12267         minimal case, the permissions consist only of a file mode.) Reimplement
12268         qset_acl and qcopy_acl based on these new primitives: this avoids code
12269         duplication and makes error handling more consistent.
12270         The Solaris and Cygwin code still uses duplicate code paths for setting
12271         a file mode while making sure that no acls exist and setting an explicit
12272         acl; this is no worse than before, but could be cleaned up.  The AIX
12273         code still doesn't read ACLs, it only makes sure that acls don't get in
12274         the way when setting a file mode.
12275         * lib/acl-internal.h (struct permission_context): New data structure.
12276         (get_permissions, set_permissions, free_permission_context): Declare.
12277         * lib/acl-internal.c (free_permission_context): New helper function.
12278         * lib/get-permissions.c (get_permissions): New helper function split off
12279         from qcopy_acl.
12280         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
12281         AIX, set a file's permissions based only on a file mode.
12282         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
12283         other platforms construct a temporary acl from the file mode and set
12284         that acl in the same way as setting an acl read from the source file.
12285         This should help avoid code duplication and inconsistent / buggy
12286         behavior.
12287         (set_acls): New helper function Split off from qcopy_acl.
12288         (chmod_or_fchmod): Moved here from qset-acl.c.
12289         (set_permissions): New helper function.
12290         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
12291         set_permissions.
12292         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
12293         * modules/qacl: Add get-permissions.c and set-permissions.c.
12295         file-has-acl: Split feature tests again (Bug#20667)
12296         * lib/file-has-acl.c: Instead of testing for
12297         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
12298         define them when needed.
12299         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
12300         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
12302 2015-05-27  Pádraig Brady  <P@draigBrady.com>
12304         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
12305         This avoids a conflict with "FORTIFY_SOURCE" variants
12306         of the string functions when they're replaced on NetBSD-6.0.1
12307         and Darwin-14.3.0 at least.
12308         * lib/string.in.h: Avoid including our "lib/string.h" while
12309         including the system <string.h>.
12311 2015-05-26  Eric Blake  <eblake@redhat.com>
12313         stdio: limit __gnu_printf__ witness to gcc 4.4+
12314         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
12315         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
12317         error: use correct printf attributes on mingw
12318         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
12320         inttypes: force correct mingw PRIdMAX even without <stdio.h>
12321         * modules/inttypes (Depends-on): Require extensions, so that mingw
12322         always uses GNU style inttypes.
12323         * lib/inttypes.in.h: On mingw, include <stdio.h>.
12325         stdio: fix probe on mingw under gcc 5.1
12326         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
12327         around new gcc preprocessor rules.
12329 2015-05-07  Glenn Morris  <rgm@gnu.org>
12331         gitlog-to-changelog: parse "Tiny-change"
12332         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
12333         "Copyright-paperwork-exempt".  (Bug#20324)
12335 2015-05-06  Pádraig Brady  <P@draigBrady.com>
12337         doc: document glibc posix_fallocate() issues
12338         * doc/posix-functions/posix_fallocate.texi: Mention the
12339         glibc efficiency problems and issues with NFS.
12341 2015-05-05  Karl Berry  <karl@freefriends.org>
12343         * build-aux/gendocs.sh (usage): document new css default
12344         for HTML (--htmlarg).
12346 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12348         extern-inline: no need for workaround in GCC 5.1
12349         * doc/extern-inline.texi (extern inline):
12350         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12351         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
12352         around these bugs in GCC 5.1 and later.  Maybe in a decade or
12353         two we can remove these workarounds.
12355 2015-04-28  Pádraig Brady  <P@draigBrady.com>
12357         eealloc, pagealign_alloc, xalloc: avoid clang warnings
12358         Avoid [-Wunknown-attributes] warnings like:
12359         warning: unknown attribute '__alloc_size__' ignored
12360         * lib/xalloc.h: Don't use the __alloc_size__  attribute
12361         with clang, as support has been fully removed as of clang 3.5:
12362         https://github.com/llvm-mirror/clang/commit/c047507a
12363         * lib/eealloc.h: Likewise.
12364         * lib/pagealign_alloc.h: Likewise.
12366 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12368         tests: pacify GCC 5.1's stricter printf checking
12369         * tests/test-dirname.c (main):
12370         * tests/test-getaddrinfo.c (simple):
12371         * tests/test-getlogin.c (main):
12372         * tests/test-getndelim2.c (main):
12373         * tests/test-inttostr.c (CK):
12374         * tests/test-md5.c (main):
12375         * tests/test-read-file.c (main):
12376         * tests/test-sha1.c (main):
12377         Fix mismatches between printf format and value signedness.
12378         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
12379         Remove, as CAST_VAL always returned a value of type uintmax_t.
12381         fts: port to GCC 5.1 with --enable-gcc-warnings
12382         Without this fix, GCC 5.1 (correctly) warns about a subscript
12383         error on the fts_name component of FTSENT.  It's actually a
12384         flexible member, so define it that way on C99 or later hosts.
12385         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
12386         structure that now has a flexible array member.
12387         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
12388         (FTSENT): fts_name is now flexible on C99-or-later platforms.
12389         * modules/fts (Depends-on): Add flexmember.
12391 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12393         file-has-acl: port to CentOS 6
12394         Problem reported by Tom G. Christensen in:
12395         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
12396         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
12397         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
12398         HAVE_GETXATTR.
12399         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
12400         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
12401         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
12402         file-has-acl.c actually needs.
12404 2015-04-26  Pádraig Brady  <P@draigBrady.com>
12406         file-has-acl: always return false when ACLs aren't supported
12407         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
12408         change the GNU/Linux getxattr path, to transform "not supported"
12409         errors to a false return rather than an error.  This is handled
12410         within file_has_acl() due to the platform specific tests to
12411         determine if ACLs are not supported.
12413 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12415         gettext: propagate po/Makefile.in.in too
12416         * build-aux/po/Makefile.in.in: Copy from latest gettext.
12417         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
12418         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
12419         between Makefile.in.in and the gettext-runtime m4 files.
12421 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12423         file-has-acl: new module, split from acl
12424         And add a new module file-has-acl-tests to match.
12425         I ran into a problem with the recent changes to the acl module,
12426         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
12427         When using the fixed version with Emacs, I discovered that
12428         file-has-acl wasn't separated out well enough for Emacs (e.g., it
12429         had multiple libraries, but needed only one), so I fixed that too.
12430         * NEWS: Document this incompatible change.
12431         * modules/file-has-acl, modules/file-has-acl-tests: New files.
12432         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
12433         Initialize gl_need_lib_has_acl.
12434         (gl_FUNC_ACL): Require it.
12435         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
12436         Move the file-has-acl.c-relevant stuff to ...
12437         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
12438         use_xattrs = 0' typo, and omit some needless work.  Set
12439         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
12440         when gl_FUNC_ACL is called.
12441         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
12442         (Link): Remove $(LIB_HAS_ACL).
12443         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
12444         (check_PROGRAMS): Move stuff relevant to file-has-acl to
12445         modules/file-has-acl-tests.
12446         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
12448         manywarnings: add GCC 5.1 warnings
12449         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
12450         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
12451         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
12452         -Wsuggest-override, -Wuse-without-only.  Change
12453         -Wnormalized=... operands to match 5.1.
12454         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
12455         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
12456         -Wdiscarded-qualifiers, -Wformat-signedness,
12457         -Wincompatible-pointer-types, -Wint-conversion,
12458         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
12459         -Wshift-count-negative, -Wshift-count-overflow,
12460         -Wsizeof-array-argument, -Wsuggest-final-methods,
12461         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
12462         and add -Warray-bounds=2 as a special case.
12464 2015-04-21  Simon Josefsson  <simon@josefsson.org>
12466         doc: update FDL template to match FDL examples.
12467         * doc/alloca-opt.texi:
12468         * doc/alloca.texi:
12469         * doc/c-ctype.texi:
12470         * doc/c-strcase.texi:
12471         * doc/c-strcaseeq.texi:
12472         * doc/c-strcasestr.texi:
12473         * doc/c-strstr.texi:
12474         * doc/c-strtod.texi:
12475         * doc/c-strtold.texi:
12476         * doc/ctime.texi:
12477         * doc/error.texi:
12478         * doc/gcd.texi:
12479         * doc/gnulib-tool.texi:
12480         * doc/inet_ntoa.texi:
12481         * doc/intprops.texi:
12482         * doc/lib-symbol-visibility.texi:
12483         * doc/maintain.texi:
12484         * doc/parse-datetime.texi:
12485         * doc/quote.texi:
12486         * doc/regexprops-generic.texi:
12487         * doc/standards.texi: Remove spurious 'with' in FDL license
12488         template.
12490 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
12492         lstat: fix cross-compilation 'ln -s' problem
12493         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
12494         Have the test program call 'symlink' rather than a separate
12495         script run 'ln -s'; this is more likely to work in
12496         cross-compilation environments.  Reported by Pavel Fedin in:
12497         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
12499 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
12501         gendocs.sh: default to a common CSS style sheet for HTML output
12502         * build-aux/gendocs.sh (htmlarg): Change default value.
12504 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
12506         gnulib-tool: output bold attribute more portably
12507         * gnulib-tool (func_show_module_list): Change hexadecimal
12508         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
12509         encoded numbers as arguments to `printf' is not portable,
12510         and is not claimed by POSIX.  This is the case with FreeBSD.
12512 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12514         qacl: Simplify HP-UX acl_nontrivial check
12515         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
12516         acl_nontrivial. Check if the acl has at most three entries instead (it must
12517         have exactly three entries according to the HP-UX documentation). Ignore
12518         uids and gids as long as an entry is either for a user (i.e., the owner),
12519         a group (i.e., the owning group), or others.
12520         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
12521         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
12523 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
12525         acl: On Linux, check for acls without libacl
12526         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
12527         library function to check for the presence of acls, avoiding a library.
12528         * lib/file-has-acl.c: Include xattr headers if we have them.
12529         (file_has_acl): On Linux, use getxattr().
12530         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
12531         file_has_acl(). Check for xattr headers and getxattr().
12533 2015-04-14  Ángel González  <keisial@gmail.com>
12535         tempname: avoid unused parameter warnings (trivial)
12536         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
12537         (try_nocreate): Likewise.
12539 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
12541         fseeko: fix build failure on NetBSD >= 6 (trivial)
12542         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
12543         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
12545 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12547         gitlog-to-changelog: port to MS-Windows
12548         * build-aux/gitlog-to-changelog (git_dir_option):
12549         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
12550         MS-Windows Perl.  Reported by Eli Zaretskii in:
12551         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
12553 2015-04-07  Karl Berry  <karl@gnu.org>
12555         gendocs: new option --tex for passing args to texi2dvi.
12556         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
12557         (TEXI2DVI): cut to just command name.
12558         (usage): mention new option, and update copyright.
12559         <generate_tex>: use it.
12561 2015-04-07  Karl Berry  <karl@gnu.org>
12563         * config/srclistvars.sh (GETTEXT): new definition.
12564         * config/srclist.txt: use it for gettext .m4 files.
12565         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
12566         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
12567         and continuing into April.
12569 2015-04-07  Daiki Ueno  <ueno@gnu.org>
12571         uniname/uniname-tests: fix failure due to alias
12572         Reported by Jack Howarth in:
12573         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
12574         * tests/uniname/test-uninames.c (name_has_alias): New function.
12575         (test_inverse_lookup): Exclude character name with valid alias,
12576         from randomly generated character names.
12577         (main): Fill unicode_aliases before calling test functions.
12579 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
12581         hash: remove deprecated hash_insert0 function
12582         * lib/hash.h (hash_insert0): Remove deprecated function.
12583         * lib/hash.c (hash_insert0): Likewise.
12585 2015-04-02  Pádraig Brady  <P@draigBrady.com>
12587         mountlist: remove dependency on libmount
12588         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
12589         directly, rather than depending on libmount, which has many
12590         dependencies due to its dependence on libselinux, as detailed at:
12591         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
12592         Note we restrict this to __linux__ as that's probably where this
12593         interface will remain.  If ever porting, it would be best
12594         to first pull the makedev() wrapper from coreutils to a gnulib module.
12595         Note also we don't add a getline dependency to the mountlist module,
12596         as all Linux versions are sufficient.
12598 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12600         stddef: port to pre-C11 GCC on x86
12601         On this platform, max_align_t should have an alignment of 8 even
12602         though the storage alignments of double, long, etc. max out at 4.
12603         Inspired by a comment of Andreas Schwab's here:
12604         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12605         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12606         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12607         * tests/test-stddef.c: Test __alignof__ too, if available.
12609 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12611         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12612         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12614 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12616         yesno: make EOL optional in ENABLE_NLS case also (trival)
12617         * lib/yesno.c (yesno): Check for EOL before replacing.
12618         * tests/test-yesno.sh: Add a test case (test along with gettext).
12620 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12622         fdopendir-tests: test it does not close its arg
12623         * tests/test-fdopendir.c (main): Test that fdopendir does not
12624         close its argument.  From a suggestion by David Grayson in:
12625         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12627 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12629         gitlog-to-changelog: trim trailing white space
12630         * build-aux/gitlog-to-changelog (main):
12631         Trim trailing white space from commit message lines.
12632         This is helpful for processing the GNU Emacs repository,
12633         which dates back to 1985 and contains a lot of such lines.
12635         gitlog-to-changelog: new option --ignore-matching
12636         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12637         Support new option --ignore-matching=PAT, which ignores all
12638         commit messages whose first line matches PAT.
12640 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12642         fdopendir: port better to MinGW
12643         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12644         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12645         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12646         * modules/fdopendir (Depends-on): Add dirfd.
12648 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12650         fdopendir: fix typo in comment
12651         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12653 2015-03-09  Eric Blake  <eblake@redhat.com>
12655         error: document all entry points provided
12656         * doc/glibc-functions/error_print_progname.texi
12657         (error_print_progname): Mention the error module.
12658         * doc/glibc-functions/error_at_line.texi (error_at_line):
12659         Likewise.
12660         * doc/glibc-functions/error_message_count.texi
12661         (error_message_count): Likewise.
12662         * doc/glibc-functions/error_one_per_line.texi
12663         (error_one_per_line): Likewise.
12665 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12667         vasnprintf: pacify clang 3.5.0
12668         Problem reported by Werner Lemberg in:
12669         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12670         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12671         The casts aren't needed, since the characters in question are ASCII.
12673 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12675         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12676         * lib/dirent--.h (GNULIB_defined_opendir):
12677         * lib/dirent.in.h (GNULIB_defined_opendir)
12678         (GNULIB_defined_closedir):
12679         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12680         #undef only if Gnulib defined it.
12682         poll: port to MSVC v18 on MS-Windows 8.1
12683         Problem reported by Gisle Vanem in:
12684         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12685         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12686         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12687         Add sys_socket.
12689 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12691         tests: support stderr verification with returns_()
12692         * tests/init.sh (returns_): Disable tracing for this wrapper
12693         function, so that stderr of the wrapped command is unchanged,
12694         allowing for verification of the contents.
12696 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12698         passfd: avoid valgrind uninitalised data warning
12699         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12700         to include just the fd we've initialized, rather than including
12701         the extra space used for alignment.
12703 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12705         uniwbrk/u32-wordbreaks-tests: fix copyright
12706         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12708         dup2: doc and test for Android bug
12709         Reported by Kevin Cernekee in:
12710         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12712         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12714 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12716         Replace dup2() on Android
12717         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12718         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12719         fails.  Using rpl_dup2() fixes this because it has an explicit test
12720         for this condition.
12722 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12724         Android doesn't define RLIM_SAVED_*
12725         Portability problem reported by Kevin Cernekee in:
12726         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12727         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12728         Mention the portability problem.
12729         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12730         Define if not defined.
12731         * m4/dup2.m4 (gl_FUNC_DUP2):
12732         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12733         Likewise.
12735 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12737         vasnprintf-posix-tests: use consistent test
12738         * tests/test-vasnprintf-posix.c (test_function):
12739         Use "<" in assert instead of "<=", for consistency with other tests.
12741 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12743         printf, isinf, etc.: noncanonical != NaN
12744         Do not require that isinf, printf, etc. treat noncanonical
12745         values as NaNs.  Instead, require only that they do not crash.
12746         Problem reported by Joseph Myers in:
12747         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
12748         * doc/posix-functions/dprintf.texi (dprintf):
12749         * doc/posix-functions/fprintf.texi (fprintf):
12750         * doc/posix-functions/isfinite.texi (isfinite):
12751         * doc/posix-functions/isinf.texi (isinf):
12752         * doc/posix-functions/isnan.texi (isnan):
12753         * doc/posix-functions/printf.texi (printf):
12754         * doc/posix-functions/snprintf.texi (snprintf):
12755         * doc/posix-functions/sprintf.texi (sprintf):
12756         * doc/posix-functions/vdprintf.texi (vdprintf):
12757         * doc/posix-functions/vfprintf.texi (vfprintf):
12758         * doc/posix-functions/vprintf.texi (vprintf):
12759         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12760         * doc/posix-functions/vsprintf.texi (vsprintf):
12761         Document this.
12762         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
12763         * m4/isinf.m4 (gl_ISINFL_WORKS):
12764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
12765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
12766         * tests/test-isfinite.c (test_isfinitel):
12767         * tests/test-isinf.c (test_isinfl):
12768         * tests/test-isnan.c (test_long_double):
12769         * tests/test-isnanl.h (main):
12770         * tests/test-snprintf-posix.h (test_function):
12771         * tests/test-sprintf-posix.h (test_function):
12772         * tests/test-vasnprintf-posix.c (test_function):
12773         * tests/test-vasprintf-posix.c (test_function):
12774 o       Test only that noncanonical values do not cause crashes, not that
12775         they are treated as NaNs.  In some cases this means a larger
12776         output buffer is needed.
12778 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
12780         fts: remove redundant close() (trivial)
12781         * lib/fts.c (fts_read): Remove redundant call to close().
12782         Spotted by coverity.
12784 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12786         getdtablesize: port better for Android
12787         Problem reported by Kevin Cernekee in:
12788         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
12789         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
12790         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
12791         Instead, just use getrlimit, taking care to avoid Cygwin bug.
12793         poll: fixes for large fds
12794         * lib/poll.c (poll): Don't check directly for NFD too large.
12795         Don't rely on undefined behavior in FD_SET when an arg exceeds
12796         FD_SETSIZE.  Always set revents afterwards, even if to zero.
12797         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
12798         as that makes the test a bit stricter.
12800 2015-02-19  Kevin Cernekee  <cernekee@google.com>
12802         fcntl: Fix cross compiling
12803         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
12804         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
12806 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12808         dup2, fcntl: cross-compile better for Android
12809         Problem reported by Kevin Cernekee in:
12810         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
12811         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
12812         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
12813         there's little need to cross-compile for older kernels nowadays.
12814         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
12815         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
12817 2015-02-18  Pádraig Brady  <P@draigBrady.com>
12819         getopt: don't crash on memory exhaustion
12820         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
12821         memory exhaustion.  In the _LIBC case we use alloca() as is
12822         already done in glibc, so we don't need to consider the separate
12823         error path in that awkward case.  Also fix a memory leak when
12824         ambiguous options are present.
12825         Reported by Tobias Stoeckmann
12827 2015-02-17  Mike Miller  <mtmiller@ieee.org>
12829         tempname: allow compilation with C++ (trivial)
12830         * lib/tempname.h [C++]: Specify extern "C" linkage.
12831         * lib/tempname.h (try_tempname):
12832         * lib/tempname.c (__try_tempname, __gen_tempname):
12833         Rename 'try' to 'tryfunc'.
12835 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12837         dup2, fcntl: port to AIX
12838         * m4/dup2.m4 (gl_FUNC_DUP2):
12839         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12840         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
12841         The former works on AIX 7.1 but the latter does not.
12842         Also, this may work better with Android; see:
12843         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
12845 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12847         getdtablesize, dup2, fcntl: port to Android
12848         Problem reported by Kevin Cernekee in:
12849         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
12850         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
12851         Mention that getdtablesize doesn't work on Android.
12852         * lib/getdtablesize.c: Use getrlimit substitute only if
12853         getdtablesize is declared.  This should suffice for Cygwin
12854         while not breaking Android.
12855         * m4/dup2.m4 (gl_FUNC_DUP2):
12856         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12857         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12858         standardized but the latter is not, and sysconf works on Android.
12859         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12860         Also check that getdtablesize is declared.
12861         This removes the need for a special case for Android.
12863 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12865         localename: Implement gl_locale_name_thread_unsafe for Android
12866         * lib/localename.c: Android API level >= 21 supports two hardcoded
12867         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12868         the internal __locale_t struct.
12870 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12872         fts: avoid crash when a cycle is added while traversing
12873         This could be triggered by auto-mounting a recursive bind mount.
12874         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12875         * lib/fts.c (fts_read): Avoid removing the original hash table item
12876         when leaving a directory that caused a cycle, and preserve the FTS_DC
12877         flag.
12879 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12881         uniname/uniname: support character alias
12882         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12883         Generate one-way mapping from aliases to codepoints in the
12884         generated tables.  Special case variation selectors to reduce
12885         table size.
12886         * lib/uniname/uniname.c (unicode_character_name): Special case
12887         variation selectors.
12888         (unicode_name_character): Special case variation selectors and
12889         their aliases.
12890         * lib/uniname/uninames.h: Regenerate.
12891         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12892         * modules/uniname/uniname-tests (Files): Add
12893         tests/uniname/NameAliases.txt.
12894         * tests/uniname/test-uninames.c: Mark as static.
12895         (ALIASLEN): Define.
12896         (struct unicode_alias): New struct.
12897         (unicode_aliases): New variable.
12898         (fill_aliases): New function.
12899         (test_alias_lookup): New test function.
12900         (main): Run the 'test_alias_lookup' test if the second argument is
12901         given.
12902         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12903         second argument.
12905 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12907         Fix FILE struct compatibility with Android API level >= 21
12908         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12909         __sferror.  Recent versions of Bionic's stdio.h no longer define
12910         __sferror.
12911         * lib/fbufmode.c: Likewise.
12912         * lib/fflush.c: Likewise.
12913         * lib/fpurge.c: Likewise.
12914         * lib/freadable.c: Likewise.
12915         * lib/freadahead.c: Likewise.
12916         * lib/freading.c: Likewise.
12917         * lib/freadptr.c: Likewise.
12918         * lib/freadseek.c: Likewise.
12919         * lib/fseeko.c: Likewise.
12920         * lib/fseterr.c: Likewise.
12921         * lib/fwritable.c: Likewise.
12923         Assume unbroken ungetc() on Android
12924         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
12925         test case passed when running on an Android host, and the code
12926         hasn't really changed since 2009.
12928         getdtablesize: Fix Android build
12929         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
12930         versions have this symbol in the .so library (at least 32-bit
12931         platforms) but are missing the declaration in the header file,
12932         causing the m4 logic to guess incorrectly.
12934         localename: Fix Android build
12935         * modules/localename (Depends-on): Add langinfo.
12937         getugroups: Fix Android build
12938         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
12939         functions.
12941         euidaccess: Fix Android build
12942         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
12943         AT_EACCESS gets declared.
12945         linkat_nofollow: Add fallback case for cross compiling
12946         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
12948         net_if: Handle content-free <net/if.h> system headers
12949         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
12950         struct if_nameindex.  If not, enable the replacement header.
12952         signal_h: Fix Android build
12953         * lib/signal.in.h: Add Android to the list of platforms that declare
12954         pthread_sigmask() in <pthread.h> instead of <signal.h>.
12956         duplocale: Fix Android build of duplocale-tests
12957         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
12958         is included by test-duplocale.c (but not by duplocale.c).
12959         * modules/duplocale-tests (configure.ac): Check for monetary.h.
12960         * tests/test-duplocale.c: Skip test if monetary.h is absent.
12961         * doc/posix-headers/monetary.texi: Add Android to the list of
12962         platforms missing monetary.h.
12964 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12966         tests: avoid recent -Werror=unused-variable regression in test-locale
12967         * tests/test-locale.c (main): Reference the variable to avoid the
12968         "unused variable" warning.
12970 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12972         maint: various whitespace cleanups in tempname
12973         * lib/tempname.c: Normalize spacing and line length.
12974         * lib/tempname.h: Likewise.
12975         * modules/tempname: Likewise.
12977 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12979         tests: provide returns_() to simplify exit status checking
12980         * tests/init.sh (returns_): A new function for use in tests,
12981         to allow for easier checking of return values, where you expect
12982         a command to exit with failure status.  By checking for a particular
12983         exit code, you don't hide any crashes for example.
12985 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12987         mountlist: only use libmount when specified
12988         There are currently many shared libs dependencies introduced by
12989         libmount with associated runtime and virt mem overhead.
12990         Therefore don't enable by default.
12991         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
12993 2015-02-08  Daiki Ueno  <ueno@gnu.org>
12995         uniname/unimame-tests: don't link with -lunistring
12996         * modules/uniname/uniname-tests (Makefile.am): Don't link against
12997         $(LIBUNISTRING).  Document the rationale why we need to
12998         conditionalize the test.
13000 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13002         fstrcmp: don't assume strlen < INT_MAX
13003         * lib/fstrcmp.c: Include stddef.h and stdint.h.
13004         (uintptr_t): Remove, as we're now assuming stdint.
13005         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
13006         Prefer ptrdiff_t to int when the value could exceed INT_MAX
13007         if the input string is long.
13008         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
13009         uintptr_t to size_t when the underlying value is a pointer casted
13010         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
13011         * modules/fstrcmp (Depends-on): Add stdint.
13013         diffseq: prefer ptrdiff_t to ssize_t
13014         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
13015         ptrdiff_t is the natural type for signed indexes.
13016         On a few older platforms, ssize_t is narrower than size_t.
13018         xalloc: fix typo that suppressed warnings
13019         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
13020         This typo, introduced a couple of years ago, mistakenly suppressed
13021         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
13022         -Wmissing-declarations warnings.
13024         full-read: fix license notice typo
13025         * lib/full-read.h: Remove a stray line in the license notice.
13026         Reported by Sam Ellis in: http://bugs.gnu.org/19808
13028         crypto/gc: fix a -Wswitch warning
13029         Reported by Bruce Korb in:
13030         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
13031         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
13033 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13035         gnulib-tool: fix handling of patch(1) diagnostics
13036         * gnulib-tool: Send diagnostics from patch(1) to stderr,
13037         as otherwise gnulib-tool will reparse that output and attempt
13038         to lookup modules.
13040 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13042         bootstrap: exit immediately upon gnulib-tool failure
13043         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
13044         This was noticed when gnulib-tool exited early due to failure
13045         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
13046         but various confusing errors were then given as the build proceeded.
13048 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
13050         symlinkat: include all required header files
13051         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
13052         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
13053         Reported at https://savannah.gnu.org/bugs/index.php?44151
13054         and by Jack Howarth.
13056 2015-01-29  Pádraig Brady  <P@draigBrady.com>
13058         localename: support Solaris 12 and illumos
13059         * lib/localename.c (gl_locale_name_thread_unsafe): call
13060         getlocalename_l() on newer __sun platforms.
13061         Reported by Alexander Pyhalov.
13062         Fix suggested by Rich Burridge.
13064 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
13066         locale: fix tests on illumos (trivial)
13067         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
13068         so move from global scope to main().
13070 2015-01-24  Daiki Ueno  <ueno@gnu.org>
13072         unictype: avoid undefined left-shift behavior
13073         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
13074         gcc's -fsanitize=shift and running its tests triggered:
13075           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
13076             places cannot be represented in type 'int'
13077         Cast LHS to 'unsigned int' after integer promotion.
13078         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
13079         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
13081 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13083         libunistring: bump version of unitypes dependants
13084         Due to the header file search order, all the headers which depend
13085         on unitypes.h need to be generated, when the preinstalled
13086         libunistring is older.
13087         * modules/unicase/base (configure.ac): Bump minimum version to
13088         0.9.4.
13089         * modules/uniconv/base (configure.ac): Likewise.
13090         * modules/unilbrk/base (configure.ac): Likewise.
13091         * modules/uninorm/base (configure.ac): Likewise.
13092         * modules/unistdio/base (configure.ac): Likewise.
13093         * modules/unistr/base (configure.ac): Likewise.
13094         * modules/uniwbrk/base (configure.ac): Likewise.
13095         * modules/uniwidth/base (configure.ac): Likewise.
13097 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13099         unictype/category-none: fix link with libunistring
13100         Since _UC_CATEGORY_NONE is not a public symbol, it will be
13101         prefixed with "libstring_" when compiled as part of libunistring.
13102         To avoid undefined symbol at link time, increase the minimum
13103         version when the dependant modules are updated.
13104         * modules/unictype/category-none (configure.ac): Bump minimum
13105         version to 0.9.5.
13107 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13109         unitypes: fix build with installed libunistring
13110         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
13111         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
13112         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
13114 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13116         time: port to MinGW32 3.21
13117         Problem reported by Eli Zaretskii in:
13118         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
13119         * lib/time.in.h:
13120         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
13121         * modules/time (Depends-on):
13122         Fall back on unistd.h if the other include files don't define
13123         struct timespec.
13125         update-copyright: apply to self
13126         * build-aux/update-copyright: Fix copyright date.  How ironic!
13128 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13130         libunistring: update to Unicode 7.0.0
13131         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
13132         Manichaean names.
13133         * lib/unictype/joininggroup_name.h: Likewise.
13134         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
13135         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
13136         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
13137         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
13138         (fill_arabicshaping, joining_group_as_c_identifier): Support those
13139         enum values.
13140         (is_property_alphabetic): Accept newly added characters to
13141         cuneiform numeric signs.
13142         (is_property_default_ignorable_code_point): Reject U+0605.
13143         (FIELDLEN): Increase from 120 to 160.
13144         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
13145         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
13146         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
13147         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
13148         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
13149         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
13150         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
13151         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
13152         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
13153         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
13154         U+1E8D0..U+1E8D6.
13155         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
13156         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13157         lib/uniwidth/width.c.
13158         * all generated files under lib/uni* and tests/uni*: Regenerate.
13160 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13162         libunistring: update to Unicode 6.3.0
13163         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13164         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
13165         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
13166         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
13167         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
13168         Update WB5, WB9, WB10, WB13a, and WB13b.
13169         * tests/uniwbrk/test-uc-wordbreaks.c
13170         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
13171         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13172         (UC_BIDI_PDI): New enumeration values.
13173         (bidi_category_byname): Support those enum values.
13174         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
13175         dedicated property assigned.
13176         (is_property_case_ignorable): Check 0x0027.
13177         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13178         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13179         (output_wbp): Support those enum values.
13180         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13181         (UC_BIDI_PDI): New enumeration values.
13182         * lib/unictype/bidi_byname.gperf: Add those property names.
13183         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
13184         U+180E, U+1A1B, and U+2066..U+2069.
13185         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13186         lib/uniwidth/width.c.
13187         * all generated files under lib/uni* and tests/uni*: Regenerate.
13189 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13191         libunistring: update to Unicode 6.2.0
13192         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
13193         (unilbrk_table): Adjust table size.
13194         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13195         for LBP_RI.
13196         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
13197         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
13198         Normalize table index skipping ignored properties.
13199         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
13200         WBP_EXTEND and WBP_FORMAT, which are now computed without using
13201         the table.
13202         * lib/uniwbrk/wbrktable.h: Adjust table size.
13203         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
13204         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
13205         Support rule GB8a.
13206         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
13207         * tests/unigbrk/test-uc-is-grapheme-break.c
13208         (graphemebreakproperty_to_string): Support GBP_RI.
13209         * tests/uniwbrk/test-uc-wordbreaks.c
13210         (wordbreakproperty_to_string): Support WBP_RI.
13211         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
13212         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
13213         (output_lbp): Support LBP_RI.  Adjust some characters changed from
13214         LBP_AL to LBP_ID.
13215         (output_lbp): Support LBP_RI.
13216         (WBP_RI): New enumeration value.
13217         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13218         (output_wbp): Support WBP_RI.
13219         (GBP_RI): New enumeration value.
13220         (output_gbp_test, fill_org_gbp): Support GBP_RI.
13221         * all generated files under lib/uni* and tests/uni*: Regenerate.
13223 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13225         libunistring: update to Unicode 6.1.0
13226         * lib/gen-uni-tables.c (output_joining_group): Switch to
13227         3-level table to accommodate joining groups defined with higher
13228         codepoint value.  Since there are only 88 groups defined in
13229         Unicode 7.0.0, use 7-bit packed format for level3 entries.
13230         (get_lbp): Update for Unicode 6.1.0.
13231         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
13232         3-level table.
13233         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
13234         joining group name.
13235         * lib/unictype/joininggroup_name.h: Likewise.
13236         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
13237         (unilbrk_table): Adjust table size.
13238         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13239         for LBP_HL.
13240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
13241         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
13242         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
13243         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
13244         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
13245         U+302E..U+302F.
13246         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13247         lib/uniwidth/width.c.
13248         * all generated files under lib/uni* and tests/uni*: Regenerate.
13249         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
13251 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13253         uniwbrk/u32-wordbreaks-tests: add conformance test
13254         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
13255         tests/uniwbrk/test-uc-wordbreaks.c,
13256         tests/uniwbrk/test-uc-wordbreaks.sh, and
13257         tests/uniwbrk/WordBreakTest.txt.
13258         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
13259         test-uc-wordbreaks to $(check_PROGRAMS), and define
13260         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
13261         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
13262         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
13264 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13266         uniwbrk: ignore Extended/Format characters at BOL not BOS
13267         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
13268         characters if the previous character property is one of
13269         WBP_NEWLINE, WBP_CR, and WBP_LF.
13271 2015-01-11  Jim Meyering  <meyering@fb.com>
13273         test-strstr.c: avoid a trivial leak
13274         * tests/test-strstr.c (main): Free haystack.
13276         update-copyright: recognize groff's \(co marker
13277         * build-aux/update-copyright (circle_c_re): Also accept
13278         uses of \(co, as found in gzip.1.
13280 2015-01-08  Pádraig Brady  <P@draigBrady.com>
13282         maint.mk: fix compatibility with OS X nm
13283         * top/maint.mk (_gl_tight_scope): Use the -g option to
13284         show exported items rather than the -e option which is
13285         ignored on all platforms except OS X where it gives an error.
13286         Reported by Assaf Gordon.
13288 2015-01-07  KO Myung-Hun  <komh@chollian.net>
13290         localcharset: improve charset detection on OS/2
13291         Use system codepage when appropriate.  Map OS/2 codepages to
13292         GNU canonical charset names if possible.
13293         * lib/config.charset: Don't output aliases if "$os" is os2*.
13294         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
13295         result for OS/2.
13296         (locale_charset) [OS2]: Use system codepage if codeset is omitted
13297         from the locale name which is neither "C" nor "POSIX".
13299 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13301         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
13302         This reverts the last patch but one, as it shouldn't be needed now
13303         that the typo is fixed.
13304         * lib/count-leading-zeros.h (count_leading_zeros_ll):
13305         * lib/count-trailing-zeros.h:
13306         * lib/count-one-bits.h:
13307         Go back to using 64-bit intrinsics.
13309         count-leading-zeros: fix pragma typos
13310         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
13311         Fix typos in declaration of intrinsics when _MSC_VER.
13313 2015-01-06  Pádraig Brady  <P@draigBrady.com>
13315         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
13316         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
13317         intrinsics in this case.
13318         * lib/count-trailing-zeros.h: Likewise.
13319         * lib/count-one-bits.h: Likewise.
13321 2015-01-06  Daiki Ueno  <ueno@gnu.org>
13323         uniname/uniname: update to Unicode 7.0.0
13324         To accommodate new characters added since Unicode 5.1.0, this
13325         changes the internal representation of codepoint ranges.
13326         Previously, we grouped codepoint ranges by manually assigned 4-bit
13327         tag, which only allowed 16 groups.  This removes the limitation by
13328         switching to binary search on a table.  For the detail rationale
13329         and the benchmark results, see:
13330         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
13331         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
13332         to INDEX, as it no longer represents a codepoint.
13333         (range): New struct.
13334         (main): Switch to intervals list from a bit-pattern based
13335         classification.
13336         * lib/uniname/uninames.h: Regenerate.
13337         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
13338         * modules/uniname/base (configure.ac): Bump minimum version to
13339         0.9.5.
13340         * modules/uniname/uniname (configure.ac): Bump minimum version to
13341         0.9.5.
13343 2015-01-05  Eric Blake  <eblake@redhat.com>
13345         doc: update INSTALL from autoconf
13346         * doc/install.texi: Resync from autoconf.
13347         * doc/INSTALL: Reflect recent autoconf update.
13348         * doc/INSTALL.ISO: Likewise.
13349         * doc/INSTALL.UTF-8: Likewise.
13351         stdio: fix use of PRIdMAX on modern mingw
13352         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
13353         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
13354         to work with modern mingw.
13356 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
13358         pthread: detect git mingw builds with only partial pollution
13359         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
13360         pollution, as seen temporarily in Fedora 21.
13362 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13364         lib-symbol-versions: cache script check
13365         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
13366         Cache the check for linker version scripts.
13367         From a suggestion by Christophe Curis in:
13368         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
13370 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
13372         maint: fix grammar nits in propername (trivial change)
13373         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
13374         and use an adequate verb and tense.
13376 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
13378         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13379         * module/gendocs: Add 'doc/gendocs_template_min'.
13381         * build-aux/gendocs.sh: Change email addresses and upstream URLs
13382         from to Gnulib's.
13383         (scripturl, templateurl): Adjust accordingly.
13385 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13387         gendocs: copyright date and version fix
13388         Reported by Karl Berry in:
13389         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
13390         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
13391         Fix copyright date.
13392         * build-aux/gendocs.sh (scriptversion): Update.
13394 2015-01-01  Karl Berry  <karl@gnu.org>
13396         * doc/install.texi,
13397         * build-aux/mdate-sh,
13398         * build-aux/depcomp,
13399         * build-aux/config.guess,
13400         * build-aux/config.sub,
13401         * build-aux/ar-lib,
13402         * build-aux/compile: revert copyright updates (some from last
13403         year) in slaved files.
13405 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13407         version-etc: new year
13408         * doc/gnulib.texi:
13409         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
13410         * all files: Run 'make update-copyright'.
13412 2014-12-30  Pádraig Brady  <P@draigBrady.com>
13414         xstrtol: ensure errno is reset
13415         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
13416         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
13418         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
13420 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13422         utimens: fix dependency typo
13423         * modules/utimens (Depends-on): Remove 'assure'.
13424         This bug was introduced in the recent 'assure' patch.
13426 2014-12-22  Eric Blake  <eblake@redhat.com>
13428         docs: mention why libgen.h is bad
13429         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
13431 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13433         assure: new module
13434         This works better than 'assert' when compiling with -DNDEBUG,
13435         as it avoids some compiler diagnostics in that case.
13436         Reported by Norihiro Tanaka in:
13437         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
13438         * MODULES.html.sh (func_all_modules): Add 'assure'.
13439         * lib/assure.h, modules/assure: New files.
13440         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
13441         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
13442         Prefer 'assure' to 'assert'.
13443         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
13444         * modules/chdir-long, modules/cycle-check, modules/fchdir:
13445         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
13446         Depend on 'assure'.
13448 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
13450         stdalign: port better to HP compilers
13451         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
13452         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
13454         stdalign: work around Apple GCC 4.0 bug
13455         Reported by David Fang in:
13456         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
13457         * lib/stdalign.in.h (_Alignas):
13458         * m4/stdalign.m4 (gl_STDALIGN_H):
13459         Do not use aligned attribute with GCC 4.0 on Apple.
13461 2014-12-16  Pádraig Brady  <P@draigBrady.com>
13463         getcwd: fix test failure on OS X 10.9
13464         * m4/getcwd-path-max.m4: Avoid the replacement if it
13465         won't be effective due to the PATH_MAX limitation of lstat().
13466         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
13467         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
13468         for this case for use in tests, and also exclude this
13469         case when setting REPLACE_GETCWD.
13470         * tests/test-getcwd.c (test_long_name): Restrict the
13471         tested path length so that lstat() will not be passed
13472         a path greater than PATH_MAX.
13473         Also key a test condition on HAVE_OPENAT_SUPPORT rather
13474         than AT_FDCWD, since the latter is set unconditionally
13475         since Sep 2009 in commit 52c658e9.
13477 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
13479         parse-datetime: avoid a compiler warning with byacc (trivial)
13480         * lib/parse-datetime.y (yylex): Use the same prototype in the
13481         function definition as the declaration, to avoid a -Wstrict-prototypes
13482         warning seen when using byacc.
13484 2014-12-12  Daiki Ueno  <ueno@gnu.org>
13486         unicase/locale-language-tests: fix LOCALE_FR test
13487         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
13488         a French locale with traditional encoding.
13489         Reported by umerqayam in:
13490         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
13492 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13494         stddef: support C11's max_align_t
13495         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
13496         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
13497         Do not undef, as that might cause max_align_t to be defined twice.
13498         Instead, change use to check for _GL_STDDEF_WINT_T too.
13499         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
13500         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
13501         Check for max_align_t.
13502         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
13503         * modules/stddef-tests (Depends-on): Add stdalign.
13504         * tests/test-stddef.c: Test max_align_t.
13506 2014-12-11  Daiki Ueno  <ueno@gnu.org>
13508         unistd: fix iOS check conditional
13509         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
13510         as 0 or 1 in <TargetConditionals.h>, and the previous check always
13511         yielded true on non-iOS environment.
13512         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
13513         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
13514         they are defined.
13516 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13518         posixtm: avoid compiler warning in a better way
13519         * lib/posixtm.c (IF_LINT): Remove.
13520         (year, posix_time_parse):
13521         Return true (not 0) if successful.  All callers changed.
13522         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
13524 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13526         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
13527         started with '/' on EMX.
13529 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13531         freopen: workaround freopen() on OS/2 kLIBC
13532         * lib/freopen.c (rpl_freopen): Workaround.
13533         * m4/freopen.m4: Add os2* case.
13535         get_shared_library_fullname: port to EMX
13536         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
13537         on EMX, respectively.
13538         (_DLL_InitTerm): New on EMX.
13539         (get_shared_library_fullname): Implement on EMX.
13541         find_executable: port to EMX
13542         * lib/progreloc.c (find_executable): Implement on EMX.
13544         sched: check struct sched_param in spawn.h as well
13545         * lib/sched.in.h: Include spawn.h on kLIBC.
13546         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
13548 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
13550         bootstrap: Allow perl modules in $buildreq
13551         * build-aux/bootstrap: Add case for perl modules.
13553 2014-12-08  Pádraig Brady  <P@draigBrady.com>
13555         apply _GL_ATTRIBUTE_PURE to some inline functions
13556         clang 3.4.2 flagged these inline functions as pure
13557         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
13558         * lib/sig-handler.h (get_handler): Likewise.
13559         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
13560         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
13562 2014-12-06  Pádraig Brady  <P@draigBrady.com>
13564         vasnprintf: fix potential use after free
13565         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
13566         flagged by clang-analyzer 3.4.2.
13568 2014-12-05  Pádraig Brady  <P@draigBrady.com>
13570         filevercmp, posixtm: avoid compiler warnings with -O3
13571         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
13572         * lib/posixtm.c: (IF_LINT): Define.
13573         (posix_time_parse): Use it to void a "may be used uninitialized"
13574         warning, seen only with -O3.
13576 2014-12-05  Bruno Haible  <bruno@clisp.org>
13578         Fix LDBL80_WORDS macro on big endian platforms.
13579         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
13580         LDBL80_WORDS macro.
13581         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13582         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13583         * tests/test-isfinite.c (test_isfinitel): Likewise.
13584         * tests/test-isinf.c (test_isinfl): Likewise.
13585         * tests/test-isnan.c (test_long_double): Likewise.
13586         * tests/test-isnanl.h (main): Likewise.
13587         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
13588         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
13589         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
13590         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
13591         Reported by Pádraig Brady.
13593 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13595         git-version-gen: do not print new line characters
13596         * build-aux/git-version-gen: Use printf instead of echo and tr.
13598         gnulib-tool: recognize x:* as an absolute path
13599         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13600         (func_relconcat): Likewise.
13602 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13604         argp: avoid extraneous translation and mem leak with empty pre doc
13605         * lib/argp-help.c (argp_doc): Never translate the empty string,
13606         when "\v" is the first or last character of the string, as that
13607         has a reserved meaning to return the header info from a po file.
13608         This also fixes a small memory leak in the !post case.
13609         The issue can be seen with this command for example:
13610         LC_MESSAGES=en_US grub2-mknetdir --help
13612 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13614         uniname/uniname-tests: skip if system's libunistring is used
13615         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13616         uniname/uniname module is not compiled.
13618 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13620         printf: fix configure check on big endian systems
13621         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13623 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13625         pipe-filter-gi, pipe-filter-ii: port to AIX
13626         On AIX 7.1, 'select' is defined as static and cannot be referred
13627         to from inline function.
13628         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13629         the definition...
13630         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13631         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13633 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13635         gitlog-to-changelog: add --until
13636         * build-aux/gitlog-to-changelog: Support new --until option.
13637         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13639 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13641         extern-inline: update commentary about GCC bugs
13642         * m4/extern-inline.m4: Add another GCC bug number to comments.
13644 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13646         gen-uni-tables: untabify
13647         * lib/gen-uni-tables.c: Untabify.
13649 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13651         gen-uni-tables: check out-of-range values added to 3-level tables
13652         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13653         (output_joining_type, output_ident_category): Check out-of-range
13654         values added to 3-level tables.
13656 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13658         gen-uni-tables: utilize 'assert'
13659         * lib/gen-uni-tables.c: Include <assert.h>.
13660         (output_category, output_combclass, output_decimal_digit_test)
13661         (output_decimal_digit, output_digit_test, output_digit)
13662         (output_numeric, get_mirror_value, fill_properties)
13663         (fill_property30, is_property_alphabetic)
13664         (is_property_default_ignorable_code_point)
13665         (is_property_uppercase, is_property_lowercase)
13666         (is_property_cased, is_property_case_ignorable)
13667         (is_property_changes_when_lowercased, is_property_iso_control)
13668         (is_property_math, fill_arabicshaping, output_joining_group)
13669         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13670         (output_wbp, fill_org_gbp, get_decomposition)
13671         (output_decomposition, fill_composition_exclusions)
13672         (debug_output_composition_tables, output_composition_tables)
13673         (redistribute_casefolding_rules, output_casing_rules): Use
13674         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13675         reporting.
13677 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13679         gen-uni-tables: cosmetic improvements
13680         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13681         variables specification.
13682         (is_outdigit): Remove unused function.
13684 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13686         fcntl-h-tests: port to PA-RISC GNU/Linux
13687         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13689 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13691         fts: port to C89
13692         Problem reported for MSVC 16 by Gisle Vanem in:
13693         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13694         * lib/fts.c (fts_build): Avoid declaration before statement.
13696 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13698         unistd: port to iOS
13699         Problem reported by André Klitzing in:
13700         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13701         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13703 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13705         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13706         Problem reported by Alan Modra in:
13707         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13708         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13709         Always cast the function arg, reverting this part of the previous
13710         change.
13712 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13714         obstack: avoid potentially-nonportable function casts
13715         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13716         Remove, replacing with ...
13717         (call_chunkfun, call_freefun): New static functions.
13718         All uses changed.  Avoid potentially-nonportable casts.
13719         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13720         (_obstack_begin_worker): Omit last two args, since they
13721         rely on potentially-nonportable casts.  All callers changed.
13722         * lib/obstack.h (_OBSTACK_CAST): New macro.
13723         Use it everywhere the old API used a potentially-nonportable cast.
13724         The new API doesn't cast.
13725         (struct obstack): Use unions rather than requiring
13726         potentially-nonportable casts.
13727         (obstack_chunkfun, obstack_freefun): Return void.
13729 2014-11-03  Alan Modra  <amodra@gmail.com>
13731         obstack: fix macro return values
13732         * lib/obstack.h (obstack_next_free): Return void *.
13733         (obstack_1grow_fast, obstack_blank_fast): Return void.
13734         For __GNUC__ macros:
13735         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13736         For !__GNUC__ macros:
13737         (obstack_make_room, obstack_grow, obstack_grow0)
13738         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13740 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13742         obstack: do not assume system-supplied obstack is size_t safe
13743         * m4/obstack.m4: New file.
13744         * modules/obstack (Files): Add it.
13746         obstack: port to platforms that #define __alignof__
13747         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
13748         not if !_LIBC.  We don't know of any platforms that #define
13749         __alignof__, but it might be useful in tests.  Conversely,
13750         glibc assumes GCC.
13752 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13754         linkat: don't unconditionally replace on GNU/Linux
13755         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
13756         was redundant for a few reasons.  It was present to support compiling
13757         on new systems but running on the old narrow window of Linux 2.6.1[67].
13758         It setup and cleaned up test files which weren't actually used.
13759         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
13760         implicit in the following check.
13762 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13764         linkat: wrap to handle symlinks on OS X 10.10
13765         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
13766         but not usable because it doesn't support creating hardlinks
13767         to symlinks.  Therefore add a generic test for this capability
13768         and fallback to our emulation if linkat() fails with ENOTSUP.
13770 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13772         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
13773         * doc/posix-functions/open.texi (open):
13774         * doc/posix-functions/openat.texi (openat):
13775         Document that these functions do not set errno to ELOOP when
13776         a symlink is opened with O_NOFOLLOW.
13778 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13780         obstack: add NEWS entry for recent incompatible changes
13781         * NEWS: Describe recent changes.
13783 2014-10-30  Pádraig Brady  <P@draigBrady.com>
13785         mountlist: don't use libmount to decide on dummy/remote
13786         * lib/mountlist.c (read_file_system_list): Don't use the libmount
13787         routines to determine whether a file system is dummy or remote,
13788         as they're not currently compatible.  For example the remoteness
13789         is determined on file system type (for which the list seems incomplete),
13790         rather than simply checking for a ':' in the device name.
13791         Also libmount currently determines that 'tmpfs' is a dummy file system
13792         even though it has associated storage.
13794 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13796         obstack: prefer __alignof__ to alignof
13797         This is for portability to pre-4.7 GCC when compiling glibc.
13798         See Joseph S. Myers in:
13799         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
13800         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
13801         New macro, defined by including and using <alignof.h>.
13802         (MAX): New macro.
13803         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
13804         Do not use enums as they are not portable to some broken compilers.
13805         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
13807         obstack: prefer alignof to calculating alignments by hand
13808         * lib/obstack.c: Include <stdalign.h>.
13809         (struct fooalign): Remove.
13810         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
13811         * modules/obstack (Depends-on): Add stdalign.
13813 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13815         obstack: use size_t alignments and check for overflow
13816         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
13817         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
13818         * lib/obstack.h (struct obstack.alignment_mask):
13819         Use _OBSTACK_SIZE_T, not int, for alignments.
13820         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
13821         overflows, e.g., when adding the alignment.
13823 2014-10-29  Alan Modra  <amodra@gmail.com>
13825         obstack: 64-bit obstack support, part 3
13826         This finally enables full 64-bit obstack support.  The glibc
13827         shared library specific code is removed from obstack.c too, and
13828         the error handling code conditionally compiled under control of
13829         another macro, _OBSTACK_NO_ERROR_HANDLER.
13830         * lib/obstack.h: Include string.h earlier.
13831         (_OBSTACK_INTERFACE_VERSION): Define.
13832         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
13833         * lib/obstack.c: Don't include shlib-compat.h.
13834         (OBSTACK_INTERFACE_VERSION): Delete.
13835         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
13836         glibc code is compatible with version 2.  Don't include stdio.h for
13837         __GNU_LIBRARY.
13838         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
13839         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
13840         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
13841         glibc shared library specific source.
13843         obstack: 64-bit obstack support, part 2
13844         This gets us 4G obstack support, without changing ABI
13845         compatibility, apart from possibly introducing some
13846         signed/unsigned comparison warnings in code that uses obstack.h.
13847         a) Replace "int" size parameters, return values, and macro local vars
13848            with _OBSTACK_SIZE_T, an "unsigned int" for now.
13849         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
13850         c) Make all obstack macros checking available room use obstack_room.
13851            "next_free + desired > chunk_limit" may wrap the lhs for chunks
13852            allocated near the top of memory.
13853         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
13854         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
13855         in place of "int" size parameters, return values and local vars.
13856         (_CHUNK_SIZE_T): Define.
13857         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13858         union use an _OBSTACK_SIZE_T integer type.
13859         For __GNUC__ versions of the following macros...
13860         (obstack_room): Rename local var.
13861         (obstack_make_room): Use obstack_room.
13862         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13863         obstack_int_grow, obstack_blank): Likewise.
13864         (obstack_finish): Use unsigned comparison when comparing aligned
13865         next_free against chunk_limit.
13866         (obstack_free): Cast OBJ to remove possible const qualifier.
13867         For !__GNUC__ versions of the following macros...
13868         (obstack_make_room): Use obstack_room.
13869         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13870         obstack_int_grow, obstack_blank): Likewise.
13871         (obstack_finish): Use unsigned comparision when comparing aligned
13872         next_free against chunk_limit.
13873         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13874         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13875         _OBSTACK_SIZE_T.
13876         (_obstack_begin, _obstack_begin_1): Likewise.
13877         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13878         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13880         obstack: 64-bit obstack support, part 1
13881         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13882            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13883            and "size_t" 64 bits.
13884         b) Consolidate _obstack_begin and _obstack_begin1 code.
13885         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13886         use "size_t" rather than "long".
13887         (_obstack_begin, _obstack_begin1): Likewise.
13888         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13889         obstack_chunkfun): Update alloc function casts.
13890         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13891         (chunkfun_type, freefun_type): New typdefs.
13892         (_obstack_begin_worker): Split out from ..
13893         (_obstack_begin, _obstack_begin_1): ..here.
13895         obstack: tidy part 2
13896         a) Don't be concerned about "not polluting the namespace with stddef.h
13897            symbols" in obstack.h, since gnulib string.h includes stddef.h
13898            anyway, and it seems unlikely that anyone would care.
13899         b) Don't roll our own slow memcpy in _obstack_newchunk.
13900         c) Rename obstack_free to _obstack_free.  This makes the naming
13901            consistent with other obstack functions and obviates the need for
13902            __obstack_free.  Ancient obstack.c defined both obstack_free and
13903            _obstack_free.  We continue to do that for _LIBC via an alias.
13904         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13905            is clever, but nowadays gcc warns on undefined macros.  You'll get
13906            an undefined macro warning if simulating an old gcc with -U__GNUC__
13907            -U__GNUC_MINOR__ -D__GNUC__=1.
13908         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13909         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13910         (__obstack_free): Delete, update refs.
13911         (_obstack_free): Rename from obstack_free.
13912         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13913         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13914         * lib/obstack.c: Don't include stddef.h.
13915         (COPYING_UNIT): Delete.
13916         (_obstack_begin): Formatting fix.
13917         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
13918         (_obstack_free): Rename from __obstack_free, update alias.  Move
13919         undef of obstack_free to where it is needed.
13921         obstack: tidy part 1
13922         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
13923            to me, and result in overlong lines after later patches.
13924         b) Move error handling code, to avoid a forward declaration and to
13925            simplify later patches in this series.
13926         * lib/obstack.h (struct obstack <temp>): Rename fields of union
13927         and update all uses.
13928         * lib/obstack.c: Include stdlib.h earlier.
13929         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
13930         in file.
13931         (print_and_abort): Remove now redundant forward declaration.
13933 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13935         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
13936         Without this change, in bleeding-edge fileutils Autoconf complains
13937         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
13938         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
13939         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
13940         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
13942 2014-10-24  Daiki Ueno  <ueno@gnu.org>
13944         iconv: avoid false detection of non-working iconv
13945         The INBUF arguments of iconv can be either 'const char **'
13946         or 'char **'.  If CC is g++, the difference causes a compile error
13947         and thus leads to a false detection of non-working iconv.
13948         Reported by Eli Zaretskii and Werner LEMBERG in:
13949         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
13950         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
13951         iconv.  Bump serial number.
13953 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13955         bootstrap: print more diagnostics for missing programs
13956         * build-aux/bootstrap: only suppress stderr when checking for
13957         alternative program names.  This supports programs issuing non
13958         standard error messages.
13960 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13962         bootstrap: only update the gnulib submodule
13963         * build-aux/bootstrap: Restrict the "submodule update" command
13964         to the gnulib path.
13966 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13968         symlinkat: port to AIX 7.1
13969         * doc/posix-functions/symlinkat.texi (symlinkat):
13970         Mention AIX porting problem.
13971         * lib/symlinkat.c: Always include errno.h.
13972         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
13973         * lib/unistd.in.h (symlinkat): Add replacement machinery.
13974         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
13975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
13976         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
13977         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
13978         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
13980         readlinkat: port to AIX 7.1
13981         * doc/posix-functions/readlink.texi (readlink):
13982         * doc/posix-functions/readlinkat.texi (readlinkat):
13983         Mention AIX porting problem.
13984         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
13985         New function.
13986         * lib/unistd.in.h (readlinkat): Add replacement machinery.
13987         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
13988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
13989         * modules/readlinkat (configure.ac): Also compile replacement
13990         if REPLACE_READLINKAT.
13991         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
13993 2014-10-12  Karl Berry  <karl@gnu.org>
13995         * doc/posix-functions/dirname.texi: remove spurious {.
13997 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
13999         basename, dirname: Improve documentation.
14000         * doc/posix-functions/basename.texi: Mention dirname module and
14001         base_name() function.
14002         * doc/posix-functions/dirname.texi: Mention dir_name() and
14003         mdir_name() functions.
14004         Suggested by Werner LEMBERG <wl@gnu.org>.
14006 2014-09-24  Jim Meyering  <meyering@fb.com>
14008         exclude: declare exclude_patopts static
14009         * lib/exclude.c (exclude_patopts): Declare static,
14010         to avoid triggering a -Wmissing-prototypes warning.
14011         The alternative (declaring it in the .h file) would
14012         require publicizing the private "struct patopts".
14014 2014-09-21  Werner Lemberg  <wl@gnu.org>
14016         dirname: support compilation with C++
14017         * lib/dirname.h: Add necessary C linkage declarations.
14019 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14021         qsort_r: include <config.h>
14022         Problem reported by Tom G. Christensen in:
14023         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
14024         * lib/qsort.c [!_LIBC]: Include <config.h> first.
14026 2014-09-16  Dylan Cali  <calid1984@gmail.com>
14028         avltree-list: avoid compiler warnings (trivial)
14029         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14030         -Werror=suggest-attribute=pure.
14031         * lib/gl_array_list.c: Likewise.
14032         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
14033         declaration to avoid -Werror=missing-prototypes.  This is not added
14034         to a header as only exported for tests.  Add (void) to the
14035         check_invariants() call to indicate we're discarding the result
14036         in this context which avoids -Werror=unused-value.  Note we don't
14037         use ignore_value here to avoid a dependency as we know we'll not
14038         be adding __attribute__((warn_unused_result)) to check_invariants().
14039         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
14041 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
14043         qsort_r: new module, for GNU-style qsort_r
14044         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
14046 2014-09-15  Werner LEMBERG  <wl@gnu.org>
14048         strerror_r-posix: support compilation with C++
14049         * lib/strerror_r.c: Add necessary C linkage declarations.
14051 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
14053         fcntl-h: fix compilation with Intel C++ compiler (trivial)
14054         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
14056 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
14058         mountlist: use /proc/self/mountinfo when available
14059         Use libmount to propagate device IDs provided by Linux in
14060         /proc/self/mountinfo.  This will give more accurate output when
14061         using df in chroot'ed environments as the device IDs are not
14062         determined by stat() which may be inaccurate within the chroot.
14063         * lib/mountlist.c (read_file_system_list): Use the libmount routines
14064         from util-linux to parse "/proc/self/mountinfo" or fall back to
14065         standard getmntent() processing.
14066         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
14067         getmntent() is used, as is the case on GNU/Linux.
14069 2014-09-07  Eric Wong  <normalperson@yhbt.net>
14071         users.txt: add cmogstored
14072         cmogstored has used gnulib since the beginning in 2012 to support
14073         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
14075 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14077         Trivial change.
14078         * gnulib-tool: Use same options as build-aux/bootstrap to download
14079         PO files.
14081 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14083         Trivial change.
14084         * gnulib-tool: Fallback to wget when rsync of PO files fails.
14086 2014-09-04  Eric Blake  <eblake@redhat.com>
14088         maintainer-makefile: add syntax check for useless ';;'
14089         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
14091 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14093         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
14094         Problem reported by Assaf Gordon in:
14095         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14096         Apparently Ubuntu is doing some fancy link-time optimization
14097         that doesn't work with -lpthread but does work with -pthread.
14098         Work around the bug by preferring -pthread to -lpthread.
14099         * m4/pthread.m4 (gl_PTHREAD_CHECK):
14100         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
14101         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14102         Treat -pthread like -lpthread.
14104 2014-09-04  Eric Blake  <eblake@redhat.com>
14106         error: drop spurious semicolon
14107         * lib/error.c (__error_at_line): Fix ';;'.
14109 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14111         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
14112         * m4/gnulib-common.m4 (AC_C_RESTRICT):
14113         Override AC_C_RESTRICT unconditionally.
14114         Update from autoconf, incorporating:
14115         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
14116         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
14118 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14120         manywarnings: add GCC 4.9 warnings
14121         Also, make it easier to maintain this in the future.
14122         * build-aux/gcc-warning.spec: Add -Wabi-tag,
14123         -Wconditionally-supported, -Wdelete-incomplete,
14124         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
14125         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
14126         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
14127         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
14128         only for older GCC versions that need them.  Handle
14129         -Wnormalized=nfc specially, so that the 'comm' command used
14130         for maintenance doesn't get confused.
14132 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14134         vasnprintf: fix bugs in width computation
14135         * lib/vasnprintf.c (VASNPRINTF):
14136         Rework previous change, which introduced a bug,
14137         to avoid the warning in a different way.
14138         Avoid undefined behavior if the width arg is less than -INT_MAX.
14139         Avoid unnecessary use of HAS_WIDTH local.
14141 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
14143         vasnprintf: Avoid signed/unsigned comparison warning.
14144         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
14145         compare end addr of generated string w/ maximum end addr.
14147 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14149         parse-datetime: Avoid pointer difference.
14150         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
14151         instead of calculating difference of pointers.  This removes an
14152         annoying warning, devoid of any use.
14154 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14156         qsort_r: new module, for GNU-style qsort_r
14157         This works even on FreeBSD, which has an incompatible qsort_r API.
14158         * MODULES.html.sh: Add it.
14159         * doc/glibc-functions/qsort_r.texi: It's now supported.
14160         * lib/qsort.c: New file, taken from glibc with minor changes
14161         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
14162         removed.
14163         * lib/qsort_r.c: New file, compiled only on FreeBSD.
14164         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
14165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
14166         * modules/qsort_r, modules/qsort_r-tests: New files.
14167         * modules/stdlib (Makefile): Set up its defaults.
14168         * tests/test-qsort_r.c: New file.
14170 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14172         vla: new module
14173         GNU RCS can use this, mostly for documentation I expect.  See:
14174         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
14175         * MODULES.html.sh: Add vla.
14176         * lib/vla.h, modules/vla: New files.
14178 2014-08-07  Daiki Ueno  <ueno@gnu.org>
14180         localename: make gl_locale_name_thread really thread-safe on Windows
14181         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
14182         "glthread/lock.h".
14183         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
14184         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
14186 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
14188         getpass: don't assume struct termios
14189         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
14190         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
14191         * lib/getpass.c (getpass): Port to systems lacking struct termios.
14193         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
14194         Problem reported by Jonas 'Sortie' Termansen in:
14195         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
14196         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
14197         Implement via sysconf for platforms that lack getdtablesize.
14199         vararrays: modernize AC_C_VARARRAYS for C11
14200         This backports a change I recently made to Autoconf.
14201         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
14202         VLAs are not supported, as this is what C11 does.  The old macro
14203         HAVE_C_VARARRAYS is still defined if they are supported, but is
14204         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
14206 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
14208         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
14209         * build-aux/install-reloc (func_create_wrapper): Also wrap
14210         strerror-override, stat, stat.
14212 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14214         sys_select: fix FD_ZERO problem on Solaris 10
14215         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
14216         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
14217         to expand to an expression that invoked memset without necessarily
14218         including <string.h>.  The problem was that the first include
14219         defined _SYS_TIME_H, causing the second include to short-circuit.
14220         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
14221         Also, fix what appears to be a cut-and-paste typo, by replacing
14222         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
14223         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
14225         accept: document Solaris 10 type glitch
14226         * doc/posix-functions/accept.texi (accept): Mention that
14227         Solaris 10 'accept' takes void * last arg, not socklen_t *.
14229 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
14231         extern-inline: port to FreeBSD, DragonFly
14232         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
14233         is present if either __DragonFly__ or __FreeBSD__ is defined.
14234         FreeBSD problem reported by Andrey Borzenkov in:
14235         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
14236         Also, worry about __APPLE__ only if __MACH__ is also defined,
14237         as this is more consistent with the rest of gnulib.
14238         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
14239         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
14241 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
14243         regex: Make #if/#ifdef usage consistent for DEBUG
14244         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
14245         of the inconsistent usage of #if and #ifdef as that works with
14246         both Glibc and Gnulib's style.
14248 2014-07-31  Eric Blake  <eblake@redhat.com>
14250         openat-die: use _Noreturn markup
14251         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
14252         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
14253         _Noreturn.
14255 2014-07-30  Eric Blake  <eblake@redhat.com>
14257         test-open: port to cygwin, which lacks Fortify
14258         * tests/test-open.h (ALWAYS_INLINE): New macro.
14259         (__always_inline): Don't abuse internal symbol on non-glibc.
14261 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
14263         localename: Enforce declarations before statements.
14264         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
14265         first statement.
14267 2014-07-18  Jim Meyering  <meyering@fb.com>
14269         test-userspec: don't look up numeric user names
14270         * tests/test-userspec.c: I found a system for which getpwnam("0")
14271         returned a pointer to a non-root user's entry, and that made the
14272         test fail.
14273         (T): Prefix each numeric input with "+", to inhibit lookup.
14275 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
14277         localcharset, localename: MS-Windows support for non-default locales
14278         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
14279         falling back on the default system codepage, try extracting
14280         the codepage from what 'setlocale' returns.  This allows to
14281         take into account changes of the codeset due to non-default
14282         locale set by a previous call to 'setlocale'.
14283         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
14284         Define if not already defined.
14285         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
14286         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
14287         current locale by calling 'setlocale', then converting the
14288         locale name into LCID by calling 'get_lcid'.  This allows to
14289         take into account changes in the current locale from the
14290         default one, in contrast to GetThreadLocale.
14292 2014-07-14  Daiki Ueno  <ueno@gnu.org>
14294         announce-gen: avoid failure when Digest::SHA is installed
14295         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
14296         Digest::SHA1->new in print_checksums fails.
14297         * build-aux/announce-gen (digest_classes): New associative array
14298         for available message digest implementations.
14299         (print_locations): Use it.
14301 2014-07-13  Pádraig Brady  <P@draigBrady.com>
14303         gettext: revert "update macros to version 0.19"
14304         This reverts commit 9b9370ca, as it currently requires that
14305         developers of any project that explicitly uses the gettext module
14306         or implicitly uses it through the utimens-tests or
14307         futimens-tests modules, use gettext >= 0.19.
14308         However there are some stability and availablity issues with
14309         that version at present.  We can reinstate this soon, when stability
14310         is addressed and packages are more readily available.
14312 2014-07-12  Jim Meyering  <meyering@fb.com>
14314         regex: don't deref NULL upon heap allocation failure
14315         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
14316         failure in one more place.
14317         To trigger the segfault, configure grep -with-included-regex,
14318         build it, and run these commands:
14319         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
14320         I discovered this while replying to a private report from
14321         Jens Schleusener about excessive memory consumption by grep
14322         when using a regular expression like the one above.
14324 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14326         regex: fix memory leak in compiler
14327         Fix by Andreas Schwab in:
14328         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
14329         * lib/regcomp.c (parse_reg_exp): Deallocate partially
14330         constructed tree before returning error.
14332 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14334         announce-gen: avoid perl warnings
14335         * build-aux/announce-gen: add two minor checks to avoid
14336         "use of uninitialized value" warnings when command-line parameters are
14337         missing.
14339 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14341         localename: avoid -Wsuggest-attribute={const,pure} warnings
14342         * lib/localename.c (string_has): Tag internal function as pure.
14343         * lib/localename.h (gl_locale_name_default): Tag extern declaration
14344         as const when appropriate.
14346 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
14348         nl_langinfo: Fix last change.
14349         * lib/nl_langinfo.c (includes): Drop redundant include.
14351 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14353         error: Fix -Wundef warnings in glibc
14354         * lib/error.c [_LIBC]: Define default macros for
14355         glibc.
14356         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
14357         Check _LIBC before STRERROR_R_CHAR_P.
14359         error: Sync from glibc master
14360         * lib/error.c [_LIBC]: Remove INTUSE usage.
14361         (error_tail): Remove unused macro ALLOCA_LIMIT.
14362         Fix potential buffer overflow.  Fix potential NULL dereference
14363         in strcmp.
14365 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
14367         nl_langinfo: fix build under mingw
14368         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
14370 2014-07-09  Andrew D Warshall  <warshall@99main.com>
14372         mountlist: do not classify a bind-mounted dir entry as "dummy"
14373         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
14374         1-argument getmntent() (instead of assuming absence).
14376 2014-07-08  Eric Blake  <eblake@redhat.com>
14378         maint.mk: less syntax-check noise when SIGPIPE is ignored
14379         * top/maint.mk (_sc_header_without_use)
14380         (sc_require_config_h_first): Parse full list.
14382 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
14383             Paul Eggert  <eggert@cs.ucla.edu>
14385         nl_langinfo: CODESET on MS-Windows and more items from localeconv
14386         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
14387         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
14388         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
14389         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
14390         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
14391         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
14392         Include <stdio.h> if Microsoft Windows.
14393         Include <time.h> if !REPLACE_NL_LANGINFO.
14394         (ctype_codeset): New function, taken from rpl_nl_langinfo,
14395         and with improvements for Microsoft Windows.
14396         (rpl_nl_langinfo): Use it.
14397         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
14398         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
14399         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
14400         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
14401         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
14402         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
14403         corresponding values returned by 'localeconv'.  Compute the values
14404         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
14405         'strftime' with a suitable struct tm value.
14407 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14409         Bruno Haible has stepped down as maintainer.
14410         See Karl Berry in:
14411         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
14412         Daiki Ueno has volunteered to maintain libunistring; see:
14413         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
14414         * modules/gen-uni-tables, modules/libunistring:
14415         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
14416         * modules/unicase/base, modules/unicase/cased:
14417         * modules/unicase/empty-prefix-context:
14418         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
14419         * modules/unicase/locale-language, modules/unicase/special-casing:
14420         * modules/unicase/tocasefold, modules/unicase/tolower:
14421         * modules/unicase/totitle, modules/unicase/toupper:
14422         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
14423         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
14424         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
14425         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
14426         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
14427         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
14428         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
14429         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
14430         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
14431         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
14432         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
14433         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
14434         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
14435         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
14436         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
14437         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
14438         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
14439         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
14440         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
14441         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
14442         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
14443         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
14444         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
14445         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
14446         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
14447         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
14448         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
14449         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
14450         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
14451         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
14452         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
14453         * modules/unicase/ulc-casexfrm, modules/unicodeio:
14454         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
14455         * modules/uniconv/u16-conv-to-enc:
14456         * modules/uniconv/u16-strconv-from-enc:
14457         * modules/uniconv/u16-strconv-from-locale:
14458         * modules/uniconv/u16-strconv-to-enc:
14459         * modules/uniconv/u16-strconv-to-locale:
14460         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
14461         * modules/uniconv/u32-strconv-from-enc:
14462         * modules/uniconv/u32-strconv-from-locale:
14463         * modules/uniconv/u32-strconv-to-enc:
14464         * modules/uniconv/u32-strconv-to-locale:
14465         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
14466         * modules/uniconv/u8-strconv-from-enc:
14467         * modules/uniconv/u8-strconv-from-locale:
14468         * modules/uniconv/u8-strconv-to-enc:
14469         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
14470         * modules/unictype/bidicategory-all:
14471         * modules/unictype/bidicategory-byname:
14472         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
14473         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
14474         * modules/unictype/bidiclass-byname:
14475         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
14476         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
14477         * modules/unictype/block-all, modules/unictype/block-list:
14478         * modules/unictype/block-of, modules/unictype/block-test:
14479         * modules/unictype/category-C, modules/unictype/category-Cc:
14480         * modules/unictype/category-Cf, modules/unictype/category-Cn:
14481         * modules/unictype/category-Co, modules/unictype/category-Cs:
14482         * modules/unictype/category-L, modules/unictype/category-LC:
14483         * modules/unictype/category-Ll, modules/unictype/category-Lm:
14484         * modules/unictype/category-Lo, modules/unictype/category-Lt:
14485         * modules/unictype/category-Lu, modules/unictype/category-M:
14486         * modules/unictype/category-Mc, modules/unictype/category-Me:
14487         * modules/unictype/category-Mn, modules/unictype/category-N:
14488         * modules/unictype/category-Nd, modules/unictype/category-Nl:
14489         * modules/unictype/category-No, modules/unictype/category-P:
14490         * modules/unictype/category-Pc, modules/unictype/category-Pd:
14491         * modules/unictype/category-Pe, modules/unictype/category-Pf:
14492         * modules/unictype/category-Pi, modules/unictype/category-Po:
14493         * modules/unictype/category-Ps, modules/unictype/category-S:
14494         * modules/unictype/category-Sc, modules/unictype/category-Sk:
14495         * modules/unictype/category-Sm, modules/unictype/category-So:
14496         * modules/unictype/category-Z, modules/unictype/category-Zl:
14497         * modules/unictype/category-Zp, modules/unictype/category-Zs:
14498         * modules/unictype/category-all, modules/unictype/category-and:
14499         * modules/unictype/category-and-not, modules/unictype/category-byname:
14500         * modules/unictype/category-longname, modules/unictype/category-name:
14501         * modules/unictype/category-none, modules/unictype/category-of:
14502         * modules/unictype/category-or, modules/unictype/category-test:
14503         * modules/unictype/category-test-withtable:
14504         * modules/unictype/combining-class:
14505         * modules/unictype/combining-class-all:
14506         * modules/unictype/combining-class-byname:
14507         * modules/unictype/combining-class-longname:
14508         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
14509         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
14510         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
14511         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
14512         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
14513         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
14514         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
14515         * modules/unictype/digit, modules/unictype/joininggroup-all:
14516         * modules/unictype/joininggroup-byname:
14517         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
14518         * modules/unictype/joiningtype-all:
14519         * modules/unictype/joiningtype-byname:
14520         * modules/unictype/joiningtype-longname:
14521         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
14522         * modules/unictype/mirror, modules/unictype/numeric:
14523         * modules/unictype/property-all, modules/unictype/property-alphabetic:
14524         * modules/unictype/property-ascii-hex-digit:
14525         * modules/unictype/property-bidi-arabic-digit:
14526         * modules/unictype/property-bidi-arabic-right-to-left:
14527         * modules/unictype/property-bidi-block-separator:
14528         * modules/unictype/property-bidi-boundary-neutral:
14529         * modules/unictype/property-bidi-common-separator:
14530         * modules/unictype/property-bidi-control:
14531         * modules/unictype/property-bidi-embedding-or-override:
14532         * modules/unictype/property-bidi-eur-num-separator:
14533         * modules/unictype/property-bidi-eur-num-terminator:
14534         * modules/unictype/property-bidi-european-digit:
14535         * modules/unictype/property-bidi-hebrew-right-to-left:
14536         * modules/unictype/property-bidi-left-to-right:
14537         * modules/unictype/property-bidi-non-spacing-mark:
14538         * modules/unictype/property-bidi-other-neutral:
14539         * modules/unictype/property-bidi-pdf:
14540         * modules/unictype/property-bidi-segment-separator:
14541         * modules/unictype/property-bidi-whitespace:
14542         * modules/unictype/property-byname:
14543         * modules/unictype/property-case-ignorable:
14544         * modules/unictype/property-cased:
14545         * modules/unictype/property-changes-when-casefolded:
14546         * modules/unictype/property-changes-when-casemapped:
14547         * modules/unictype/property-changes-when-lowercased:
14548         * modules/unictype/property-changes-when-titlecased:
14549         * modules/unictype/property-changes-when-uppercased:
14550         * modules/unictype/property-combining:
14551         * modules/unictype/property-composite:
14552         * modules/unictype/property-currency-symbol:
14553         * modules/unictype/property-dash:
14554         * modules/unictype/property-decimal-digit:
14555         * modules/unictype/property-default-ignorable-code-point:
14556         * modules/unictype/property-deprecated:
14557         * modules/unictype/property-diacritic:
14558         * modules/unictype/property-extender:
14559         * modules/unictype/property-format-control:
14560         * modules/unictype/property-grapheme-base:
14561         * modules/unictype/property-grapheme-extend:
14562         * modules/unictype/property-grapheme-link:
14563         * modules/unictype/property-hex-digit:
14564         * modules/unictype/property-hyphen:
14565         * modules/unictype/property-id-continue:
14566         * modules/unictype/property-id-start:
14567         * modules/unictype/property-ideographic:
14568         * modules/unictype/property-ids-binary-operator:
14569         * modules/unictype/property-ids-trinary-operator:
14570         * modules/unictype/property-ignorable-control:
14571         * modules/unictype/property-iso-control:
14572         * modules/unictype/property-join-control:
14573         * modules/unictype/property-left-of-pair:
14574         * modules/unictype/property-line-separator:
14575         * modules/unictype/property-logical-order-exception:
14576         * modules/unictype/property-lowercase, modules/unictype/property-math:
14577         * modules/unictype/property-non-break:
14578         * modules/unictype/property-not-a-character:
14579         * modules/unictype/property-numeric:
14580         * modules/unictype/property-other-alphabetic:
14581         * modules/unictype/property-other-default-ignorable-code-point:
14582         * modules/unictype/property-other-grapheme-extend:
14583         * modules/unictype/property-other-id-continue:
14584         * modules/unictype/property-other-id-start:
14585         * modules/unictype/property-other-lowercase:
14586         * modules/unictype/property-other-math:
14587         * modules/unictype/property-other-uppercase:
14588         * modules/unictype/property-paired-punctuation:
14589         * modules/unictype/property-paragraph-separator:
14590         * modules/unictype/property-pattern-syntax:
14591         * modules/unictype/property-pattern-white-space:
14592         * modules/unictype/property-private-use:
14593         * modules/unictype/property-punctuation:
14594         * modules/unictype/property-quotation-mark:
14595         * modules/unictype/property-radical:
14596         * modules/unictype/property-sentence-terminal:
14597         * modules/unictype/property-soft-dotted:
14598         * modules/unictype/property-space:
14599         * modules/unictype/property-terminal-punctuation:
14600         * modules/unictype/property-test, modules/unictype/property-titlecase:
14601         * modules/unictype/property-unassigned-code-value:
14602         * modules/unictype/property-unified-ideograph:
14603         * modules/unictype/property-uppercase:
14604         * modules/unictype/property-variation-selector:
14605         * modules/unictype/property-white-space:
14606         * modules/unictype/property-xid-continue:
14607         * modules/unictype/property-xid-start:
14608         * modules/unictype/property-zero-width, modules/unictype/scripts:
14609         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14610         * modules/unictype/syntax-c-whitespace:
14611         * modules/unictype/syntax-java-ident:
14612         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14613         * modules/unigbrk/u16-grapheme-breaks:
14614         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14615         * modules/unigbrk/u32-grapheme-breaks:
14616         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14617         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14618         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14619         * modules/unigbrk/uc-is-grapheme-break:
14620         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14621         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14622         * modules/unilbrk/u16-width-linebreaks:
14623         * modules/unilbrk/u32-possible-linebreaks:
14624         * modules/unilbrk/u32-width-linebreaks:
14625         * modules/unilbrk/u8-possible-linebreaks:
14626         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14627         * modules/unilbrk/ulc-possible-linebreaks:
14628         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14629         * modules/uniname/uniname, modules/uninorm/base:
14630         * modules/uninorm/canonical-decomposition:
14631         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14632         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14633         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14634         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14635         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14636         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14637         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14638         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14639         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14640         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14641         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14642         * modules/unistdio/base, modules/unistdio/u-printf-args:
14643         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14644         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14645         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14646         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14647         * modules/unistdio/u16-u16-sprintf:
14648         * modules/unistdio/u16-u16-vasnprintf:
14649         * modules/unistdio/u16-u16-vasprintf:
14650         * modules/unistdio/u16-u16-vsnprintf:
14651         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14652         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14653         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14654         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14655         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14656         * modules/unistdio/u32-u32-asnprintf:
14657         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14658         * modules/unistdio/u32-u32-sprintf:
14659         * modules/unistdio/u32-u32-vasnprintf:
14660         * modules/unistdio/u32-u32-vasprintf:
14661         * modules/unistdio/u32-u32-vsnprintf:
14662         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14663         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14664         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14665         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14666         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14667         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14668         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14669         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14670         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14671         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14672         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14673         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14674         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14675         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14676         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14677         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14678         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14679         * modules/unistr/u16-check, modules/unistr/u16-chr:
14680         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14681         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14682         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14683         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14684         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14685         * modules/unistr/u16-move, modules/unistr/u16-next:
14686         * modules/unistr/u16-prev, modules/unistr/u16-set:
14687         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14688         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14689         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14690         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14691         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14692         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14693         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14694         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14695         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14696         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14697         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14698         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14699         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14700         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14701         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14702         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14703         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14704         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14705         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14706         * modules/unistr/u32-next, modules/unistr/u32-prev:
14707         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14708         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14709         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14710         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14711         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14712         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14713         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14714         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14715         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14716         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14717         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14718         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14719         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14720         * modules/unistr/u8-check, modules/unistr/u8-chr:
14721         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14722         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14723         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14724         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14725         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14726         * modules/unistr/u8-next, modules/unistr/u8-prev:
14727         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14728         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14729         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14730         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14731         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14732         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14733         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14734         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14735         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14736         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14737         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14738         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14739         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14740         * modules/uniwbrk/base, modules/uniwbrk/table:
14741         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14742         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14743         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
14744         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
14745         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
14746         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
14747         * modules/uniwidth/width, modules/utf16-ucs4:
14748         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
14749         * modules/utf8-ucs4-unsafe:
14750         Change maintainer from Bruno Haible to Daiki Ueno.
14751         This is my guess at the libunistring modules; please feel free
14752         to fix if I guessed incorrectly.
14753         * modules/accept4, modules/acl, modules/acos, modules/acosf:
14754         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
14755         * modules/areadlink, modules/array-list, modules/array-mergesort:
14756         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
14757         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
14758         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
14759         * modules/binary-io, modules/bison-i18n, modules/btowc:
14760         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
14761         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
14762         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
14763         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
14764         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
14765         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
14766         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
14767         * modules/closedir, modules/concat-filename, modules/copy-file:
14768         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
14769         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
14770         * modules/csharpcomp-script, modules/csharpexec:
14771         * modules/csharpexec-script, modules/ctype, modules/diffseq:
14772         * modules/dprintf, modules/dprintf-posix, modules/dup:
14773         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
14774         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
14775         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
14776         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
14777         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
14778         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
14779         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
14780         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
14781         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
14782         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
14783         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
14784         * modules/findprog, modules/findprog-lgpl, modules/floor:
14785         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
14786         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
14787         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
14788         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
14789         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
14790         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
14791         * modules/freadable, modules/freadahead, modules/freadptr:
14792         * modules/freadseek, modules/freopen, modules/frexp:
14793         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
14794         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
14795         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
14796         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
14797         * modules/ftello, modules/full-read, modules/full-write:
14798         * modules/fwritable, modules/fwriteerror, modules/gcd:
14799         * modules/get-rusage-as, modules/get-rusage-data:
14800         * modules/getdtablesize, modules/getrusage, modules/gettext:
14801         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
14802         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
14803         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
14804         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
14805         * modules/iconv, modules/iconv-h, modules/iconv_open:
14806         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
14807         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
14808         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
14809         * modules/integer_length_ll, modules/ioctl, modules/isatty:
14810         * modules/isblank, modules/isnand, modules/isnand-nolibm:
14811         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
14812         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
14813         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
14814         * modules/javaexec, modules/javaexec-script, modules/javaversion:
14815         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
14816         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
14817         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
14818         * modules/lib-symbol-visibility, modules/libsigsegv:
14819         * modules/linked-list, modules/linkedhash-list, modules/list:
14820         * modules/localcharset, modules/locale, modules/localeconv:
14821         * modules/localename, modules/lock, modules/log, modules/log-ieee:
14822         * modules/log10, modules/log10-ieee, modules/log10f:
14823         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
14824         * modules/log1p, modules/log1p-ieee, modules/log1pf:
14825         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
14826         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
14827         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
14828         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
14829         * modules/logf, modules/logf-ieee, modules/login_tty:
14830         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
14831         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
14832         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
14833         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
14834         * modules/mbscspn, modules/mbsinit, modules/mbslen:
14835         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
14836         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
14837         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
14838         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
14839         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
14840         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
14841         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
14842         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
14843         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
14844         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
14845         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
14846         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
14847         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
14848         * modules/posix_spawn, modules/posix_spawn-internal:
14849         * modules/posix_spawn_file_actions_addclose:
14850         * modules/posix_spawn_file_actions_adddup2:
14851         * modules/posix_spawn_file_actions_addopen:
14852         * modules/posix_spawn_file_actions_destroy:
14853         * modules/posix_spawn_file_actions_init:
14854         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
14855         * modules/posix_spawnattr_getpgroup:
14856         * modules/posix_spawnattr_getschedparam:
14857         * modules/posix_spawnattr_getschedpolicy:
14858         * modules/posix_spawnattr_getsigdefault:
14859         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14860         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14861         * modules/posix_spawnattr_setschedparam:
14862         * modules/posix_spawnattr_setschedpolicy:
14863         * modules/posix_spawnattr_setsigdefault:
14864         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14865         * modules/pow, modules/powf, modules/printf-frexp:
14866         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14867         * modules/progname, modules/propername, modules/pselect:
14868         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14869         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14870         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14871         * modules/read, modules/readdir, modules/readlink:
14872         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14873         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14874         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14875         * modules/relocatable-script, modules/remainder:
14876         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14877         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14878         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14879         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14880         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14881         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14882         * modules/setlocale, modules/sh-quote, modules/shutdown:
14883         * modules/signal, modules/signbit, modules/sigpipe:
14884         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14885         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14886         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14887         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14888         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14889         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14890         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14891         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14892         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14893         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14894         * modules/streq, modules/strerror_r-posix, modules/striconv:
14895         * modules/striconveh, modules/striconveha, modules/strncat:
14896         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14897         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14898         * modules/sys_wait, modules/system-posix, modules/system-quote:
14899         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14900         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14901         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14902         * modules/truncf, modules/truncf-ieee, modules/truncl:
14903         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14904         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14905         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14906         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14907         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14908         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14909         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14910         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14911         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14912         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14913         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14914         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14915         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14916         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14917         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
14918         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
14919         * modules/write, modules/xconcat-filename, modules/xlist:
14920         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
14921         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
14922         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
14923         * modules/y0, modules/y1, modules/yn:
14924         Remove Bruno Haible as maintainer; if he's the sole maintainer,
14925         change the maintainer to 'all'.  Let's hope someone volunteers.
14927 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
14929         mktime: merge #if/#ifdef usage from glibc
14930         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
14931         as that works with both Glibc's and Gnulib's style.
14932         See thread starting at Siddhesh Poyarekar's bug report at:
14933         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
14935 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
14937         git-version-gen: improve option descriptions
14938         * build-aux/git-version-gen: Mention that --prefix and --fallback
14939         have a mandatory argument.
14941 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14943         regex: fix memory leak in compiler
14944         Fix by Andreas Schwab in:
14945         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
14946         * lib/regcomp.c (parse_expression): Deallocate partially
14947         constructed tree before returning error.
14949         regex: merge patch from libc
14950         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14951         Combine __USE_BSD and __USE_SVID into __USE_MISC.
14952         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
14954 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14956         acl: port to gcc -Wredundant-decls
14957         From a request by Dmitry Antipov in:
14958         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
14959         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
14960         "#ifndef _GL_ACL_H".
14962 2014-06-11  Bruce Korb  <bkorb@gnu.org>
14963         Jim Meyering  <meyering@fb.com>
14965         parse-duration: eliminate 68-year duration limit
14966         * lib/parse-duration.c: Include "intprops.h".
14967         (TIME_MAX): Rename to MAX_DURATION and define to
14968         TYPE_MAXIMUM(time_t).
14969         * modules/parse-duration (Depends-on): Add intprops.
14970         Reported by Jonas 'Sortie' Termansen.
14972 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14974         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
14975         * modules/pthread (Depends-on): Add 'extensions', as it defines
14976         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
14977         (configure.ac-early): New section.
14978         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
14979         it is no longer needed.
14981 2014-06-14  Pádraig Brady  <P@draigBrady.com>
14983         pthread: define thread-safe macros on some platforms
14984         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
14985         for thread-safe operation on some platforms.
14987 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14989         regex: don't be multithreaded if USE_UNLOCKED_IO.
14990         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
14991         * lib/regex_internal.h: Do not use multithreaded version if
14992         USE_UNLOCKED_IO is defined.  This is a hack, but it works
14993         around a porting bug with coreutils 8.22 on AIX 7.1.
14995 2014-06-11  Daiki Ueno  <ueno@gnu.org>
14997         gettext: update macros to version 0.19
14998         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
14999         depend on gl_EXTERN_INLINE and drop support for older Bison
15000         versions.
15002 2014-06-10  Pádraig Brady  <P@draigBrady.com>
15004         select,poll: fix console handle check on windows 8
15005         lib/poll.c (IsConsoleHandle): Change from testing the lower
15006         2 bits of the handle to the more expensive but accurate syscall.
15007         lib/select.c: Likewise.
15009 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15011         select: fix waiting on anonymous pipes on MS-Windows
15012         * lib/select.c (rpl_select): Fall back to polling when select()
15013         indicates there is nothing to check, while due to the timeout not
15014         expiring, activity is indicated on one of the handles.
15015         Also clear the TIMEOUT argument if the timer does expire.
15017 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15019         times: fix to return non constant value on MS-Windows
15020         * lib/times.c (times): Don't use the process creation time,
15021         rather clock() which on windows returns the number of
15022         clock ticks since the process started.
15024 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
15026         isatty: fix to work on windows 8
15027         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
15028         2 bits of the handle to the more expensive but accurate syscall.
15030 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15032         maint: fix typo in fdl.texi
15033         * doc/fdl.texi: Fix typo (missing '@').
15034         Somehow this was in fdl.texi but not fdl-1.3.texi.
15036 2014-06-06  Ben Walton  <bdwalton@gmail.com>
15038         mountlist: avoid hasmntopt const type warning on solaris
15039         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
15040         with char * instead of const char *.  Passing the constant string
15041         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
15042         to avoid the warning.
15044 2014-06-04  Eric Blake  <eblake@redhat.com>
15046         maintainer-makefile: delete obsolete code
15047         * top/maint.mk (build_aux): Drop old code, as threatened.
15049         maintainer-makefile: avoid spurious error messages
15050         * top/maint.mk (syntax-check): Guard definition and use of
15051         $(shell) by whether Makefile is present.
15053 2014-06-03  Ben Walton  <bdwalton@gmail.com>
15055         rename: avoid unused-but-set-variable compiler warning
15056         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
15057         it is possible that dst_exists may be set but not used.  Mark it with
15058         the unused attribute to avoid compiler warnings.
15060 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15062         rename: mark a label as potentially unused
15063         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
15064         by marking the out label as potentially unused.
15065         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
15067 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
15069         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
15070         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
15072 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15074         acl: apply pure attribute to two functions
15075         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
15076         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
15078 2014-06-01  Pádraig Brady  <P@draigBrady.com>
15080         gnulib-common.m4: add _GL_UNUSED_LABEL
15081         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
15082         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
15084 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
15086         dup2, fcntl, fcntl-h: port to AIX 7.1
15087         This fixes some porting problems discovered when testing the latest
15088         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
15089         in grep but it could be important for other applications.
15090         * doc/posix-functions/dup2.texi:
15091         * doc/posix-functions/fcntl.texi:
15092         * doc/posix-headers/fcntl.texi:
15093         Document AIX bugs.
15094         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
15095         Define to 0 if outside 'int' range.
15096         * m4/dup2.m4 (gl_FUNC_DUP2):
15097         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15098         Check for getdtablesize.  If it's available, test a value just
15099         outside its range instead of testing 1000000.  When cross-compiling,
15100         guess that AIX will fail this improved test.
15102 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
15104         printf, config.rpath: Port to FreeBSD 10.
15105         Problem reported by Tijl Coosemans in:
15106         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
15107         * build-aux/config.rpath (hardcode_libdir_flag_spec)
15108         (hardcode_direct): Simplify FreeBSD configuration.
15109         (library_names_spec): Don't mishandle FreeBSD 10+.
15110         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
15111         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
15112         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
15113         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
15114         Don't mishandle FreeBSD 10+ when cross-compiling.
15116         ftoastr: work around compiler bug in IBM xlc 12.1
15117         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
15118         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
15119         around a compiler bug in IBM xlc 12.1.0.0: it complains
15120         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
15121         _GL_FLT_PREC_BOUND.'
15123 2014-05-30  Kieran Colford  <colfordk@gmail.com>
15125         valgrind-tests: fixed misleading help message
15126         * m4/valgrind-tests.m4: The help message generated by configure
15127         implied that valgrind was disabled by default, which it wasn't.
15128         Adjusted the help message using s/enable/disable/ to clarify.
15130 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
15132         isfinite, isinf, isnan tests: fix for little-endian PowerPC
15133         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
15134         first double of a PowerPC "double double" pair.
15135         * tests/test-isinf.c (test_isinfl): Likewise.
15136         * tests/test-isnan.c (test_long_double): Likewise.
15137         * tests/test-isnanl.h (main): Likewise.
15138         * tests/test-signbit.c (test_signbitl): Likewise.
15140 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15142         exclude-tests: port to AIX 7.1
15143         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
15144         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
15145         the regex code uses locks.
15147 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
15149         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
15150         Without this fix, Emacs would sometimes call sigprocmask instead
15151         of pthread_sigmask, which is a no-no in multithreaded applications.
15152         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
15153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15154         Suppress check for pthread_sigmask working without -lpthread if
15155         the application always links with -lpthread.  Do not link with
15156         $LIBMULTITHREAD if gl_THREADLIB is not defined.
15157         * m4/timer_time.m4 (gl_TIMER_TIME):
15158         Require gl_THREADLIB only if it is defined.  Do not append
15159         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
15161 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
15163         gnulib-tool: wget translations using --no-verbose rather than --quiet
15164         This allows the user to see error messages if any (--quiet hides them)
15165         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
15167 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
15169         gnulib-tool: adjust translation wget to avoid a https redirection
15170         Context: http://translationproject.org/latest/gnulib redirects to
15171            https://translationproject.org/latest/gnulib/
15172         Rationale: if the user falls back to wget, she doesn't have rsync and
15173         is probably in a minimal build environment, where packages such as
15174         'ca-certificates' are missing as well, resulting in a failed (and
15175         difficult to detect since ignored) translation initial fetch.
15176         Consequently let's avoid https if possible, and add the missing
15177         trailing slash.  This also avoids an unnecessary 302 redirection.
15178         * gnulib-tool: Add trailing slash to gnulib URL.
15180 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15182         getlogin_r-tests: check return value rather than errno
15183         * tests/test-getlogin_r.c (main): As per POSIX we should be
15184         verifying the return value from getlogin_r() rather than errno.
15186 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15188         getlogin_r-tests: fix various issues in recent change
15189         * tests/test-getlogin_r.c: Include required headers that were
15190         missed in recent commit eec20b4e.
15191         Also consistently check the errno rather than the return value from
15192         getlogin_r as POSIX only specifies that non zero is returned on error.
15193         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
15195 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15197         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
15198         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
15199         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
15200         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
15201         * lib/spawn-pipe.c:
15202         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
15203         and then 'int open64(const char *, int, ...);', which means the
15204         declaration for 'open' gets lost if we later '#undef open'.
15205         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
15206         where the compilation reported the non-fatal error "In function
15207         'openat_proc_name' ... warning: implicit declaration of function
15208         'open'".  In this case the error is relatively harmless, but in
15209         other cases it might not be so minor.
15211 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15213         xalloc: don't potentially generate invalid code for xmemdup calls
15214         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
15215         this function can initialize the newly-allocated storage with new
15216         pointers, which means this function is not malloc-like.  See:
15217         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
15219 2014-05-19  Pádraig Brady  <P@draigBrady.com>
15221         getlogin_r-tests: avoid false failure under sudo/ssh etc.
15222         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
15223         changes from commit 97249cf29 to not depend on environment variables.
15225 2014-05-18  Pádraig Brady  <P@draigBrady.com>
15227         getlogin-tests: avoid false failure under cron
15228         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
15229         since that's not what's under test.  Centos 6 was seen to return
15230         EINVAL for ttyname() when run from cron.
15232 2014-05-16  Jim Meyering  <meyering@fb.com>
15234         mbrtowc.m4: fix a comment typo
15235         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
15236         emitted documentation string.
15238 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15240         mbrlen, mbrtowc: fix bug with empty input
15241         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
15242         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
15243         so this is mainly for documentation.
15244         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
15245         (gl_FUNC_MBRTOWC): Use it.
15246         * tests/test-mbrtowc.c (main): Test for the bug.
15248 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15250         doc: document mbrtowc and mbrlen problem with empty input
15251         * doc/posix-functions/mbrlen.texi (mbrlen):
15252         * doc/posix-functions/mbrtowc.texi (mbrtowc):
15253         Document portability problem when the input string is empty.  See:
15254         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
15256         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
15257         Problem reported by Eli Zaretskii in:
15258         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
15259         * doc/posix-functions/execl.texi (execl):
15260         * doc/posix-functions/execle.texi (execle):
15261         * doc/posix-functions/execlp.texi (execlp):
15262         * doc/posix-functions/execv.texi (execv):
15263         * doc/posix-functions/execve.texi (execve):
15264         * doc/posix-functions/execvp.texi (execvp):
15265         Mention spawn+exit problem on non-Cygwin Windows platforms.
15267 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
15269         getlogin-tests: avoid false failure under sudo/ssh etc.
15270         * modules/getlogin-tests (configure.ac): Check for ttyname().
15271         * tests/test-getlogin.c (main): Don't depend on environment variables
15272         to correlate with getlogin(), since sudo and ssh etc. can tamper
15273         with the LOGNAME and USER env vars.  Instead lookup the name from
15274         the uid associated with the stdin tty.
15276 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15278         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
15279         These were found when building the latest grep snapshot on IRIX 6.5.
15280         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
15281         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
15282         never used later.
15283         * lib/quotearg.c (quoting_options_from_style):
15284         * lib/xstrtol.c (__xstrtol):
15285         Use enum instead of 0, to pacify IRIX 6.5 cc.
15287 2014-04-18  Pádraig Brady  <P@draigBrady.com>
15289         gitlog-to-changelog: revert inclusion of git-log-fix file
15290         * build-aux/git-log-fix: Delete dummy file.
15291         * modules/gitlog-to-changelog: Don't reference (overwrite)
15292         the project specific git-log-fix file.
15294 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
15296         maint.mk: Relax the copyright check to cater for non FSF projects
15297         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
15298         to not require the "Free" suffix after the copyright years.
15300 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
15302         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
15303         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
15304         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
15305         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
15306         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
15308 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
15310         exclude: port to strict C99
15311         Strict C does not allow converting a function pointer to void *
15312         and vice versa.  Pass a pointer to a function pointer instead.
15313         * lib/exclude.c (add_exclude_file):
15314         Pass the address of the function pointer.
15315         (call_addfn): And deference the address here, to match.
15317 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15319         regex: do not depend on malloc-gnu
15320         * modules/regex (Depends-on): Remove malloc-gnu.
15321         It's no longer needed, because of the 2012-12-29 patch
15322         "regex: port to hosts where malloc (0) == NULL".
15323         Reported by Nathan Kennedy in:
15324         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
15326 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
15328         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
15329         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
15330         * doc/posix-functions/expl.texi: Mention the workaround.
15332 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15334         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
15335         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
15336         size to be zero even when the pointer is nonnull.  This
15337         accommodates the use case where P is malloc (0) and *PN is 0 on a
15338         host where malloc (0) yields nonnull.
15340 2014-04-09  Eric Blake  <eblake@redhat.com>
15342         fts: avoid unnecessary strlen calls
15343         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
15345 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15347         fts: avoid unnecessary strlen calls
15348         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
15349         when that can be faster than strlen.
15351 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15353         fts: avoid unnecessary strlen calls
15354         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
15355         (fts_build): Store the length of the dp->d_name entry in a local variable
15356         instead of calling strlen() several times via the above, removed macro.
15357         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
15358         run by ~4%, yet this reduces the execution time by about a third if run
15359         via "ltrace -c rm -rf some-dir".
15361 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15363         obstack: Remove ancient NeXTSTEP gcc support conditional
15364         This change will ease merging with glibc.  The "#if ... __NEXT__"
15365         causes a warning with -Wundef which glibc now enables by default.
15366         Problem reported by Will Newton in
15367         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
15368         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
15369         so go with that.
15370         * lib/obstack.h (__extension__):
15372 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15374         obstack: merge with glibc changes
15375         * lib/obstack.c, lib/obstack.h: Merge from glibc.
15376         This is mostly indenting and commentary changes.
15377         Instances of 'register' have been removed.
15379 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15381         strftime: wrap macros in "do {...} while(0)"
15382         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
15383         this macro in "do {...} while(0)" to prevent false use as a
15384         single statement, e.g., in an un-braced "{}" else-block.
15385         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
15386         (strftime_case_): Remove 'else' after 'goto' - which was the
15387         only non-fatal, un-braced use of one of the above macros.
15388         Spotted by coverity (NESTING_INDENT_MISMATCH).
15390 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15392         modechange: avoid memory leaks for invalid octal modes
15393         * lib/modechange.c (mode_compile): During the parsing of
15394         notations like +40, free the 'mc' buffer for invalid mode
15395         strings like +17777 (greater than the maximum octal mode),
15396         =18 (bad octal mode characters) or u=1 ('affected' with
15397         octal modes).
15398         Reproducer, e.g.:
15399             $ valgrind --leak-check=full chmod +17777 file
15400         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
15401         add notations +40, 00440, etc.".
15402         Spotted by coverity (RESOURCE_LEAK).
15404 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15406         gitlog-to-changelog: include a dummy git-log-fix file
15407         Problem reported by Nathan Stratton Treadway in:
15408         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
15409         * build-aux/git-log-fix: New file.
15411 2014-03-13  Jim Meyering  <meyering@fb.com>
15413         gitlog-to-changelog: also include the file, git-log-fix
15414         * modules/gitlog-to-changelog (Files): Add git-log-fix.
15415         Reported by Assaf Gordon.
15417 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
15419         regex: port to OS X 10.8.5 en_US.UTF-8 locale
15420         This fixes a bug when ignoring case and when comparing the
15421         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
15422         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
15423         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
15424         titlecase letter is neither lowercase nor uppercase, but
15425         uppercasing the titlecase letter (via towupper) yields the
15426         uppercase letter, so the two letters should match when ignoring case.
15427         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
15428         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
15429         Don't test whether a character is lowercase before uppercasing it.
15431 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
15433         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
15434         This is basically one of the options Bruno Haible proposed in:
15435         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
15436         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
15437         * lib/stdint.in.h: Use it.
15438         * modules/stdint (Depends-on): Add sys_types.
15440 2014-02-26  Pádraig Brady  <P@draigBrady.com>
15442         parse-datetime: fix crash or infloop in TZ="" parsing
15443         * lib/parse-datetime.y (parse_datetime): Break out of the
15444         TZ="" parsing loop once the second significant " is found.
15445         Also skip over any subsequent whitespace to be consistent
15446         with the non TZ= case.
15447         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
15449 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15451         savedir: new symbol for fast-read version
15452         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
15453         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
15454         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
15455         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
15457 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15459         unistd: port readlink to Mac OS X 10.3.9
15460         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
15461         around self-include problem in Mac OS X 10.3.9 when combined with
15462         readlink module.  Problem reported by Klaus Zietler in
15463         <http://bugs.gnu.org/16825>.
15465 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15467         diffseq: remove TOO_EXPENSIVE heuristic
15468         Problem with diffutils reported by Vincent Lefevre in
15469         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
15470         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
15471         Although appropriate for circa-1993 hardware, these days the heuristic
15472         seems to be more trouble than it's worth.
15473         * lib/diffseq.h: Modernize citations.
15474         (struct context): Remove member too_expensive.
15475         All uses changed.
15476         (struct partition): Remove members lo_minimal, hi_minimal.
15477         All uses changed.
15478         (diag, compareseq): Remove arg find_minimal.  All uses changed.
15479         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
15480         1993 to make 'diff' run faster (but not as well) on large inputs.
15481         These days, computers are fast enough that it's typically better
15482         to run slower but more accurately.
15483         * lib/fstrcmp.c: Remove duplicate comment.
15484         * lib/fstrcmp.c (strcmp_bounded):
15485         * lib/git-merge-changelog.c (compute_differences):
15486         Adjust to diffseq.h changes.
15487         * NEWS: Document the change.
15489         savedir: simplify by using stpcpy
15490         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
15491         (streamsavedir): Use stpcpy instead.
15492         * modules/savedir (Depends-on): Add stpcpy.
15494 2014-02-21  Pádraig Brady  <P@draigBrady.com>
15496         spawn: fix link error on uclibc
15497         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
15498         to incorporate -lrt if needed (on uclibc for example).
15499         * modules/posix_spawn: Reference the substituted LIB.
15501 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
15502         timer: fix uClibc detection of threading
15503         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
15504         enabled in uClibc.
15506 2014-02-21  Eric Blake  <eblake@redhat.com>
15508         maintainer-makefiles: provide AC_PROG_SED for older autoconf
15509         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
15511 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15513         exclude: add support for posix regexps
15515         This commit adds support for POSIX extended regular expressions
15516         and fixes a long-standing memory leak (pattern buffer was never
15517         freed).  It also implements a new interface function to read
15518         exclude patterns from a FILE, which passes an additional parameter
15519         to its callback function, thereby allowing to preserve its state
15520         between invocations.
15522         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
15523         (pattern_buffer): New struct.
15524         (exclude): New member patbuf.
15525         (exclude_add_pattern_buffer): New function.
15526         (free_exclude_segment): Free regexps.
15527         (free_exclude): Free allocated pattern buffers.
15528         (exclude_patopts): New function.
15529         (file_pattern_matches): Use exclude_patopts.
15530         (add_exclude): support regexps.
15531         (add_exclude_fp): New function.
15532         (add_exclude_file): Rewrite using add_exclude_fp.
15533         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15534         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15535         (add_exclude_fp)
15536         (add_exclude_file): Rewrite using add_exclude_fp.
15537         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15538         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15539         (add_exclude_fp)
15540         (exclude_add_pattern_buffer): New prototypes.
15541         * modules/exclude: Depends on regex and filename.
15543 2014-02-20  Eric Blake  <eblake@redhat.com>
15545         maintainer-makefiles: use $(SED) for syntax check
15546         * modules/maintainer-makefile (configure.ac): Check for sane sed.
15547         * top/maint.mk: Change sed to $(SED).
15549 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
15550             Paul Eggert  <eggert@cs.ucla.edu>
15552         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
15553         Patch based on an idea by Dick Streefland in
15554         <https://savannah.gnu.org/patch/?7892>.
15555         * NEWS: Document this.
15556         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
15557         (direntry_t, comparison_function): New types.
15558         (direntry_cmp_name): New function.
15559         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
15560         (streamsavedir, savedir): New arg OPTION.
15561         (streamsavedir): Simplify memory allocation.
15562         (fdsavedir): Remove.
15563         * lib/savedir.h (enum savedir_option): New type.
15564         (streamsavedir, savedir): New arg OPTION.
15565         (fdsavedir): Remove.
15567 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15569         file-type: add support for doors and other less-common file types
15570         Problem with S_ISDOOR reported by Rich Burridge.
15571         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
15572         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
15573         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
15575 2014-01-23  Eric Blake  <eblake@redhat.com>
15577         pthread: work around winpthread header pollution on mingw
15578         * lib/time.in.h: Move pthread workarounds...
15579         * lib/pthread.in.h: ...here.
15580         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
15581         detect macro pollution on mingw.
15582         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
15584 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15586         qacl: check for fchmod
15587         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
15588         and qset-acl.c both use HAVE_FCHMOD.
15590 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15592         fdopen-tests: port to Tru64
15593         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15594         descriptor that is not open, as POSIX doesn't specify the
15595         resulting behavior and the test does not work on Tru64.
15596         Problem reported by Steven M. Schweda in:
15597         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15599         stdalign: port to HP-UX compilers
15600         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15601         if __HP_cc or __HP_aCC are nonzero.
15603 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15605         strtoimax: port to platforms lacking 'long long'
15606         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15607         check whether strtoll is declared, which causes the C file to
15608         wrongly report an error.  Problem reported by Steven M. Schweda in:
15609         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15610         * lib/strtoimax.c (strtoull):
15611         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15612         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15614 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15616         relocatable-perl: fix texi syntax
15617         * doc/relocatable-maint.texi: Escape braces.
15619 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15621         relocatable-perl: like relocatable-script, but for Perl scripts
15622         * build-aux/relocatable.pl.in: Add.
15623         * doc/relocatable-maint.texi: Add documentation.
15624         * modules/relocatable-perl: Add.
15626 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15628         tests: fix export bug in previous patch
15629         Problem reported by Jim Meyering.
15630         * tests/init.sh (re_shell): New var, which is exported instead of
15631         re_shell_.
15633         tests: simplify porting to Solaris 10 /bin/sh
15634         Some test cases in 'grep' need a shell that groks '$(';
15635         export re_shell_ for their benefit.  Problem reported for 'grep'
15636         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15637         * tests/init.sh (re_shell_): Export if it's used.
15639 2014-01-06  Eric Blake  <eblake@redhat.com>
15641         md5, sha1, sha256, sha512: support older autoconf
15642         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15643         for autoconf < 2.63b.
15645         include_next: port to autoconf 2.63
15646         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15648 2014-01-04  Jim Meyering  <meyering@fb.com>
15650         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15651         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15652         so that "make sc_maint" will ding anyone who puts non-ascii
15653         in any of gnulib's .texi files.
15655 2014-01-03  Jim Meyering  <meyering@fb.com>
15657         freadable, fwritable, fwriting: declare with the "pure" attribute
15658         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15659         * lib/fwritable.h (fwritable): Likewise.
15660         * lib/fwriting.h (fwriting): Likewise.
15661         Suggested by Bruno Haible.
15663         maint.mk: adapt openat.h-include-without-use test
15664         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15665         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15666         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15667         With this change, running "make sc_maint" in gnulib's top-level
15668         directory now passes for me.
15670 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15672         doc: use ASCII in .texi files where UTF-8 isn't needed
15673         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15674         * doc/posix-functions/setkey.texi, doc/regex.texi:
15675         Use ASCII input, not UTF-8.
15677 2014-01-02  Jim Meyering  <meyering@fb.com>
15679         freading: declare with the "pure" attribute
15680         * lib/freading.h (freading): Declare with the "pure" attribute.
15682         manywarnings: remove -Wmudflap
15683         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15684         it is no longer supported in gcc-4.9-to-be.
15686 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15688         relocatable-script: remove unused code
15689         Problem reported by Reuben Thomas in:
15690         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15691         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15693 2014-01-01  Jim Meyering  <meyering@fb.com>
15695         maint: fix public-submodule-commit to work with newer git
15696         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15697         We were over-quoting the test arguments, and somewhere prior to
15698         version 1.8.5.2.229, git stopped removing those excess quotes,
15699         which made the test fail, since the unexpanded strings would
15700         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15701         command wasn't even being run.
15703 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15705         doc: update main copyright year
15706         * doc/gnulib.texi: Update copyright date.
15708 2014-01-01  Eric Blake  <eblake@redhat.com>
15710         version-etc: new year
15711         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15712         * all files: run 'make update-copyright'
15714 2013-12-24  Eric Blake  <eblake@redhat.com>
15716         passfd: give nicer error for recvfd at eof
15717         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15718         * tests/test-passfd.c (main): Enhance test to cover this.
15720 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15722         gettimeofday: port recent C++ fix to Emacs
15723         Without this further patch, Emacs won't build due to
15724         the portcheck failing.  Also, this simplifies the patch a bit.
15725         * lib/time.in.h (localtime, gmtime): Don't replace unless
15726         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15727         * lib/time.in.h (localtime, gmtime):
15728         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15729         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15730         * modules/time (time.h):
15731         Don't worry about the possibility of localtime and gmtime
15732         being absent; they're present in all C libraries we know about.
15733         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15734         Don't assume sys_time is present and has been initialized.
15735         Instead, use a hack that should work even if it hasn't been.
15736         Don't use a portcheck for gmtime or localtime; this supports
15737         the hack.
15738         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15740 2013-12-17  John W. Eaton  <jwe@gnu.org>
15742         gettimeofday: fix C++ crosscompilation
15744         Never replace gmtime and localtime by macros when compiling with
15745         C++, this prevents <ctime> from being included.
15747         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
15748         define gmtime and localtime as preprocessor macros.  Instead
15749         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
15750         REPLACE_LOCALTIME substitutions.
15751         * lib/time.in.h: Declare gmtime and localtime when needed.
15752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
15753         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
15754         * modules/time: Depend on gettimeofday, and substitute the above
15755         variables in time.h.
15757 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15759         qacl: port to Windows better
15760         See Eli Zaretskii in
15761         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
15762         * lib/file-has-acl.c (acl_access_nontrivial):
15763         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
15764         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
15766 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
15768         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
15769         * lib/gl_openssl.h: Cast void pointers to a specific type.
15771 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15773         open-tests: fix build failure with -Werror=old-style-declaration
15774         * tests/test-open.h: Reorder the inline to avoid the issue.
15776 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15778         md5, sha1, sha256, sha512: fix link error with partial libcrypto
15779         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15780         init time, so that if early checks find crypto routines,
15781         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
15782         avoiding link failures.
15784 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15786         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
15787         This provides a new way to specify the default for
15788         gl_CRYPTO_CHECK, one that is reflected in the --help message.
15789         Emacs uses this, as well as the old way.
15790         This attempts to implement a suggestion by Pádraig Brady in
15791         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
15792         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
15793         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
15795         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
15796         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
15797         Add support for a new option, --with-openssl=auto, which causes
15798         the library to be used if available and silently ignored if not.
15799         Add support to allow configure.ac to specify its own
15800         default, by setting with_openssl_default before invoking gl_INIT.
15802 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15804         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
15805         Problem reported by Daiki Ueno in:
15806         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
15807         * tests/test-open.h (__always_inline):
15808         New macro, if not already defined.
15809         (test_open): Use it.
15811 2013-12-04  Eric Blake  <eblake@redhat.com>
15813         include_next: minimize code duplication
15814         * modules/include_next (Depends-on): Add absolute-header.
15815         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
15816         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
15818 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15820         getcwd: fix compile error in configure check
15821         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
15823 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15825         regex: suppress core dumps from detection code
15826         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
15827         to suppress core dumps that may well occur on glibc systems.
15828         These core dumps might not be cleaned up automatically, or could
15829         trigger some system core dump handling logic.
15831 2013-12-03  Pádraig Brady  <P@draigBrady.com>
15833         md5, sha1, sha256, sha512: support mandating use of openssl
15834         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
15835         description, to list the now 3 separate options.  also don't
15836         mention the default=no, since this is implicit given the option
15837         is described as --with-openssl rather than --without-openssl.
15838         If projects change the default they're free to document that.
15839         with --with-openssl[=yes] we now error out when the specified
15840         hash algorithm is not available in libcrypto.
15842 2013-12-03  Ivailo  <xakepa10@gmail.com>
15844         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
15845         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
15846         -Wformat-nonliteral checks, as these edge cases are part of the test.
15848 2013-12-03  Eric Blake  <eblake@redhat.com>
15850         regex: avoid glibc deadlock during configure
15851         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
15852         glibc bug 15078 in turn triggers bug 16159.
15853         Reported by Michal Privoznik.
15855 2013-12-02  Pádraig Brady  <P@draigBrady.com>
15857         md5, sha1, sha256, sha512: use openssl routines if available.
15858         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15859         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15860         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15861         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15862         in the standard system location.
15863         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15864         * m4/sha256.m4: Likewise with SHA256.
15865         * m4/sha512.m4: Likewise with SHA512.
15866         * m4/md5.m4: Likewise with MD5.
15867         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15868         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15869         * lib/sha256.h: Likewise with SHA256.
15870         * lib/sha512.h: Likewise with SHA512.
15871         * lib/md5.h: Likewise with MD5.
15872         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15873         * lib/sha256.c: Likewise with SHA256.
15874         * lib/sha512.c: Likewise with SHA512.
15875         * lib/md5.c: Likewise with MD5.
15876         * modules/crypto/sha1 (Link:): Add the new optional lib.
15877         (Depends-on:): Add dependency on extern-inline.
15878         * modules/crypto/sha256: Likewise.
15879         * modules/crypto/sha512: Likewise.
15880         * modules/crypto/md5: Likewise.
15881         * modules/crypto/sha1-tests: Reference the lib here too.
15882         * modules/crypto/md5-tests: Likewise.
15883         * modules/crypto/gc-des-tests: Likewise.
15884         * modules/crypto/gc-hmac-md5-tests: Likewise.
15885         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15886         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15887         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15888         * modules/crypto/gc-md5-tests: Likewise.
15889         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15890         * modules/crypto/gc-sha1-tests: Likewise.
15891         * modules/crypto/gc-tests: Likewise.
15892         * modules/crypto/hmac-md5-tests: Likewise.
15893         * modules/crypto/hmac-sha1-tests: Likewise.
15894         * modules/crypto/hmac-sha256-tests: Likewise.
15895         * modules/crypto/hmac-sha512-tests: Likewise.
15897 2013-11-29  RV1971  <rv1971@web.de>
15899         base64: (trivial) fix compilation regression on some compilers
15900         * lib/base64.c: Don't return the void function,
15901         instead split to a separate return statement.
15903 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15905         ignore-value: revert previous code change
15906         * lib/ignore-value.h (ignore_value): Use __extension__ and
15907         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15908         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15909         Change the comment to try to explain this better.
15911 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15913         selinux-h: improve stub types and add more stub functions
15915         * lib/se-selinux.in.h: Change security_context_t to a typedef
15916         rather than a define, as it's a pointer type and so is better
15917         as a typedef to avoid issues declaring multiple variables
15918         with the comma operator.  Also add stub for string_to_security_class().
15919         * lib/se-context.in.h: Add stub functions for
15920         context_{type,range,role,user}_get().
15922 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15924         ignore-value: prefer GCC version back through 2.0
15925         The code didn't match the comments, so I did a bit of software
15926         archaeology.  GCC 2.0 seems to support __extension__ and
15927         __typeof__, so fix both code and comments to use 2.0.
15928         * lib/ignore-value.h (ignore_value): Use __extension__ and
15929         __typeof__ for GCC 2.0 through 3.3, too.
15931 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
15933         pty: Activate the signature wrapper of forkpty.
15934         The intended preprocessor macro HAVE_FORKPTY is
15935         never defined, yet `lib/forkpty.c' depends on it.
15937         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
15938         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
15939         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
15941 2013-11-18  Jim Meyering  <meyering@fb.com>
15942         and Paul Eggert  <eggert@cs.ucla.edu>
15944         quotearg: don't attempt to store 1 << 31 into an "int"
15945         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
15946         gcc's new -fsanitize=undefined and running its tests triggered some
15947         new test failures due to undefined behavior, all with this diagnostic:
15948           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
15949             cannot be represented in type int
15950         Rather than shifting "1" left to form a mask, shift the bits right and
15951         simply use "1" as the mask.
15953 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15955         error: depend on stdio
15956         Problem reported by Nikos Mavrogiannopoulos in
15957         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
15958         * modules/error (Depends-on): Add stdio.
15960 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
15962         * doc/relocatable-maint.texi (Supporting Relocation): Improve
15963         wording.
15964         Reported by Reuben Thomas <rrt@sc3d.org>.
15966 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15968         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
15969         New function and macro, to work around _DARWIN_C_SOURCE problem.
15970         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
15972 2013-11-11  Pádraig Brady  <P@draigBrady.com>
15974         base64: provide a fast path for encoding well sized buffers
15975         Avoid conditionals in the base64 encoding loop,
15976         which was seen to give 60% better throughput.
15977         * lib/base64.c (base64_encode_fast): A new function to be called
15978         when we don't want to NUL terminate, and we have enough space
15979         in the output to encode the given input.
15980         (base64_encode): Call the _fast() version when appropriate.
15981         Also remove a redundant mask with 0x3F on the first encoded byte.
15983 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15985         extern-inline: port better to OS X 10.9
15986         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
15987         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
15988         OS X 10.9, except for g++ where the bug is still present.
15989         See <http://trac.macports.org/ticket/41033>.
15991 2013-11-08  Eric Blake  <eblake@redhat.com>
15993         fpending: fix regression on DragonFly BSD
15994         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
15995         * lib/fpending.h (__fpending): Don't declare twice.
15996         Reported by GW in
15997         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
15999 2013-11-05  Jim Meyering  <meyering@fb.com>
16001         hash: relax license to LGPLv2+, for libguestfs
16002         * modules/hash (License): Change from GPL to LGPLv2+.
16004 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16006         intprops: port to Oracle Studio c99
16007         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
16008         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
16010 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16012         obstack: pacify HP C
16013         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
16014         warning "conversion from pointer to smaller integer" from HP
16015         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
16016         C89 or later nowadays, so cast to void instead of int.  Privately
16017         reported by H.Merijn Brand.  Also, change header to match glibc's,
16018         to make checking against glibc easier.
16020 2013-10-29  Jim Meyering  <meyering@fb.com>
16022         maint.mk: prefer gpgv2 over gpgv
16023         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
16024         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
16025         Reported by Gary Vaughan.
16027 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16029         isnan: port to VAX
16030         Reported by John Klos for NetBSD-5/VAX in
16031         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
16032         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
16033         (FUNC): Use it.
16035 2013-10-28  Jim Meyering  <meyering@fb.com>
16037         gnulib-tool: protect against CDPATH
16038         * gnulib-tool: Many "cd" built-in functions print a directory name
16039         to stdout when CDPATH is set, e.g.,
16040           $ bash -c 'CDPATH=/; cd tmp'
16041           /tmp
16042         Unset it, when possible.  Prompted by a comment from Bruce Korb.
16044         maint.mk: restore functionality removed by recent change...
16045         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
16046         the context of a shallow-cloned gnulib repository: "git describe"
16047         would fail in such a directory.  However, that change made it so
16048         the reported gnulib revision no longer includes the version number
16049         or a commit count, even when run from a full clone.
16050         * top/maint.mk (gnulib-version): Use the full "git describe"
16051         output when possible, e.g., the form above, rather than the
16052         abbreviated, no-tag, no-commit-count string, and fall back to
16053         using a 10-byte hash, rather than the default minimal-length
16054         hash prefix, since while the minimal-length one may be fine today,
16055         it is likely not to be unique for very long.
16057 2013-10-26  Jim Meyering  <meyering@fb.com>
16059         maint.mk: fix "release" target to build _version
16060         This fixes a bug in README-release whereby following the outlined
16061         steps, one would publish a tarball whose programs would report
16062         --version output not consistent with the package version number.
16063         This bug caused grep-2.15 to produce a grep program whose
16064         --version option made it print 2.14.56-1e3d rather than 2.15.
16065         * top/maint.mk (release): Making this target build "_version"
16066         ensures that the new version number is reflected in configure.
16068 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
16070         install-reloc: Support multi-binary installation.
16071         * build-aux/install-reloc: Support installing multiple programs in
16072         one invocation, as done by Automake starting with commit
16073         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
16074         Haible <bruno@clisp.org>, archived at
16075         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
16076         Reported by Sylvain <beuc@gnu.org>.
16078 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16080         selinux-h: Really build without selinux when library is missing.
16081         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
16082         continue without selinux, as already told in the warning message.
16084 2013-10-21  Jim Meyering  <meyering@fb.com>
16086         regex: also remove dependency on HAVE_WCSCOLL
16087         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
16089 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
16091         xfreopen: Fix typo. s/frepoen/freopen/
16092         * lib/xfreopen.c: Fix description.
16093         * modules/xfreopen: Likewise.
16095 2013-10-21  Jim Meyering  <meyering@fb.com>
16097         regex: don't depend on wcscoll
16098         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
16099         It is no longer used.
16101 2013-10-20  Jim Meyering  <meyering@fb.com>
16103         error: add the printf attribute to a static function
16104         * lib/error.c (error_tail): Add the printf attribute, to placate
16105         gcc's -Werror=suggest-attribute=format option.
16107 2013-09-30  Jim Meyering  <meyering@fb.com>
16109         fpending, obstack, strerror-override: use pure+const function attrs
16110         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
16111         * lib/obstack.c (_obstack_allocated_p): Likewise.
16112         * lib/obstack.h (_obstack_memory_used): Likewise.
16113         (_obstack_memory_used): Likewise.
16114         * lib/strerror-override.h (strerror_override): Declare with
16115         the "const" attribute.
16117 2013-10-18  Eric Blake  <eblake@redhat.com>
16119         extern-inline: make safe for -Wundef usage
16120         Reported by Vladimir 'phcoder' Serbinenko in
16121         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
16122         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
16124 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16126         mkfifo-tests, etc.: allow HP-UX 11.11 bug
16127         Problem reported by Daniel Richard G. in
16128         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
16129         * doc/posix-functions/mkfifo.texi (mkfifo):
16130         * doc/posix-functions/mkfifoat.texi (mkfifoat):
16131         * doc/posix-functions/mknod.texi (mknod):
16132         * doc/posix-functions/mknodat.texi (mknodat):
16133         Document the HP-UX 11.11 bug.
16134         * tests/test-mkfifo.h (test_mkfifo):
16135         Allow the HP-UX 11.11 bug.
16137 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16139         acl: allow cross-compilation to Gentoo
16140         Problem reported by Gabriel Marcano in
16141         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
16142         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
16143         test only whether it links.
16145 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16147         mgetgroups: remove dependency on realloc-gnu
16148         The dependency violates the comment in realloc-gnu, which
16149         says that tests can't depend on realloc-gnu; some tests depend
16150         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
16151         Problem reported by Daniel Richard G. in
16152         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
16153         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
16154         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
16155         not realloc-gnu.
16157 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16159         regex-tests: port to HP-UX 11.11
16160         Problem reported by Daniel Richard G. in
16161         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
16162         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
16164 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16166         verify: document some 'assume' pitfalls
16167         * doc/verify.texi (Compile-time Assertions):
16168         Mention that 'assume (E)' can sometimes slow things down.
16169         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
16171 2013-10-10  Eric Blake  <eblake@redhat.com>
16173         strtoumax: fix typo in previous commit.
16174         * modules/strtoumax (Depends-on): Fix typo.
16175         * modules/strtoimax (Depends-on): Likewise.
16177 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16179         strtoumax: port to Solaris 8
16180         This problem was introduced in the recent HP-UX patch.
16181         Reported by Tom G. Christensen in
16182         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
16183         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
16184         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
16186 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16188         strtoimax, strtoumax: port to HP-UX 11.11
16189         Problem reported by Daniel Richard G. in
16190         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
16191         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
16192         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
16193         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
16194         REPLACE_STRTOUMAX.
16195         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
16196         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
16197         Replace the function if defined as a macro but not as a function.
16198         * modules/inttypes-incomplete (inttypes.h): Substitute
16199         REPLACE_STRTOUMAX.
16200         * modules/strtoumax (configure.ac): Replace strtoumax if
16201         REPLACE_STRTOUMAX.
16203 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16205         strtoimax: port to HP-UX 11.11
16206         Problem reported by Daniel Richard G.
16207         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
16208         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
16209         they might clash with inttypes.h.
16211 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16213         New module 'count-trailing-zeros'.
16214         * MODULES.html.sh: Mention it.
16215         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
16216         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
16217         * modules/count-trailing-zeros-tests:
16218         * tests/test-count-trailing-zeros.c:
16219         New files.
16221         count-leading-zeros: port to MSC; support types wider than 64 bits
16222         The ideas behind the MSC port are stolen from Emacs.
16223         * lib/count-leading-zeros.h:
16224         Don't include verify.h: it's no longer needed, as types wider than
16225         64 bits are now supported.
16226         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
16227         performance with MSC.  All uses changed.  Do not assume that TYPE
16228         has at most 64 bits.
16229         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
16230         All uses changed.  Fold the subtraction from 31 into the table.
16232         count-one-bits: port to MSC; support types wider than 64 bits
16233         The ideas behind the MSC port are stolen from Emacs.
16234         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
16235         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
16236         Don't include verify.h: it's no longer needed, as types wider than
16237         64 bits are now supported.
16238         (COUNT_ONE_BITS_GENERIC): New macro.
16239         (popcount_supported) [_MSC_VER]: New inline function.
16240         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
16241         performance with MSC.  All uses changed.  Do not assume that TYPE
16242         has at most 64 bits.
16243         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
16245 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
16247         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
16248         * lib/mountlist.c (read_file_system_list): fix leak of directory
16249         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
16251 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16253         tests: improve diagnostic when an assertion fails
16254         * tests/macros.h (ASSERT): Report the assertion that failed.
16256 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16258         verify: new macro 'assume'
16259         This is taken from Emacs, and should be generally useful.
16260         * doc/verify.texi (assume): Document it.
16261         * lib/verify.h (assume): New macro.
16262         (__has_builtin): Expand to 0 if not defined.
16264 2013-09-26  Eric Blake  <eblake@redhat.com>
16266         dup2, dup3: work around another cygwin crasher
16267         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
16268         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
16269         * tests/test-dup2.c (main): Likewise.
16270         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
16271         * lib/dup3.c (dup3): Likewise.
16272         * doc/posix-functions/dup2.texi (dup2): Document it.
16273         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16275         getdtablesize: work around cygwin issue
16276         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
16277         * modules/getdtablesize (configure.ac): Build replacement.
16278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
16279         * modules/unistd (Makefile.am): Expose the witness.
16280         * lib/unistd.in.h (getdtablesize): Declare replacement.
16281         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
16282         * tests/test-getdtablesize.c (main): Test it.
16283         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
16285 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
16287         pmccabe2html: escaping of special characters
16288         Escape all '<', '>', and '&' in HTML output.
16289         * build-aux/pmccabe2html (html_fnc): Call gsub()
16290         instead of sub() to capture all '<', '>', and '&'.
16291         Neither of '<' and '>' is special in a regexp,
16292         so first arguments to gsub() are corrected. Also,
16293         in replacement strings, ampersand must be escaped.
16294         Finally, '&' must be handled first, then '<' and '>'.
16296 2013-09-24  Eric Blake  <eblake@redhat.com>
16298         manywarnings: enable nicer gcc warning messages
16299         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
16300         some -f options for optimal warnings.
16302 2013-09-21  Jim Meyering  <meyering@fb.com>
16304         timespec: use the new TIMESPEC_RESOLUTION in a few more places
16305         * lib/timespec-add.c (timespec_add): Also replace 999999999
16306         with TIMESPEC_RESOLUTION - 1.
16307         * lib/timespec-sub.c (timespec_sub): Likewise.
16309 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16311         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
16312         Problem reported by Dagobert Michelsen via Eric Blake in
16313         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
16314         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
16315         not AC_COMPILE_IFELSE.
16317 2013-09-23  Eric Blake  <eblake@redhat.com>
16319         configmake: support new --runstatedir option
16320         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
16321         even if autoconf was too old to provide the command line option.
16322         * modules/configmake (Makefile.am): Propagate it to .h file.
16324 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16326         ctype, string: depend on extern-inline
16327         This is needed to complete the recent OS X fixes.
16328         Also, fix related documentation as suggested by Eric Blake.
16329         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16330         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
16331         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
16332         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
16333         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
16334         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
16335         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
16336         * doc/posix-functions/toupper.texi:
16337         List the 'ctype' gnulib module.
16338         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
16339         * doc/posix-functions/strncpy.texi:
16340         List the 'string' gnulib module.
16341         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
16342         Add string.
16343         * modules/ctype, modules/string (Depends-on): Add extern-inline.
16345 2013-09-19  Pádraig Brady  <P@draigBrady.com>
16347         userspec: support optional parameters to parse_user_spec()
16348         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
16349         then avoid group processing and treat the full spec as a user.
16350         (parse_with_separator): Allow the USERNAME and GROUPNAME to
16351         be optional params (NULL), in which case they're ignored.
16353 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16355         timespec: new function make_timespec, and new constants
16356         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
16357         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
16358         (make_timespec): New function.
16359         * lib/dtotimespec.c (dtotimespec):
16360         * lib/timespec-add.c (timespec_add):
16361         * lib/timespec-sub.c (timespec_sub):
16362         * lib/utimens.c (validate_timespec):
16363         * lib/utimensat.c (rpl_utimensat):
16364         Use these new constants and functions.
16366         stdio: OS X port of putc_unlocked + extern inline
16367         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
16368         * doc/posix-functions/putc_unlocked.texi:
16369         * doc/posix-functions/putchar_unlocked.texi:
16370         Document this portability problem.
16372         signal: OS X port of sigaddset etc. + extern inline
16373         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
16374         (sigismember): #undef on problematic Apple platforms.
16375         * doc/posix-functions/sigaddset.texi:
16376         * doc/posix-functions/sigdelset.texi:
16377         * doc/posix-functions/sigemptyset.texi:
16378         * doc/posix-functions/sigfillset.texi:
16379         * doc/posix-functions/sigismember.texi:
16380         Document this portability problem.
16382         extern-inline: do not always suppress extern inline on OS X
16383         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
16384         extern inline on Apple only if the particular compile-time
16385         configuration is known to have the problem.
16386         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
16387         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
16388         other Gnulib modules.
16390         extern-inline: document fixes for ctype and wctype macros
16391         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16392         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
16393         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
16394         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
16395         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
16396         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
16397         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
16398         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
16399         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
16400         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
16401         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
16402         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
16403         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
16404         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
16405         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
16406         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
16407         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
16408         * doc/posix-functions/strncpy.texi:
16409         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
16410         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
16411         Document that Gnulib fixes portability problems with these
16412         functions on OS X 10.8 and earlier when called from plain inline
16413         or extern inline functions.
16415 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
16417         fflush, freadahead, fseeko: Fix for Android
16418         Suggested by Bruno Haible in:
16419         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
16420         * lib/stdio-impl.h: Use local __sfileext definition.
16422 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
16424         pmccabe2html: Portability to other awk versions.
16425         The functions systime() and strftime() are available
16426         in Gawk only.  Properly close two HTML-tags 'style'
16427         and 'span'.
16428         * build-aux/pmccabe2html (BEGIN): Store timing
16429         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
16430         systime() in HTML_COMMENT.
16431         (html_header): Correctly close tag 'style'.
16432         (END): Replace strftime() by CHRONOS_TIME.  Close
16433         tag 'span' correctly, not as 'div'.
16435 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16437         getgroups: statement without effect
16438         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
16439         Change equality conditional to expected assignment.
16441 2013-09-09  Eric Blake  <eblake@redhat.com>
16443         glob: fix compilation
16444         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
16446 2013-09-07  Eric Blake  <eblake@redhat.com>
16448         glob: fix build for platforms without __THROW
16449         * lib/glob.in.h (__THROW): Add definition again.
16451 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
16453         regex-quote: fix buffer access out of bounds
16454         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
16455         * lib/regex-quote.c (regex_quote_spec_pcre):
16456         Fix typo that resulted in an out-of-bounds read.
16458 2013-09-04  Eric Blake  <eblake@redhat.com>
16460         glob: avoid -Wattribute warnings on glibc
16461         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
16462         __THROWNL, not __THROW, on static functions.
16463         * lib/glob.in.h (__THROW): Adjust...
16464         (__THROWNL): ...accordingly.
16466 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16468         headers: check that _GL_INLINE_HEADER_BEGIN is defined
16469         Suggested by Bruce Korb in:
16470         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
16471         * doc/extern-inline.texi (extern inline):
16472         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
16473         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
16474         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
16475         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
16476         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
16477         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
16478         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
16479         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
16480         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
16481         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
16482         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
16483         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
16484         * lib/xtime.h:
16485         Check that _GL_INLINE_HEADER_BEGIN is defined.
16487 2013-08-29  Pádraig Brady  <P@draigBrady.com>
16489         bootstrap: remove the --version requirement from ancillary tools
16490         * build-aux/bootstrap (check_exists): A new refactored function to
16491         determine if a command exists.
16492         (find_tool): Use the new function which does not require the
16493         --version option to be supported.
16494         (check_versions): Use the new function.
16496 2013-08-26  Simon Josefsson  <simon@josefsson.org>
16498         gc: support HMAC-SHA256 and HMAC-SHA512.
16499         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
16500         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
16501         functions.
16502         (gc_hmac_md5): Use symbolic constant.
16503         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
16504         (gc_hmac_sha256, gc_hmac_sha512): New functions.
16505         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
16506         * m4/sha256.m4: Protect against empty expansion.
16507         * m4/sha512.m4: Likewise.
16508         * lib/hmac-sha256.c: New file.
16509         * lib/hmac-sha512.c: Likewise.
16510         * m4/gc-hmac-sha256.m4: Likewise.
16511         * m4/gc-hmac-sha512.m4: Likewise.
16512         * m4/gc-sha256.m4: Likewise.
16513         * m4/gc-sha512.m4: Likewise.
16514         * modules/crypto/gc-hmac-sha256: Likewise.
16515         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16516         * modules/crypto/gc-hmac-sha512: Likewise.
16517         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16518         * modules/crypto/hmac-sha256: Likewise.
16519         * modules/crypto/hmac-sha256-tests: Likewise.
16520         * modules/crypto/hmac-sha512: Likewise.
16521         * modules/crypto/hmac-sha512-tests: Likewise.
16522         * tests/test-gc-hmac-sha256.c: Likewise.
16523         * tests/test-gc-hmac-sha512.c: Likewise
16524         * tests/test-hmac-sha256.c: Likewise.
16525         * tests/test-hmac-sha512.c: Likewise
16527 2013-08-24  Daiki Ueno  <ueno@gnu.org>
16529         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
16530         of AC_CHECK_DECLS.
16532 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16534         selinux-at: omit unnecessary include
16535         * lib/selinux-at.c: Don't include dosname.h; not needed, since
16536         this source file doesn't use its macros, and subsidiary files that
16537         use the macros already include it.
16539 2013-08-21  Eric Blake  <eblake@redhat.com>
16541         d-ino: avoid false negative on symlink
16542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
16543         Reported by Stephane Chazelas.
16545 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
16547         bootstrap: port to OpenBSD sed
16548         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
16549         does not interpret `-' as a file argument to mean stdin.
16551 2013-08-15  Eric Blake  <eblake@redhat.com>
16553         warnings: minor optimization
16554         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
16556         warnings: check -Wfoo rather than -Wno-foo
16557         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
16558         -Wno-, test if the compiler recognizes the positive form instead.
16560 2013-08-15  Karl Berry  <karl@gnu.org>
16562         * config/srclist-update: add option "doclicense" to placate
16563         pulling *.texi files from Emacs.  Write terse usage
16564         documentation at the top.
16566 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16568         xvasprintf-tests: port to GCC with hardening flags
16569         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
16570         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
16571         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
16573 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16575         fpending: port to recent Cygwin change to stdio_ext.h
16576         Reported by LRN in
16577         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
16578         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
16579         just declare __fpending unless it's a macro.
16580         A duplicate decl shouldn't hurt.
16581         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
16582         call compiles and links, instead of separately checking for
16583         decl and lib function.
16584         * modules/fpending (configure-ac):
16585         Adjust to fpending.m4's renaming of shell variable.
16587 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16589         sys_time: port to OpenBSD
16590         * lib/sys_time.in.h: Simply delegate to the system's header
16591         in the BSDish cases as well.  Problem reported by Mike Miller in
16592         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
16593         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16594         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16595         wider than time_t.
16597 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16599         bootstrap: support checksum utils having -c but not --status
16600         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16601         Add sha1 to the list of supported checksum utils since it's now
16602         supported through adjustments below.
16603         (update_po_files): Remove the use of --status
16604         in a way that will suppress all error messages, but since this is
16605         only used to minimize updates, it shouldn't cause an issue.
16606         Exit early if there is a problem updating the po file checksums.
16607         (find_tool): Remove the check for --version support as this
16608         is optional as per commit 86186b17.  Don't even check for the
16609         presence of the command as if that is needed, it's supported
16610         through configuring prerequisites in bootstrap.conf.
16611         Prompt that when a tool isn't found, one can define an environment
16612         variable to add to the hardcoded search list.
16614 2013-08-05  Jim Meyering  <meyering@fb.com>
16616         regex: port to non-glibc/lock-using systems
16617         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16618         system with GNULIB_LOCK would fail due to absence of the
16619         included "glthread/lock.h".  This would affect any package
16620         for which the "lock" module is used only by the regex module,
16621         and not explicitly used.
16622         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16623         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16624         Add a dependency on the "lock" module.
16626 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16628         localecharset: make locale_charset thread-safe on Mac OS X
16629         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16630         instead of MB_CUR_MAX.
16632 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16634         gettext: update to version 0.18.3
16635         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16636         require AC_PROG_SED to allow user to specify custom sed command when
16637         generating en@quot PO file.
16639 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16641         bootstrap: use correct source when copying build-aux files
16642         * build-aux/bootstrap (gnulib_extra_files): This variable is
16643         relative to upstream gnulib layout, not downstream.
16645 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16647         tmpdir: fix bug in VMS port
16648         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16649         See Steven M. Schweda in
16650         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16652 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16654         tmpdir: port to VMS, to // != /, and to long dirs
16655         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16656         __secure_getenv, so that we're more like the glibc version.
16657         All uses changed.
16658         (path_search): Don't put slash after directory if __VMS.
16659         Problem reported by Steven M. Schweda in
16660         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16661         Simplify code to add slash; no need for a loop.
16662         Do not remove trailing slash from "//".
16663         Do not assume dlen <= INT_MAX.
16665 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16667         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16668         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16669         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16670         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16672         accept4, dup3, pipe2: port to Cygwin
16673         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16674         * lib/accept4.c (accept4) [O_BINARY]:
16675         * lib/dup3.c (dup3) [O_BINARY]:
16676         * lib/pipe2.c (pipe2) [O_BINARY]:
16677         Use set_binary_mode, not setmode.
16678         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16679         * modules/binary-io (Depends-on): Remove module indicator.
16680         These last two bits undo the previous change to pipe2 and binary-io.
16682 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16684         mountlist: add support for deallocating returned list entries
16685         * lib/mountlist.c (free_mount_entry): A new exported function
16686         to deallocate a mount list entry.
16687         (read_file_system_list): Refactor to use the new deallocation function.
16688         Suggested by Anton Ovchinnikov.
16690 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16692         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16693         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16694         * lib/stdalign.in.h (_Alignas, _Alignof):
16695         Port to FreeBSD 9.1, and to C11 and C++11.
16696         (_Alignas): Also support ICC.
16697         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16698         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16700 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16702         fnmatch: don't goto over declaration
16703         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16704         undefined behavior for goto over a declaration.
16705         Problem reported by Charlie Brown in
16706         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16708         pipe2: decouple from binary-io a bit
16709         This is for Emacs, which needs pipe2 but not binary-io.
16710         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16711         * modules/binary-io (Depends-on): Add module indicator.
16713 2013-07-03  Eric Blake  <eblake@redhat.com>
16715         mgetgroups: relax license to LGPLv2+
16716         * modules/getugroups (License): Change from GPLv3+.
16717         * modules/mgetgroups (License): Likewise.
16718         * modules/getgroups (License): Change from LGPLv3+.
16720         xalloc-oversized: relax license to LGPLv2+
16721         * modules/xalloc-oversized (License): Change from GPLv3+.
16723         nproc: relax license to LGPLv2+
16724         * modules/nproc (License): Change from LGPLv3+.
16726         bootstrap: honor --no-git
16727         * build-aux/bootstrap: Don't even try to use git when user is
16728         pointing to a static checkout.
16730 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16732         ignore-value: port to gcc -pedantic
16733         * lib/ignore-value.h (ignore_value):
16734         Port to gcc -pedantic, by using __extension__.
16735         Reindent as per usual gnulib style nowadays.
16736         Simplify GCC version check.
16738 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16740         extern-inline: port to gcc -std=c89
16741         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16742         Do not use __gnu_inline__ if pedantic and pre-C99.
16744 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16746         doc: document extern-inline
16747         * doc/extern-inline.texi: New file.
16748         * doc/gnulib.texi (alloca-opt): Include it.
16749         * m4/extern-inline.m4: Move some comments to documentation,
16750         and others closer to what they describe.
16752         doc: chatter less
16753         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
16754         (updated-stamp): Use it.  This causes 'make' to output just
16755         one file name rather than zillions.
16757         fflush, fseeko: port to musl cross-compiles
16758         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
16759         on some implementation that (1) is not known to be buggy,
16760         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
16761         cross-compiled to so we can't easily check for lack of
16762         conformance.  This is for cross-compiling to musl.
16763         Reported by Rich Felker in
16764         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
16765         * m4/fclose.m4 (gl_FUNC_FCLOSE):
16766         * m4/fflush.m4 (gl_FUNC_FFLUSH):
16767         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
16768         Adjust to above change.
16769         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
16770         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
16771         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
16772         known not to work, or unknown.
16774 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16776         msvc-inval: port to mingw-w64
16777         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
16778         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
16779         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
16781 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16783         getcwd-lgpl: port to Tru64
16784         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
16785         Problem reported by Steven M. Schweda in
16786         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
16788         tests: port large-fd POSIX spawn tests to OS X
16789         Problem reported by Daiki Ueno in
16790         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
16791         * tests/test-posix_spawn_file_actions_addclose.c:
16792         * tests/test-posix_spawn_file_actions_adddup2.c:
16793         * tests/test-posix_spawn_file_actions_addopen.c:
16794         Include <limits.h>, for OPEN_MAX, if available.
16795         (big_fd): New static function.
16796         (main): Use it.
16798 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
16800         tests/nap.h: use an adaptive delay to avoid ctime update issues
16801         The recent change in nap.h (5191133e) decreased the probability of lost
16802         races to about a third, however such problems could still be observed
16803         in virtual machines and openSUSE's OBS.
16804         Before, nap() detected the needed time once empirically and then used
16805         that delay (together with a small correction multiplier) in further
16806         calls.  This problem has been reported and discussed several times,
16807         including guesses about possible kernel issues:
16808         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
16809         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
16810         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
16811         http://bugs.gnu.org/12820
16812         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
16813         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
16814         Now, nap() avoids the race alltogether by verifying on a reference
16815         file whether a timestamp difference has happened.
16816         * tests/nap.h (nap_fd): Define file descriptor variable for the
16817         witness file.
16818         (nap_works): Change return value to bool.  Change passing
16819         the old file's status by value instead of by reference as this function
16820         does no longer update that timestamp; rename the function argument from
16821         st to old_st.  Remove the local variables cdiff and mdiff because that
16822         function now returns true/false instead of the precise delay.
16823         (guess_delay): Remove function.
16824         (clear_tmp_file): Add new function to close and unlink the witness file.
16825         (nap): Instead of re-using the delay which has been calculated during
16826         the first call, avoid the race by actually verifying that a timestamp
16827         difference can be observed on the current file system.  Use an adaptive
16828         approach for the delay to minimize execution time.  Assert that the
16829         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
16830         = 2^31 - 1 = 2.1s.
16831         Use atexit to call clear_tmp_file when the process terminates.
16833 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16835         sig2str: port to C++
16836         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
16837         Reported by Daniel J Sebald in
16838         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
16840 2013-05-30  Eric Blake  <eblake@redhat.com>
16842         docs: mention cygwin shortcoming in <sys/un.h>
16843         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
16845         vasnprintf: silence mingw compiler warning
16846         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
16848 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16850         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
16851         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
16852         This fixes a porting bug I recently reintroduced in regex, and
16853         some other instances that I discovered while testing the fix.
16854         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
16855         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
16856         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
16857         with an empty argument if this is a pedantic pre-C99 GCC.
16858         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16859         pre-C11 GCC.
16861         regex: adapt to locking regime instead of depending on pthread
16862         Instead of depending on pthread, adapt to whatever thread
16863         modules are in use.  Problem reported by Ludovic Courtès in
16864         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16865         and by Mats Erik Andersson in
16866         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16867         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16868         Support either the 'lock' module, or the 'pthread' module, or
16869         no module.
16870         (lock_lock, lock_unlock): New macros.
16871         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16872         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16873         * modules/regex (Depends-on): Remove pthread.
16875 2013-05-22  Eric Blake  <eblake@redhat.com>
16877         getgroups: document portability issues
16878         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16879         multithread safety.
16880         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16881         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16882         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16883         getugroups.
16884         * doc/posix-functions/getgroups.texi (getgroups): Mention
16885         multithread safety and mgetgroups.
16887 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16889         test-lchown, test-chown: also skip test if chown fails with EPERM
16890         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16891         skip this test, to handle FAT file systems.
16892         * tests/test-chown.h (test_chown): Likewise.
16894 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16896         regex: fix dfa race in multithreaded uses
16897         Problem reported by Ludovic Courtès in
16898         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16899         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16900         New macros.  All uses of __libc_lock_define, __libc_lock_init
16901         changed to use the first two of these.
16902         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16903         non-glibc platforms.
16904         (struct re_dfa_t): Define the lock unconditionally.
16905         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16906         '#ifdef _LIBC"s.
16907         * modules/regex (Depends-on): Add pthread, if we use the
16908         included regex.
16910         * lib/regcomp.c: Do actions that are not needed for glibc,
16911         but may be needed elsewhere.
16912         (regfree, re_compile_internal): Destroy the lock.
16913         (re_compile_internal): Check for lock-initialization failure.
16915         malloca: port to compilers that reject size-zero arrays
16916         This fixes a bug introduced in my previous patch.
16917         * lib/malloca.c (struct preliminary_header): Use an int
16918         rather than a character array of size int; that's simpler.
16919         (struct header): Remove, replacing with ...
16920         (union header): New type.  This avoids the need for declaring a
16921         character array of size zero, which is not allowed on some platforms.
16922         All uses changed.
16924 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16926         parse-datetime, tests: don't use "string" + int
16927         Recent versions of 'clang' complain about C source code that
16928         uses expressions of the form '"string literal" + integer',
16929         I guess on the theory that it's confusing for readers who are
16930         used to C++.  On those grounds I suppose it's OK to make this
16931         minor style change.
16932         * lib/parse-datetime.y (parse_datetime):
16933         * tests/test-fchdir.c (main):
16934         * tests/test-snprintf-posix.h (test_function):
16935         * tests/test-snprintf.c (main):
16936         * tests/test-vasnprintf-posix.c (test_function):
16937         * tests/test-vasnprintf.c (test_function):
16938         * tests/test-vsnprintf.c (main):
16939         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
16940         Rewrite '"str" + E' to '&"str"[E]'.
16942 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16944         argmatch: port to C++
16945         * lib/argmatch.h [__cplusplus]: Add extern "C".
16947         argp: typo fix
16948         * lib/argp-help.c: Typo in comment.
16950 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16952         manywarnings: update for GCC 4.8.0
16953         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16954         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
16955         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
16956         -Wmissing-noreturn, as they are duplicates of other warnings.
16957         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
16958         was documented to be flaky in earlier versions of GCC.
16960         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
16961         * tests/test-spawn.c (main):
16962         * tests/test-sys_socket.c (main):
16963         * tests/test-sys_wait.c (main):
16964         Don't have a switch value that isn't covered by a case.
16966         getaddrinfo-tests: port --enable-gcc-warnings to clang
16967         * tests/test-getaddrinfo.c (simple):
16968         Avoid casts from looser to stricter-aligned pointers.
16970         thread: port --enable-gcc-warnings to clang
16971         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
16972         Include <signal.h>, to pacify a warning about pthread_sigmask.
16974         stdio: use __REDIRECT for fwrite, fwrite_unlocked
16975         * lib/stdio.in.h (fwrite):
16976         When working around bug 11959, use __REDIRECT rather than '#define
16977         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
16978         fix the -Wunused-value issue with clang, and it works with GCC too.
16979         Problem with targeting reported by Eric Blake in
16980         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
16981         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
16982         debugging the fwrite issue.
16984         stdio: port --enable-gcc-warnings to clang
16985         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
16986         since the GCC workaround for fwrite does not pacify clang.
16988         sig2str: port --enable-gcc-warnings to clang
16989         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
16991         obstack: port --enable-gcc-warnings to clang
16992         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
16993         Avoid casts from looser to stricter-aligned pointers.
16995         memchr2: port --enable-gcc-warnings to clang
16996         * lib/memchr2.c (memchr2):
16997         Avoid casts from looser to stricter-aligned pointers.
16999         mbsstr: port --enable-gcc-warnings to clang
17000         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
17001         Avoid casts from looser to stricter-aligned pointers.
17003         malloca: port --enable-gcc-warnings to clang
17004         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
17005         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
17007         inttostr: port --enable-gcc-warnings to clang
17008         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
17010         warnings: port to clang
17011         Problem reported by Daniel P. Berrange via Eric Blake in
17012         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
17013         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
17014         (gl_WARN_ADD): Use it.
17016 2013-05-11  Jim Meyering  <meyering@fb.com>
17018         quotearg: do not read beyond end of buffer
17019         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
17020         end of an ARG for which no length was specified.  With an N-byte
17021         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
17022         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
17023         via coreutils' misc/sort-debug-keys.sh test and detected by running
17024         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
17025         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
17026         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
17027         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
17028         characters correctly."
17030 2013-05-11  Daiki Ueno  <ueno@gnu.org>
17032         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
17033         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
17034         compilation target is Mac OS X 10.6.
17035         Problem reported by parafin and Andoni Morales in
17036         <http://savannah.gnu.org/bugs/?37844> and
17037         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
17039 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17041         mkdir-p: remove assumptions about umask and mode
17042         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
17043         umask is 0, or that MODE is a subset of MODE_BITS.
17045 2013-05-10  Eric Blake  <eblake@redhat.com>
17047         maint.mk: catch more abuse of HAVE_DECL in syntax-check
17048         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
17050 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
17052         deps: require Automake >= 1.9.6 in generated Makefile fragments
17054         That is the same minimal version required in the DEPENDENCIES file.
17055         Moreover, the old code generated a requirement of Automake >= 1.5,
17056         and that is an insanely outdated version.
17058         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
17059         * tests/havelib/rpathlx/Makefile.am: Likewise.
17060         * tests/havelib/rpathly/Makefile.am: Likewise.
17061         * tests/havelib/rpathlyx/Makefile.am: Likewise.
17062         * tests/havelib/rpathlz/Makefile.am: Likewise.
17063         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
17064         * tests/havelib/rpathx/Makefile.am: Likewise.
17065         * tests/havelib/rpathy/Makefile.am: Likewise.
17066         * tests/havelib/rpathz/Makefile.am: Likewise.
17068 2013-05-08  Eric Blake  <eblake@redhat.com>
17070         bootstrap: AC_INIT may have more than four parameters
17071         * build-aux/bootstrap (extract_package_name): Correctly extract
17072         non-empty tarname field.  Avoid range in regex.
17073         Based on a report by Sami Kerola <kerolasa@iki.fi>.
17075 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17077         qacl: port to MS-Windows port of GNU Emacs
17078         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
17079         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
17080         port of GNU Emacs.  Problem reported by Eli Zaretskii in
17081         <http://bugs.gnu.org/14295#14>.
17083 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
17085         acl: include quote.h
17086         * lib/copy-acl.c: Include quote.h.
17087         * lib/set-acl.c: Likewise.
17089 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
17091         fchownat, renameat, unlinkat: update statat dependencies
17092         These modules use statat and lstatat, not fstatat; so depend on
17093         the statat module, which was split out recently from fstatat.
17094         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
17095         * modules/renameat: Likewise.  Also delete fstat.
17096         URL: http://bugs.gentoo.org/468790
17098 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
17100         Assume gnulib is checked out from Git, not CVS
17102         In fact, access to the gnulib repository through CVS has been
17103         disabled, or more precisely, got broken and was never restored; see:
17104         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
17106         Note that support for CVS is not removed completely and unthinkingly
17107         by this change: only support for CVS checkouts of gnulib itself is
17108         removed.  For example, the 'bootstrap' script still cater to .cvsingore
17109         files and CVS directories, for the benefit of those poor gnulib clients
17110         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
17112         * gnulib-tool: Simplify accordingly.
17113         * posix-modules: Likewise.
17114         * MODULES.html.sh: Likewise.
17115         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
17116         repository.
17117         * doc/gnulib-intro.texi: Likewise.
17118         * doc/gnulib-readme.texi: Likewise.
17119         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
17120         sample '.gitignore' file rather than a sample '.cvsignore'.
17121         * NEWS: Update.
17122         * m4/extensions.m4: While at it, remove a comment mistakenly referring
17123         to "CVS Autoconf" rather than "git Autoconf".
17125 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
17127         utimensat-tests, etc.: try to fix some races
17128         Problem reported by Bernhard Voelker in
17129         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
17130         I don't know whether this patch fixes that race condition, but it
17131         fixes *some* race conditions, so it should be a win.
17132         * modules/chown-tests (Depends-on):
17133         * modules/fchownat-tests (Depends-on):
17134         * modules/fdutimensat-tests (Depends-on):
17135         * modules/futimens-tests (Depends-on):
17136         * modules/lchown-tests (Depends-on):
17137         * modules/stat-time-tests (Depends-on):
17138         * modules/utimens-tests (Depends-on):
17139         * modules/utimensat-tests (Depends-on):
17140         Depend on nanosleep, not usleep.
17141         * modules/chown-tests (test_chown_LDADD):
17142         * modules/lchown-tests (test_lchown_LDADD):
17143         * modules/stat-time-tests (test_stat_time_LDADD):
17144         New macro.
17145         * modules/fchownat-tests (test_fchownat_LDADD):
17146         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
17147         * modules/futimens-tests (test_futimens_LDADD):
17148         * modules/utimens-tests (test_utimens_LDADD):
17149         * modules/utimensat-tests (test_utimensat_LDADD):
17150         Add $(LIB_NANOSLEEP).
17151         * modules/stat-time-tests (Files): Add tests/nap.h.
17152         * tests/nap.h: Include <limits.h>, for INT_MAX.
17153         (lt_mtime): Remove.
17154         (diff_timespec): New function.
17155         (get_stat): Rename from get_mtime.  All callers changed.
17156         (nap_works): Determine the needed delay by inspecting the
17157         file system's timestamp jumps; this should be more reliable.
17158         Look at both mtime and ctime, and take the maximum of the two jumps.
17159         (nap_works, guess_delay):
17160         Return a nanosecond count, not a microsecond count.
17161         All callers changed.
17162         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
17163         failure.
17164         (nap): Multiply the guess by 1.125, to accommodate the case where
17165         the file system's clock is a bit slower than nanosleep's clock.
17166         * tests/test-stat-time.c (BASE): New macro.
17167         Include nap.h.
17168         (nap): Remove; nap.h now defines this.  This removes a duplicate
17169         implementation of 'nap'.
17171         utimens, utimensat: work around Solaris UTIME_OMIT bug
17172         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
17173         Linux kernel 2.6.32 does.  Work around it in the same way.
17174         * doc/posix-functions/futimens.texi (futimens):
17175         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
17176         * lib/utimens.c (fdutimens, lutimens):
17177         * lib/utimensat.c (rpl_utimensat): Work around the bug.
17179         gettext: now it's your responsibility to add -I$(top_builddir)/intl
17180         Formerly, it was your responsibility to do this for all Makefile.ams
17181         other than Gnulib's.  Now it's your responsibility to do it for
17182         Gnulib's Makefile.am, too.
17183         * NEWS: Document this.
17184         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
17186         acl: include errno.h to get errno
17187         Reported by Daiki Ueno in
17188         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
17189         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
17191 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17193         tests: don't assume getdtablesize () <= 10000000
17194         * modules/cloexec-tests:
17195         * modules/dup2-tests:
17196         * modules/dup3-tests:
17197         * modules/nonblocking-tests:
17198         * modules/posix_spawn_file_actions_addclose-tests:
17199         * modules/posix_spawn_file_actions_adddup2-tests:
17200         * modules/posix_spawn_file_actions_addopen-tests:
17201         * modules/unistd-safer-tests:
17202         Depend on the getdtablesize module.
17203         * tests/test-cloexec.c:
17204         * tests/test-dup-safer.c:
17205         * tests/test-dup2.c:
17206         * tests/test-dup3.c:
17207         * tests/test-fcntl.c:
17208         * tests/test-nonblocking.c:
17209         * tests/test-posix_spawn_file_actions_addclose.c:
17210         * tests/test-posix_spawn_file_actions_adddup2.c:
17211         * tests/test-posix_spawn_file_actions_addopen.c:
17212         Don't assume getdtablesize () <= 10000000.
17214 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
17216         extern-inline: work around bug in Sun c99
17217         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17218         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
17220 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17222         qacl: new module, broken out from the acl module
17223         This is for GNU Emacs, which wants the acl functions but does
17224         not want 'error' invoked when they fail.
17225         * lib/acl-internal.h: Do not include error.h, quote.h.
17226         (ENOSYS, ENOTSUP): Remove; no longer needed.
17227         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
17228         * lib/acl.h: Include <stdbool.h>.
17229         (acl_errno_valid): New function.
17230         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
17231         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
17232         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
17233         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
17234         (ACL_INTERNAL_INLINE): Remove; no longer needed.
17235         * lib/file-has-acl.c (file_has_acl):
17236         * lib/qcopy-acl.c (qcopy_acl):
17237         * lib/qset-acl.c (qset_acl):
17238         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
17239         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
17240         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
17241         lib/file-has-acl.c, m4/acl.m4 to qacl module.
17242         Add lib/set-acl.c.
17243         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
17244         Add qacl.
17245         (configure.ac): Move gl_FUNC_ACL to qacl module.
17246         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
17247         Rename set-mode-acl.c to set-acl.c.
17248         * lib/acl-errno-valid.c: New file.
17249         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
17250         copy_acl function remains in copy-acl.c.
17251         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
17252         (_): Remove; not needed.
17253         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
17254         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
17255         * modules/qacl: New file, moved from the old modules/acl.
17256         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
17257         Remove set-mode-acl.c, copy-acl.c.
17258         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
17260         alignof, intprops, malloca: port better to IBM's C compiler
17261         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
17262         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
17263         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
17265 2013-04-25  Daiki Ueno  <ueno@gnu.org>
17267         wctype-h: fix gettext link error on mingw
17268         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
17269         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
17270         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
17271         rpl_towupper and rpl_towupper.
17273 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
17275         regex-tests, regex: allow glibc re_search behavior
17276         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
17277         re_search input data to make the multi-character collating element
17278         in it clearly visible, and treat re_search return code 0 as valid.
17279         * m4/regex.m4 (gl_REGEX): Likewise.
17281 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17283         stdalign: doc fix
17284         * doc/posix-headers/stdalign.texi (stdalign.h):
17285         Gnulib doesn't support '_Alignof expr'.
17287 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
17289         stdalign: port to stricter ISO C11
17290         ISO C11 says that _Alignof's operand must be a parenthesized type.
17291         Problem reported by Eli Zaretskii in
17292         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
17293         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
17294         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
17296 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17298         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
17299         Problem reported by Marco Atzeri in
17300         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
17301         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
17302         Simply delegate to the system <sys/select.h> in this case too.
17303         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
17304         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
17305         be needed on Solaris either.
17306         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
17307         Simply delegate to the system <sys/time.h> in this case.
17309 2013-03-19  Karl Berry  <karl@gnu.org>
17311         * build-aux/gnupload: check for erroneous (with gnupload) use of
17312         ftp-upload.gnu.org, tweak help.
17314 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17316         copy-file, rpmatch: fix problems found by cppcheck
17317         Reported by Arno Onken in
17318         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
17319         * lib/rpmatch.c (try): Fix memory leak.
17320         * lib/copy-file.c: Include "ignore-value.h".
17321         (qcopy_file_preserving): Ignore chown value.
17322         * modules/copy-file (Depends-on): Add ignore-value.
17324 2013-01-27  Jim Meyering  <jim@meyering.net>
17326         prefix-gnulib-mk: give better diagnostics
17327         * build-aux/prefix-gnulib-mk: Don't just "die".
17328         Give better diagnostics upon failure.
17330 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17332         putenv: port to Solaris 10
17333         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
17334         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
17335         is not what is wanted here.
17336         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
17337         declaration, not for its existence.
17339 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
17341         mktime: fix configure typo
17342         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
17344 2013-03-12  Eric Blake  <eblake@redhat.com>
17346         regex-tests: skip UTF-8 test on mingw
17347         * modules/regex-tests (Depends-on): Add localcharset.
17348         * tests/test-regex.c (main): Use it to skip test on mingw.
17350 2013-03-11  Eric Blake  <eblake@redhat.com>
17352         tests: make it easier to bypass alarm time in debugger
17353         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
17354         * tests/test-memmem.c (main): Likewise.
17355         * tests/test-passfd.c (main): Likewise.
17356         * tests/test-ptsname.c (main): Likewise.
17357         * tests/test-ptsname_r.c (main): Likewise.
17358         * tests/test-strcasestr.c (main): Likewise.
17359         * tests/test-strstr.c (main): Likewise.
17361         regex: port to mingw's recent addition of undeclared alarm
17362         * doc/posix-functions/alarm.texi (alarm): Document that alarm
17363         exists but still doesn't work in newer mingw.
17364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
17365         not existence.  Ensure SIGALRM is not trapped.
17366         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
17367         * m4/regex.m4 (gl_REGEX): Likewise.
17368         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
17369         * tests/test-regex.c (main): Use correct probe for alarm.
17371         putenv: avoid compilation warning on mingw
17372         * lib/putenv.c (_unsetenv): Protect variable declaration.
17373         (putenv): Fix indentation.
17375 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
17377         unistd: don't prevent Tru64 Unix from using gnulib strtod.
17378         * lib/unistd.in.h: be careful not to include un-needed system
17379         stdlib.h from here, because that prevents gnulib stdlib.h from
17380         defining rpl_strtod correctly.
17382 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
17384         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
17385         changesets, but for the 'precision 0' test.
17386         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17387         round-to-even, since POSIX says rounding is implementation-defined
17388         and OS X 10.8.2 rounds 1.51 to 1 here.
17390         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
17391         changeset.
17392         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17393         round-to-even, since POSIX says rounding is implementation-defined
17394         and OS X 10.8.2 rounds 1.5 to 1 here.
17396 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17398         vasnprintf-posix-tests: allow rounding 1.5 to 1
17399         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
17400         round-to-even, since POSIX says rounding is implementation-defined
17401         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
17402         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
17404         bootstrap: port to FreeBSD
17405         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
17406         that treat '--' differently.  Reported by Mats Erik Andersson in
17407         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
17409 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
17411         regex: rename remaining __attribute calls to __attribute__.
17412         2012-02-25 changed definition of __attribute, but left some uses
17413         unchanged, preventing compilation of regex module on most non-gcc
17414         environments.
17415         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
17416         (lookup_collation_sequence_value, build_range_exp)
17417         (build_collating_symbol): Set attributes with newly renamed
17418         __attribute__ decorator.
17419         * lib/regex_internal.c (re_string_peek_byte_case)
17420         (re_node_set_compare, re_node_set_contains): Likewise.
17421         * lib/regexec.c (acquire_init_state_context): Likewise.
17423 2013-03-06  Bruno Haible  <bruno@clisp.org>
17425         execute: Revert last change, but use a different condition.
17426         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
17427         on Windows.
17429 2013-03-05  Eric Blake  <eblake@redhat.com>
17431         execute: drop dead code
17432         * lib/execute.c (nonintr_close, nonintr_open): Delete.
17434 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
17436         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
17437         * m4/non-recursive-gnulib-prefix-hack.m4
17438         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
17439         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
17440         <http://bugs.gnu.org/10305#237>.
17442 2013-03-04  Eric Blake  <eblake@redhat.com>
17444         test-getsockopt: avoid compiler warning
17445         * tests/test-getsockopt.c (includes): Ensure close is declared.
17447 2013-03-02  Bruno Haible  <bruno@clisp.org>
17449         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
17450         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
17452 2013-03-02  Bruno Haible  <bruno@clisp.org>
17454         gettext: Update to version 0.18.2.
17455         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
17456         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
17457                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
17459 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17461         regex: merge patches from libc
17463         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17464         * lib/regex_internal.h (__attribute__): Rename from __attribute.
17465         All uses changed.
17466         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
17467         (re_string_wchar_at, re_string_elem_size_at):
17468         Mark function as possibly unused.
17470         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
17471         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
17472         elements compare against the byte sequence of it, not its name.
17474 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17476         putenv: port better to native Windows
17477         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17478         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
17479         (_unsetenv): Use _putenv if available.
17480         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
17481         a bit less likely to cause damage.
17482         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17483         Fix the wrong value with SetEnvironmentVariable.
17484         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
17485         code better.
17487 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17489         regex: ignore old-style-definition warnings
17490         * lib/regex.c: Add pragma to ignore these warnings.
17491         Problem reported for GNU tar by Pavel Raiskup.
17493 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17495         getcwd: support coreutils better
17496         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
17497         but this might not be correct in coreutils, which disables
17498         the raw decl checks.  Problem reported by Nagendra in
17499         <http://bugs.gnu.org/10305#192>.
17500         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
17501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17502         Test the getcwd function, not any macro, since getcwd.c wants the
17503         function.
17504         * m4/getcwd.m4 (gl_FUNC_GETCWD):
17505         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
17506         compile, as might happen if there's a macro but no function.
17508         strtod: support coreutils better
17509         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
17510         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
17511         disables the raw decl checks.  This assumes there is an underlying
17512         strtod, but that's a safe assumption these days.
17513         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
17515         mountlist: port to HP NonStop
17516         Reported by Joachim Schmitz in
17517         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
17518         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
17519         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
17521 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17523         extern-inline: avoid compilation error with HP-UX cc
17524         Reported by Richard Lloyd in
17525         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
17526         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17527         Suppress extern inline with HP-UX cc.  This should be safe,
17528         though it may hurt performance.  Perhaps someone with some HP-UX
17529         experience can come up with a higher-performance fix.
17531 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17533         putenv: fix heap corruption with mixed putenv/_putenv
17534         Problem reported by Michael Goffioul in
17535         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
17536         * lib/putenv.c (putenv) [HAVE__PUTENV]:
17537         Rely on _putenv to allocate the new environment.
17538         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17539         * modules/putenv (configure.ac): Use it.
17541 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
17543         unsetenv etc.: port to Solaris 11 + GNU Emacs
17544         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
17545         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
17546         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
17547         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
17548         idea but is too painful to fix right now), and without this gnulib
17549         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
17550         compiling unsetenv.c on Solaris 11.  Fix the problem for
17551         unsetenv.c, and fix other similar occurrences.
17553 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17555         secure_getenv: fix C++ declaration typo
17556         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17557         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
17558         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
17560 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17562         careadlinkat: stop exporting careadlinkatcwd
17563         Only Emacs used it directly, and Emacs no longer needs it.
17564         * NEWS: Document this simplification.
17565         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
17566         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
17567         for readlink.
17568         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
17569         Don't include stdlib.h; no longer needed.
17570         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
17571         * lib/relocwrapper.c: Adjust comment to match new dependencies.
17572         * modules/areadlink (Depends-on): Add readlink.
17573         (Maintainer): Add self.
17574         * modules/careadlinkat (Depends-on): Remove readlink.
17576         extensions: port better to HP-UX
17577         This is merged from git Autoconf.
17578         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17579         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
17580         so that it's compatible with the value used when compiling.
17582         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
17583         Problem reported by Mats Erik Andersson in
17584         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
17585         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17586         openpty function exists, not merely when we intend to replace it.
17587         This corrects the 2013-01-31 patch, which mistakenly defined
17588         HAVE_OPENPTY even on hosts that lacked it.
17590 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17592         secure_getenv: fix include typo
17593         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17595         secure_getenv: port better to FreeBSD and Solaris
17596         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17597         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17598         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17599         This works better on BSDish platforms.
17600         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17601         Test for issetugid if __secure_getenv is missing.
17603 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17605         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17606         Some of these changes are merged in from git Autoconf.
17607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17608         When deciding whether to define _XOPEN_SOURCE, inspect the
17609         preprocessor macro __hpux instead of the more-heavyweight
17610         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17611         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17612         as the key for __EXTENSIONS__.
17614         unistd: avoid namespace pollution on non-glibc systems
17615         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17616         This avoids namespace pollution on non-glibc systems, by causing
17617         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17618         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17619         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17621 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17623         tmpdir: use secure_getenv
17624         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17625         Define to secure_getenv, not getenv.
17626         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17627         as that's now secure_getenv's job.
17628         * modules/tmpdir (Depends-on): Add secure_getenv.
17630         tempname: use secure_getenv
17631         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17632         Define to secure_getenv, not getenv.
17633         * modules/tempname (Depends-on):
17634         Add secure_getenv.
17636         secure_getenv: new module
17637         * MODULES.html.sh (Extra functions based on ANSI C 89):
17638         Add secure_getenv.
17639         * doc/glibc-functions/secure_getenv.texi: New file.
17640         * doc/gnulib.texi: Include it.
17641         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17642         New files.
17643         * lib/stdlib.in.h (secure_getenv): New decl.
17644         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17645         * modules/stdlib (stdlib.h):
17646         Add secure_getenv checks.
17648 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17650         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17651         Reported for OS X 10.8.2 by Assaf Gordon in
17652         <http://bugs.gnu.org/13516>.
17653         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17654         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17655         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17656         so that they can be kept in sync more easily.  Avoid PATH_MAX
17657         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17658         mkdir or chdir failure.
17659         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17660         lib/getcwd.c.
17661         (test_abort_bug): Do not test for the deep directory bug unless we
17662         have openat support.  Avoid PATH_MAX test on the Hurd.
17664         regex-tests, regex: fix bug: memset undeclared
17665         * tests/test-regex.c: Don't include regex.h twice.  Include
17666         string.h, to declare memset.  Christensen's report also mentioned
17667         this issue.
17668         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17669         test-regex.c, to avoid future problems like this.  Remove
17670         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17671         twice.
17673         regex-tests: fix link errors on older Solaris
17674         These need to link with @LIBINTL@ to get libintl_gettext.
17675         Problem reported by Tom G. Christensen in
17676         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17677         * modules/regex-tests (test_regex_LDADD): New macro.
17679 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17681         regex-tests: new module
17682         * modules/regex-tests, tests/test-regex.c: New files.
17684         regex: fix off-by-one error in configure test
17685         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17687 2013-01-31  Eric Blake  <eblake@redhat.com>
17689         regex: avoid infinite configure test
17690         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17692 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17694         openpty: fix bug where HAVE_OPENPTY wasn't defined
17695         See the thread starting at:
17696         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17697         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17698         openpty function exists, not merely when we intend to replace it.
17700 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17702         sys_time: port to Solaris 2.6
17703         There is a circularity problem on Solaris 2.6, where <time.h> includes
17704         <sys/time.h> for struct timespec.  The include nesting is gnulib
17705         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17706         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17707         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17708         <sys/siginfo.h>; the last, innermost file needs struct
17709         timestruc_t, which is defined in <sys/time.h>, which has not been
17710         fully parsed.  Problem reported by Tom G. Christensen in
17711         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17712         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17713         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17714         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17715         uses split double-inclusion guards.
17717 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17719         regex: test for buffer overrun
17720         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17721         for the just-fixed regex bug.
17723 2013-01-29  Andreas Schwab  <schwab@suse.de>
17725         regex: fix buffer overrun in regexp matcher [BZ #15078]
17726         * lib/regexec.c (extend_buffers): Add parameter min_len.
17727         (check_matching): Pass minimum needed length.
17728         (clean_state_log_if_needed): Likewise.
17729         (get_subexp): Likewise.
17731 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17733         mountlist: don't consider "devtmpfs" as dummy
17734         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17735         as there is storage associcated with it.
17737 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17739         futimens-tests, utimens-tests: Depend on gettext.
17740         This works around a problem introduced in my 2013-01-12 patch,
17741         which added @LIBINTL@ to these modules.
17742         * modules/futimens-tests (Depends-on):
17743         * modules/utimens-tests (Depends-on): Add gettext.
17745 2013-01-26  Eric Blake  <eblake@redhat.com>
17747         test-getpeername: fix typo
17748         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
17750 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
17752         bootstrap: remove the need for a sorted .gitignore file
17753         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
17754         rename to insert_if_absent(), so that we don't need or generate
17755         a sorted .gitignore file.  We do require a .gitignore with no
17756         existing duplicate entries and enforce that.
17757         (sort_patterns): Remove this function as we now use the simpler
17758         technigue of inserting blacklist entries at the top of the file,
17759         assuming gnulib won't be inserting !whitelist entries.
17761 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17763         readlinkat: don't depend on gl_FUNC_OPENAT
17764         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
17765         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
17766         renameat.m4, symlinkat.m4; but one thing at a time.
17768         statat: new module, split out from fstatat
17769         GNU Emacs needs the POSIX-specified fstatat, but not the
17770         gnulib-specified statat and lstat.  Split the latter two into a
17771         new module 'statat'.
17772         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
17773         * lib/openat.h, lib/statat.c (STATAT_INLINE):
17774         Rename from FSTATAT_INLINE. All uses changed.
17775         * modules/fstatat (Files): Remove lib/statat.c.
17776         (gl_MODULE_INDICATOR([fstatat])): Remove.
17777         (lib_SOURCES): Remove.
17778         (Maintainer): Add self.
17779         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
17780         * tests/test-fstatat.c (BASE): Don't define if already defined.
17781         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
17783 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17785         tests: don't assume fd 99 is closed
17786         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
17787         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
17788         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
17789         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
17790         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
17791         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
17792         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
17793         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
17794         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
17795         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
17796         * tests/test-fwrite.c, tests/test-getpeername.c:
17797         * tests/test-getsockname.c, tests/test-getsockopt.c:
17798         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
17799         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
17800         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
17801         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
17802         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
17803         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
17804         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
17805         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
17806         * tests/test-unlinkat.c, tests/test-unlockpt.c:
17807         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
17808         Close file descriptor 99, instead of assuming it's already closed.
17810 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17812         stpncpy: port to OS X 10.8
17813         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
17814         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
17816 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17818         unistd: port to recent mingw
17819         * lib/unistd.in.h: Remove special invocation convention for mingw,
17820         which breaks for the latest mingw version.  See John W. Eaton in
17821         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
17823         largefile: port better to Mac OS X 10.5
17824         This patch is backported from Autoconf git.
17825         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
17826         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
17827         with ino_t size being different for configuration time versus
17828         build/run time.  Problem reported by PHO in
17829         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
17831 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17833         doc: clarify -Werror
17834         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
17835         clarify that it's intended for developers, not for ordinary builds,
17836         and mention --enable-gcc-warnings as one possible use.
17838 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
17840         stdint: fix build with Android's Bionic fox x86
17841         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
17842         was already included as _SSIZE_T_DEFINED_ might also be defined
17843         in include/machine/_types.h, which is included by stdio.h
17845 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17847         net_if-tests: port to Solaris 7 + GCC 3.4.6
17848         Problem reported by Tom G. Christensen in
17849         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
17850         * tests/test-net_if.c (ni): Move to next the code that uses it,
17851         so that it's declared only if needed.
17853 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17855         net_if-tests: port to older Solaris
17856         Problem reported by Tom G. Christensen in
17857         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17858         * modules/net_if-tests (NET_IF_LIB): New substitution.
17859         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17860         (HAVE_IF_NAMEINDEX): New C macro.
17861         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17863         system-quote-tests: port to older Solaris
17864         Problem reported by Tom G. Christensen in
17865         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17866         * tests/test-system-quote-child.c (fopen, fread): Undef.
17868         c-xvasprintf etc.: fix link errors on older Solaris
17869         These need to link with @LIBINTL@ to get libintl_gettext.
17870         Problem reported by Tom G. Christensen in
17871         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17872         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17873         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17874         * modules/futimens-tests (test_futimens_LDADD):
17875         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17877 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17879         locale: port to Solaris 2.6 and 7 + GNU gettext
17880         * lib/locale.in.h: Just include_next <locale.h> when
17881         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17882         when combining the localename module with GNU gettext 0.18.2.
17883         Problem reported by Tom G. Christensen in
17884         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17886 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17888         stdlib: port to Solaris 2.6
17889         Also, the code worked on Solaris 7 through 9 only by accident.
17890         Problem reported by Tom G. Christensen in
17891         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17892         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17893         simply include the system stdlib.h.
17894         * lib/getopt.in.h (__need_system_stdlib_h):
17895         * lib/pthread.in.h (__need_system_stdlib_h):
17896         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17897         Define when including <stdlib.h>, to avoid problems at least for
17898         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17899         with the system stdlib.h.
17901 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17903         doc: update main copyright year
17904         * doc/gnulib.texi: Update copyright date.
17906         doc: improve ISO 8601 discussion
17907         * doc/parse-datetime.texi (Combined date and time of day items):
17908         Specify more carefully what formats are supported and what is
17909         done with excess precision.
17911 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17913         doc: avoid small caps
17914         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17915         they're more trouble than they're worth.  Suggested by Karl Berry
17916         in <http://bugs.gnu.org/13360>.
17918         regex: conform to strict C
17919         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17920         From Aharon Robbins.
17922         gnulib-tool: fix incompatibility with autopoint 0.18.2
17923         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
17924         Problem reported by Tom G. Christensen in
17925         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
17927 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17929         fprintftime: bring back and reword fwrite comment
17930         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
17932         stdio: remove now-unnecessary stdio.c
17933         Since stdio.in.h no longer uses inline functions, we no longer
17934         need to compile the extern versions.
17935         * lib/stdio.c: Remove.
17936         * modules/stdio (Files): Remove lib/stdio.c.
17937         (lib_SOURCES): Remove.
17939         unicodeio: depend on stdio, not ignore-value
17940         * lib/unicodeio.c: Do not include ignore-value.h.
17941         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
17942         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
17944         fprintftime: depend on stdio, not ignore-value
17945         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
17946         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
17947         since the stdio module arranges to silence that warning now.
17948         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
17950 2012-10-04  Simon Josefsson  <simon@josefsson.org>
17952         stdint-tests: Fix expanded-before-required-warning.
17953         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
17955 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17957         fwrite: silence __wur only for older glibc versions
17958         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
17959         This will help us remove this workaround some time in the far future.
17961 2013-01-03  Eric Blake  <eblake@redhat.com>
17963         fwrite: silence __wur without using inline
17964         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
17965         just gcc, and in a way that avoids inline issues.
17966         * modules/stdio (Depends-on): Drop extern-inline.
17968 2013-01-03  Jim Meyering  <jim@meyering.net>
17970         update-copyright: avoid copyright notice date corruption
17971         Given a sequence of copyright year numbers in which the final
17972         one was a two-digit number that happened to be a substring of
17973         a preceding four-digit year number, we would mistakenly update
17974         the substring (from two- to four-digit) rather than the two-digit
17975         number at the end, which, combined with the addition of the current
17976         4-digit year number would yield two 5-digit year numbers, e.g.,
17977         here, it would convert the first "99" to "1999, 2013" rather than
17978         the final one:
17979           1991, 99
17980           11999, 20131, 1999
17981         * build-aux/update-copyright: Tighten a regexp.
17982         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
17983         Reported by Joseph Myers in
17984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
17986 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17988         regex: omit needless signed-pointer casts
17989         * lib/regcomp.c (build_charclass, build_charclass_op):
17990         Use char *, not unsigned char *, for class name and extra.
17991         The char values are always nonnegative so there's no need to
17992         insist on unsigned char * here, and using char * removes the need
17993         for casts.  Reported by Aharon Robbins in
17994         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17996         regex: support Gawk, which never uses alloca
17997         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
17998         Do not include in this case.  Gawk doesn't supply a substitute
17999         alloca.h and doesn't need one.
18001         regex: port __libc_lock_define usage to C89
18002         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
18003         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
18004         does not conform to C89, as it has an empty macro argument.
18005         Reported by Aharon Robbins in
18006         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18008 2013-01-01  Eric Blake  <eblake@redhat.com>
18010         maint: update all copyright year number ranges
18011         Run "make update-copyright".
18013         version-etc: bump copyright year reported in --version
18014         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
18016 2012-12-31  Eric Blake  <eblake@redhat.com>
18018         sigprocmask-tests: skip test if pid is unexpectedly large
18019         * tests/test-sigprocmask.c (main): Add range check.
18021         git-version-gen: avoid test -z portability glitch
18022         * build-aux/git-version-gen: Prefer portable test spelling, since
18023         git-version-gen is run on more than just developer machines.
18025 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
18027         git-version-gen: add --fallback option to use if git is not present
18028         * build-aux/git-version-gen: Add support for the new option --fallback,
18029         which comes into play when there is no $tarball_version_file and
18030         git is not working.
18031         (scriptversion): Update.
18033         maint.mk: handle missing git with more grace
18034         * top/maint.mk (no-submodule-changes, public-submodule-commit):
18035         Quietly proceed if git is not present.
18037 2012-12-31  Eric Blake  <eblake@redhat.com>
18039         dup2: work around cygwin bug
18040         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
18041         * lib/dup2.c (rpl_dup2): Work around it.
18042         * doc/posix-functions/dup2.texi (dup2): Document it.
18044 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18046         regex: remove unnecessary dependency on localcharset.h
18047         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
18048         hasn't been needed for years.
18049         * modules/regex (Depends-on): Remove localcharset.
18051         regex: revert single-byte change
18052         * lib/regexec.c (check_node_accept_bytes): Revert previous change
18053         to this function.  This was alredy fixed in a different way, at
18054         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
18055         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
18056         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
18058         regex: simplify based on Gawk version
18059         * lib/regex_internal.c (re_dfa_add_node): Simplify.
18060         Reported by Aharon Robbins in
18061         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18063 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18065         regex: check that pattern char is single-byte
18066         Reported by Aharon Robbins in
18067         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18068         * lib/regexec.c (check_node_accept_bytes):
18069         Return 0 if the pattern string has a multibyte character here.
18071         regex: implement rational ranges
18072         Reported by Aharon Robbins in
18073         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18074         * lib/regcomp.c (build_range_exp) [!_LIBC]:
18075         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
18076         Implement rational ranges.
18078         regex: avoid redefining __wctype
18079         Reported by Aharon Robbins in
18080         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18081         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
18082         #undef before defining.
18084         regex: port to hosts where malloc (0) == NULL
18085         Reported by Aharon Robbins in
18086         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18087         * lib/regex_internal.c (re_node_set_alloc):
18088         Don't assume that malloc (0) yields nonnull.
18089         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
18090         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
18091         * modules/regex (Files): Add m4/eealloc.m4.
18093         regex: port to C89
18094         Reported by Aharon Robbins in
18095         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18096         * lib/regcomp.c (init_word_char): Declaration before statement.
18098         regex: merge glibc changes
18099         Also, copy the license wording from glibc.  This simplifies
18100         merging changes.  gnulib-tool will change the wording to GPL as
18101         appropriate, when importing it to other packages.  The only
18102         glibc change made since the last merge, which needs merging, is:
18103         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
18104         * lib/regex_internal.h (gettext): Remove use of INTUSE.
18106         * users.txt: Add Emacs.
18108         doc: omit mention of version when not needed
18109         * doc/gnulib-intro.texi (Portability and Application Code):
18110         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
18111         Don't mention particular dates or versions when not necessary, so
18112         that the documentation won't go out of date so quickly.
18114         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
18116 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
18118         bootstrap: pass --force to autoreconf.
18119         * build-aux/bootstrap (AUTORECONFFLAGS): New.
18120         Add "--force" so that Automake's ylwrap and other such tools
18121         be updated at each bootstrap invocation.
18122         Use it.
18124 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18126         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
18127         The earlier patch forgot to update one of the #if conditions, causing
18128         a problem on Debian testing i386 reported by Mats Erik Andersson
18129         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
18130         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
18131         (__argp_fmtstream_puts, argp_fmtstream_puts)
18132         (__argp_fmtstream_write, argp_fmtstream_write)
18133         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
18135         * doc/gnulib-readme.texi: Minor fixups.
18136         (Portability guidelines): Modernize URLs.  Remove some repetition.
18137         (Indent with spaces not TABs): Reword to avoid too-long lines.
18138         Remove some '@ifset standalone' stuff that isn't used.
18140         * doc/gnulib-readme.texi (Portability guidelines):
18141         ctype.h, not ctime.h.
18143         Correct name of POSIX.1-2001.
18144         * doc/posix-functions/fgetc.texi (fgetc):
18145         * doc/posix-functions/fgets.texi (fgets):
18146         * doc/posix-functions/fread.texi (fread):
18147         * doc/posix-functions/fscanf.texi (fscanf):
18148         * doc/posix-functions/getc.texi (getc):
18149         * doc/posix-functions/getchar.texi (getchar):
18150         * doc/posix-functions/scanf.texi (scanf):
18151         POSIX.1-2001, not POSIX-2001.
18153         doc: move README into manual
18154         * README: Move contents to new file doc/gnulib-readme.texi.
18155         Replace with a one-line summary.
18156         * doc/gnulib.texi (Brief Overview): New section,
18157         with old intro preface.  Include gnulib-readme.texi for contents.
18158         (Philosophy): Rename from "Introduction", since this
18159         section no longer introduces the rest.  Write a new preface.
18160         * doc/gnulib-readme.texi: New file, with the old contents of
18161         README texinfo-ized.  This way, the README info appears
18162         in the online and printed manual.
18164 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
18166         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
18167         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
18168         c_vasprintf() prototype.
18170 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
18172         c-vasprintf: Fix "empty declaration" warning reported by GCC.
18173         * lib/c-vasprintf.h: Remove stray semicolon.
18175 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18177         gettext: avoid obsolete macro AM_PROG_MKDIR_P
18178         It is obsolete and is planned to be removed from Automake 1.14; see
18179         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
18180         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
18181         (installdirs-data, installdirs-data-yes):
18182         Use $(MKDIR_P), not $(mkdir_p).
18183         * m4/intl.m4 (AM_INTL_SUBDIR):
18184         * m4/po.m4 (AM_PO_SUBDIRS):
18185         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
18187 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18189         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
18190         On this platform, we are not optimizing but we are using
18191         the substitute for extern inlines, so compile as if
18192         C99-style extern inline, or a substitute, is available.
18193         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
18194         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
18195         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
18196         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
18197         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
18198         Declare as ARGP_FS_EI, not as extern.
18199         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
18200         (__option_is_short, _option_is_end, __option_is_end)
18201         [!_LIBC && __USE_EXTERN_INLINES]:
18202         Declare as ARGP_EI, not as extern.
18204 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18206         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
18207         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
18208         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
18209         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
18210         ...), as the latter is fatal with older Autoconfs.
18211         Problem reported and fix suggested by Eric Blake in thread starting at
18212         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
18214 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18216         AC_PROG_MKDIR_P: don't workaround if not buggy
18217         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
18218         Define only for Autoconf versions before 2.62.
18219         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
18220         undocumented m4_PACKAGE_VERSION, for consistency with the
18221         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
18222         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
18223         was introduced in 2.62.
18225 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
18227         New 'c-*printf' modules for formatted output in C locale.
18229         New module 'c-vasnprintf'.
18230         * modules/c-vasnprintf: New file.
18231         * lib/c-vasnprintf.c: New file.
18232         * lib/c-vasnprintf.h: New file.
18234         New module 'c-snprintf'.
18235         * modules/c-snprintf: New file.
18236         * modules/c-snprintf-tests: New file.
18237         * lib/c-snprintf.c: New file.
18238         * lib/c-snprintf.h: New file.
18239         * tests/test-c-snprintf.c: New file.
18240         * tests/test-c-snprintf.sh: New file.
18242         New module 'c-vsnprintf'.
18243         * modules/c-vsnprintf: New file.
18244         * modules/c-vsnprintf-tests: New file.
18245         * lib/c-vsnprintf.c: New file.
18246         * lib/c-vsnprintf.h: New file.
18247         * tests/test-c-vsnprintf.c: New file.
18248         * tests/test-c-vsnprintf.sh: New file.
18250         New module 'c-vasprintf'.
18251         * modules/c-vasprintf: New file.
18252         * modules/c-vasprintf-tests: New file.
18253         * lib/c-asprintf.c: New file.
18254         * lib/c-vasprintf.c: New file.
18255         * lib/c-vasprintf.h: New file.
18256         * tests/test-c-vasprintf.c  +: New file.
18257         * tests/test-c-vasprintf.sh: New file.
18259         New module 'c-xvasprintf'.
18260         * modules/c-xvasprintf: New file.
18261         * modules/c-xvasprintf-tests: New file.
18262         * lib/c-xasprintf.c: New file.
18263         * lib/c-xvasprintf.c: New file.
18264         * lib/c-xvasprintf.h: New file.
18265         * tests/test-c-xvasprintf.c: New file.
18266         * tests/test-c-xvasprintf.sh: New file.
18268 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18270         argp: better 'inline'
18271         Use extern-inline module to declare extern inline functions.
18272         This avoids some bogus warning diagnostics.  Problem discovered
18273         when modifying GNU tar to use the manywarnings module.
18274         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
18275         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
18276         Define based on extern-inline.
18277         * modules/argp (Depends-on): Add extern-inline.
18279 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18281         filemode, sys_stat: Handle MPX files a la AIX.
18282         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
18283         * lib/sys_stat.in.h (S_ISMPX): New macro.
18284         * tests/test-sys_stat.c: Add tests for MPX files.
18286 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18288         x-to-1: honor $PERL
18289         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
18290         a chance to use his preferred version of Perl.  This is typically
18291         required by Darwin users whose default /usr/bin/perl does not have all
18292         the libraries required by help2man, and who need to use their MacPorts
18293         installation of Perl instead.
18295 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18297         gnu-web-doc-update: add all the new files, even in new directories
18298         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
18299         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
18300         Use it.
18301         (main): Don't use cvsutils to get the list of unknown files,
18302         just add all the existing files and directories.
18304 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18306         gnu-web-doc-update: improve --help
18307         * build-aux/gnu-web-doc-update: Move comments into --help.
18309 2012-12-07  Eric Wong  <normalperson@yhbt.net>
18311         mountlist: recognize more "dummy" file systems
18312         * lib/mountlist.c (ME_DUMMY_0):
18313         Add these dummy FS names to the list:
18314         - "debugfs" virtual filesystem for kernel debugging
18315         - "devpts" PTY slave filesystem
18316         - "devtmpfs" device filesystem on top of tmpfs/ramfs
18317         - "fusectl" control filesystem for FUSE
18318         - "mqueue" enumerates POSIX message queues
18319         - "rpc_pipefs" kernel <-> userspace bridge for NFS
18320         - "sysfs" is for exporting kernel objects
18321         - "devfs" device filesystem for Linux 2.4 and FreeBSD
18323 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18325         extern-inline: avoid incompatibility with Darwin Libc
18326         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
18327         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
18328         Problem reported by Akim Demaille in
18329         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
18331 2012-12-11  Simon Josefsson  <simon@josefsson.org>
18333         gnupload: Work with GnuPG using gpg-agent (for smartcards).
18334         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
18335         let it handle password prompting.
18337 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
18339         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
18340         * lib/canonicalize.c (canonicalize_filename_mode):
18341         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
18342         fetching the current directory.  Don't overrun the beginning of
18343         rpath if there's no slashes after the MS-Windows drive letter.
18345 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
18347         maint.mk: avoid extra forks
18348         * top/maint.mk (_cfg_mk): The GNU make manual documents that
18349         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
18350         So use that instead of "$(shell test -f FILE && echo FILE)".
18352 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18354         vasnprintf: fix ASCII_ONLY typo
18355         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18356         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18357         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18358         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
18359         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
18361 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18363         list, oset, xlist, xoset: fix extern inline issue with C99
18364         This was introduced by my recent changes for 'inline'.
18365         Problem reported for gettext by Daiki Ueno in
18366         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
18367         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
18368         (gl_list_nx_create, gl_list_size, gl_list_node_value)
18369         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
18370         (gl_list_previous_node, gl_list_get_at)
18371         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
18372         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
18373         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
18374         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
18375         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
18376         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
18377         (gl_list_iterator_free, gl_sortedlist_search)
18378         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
18379         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
18380         (gl_sortedlist_remove):
18381         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
18382         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
18383         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
18384         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
18385         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
18386         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
18387         (gl_list_add_at, gl_sortedlist_add):
18388         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
18389         Wrap these extern decls inside "#if 0", because they are implemented
18390         as inline functions, and extern inline is not what's wanted here.
18391         It would simplify these .h files to remove the extern decls entirely,
18392         although a downside would be less-clear separation between
18393         specification and implementation.
18395 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18397         sys_stat: no 'static inline'
18398         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
18399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
18401         extern-inline: no 'static inline'
18402         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18403         Do not require AC_C_INLINE.
18404         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
18405         'static inline', for older compilers.
18407         snippet/warn-on-use: no 'static inline'
18408         * build-aux/snippet/warn-on-use.h:
18409         Remove unnecessary 'inline' in comment.
18411         rbtree-list, rbtreehash-list: no 'static inline'
18412         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
18413         * lib/gl_anytree_list2.h (node_at):
18414         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
18415         (gl_oset_first, add_nodes_to_buckets):
18416         Now static, not static inline.
18418         regex: no 'static inline'
18419         * lib/regex_internal.c (calc_state_hash):
18420         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
18421         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18422         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
18423         Now static, not static inline.
18424         (inline) [__GNUC__ < 3 && _LIBC]:
18425         Remove macro; no longer needed.
18427         xvasprintf: no 'static inline'
18428         * lib/xvasprintf.c (xstrcat):
18429         Now static, not static inline.
18430         * m4/xvasprintf.m4 (gl_XVASPRINTF):
18431         Do not require AC_C_INLINE.
18433         parse-datetime, parse-duration: no 'static inline'
18434         * lib/parse-datetime.y (to_uchar):
18435         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
18436         (scale_n_add):
18437         Now static, not static inline.
18438         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
18439         * modules/parse-duration (configure.ac):
18440         Do not require AC_C_INLINE.
18442         getaddrinfo: no 'static inline'
18443         * lib/getaddrinfo.c (validate_family):
18444         Now static, not static inline.
18445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
18446         Do not require AC_C_INLINE.
18448         ftruncate, fts, lstat, openat, raise: no 'static inline'
18449         * lib/ftruncate.c (chsize_nothrow):
18450         * lib/fts.c (opendirat, diropen):
18451         * lib/lstat.c (orig_lstat):
18452         * lib/openat.c (orig_openat):
18453         * lib/raise.c (raise_nothrow):
18454         Now static, not static inline.
18455         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
18456         * m4/fts.m4 (gl_FUNC_FTS_CORE):
18457         * m4/lstat.m4 (gl_PREREQ_LSTAT):
18458         * m4/openat.m4 (gl_PREREQ_OPENAT):
18459         * m4/raise.m4 (gl_PREREQ_RAISE):
18460         Do not require AC_C_INLINE.
18462         fflush, stat: no 'static inline'
18463         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18464         (clear_ungetc_buffer, disable_seek_optimization)
18465         (restore_seek_optimization, update_fpos_cache):
18466         * lib/stat.c (orig_stat):
18467         Now static, not static inline.
18468         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
18469         (update_fpos_cache):
18470         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
18471         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
18472         * m4/stat.m4 (gl_PREREQ_STAT):
18473         Do not require AC_C_INLINE.
18475         error, filevercmp: no 'static inline'
18476         * lib/error.c (is_open, flush_stdout):
18477         * lib/filevercmp.c (order):
18478         Now static, not static inline.
18479         * m4/error.m4 (gl_PREREQ_ERROR):
18480         * modules/filevercmp (configure.ac):
18481         Do not require AC_C_INLINE.
18483         dup, execute, fatal-signal, etc.: no 'static inline'
18484         * lib/dup.c (dup_nothrow):
18485         * lib/execute.c (nonintr_close, nonintr_open):
18486         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
18487         * lib/fopen.c (orig_fopen):
18488         * lib/freadseek.c (freadptrinc):
18489         * lib/freopen.c (orig_freopen):
18490         * lib/fstat.c (orig_fstat, fstat_nothrow):
18491         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
18492         (get_rusage_as_via_iterator):
18493         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
18494         * lib/getdtablesize.c (_setmaxstdio_nothrow):
18495         * lib/isatty.c (_isatty_nothrow):
18496         * lib/open.c (orig_open):
18497         * lib/read.c (read_nothrow):
18498         * lib/sigprocmask.c (signal_nothrow):
18499         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
18500         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
18501         * lib/wait-process.c (unregister_slave_subprocess):
18502         * lib/write.c (write_nothrow):
18503         Now static, not static inline.
18504         * lib/spawn-pipe.c (nonintr_open): Define only if
18505         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
18506         * m4/dup.m4 (gl_PREREQ_DUP):
18507         * m4/execute.m4 (gl_EXECUTE):
18508         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
18509         * m4/fopen.m4 (gl_PREREQ_FOPEN):
18510         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
18511         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
18512         * m4/fstat.m4 (gl_PREREQ_FSTAT):
18513         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
18514         * m4/isatty.m4 (gl_PREREQ_ISATTY):
18515         * m4/open.m4 (gl_PREREQ_OPEN):
18516         * m4/read.m4 (gl_PREREQ_READ):
18517         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
18518         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
18519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
18520         * m4/wait-process.m4 (gl_WAIT_PROCESS):
18521         * m4/write.m4 (gl_PREREQ_WRITE):
18522         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
18523         Do not require AC_C_INLINE.
18525         c-strtod, memcoll, readutmp: no 'static inline'
18526         * lib/c-strtod.c (c_locale):
18527         * lib/memcoll.c (strcoll_loop):
18528         * lib/readutmp.c (desirable_utmp_entry):
18529         Now static, not static inline.
18530         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
18531         * m4/memcoll.m4 (gl_MEMCOLL):
18532         * m4/readutmp.m4 (gl_READUTMP):
18533         Do not require AC_C_INLINE.
18535         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
18536         * lib/arctwo.c (to_uchar):
18537         * lib/md4.c (set_uint32):
18538         * lib/md5.c (set_uint32):
18539         * lib/sha1.c (set_uint32):
18540         * lib/sha256.c (set_uint32):
18541         * lib/sha512.c (set_uint64):
18542         Now static, not static inline.  This is a bit simpler, and doesn't
18543         affect performance with GCC and default optimization.
18544         * m4/arctwo.m4 (gl_ARCTWO):
18545         * m4/md4.m4 (gl_MD4):
18546         * m4/md5.m4 (gl_MD5):
18547         * m4/sha1.m4 (gl_SHA1):
18548         * m4/sha256.m4 (gl_SHA256):
18549         * m4/sha512.m4 (gl_SHA512):
18550         Do not require AC_C_INLINE.
18552         cond, lock, thread: better 'inline'
18553         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
18554         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
18555         New macros.  Use them instead of static inline, for header functions.
18556         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
18557         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18558         * lib/glthread/lock.c (gl_waitqueue_init)
18559         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18560         * lib/glthread/thread.c (get_current_thread_handle):
18561         Change 'static inline' to 'inline'.
18562         * lib/glthread/cond.h, lib/glthread/thread.h:
18563         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18564         * m4/cond.m4 (gl_COND):
18565         * m4/lock.m4 (gl_PREREQ_LOCK):
18566         * m4/thread.m4 (gl_THREAD):
18567         Do not require AC_C_INLINE.
18568         * modules/cond, modules/thread (Depends-on): Add extern-inline.
18570         chdir-long, cycle-check, savewd: better 'inline'
18571         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
18572         (find_non_slash):
18573         * lib/cycle-check.c (is_zero_or_power_of_two):
18574         * lib/savewd.c (savewd_delegating):
18575         Change 'static inline' to 'inline'.
18576         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
18577         Replace all remaining uses of 'static inline' with it.
18578         * lib/savewd.h:
18579         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18580         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
18581         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18582         * m4/savewd.m4 (gl_SAVEWD):
18583         Do not require AC_C_INLINE.
18584         * modules/savewd (Depends-on): Add extern-inline.
18586         base32, base64: no need for 'inline'
18587         * lib/base32.c (to_uchar, get_8, decode_8):
18588         * lib/base64.c (to_uchar, get_4, decode_4):
18589         Change 'static inline' to 'inline'.
18590         * m4/base32.m4 (gl_PREREQ_BASE32):
18591         * m4/base64.m4 (gl_PREREQ_BASE64):
18592         Do not require AC_C_INLINE.
18594         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18595         * lib/gl_array_oset.c (gl_array_nx_add_at):
18596         (gl_array_remove_at):
18597         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18598         (add_to_bucket, remove_from_bucket):
18599         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18600         Change 'static inline' to 'static', as it's simpler to omit
18601         'inline' unless there's a significant performance advantage.
18603         list, oset, xlist, xoset, xsublist: simplify via extern inline
18604         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18605         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18606         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18607         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18608         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18609         New macro.  Replace all uses of 'static inline' with it.
18610         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18611         instead of as macros FOO that are defined to static inline
18612         functions FOO_inline.
18613         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18614         * lib/gl_xsublist.c:
18615         Reimplement from scratch, by defining the corresponding *_INLINE
18616         macro and including the corresponding .h file.  This is simpler.
18617         * modules/list, modules/oset, modules/xlist, modules/xoset:
18618         (Files): Remove m4/gl_list.m4.
18619         (configure.ac): Remove gl_LIST.
18620         * m4/gl_list.m4: Remove.
18621         * modules/list, modules/oset, modules/xlist, modules/xoset:
18622         * modules/xsublist:
18623         (Depends-on): Depend on extern-inline, not inline.
18625         xalloc: better 'inline'
18626         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18627         New macro.  Replace all uses of 'static inline' with it.
18628         (static_inline): Remove.
18629         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18630         Let 'extern inline' do the work automatically, instead of doing
18631         it by hand.
18632         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18633         Remove.  All uses removed.
18634         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18636         gethrxtime: better 'inline'
18637         * lib/xtime.c: New file.
18638         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18639         * lib/xtime.h (XTIME_INCLUDE):
18640         New macros.  Replace all uses of 'static inline' with them.
18641         * lib/gethrxtime.c (gethrxtime): Define only if
18642         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18643         this source file is now always compiled, because of the extern inline.
18644         * lib/gethrxtime.h, lib/xtime.h:
18645         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18646         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18647         if gethrtime works, as they're not needed in that case.
18648         (gl_XTIME): Do not require AC_C_INLINE.
18649         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18650         compiled now.  Move the check into gl_GETHRXTIME.
18651         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18652         (Depends-on): Add extern-inline.
18653         (configure.ac): gethrxtime is always compiled now.
18654         (lib_SOURCES): Add gethrxtime.c.
18656         wctype-h: better 'inline'
18657         * lib/wctype-h.c: New file.
18658         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18659         New macro.  Replace all uses of 'static inline' with it.
18660         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18661         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18662         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18663         (Depends-on): Add extern-inline.
18665         unistd: better 'inline'
18666         * lib/unistd.c: New file.
18667         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18668         New macro.  Replace all uses of 'static inline' with it.
18669         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18670         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18671         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18672         (Depends-on): Add extern-inline.
18674         sys_socket: better 'inline'
18675         * lib/sys_socket.c: New file.
18676         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18677         New macro.  Replace all uses of 'static inline' with it.
18678         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18679         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18680         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18681         (Depends-on): Add extern-inline.
18683         stdio: better 'inline'
18684         * lib/stdio.c: New file.
18685         * lib/stdio.in.h (_GL_STDIO_INLINE):
18686         New macro.  Replace all uses of 'static inline' with it.
18687         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18688         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18689         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18690         (Depends-on): Add extern-inline.
18692         sigaction: better 'inline'
18693         * lib/sig-handler.c: New file.
18694         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18695         New macro.  Replace all uses of 'static inline' with it.
18696         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18698         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18699         (Depends-on): Add extern-inline.
18701         selinux-h: better 'inline'
18702         * lib/se-context.c, lib/se-selinux.c: New files.
18703         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18704         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18705         New macro.  Replace all uses of 'static inline' with it.
18706         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18707         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18708         New macro.  Replace all uses of 'static inline' with it.
18709         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18710         * modules/selinux-h (Files, lib_SOURCES):
18711         Add lib/se-context.c, lib/se-selinux.c.
18712         (Depends-on): Add extern-inline.
18713         (configure.ac): Do not require AC_C_INLINE.
18715         pthread: better 'inline'
18716         * lib/pthread.c: New file.
18717         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18718         New macro.  Replace all uses of 'static inline' with it.
18719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18720         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18721         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18722         * modules/pthread (Files): Add lib/pthread.c.
18723         (Depends-on): Add extern-inline.
18725         math: better 'inline'
18726         * lib/math.c: New file.
18727         * lib/math.in.h (_GL_MATH_INLINE):
18728         New macro.  Replace all uses of 'static inline' with it.
18729         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18730         * m4/math_h.m4 (gl_MATH_H):
18731         Do not require AC_C_INLINE.
18732         * modules/math (Files, lib_SOURCES):
18733         Add lib/math.c.
18734         (Depends-on): Add extern-inline.
18736         count-one-bits: better 'inline'
18737         * lib/count-one-bits.c: New file.
18738         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18739         New macro.  Replace all uses of 'static inline' with it.
18740         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18741         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18742         Do not require AC_C_INLINE.
18743         * modules/count-one-bits (Files, lib_SOURCES):
18744         Add lib/count-one-bits.c.
18745         (Depends-on): Add extern-inline.
18747         count-leading-zeros: better 'inline'
18748         * lib/count-leading-zeros.c: New file.
18749         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
18750         New macro.  Replace all uses of 'static inline' with it.
18751         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18752         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
18753         Do not require AC_C_INLINE.
18754         * modules/count-leading-zeros (Files, lib_SOURCES):
18755         Add lib/count-leading-zeros.c.
18756         (Depends-on): Add extern-inline.
18758         bitrotate: better 'inline'
18759         * lib/bitrotate.c: New file.
18760         * lib/bitrotate.h (BITROTATE_INLINE):
18761         New macros.
18762         Replace all uses of 'static inline' with them.
18763         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18764         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
18765         (Depends-on): Add extern-inline.
18766         (configure.ac): Do not require AC_C_INLINE.
18768 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
18770         maint.mk: avoid gratuitous failure
18771         Reported by Stefano Lattarini in
18772         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
18773         * top/maint.mk (public-submodule-commit): Quote more safely.
18775 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
18777         canonicalize, canonicalize-lgpl: support MS-Windows file names
18778         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
18779         for test cases, which it'd be nice to add at some point.
18780         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
18781         * lib/canonicalize.c (canonicalize_filename_mode):
18782         * lib/canonicalize-lgpl.c (__realpath):
18783         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
18784         slash is at the beginning of the file name.  Use ISSLASH, instead
18785         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
18786         the first character with '/'.  Test for
18787         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
18788         with a drive letter.
18789         * lib/canonicalize.c (SLASHES): New macro.
18790         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
18792 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
18794         fts: introduce FTS_VERBATIM
18795         * lib/fts_.h (FTS_VERBATIM): New bit flag.
18796         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
18797         * lib/fts.c (fts_open): Honor it.
18799 2012-11-09  Pádraig Brady  <P@draigBrady.com>
18801         getlogin-tests: allow errno == ENXIO
18802         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18803         with errno == ENXIO (No controlling tty).
18804         getlogin_r-tests: Likewise. Also allow errno == ENOENT
18805         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
18806         with errno == ENOENT.  This was reported to happen in various
18807         situations on GNU/Linux.
18809 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18811         getlogin-tests: allow errno == ENOENT
18812         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18813         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
18814         when running a test in an Emacs shell buffer.
18816 2012-11-08  Jim Meyering  <jim@meyering.net>
18818         tests/nap.h: avoid warning about unused variable
18819         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
18821         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
18822         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
18823         white space before each of the special-cased file names, to avoid
18824         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
18825         in http://bugs.gnu.org/12830.
18827 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18829         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
18830         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
18831         fails with errno == EBADF when fd is opened with O_PATH.
18832         Reported by Jim Meyering in
18833         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
18834         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18835         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18837 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18839         test-utimens: speed up by taking shorter naps
18840         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
18841         New functions.
18842         (nap): Use them, to do a better job of guessing the delay.
18843         On Fedora 17 with ext4 atop md atop hard disks, this made
18844         test-utimens run 10x faster, because the test napped for
18845         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
18846         <http://bugs.gnu.org/12820#11>.
18848 2012-11-07  Jim Meyering  <jim@meyering.net>
18850         mountlist.c: fix a compilation failure
18851         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
18852         I introduced while transforming commit v0.0-7683-g613bcb6
18854 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18856         errno: port to LynxOS 178 2.2.2
18857         Problem reported by Joel Brobecker in
18858         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18859         * doc/posix-headers/errno.texi (errno.h): Document this.
18860         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18861         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18862         Supply a string for EILSEQ.
18863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18865 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18867         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18868         Linux kernel 2.6.39 introduced O_PATH (see
18869         <http://lwn.net/Articles/433854/>) and this is a better fallback
18870         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18871         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18872         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18873         * lib/fcntl.in.h (O_ACCMODE):
18874         * tests/test-fcntl-h.c (main):
18875         Do not reject O_ACCMODE merely because it has more than the
18876         minimal number of bits, as POSIX allows extensions here.
18878 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18880         mountlist: do not classify a bind-mounted dir entry as "dummy"
18881         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18882         the "none"-testing clause.
18883         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18884         exception for bind-mounted directories.
18886 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18888         quote: provide a means to escape strings with nul characters
18889         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18890         (quote, quote_n): Rename formal arguments for consistency with
18891         quotearg.
18893 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18895         test-raise: don't assume 199 is an invalid signal
18896         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18898         sh-quote-tests: port to Solaris 9
18899         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18900         Problem reported by Dagobert Michelsen in
18901         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18903 2012-10-28  Jim Meyering  <jim@meyering.net>
18905         maint.mk: rename a new configurable variable
18906         * top/maint.mk (_gl_translatable_string_re): Rename from
18907         translation-markers: _gl_ prefix to insulate from user Makefile code,
18908         and the _re suffix to inform that it's a regular expression.
18910 2012-10-26  Eric Blake  <eblake@redhat.com>
18912         maint.mk: let packages tweak sc_po_check pattern
18913         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18914         finding files with other translation markers.
18916 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18918         euidaccess: speed up 'configure' on GNU hosts
18919         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
18920         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
18921         it's needed only in this case.  Use AC_CHECK_DECLS, not
18922         AC_CHECK_DECLS_ONCE.
18923         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
18924         or AC_REQUIRE for AC_FUNC_GETGROUPS.
18926         * lib/regexec.c (re_search_internal): Fix grammar in comment.
18928 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18930         fchmodat, fchownat, fstatat: port to non-inlining compilers
18931         Problem reported for FreeBSD 9 by Jim Meyering in
18932         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
18933         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
18934         New files, which define FCHMODAT_INLINE etc.
18935         * lib/fchmodat.c (FCHMODAT_INLINE):
18936         * lib/fchownat.c (FCHOWNAT_INLINE):
18937         * lib/fstatat.c (FSTATAT_INLINE):
18938         Remove, as chmodat.c etc. now do this.
18939         * modules/fchmodat (Files): Add lib/chmodat.c.
18940         * modules/fchownat (Files): Add lib/chownat.c.
18941         * modules/fstatat (Files): Add lib/statat.c.
18943 2012-10-15  Jim Meyering  <jim@meyering.net>
18945         fchmodat.c, fchownat.c: compile-impeding typos
18946         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
18947         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
18948         Introduced in commit v0.0-7636-gd202279.
18950 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18952         fcntl-h: support GNU flags like O_IGNORE_CTTY
18953         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
18954         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
18955         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
18956         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
18957         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
18958         Define to 0 if not already defined.
18959         * tests/test-fcntl-h.c: Test these new flags.
18961 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18963         faccessat, etc.: support AT_FDCWD-only use
18964         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
18965         this function only if its first argument is AT_FDCWD.
18966         Emacs wants faccessat for AT_EACCESS but not for any first-arg
18967         values other than AT_FDCWD, so it doesn't want all the openat
18968         machinery with fchdir etc.
18969         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
18970         * modules/fstatat, modules/mkdirat, modules/openat (Files):
18971         * modules/unlinkat (Files):
18972         Remove lib/openat-priv.h, as at-internal supplies this file.
18973         Removing this file here allows us to support programs like Emacs
18974         that avoid at-internal.
18976         faccessat: speed up 'configure' on mainstream hosts
18977         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
18978         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
18979         since it's only on unusual platforms that we need to check for
18980         'access', and it's better not to slow 'configure' down on all
18981         platforms.
18983         faccessat: port to Solaris 10
18984         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
18985         Needed on Solaris 10, which doesn't have AT_EACCESS,
18986         so we need the Gnulib fcntl.h, which defines it.
18988 2012-10-14  Pádraig Brady  <P@draigBrady.com>
18989         canonicalize: fix C89 compilation
18990         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
18991         declarations so C89 is supported.  Also remove the comment
18992         referencing memorty allocation as the suggested feature could
18993         not be implemented as suggested.
18994         Reported by Michael Goffioul.
18996 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18998         group-member: omit unnecessary dependencies
18999         This is for Emacs, which has its own allocator and where we
19000         don't want to use xalloc.
19001         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
19002         since we no longer use xmalloc.  Do not include stdbool.h, since
19003         the changes below happen to remove the only use of bool.
19004         (GROUPBUF_SIZE): New constant.
19005         (struct group_info): Remove n_groups member.  Add groupbuf member.
19006         This lets us get the groups without using malloc, usually.
19007         (free_group_info, get_group_info): Adjust to this.
19008         (get_group_info): Return the number of groups found, or -1 on error.
19009         Use plain malloc not xmalloc, and treat its failure as if there
19010         are no groups, as the user already loses in case of error.
19011         (group_member): Simplify, based on changes to get_group_info.
19012         * modules/group-member (Depends-on): Remove dependencies on
19013         xalloc and stdbool.  Add dependency on xalloc-oversized.
19015 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
19017         gethrxtime: port to C++
19018         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
19020 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19022         ptsname: fix macro-name typo
19023         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
19025 2012-10-03  Simon Josefsson  <simon@josefsson.org>
19027         inttostr: Relax license.
19028         * modules/inttostr (License): Change from LGPL to LGPLv2+.
19030 2012-10-03  Eric Blake  <eblake@redhat.com>
19032         ptsname_r: support ptys returned by FreeBSD posix_openpt
19033         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
19034         lives in /dev/pts/.
19036 2012-10-02  Eric Blake  <eblake@redhat.com>
19038         pselect: reject invalid file descriptors
19039         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
19040         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
19041         * modules/pselect (Depends-on): Add dup2.
19042         * doc/posix-functions/pselect.texi (pselect): Document this.
19044         select: reject invalid file descriptors
19045         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
19046         * lib/select.c (rpl_select) [!win32]: Work around it.
19047         * modules/select (Depends-on): Add dup2.
19048         * doc/posix-functions/select.texi (select): Document this.
19050         select: enhance test
19051         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
19052         New functions.
19053         (test_function): Enhance test.
19054         (do_select_bad_fd): Avoid any stale errno values.
19056         ptsname: reject invalid file descriptors
19057         http://www.austingroupbugs.net/view.php?id=503
19058         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
19059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
19060         * modules/stdlib (Makefile.am): Replace witness.
19061         * lib/stdlib.in.h (ptsname): Allow for replacement.
19062         * modules/ptsname (configure.ac): Trigger replacement.
19063         * doc/posix-functions/ptsname.texi (ptsname): Document this.
19065 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
19067         hash-pjw-bare: new module
19068         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
19069         * lib/hash-pjw-bare.h: Likewise.
19070         * modules/hash-pjw-bare: New file.
19071         * MODULES.html.sh (Misc): Add it.
19073 2012-10-02  Eric Blake  <eblake@redhat.com>
19075         manywarnings: cater to more gcc infelicities
19076         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
19077         -Wuninitialized without -O.
19079 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
19081         select, poll tests: Make setsockopt invocation effective.
19082         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
19083         the bind() call.
19084         * tests/test-select.h (open_server_socket): Likewise.
19086 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19088         sockets, sys_stat: restore AC_C_INLINE
19089         This undoes the 2012-09-22 patch.
19090         * m4/sockets.m4 (gl_SOCKETS):
19091         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19092         Restore AC_C_INLINE, since MSVC requires __inline or _inline
19093         and does not support plain 'inline'.  Reported by Bruno Haible in
19094         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
19096 2012-09-30  Bruno Haible  <bruno@clisp.org>
19098         localeconv tests: Avoid test failure on OpenIndiana.
19099         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
19100         skip the 'grouping' and 'mon_grouping' tests.
19101         Reported by Jim Meyering.
19103 2012-09-30  Bruno Haible  <bruno@clisp.org>
19105         havelib: Follow libtool developments.
19106         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
19107         Suggested by Simon Josefsson.
19109 2012-09-29  Jim Meyering  <meyering@redhat.com>
19111         fstatat.c: fix a compile-impeding typo
19112         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
19113         Introduced in commit v0.0-7636-gd202279.
19114         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
19116 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
19118         extern-inline: provide a -Wundef safe config.h
19119         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
19120         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
19121         to produce a -Wundef warning free config.h.
19123 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19125         hash-pjw: relax license to LGPLv2+
19126         * modules/hash-pjw (License): Relax, with consent of author.
19128 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19130         maint.mk: fix strict vs. lazy variable issues with RELEASE
19131         * top/maint.mk (_equal): New function.
19132         (member_check): Strip the result to avoid spurious spaces.
19133         (url_dir_list): Do not use ifeq, which is strict, as it will
19134         require RELEASE_TYPE to be defined.
19135         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
19136         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
19137         (announcement_Cc_alpha,announcement_mail_headers_alpha)
19138         (announcement_Cc_beta,announcement_mail_headers_beta)
19139         (announcement_Cc_stable,announcement_mail_headers_stable): these.
19140         (release): Do not depend on $(release-type), as it forces its
19141         evaluation.  Bounce to it.
19143 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19145         maint.mk: formatting changes
19146         * top/maint.mk: Indent bodies of if's.
19148 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
19150         maint.mk: factor the validation of RELEASE_TYPE
19151         With help from Jim Meyering.
19152         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
19153         * top/maint.mk (_empty, _sp): Move their definition earlier.
19154         (member-check, release-type): New.
19155         Use the latter instead of $(RELEASE_TYPE).
19156         Remove now useless local checks.
19158 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19160         maint.mk: provide "make upload" to ease uploading
19161         See
19162         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
19163         Do not depend simply on the current $(VERSION), as there may have been
19164         new commits since the tarball generation.  Rather, rely on $(RELEASE),
19165         as "make release-commit" already does.
19167         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
19168         "make TYPE".
19170         * top/maint.mk (upload_command, upload, release): New.
19171         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
19172         (VERSION): first word of $(RELEASE) is always right.
19173         (emit_upload_commands): Adjust.
19174         * top/README-release: Update.
19176 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19178         maint.mk: silent rules
19179         With help from Stefano Lattarini.
19180         * top/maint.mk (writable-files): Use $(AM_V_GEN).
19181         (announcement): Use $(AM_V_at).
19183 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19185         localename: port gl_locale_name_thread_unsafe to FreeBSD
19186         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
19187         and use the simpler FreeBSD implementation on Mac OS X as well.
19188         Original idea suggested by Ed Maste in
19189         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
19191 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19193         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
19194         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
19195         * lib/mbuiter.c, lib/xsize.c: New files.
19196         * lib/binary-io.h (BINARY_IO_INLINE):
19197         * lib/eealloc.h (EEALLOC_INLINE):
19198         * lib/mbfile.h (MBFILE_INLINE):
19199         * lib/mbiter.h (MBITER_INLINE):
19200         * lib/mbuiter.h (MBUITER_INLINE):
19201         * lib/xsize.h (XSIZE_INLINE):
19202         New macros.
19203         Replace all uses of 'static inline' with them.
19204         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19205         * m4/eealloc.m4 (gl_EEALLOC):
19206         * m4/mbfile.m4 (gl_MBFILE):
19207         * m4/mbiter.m4 (gl_MBITER):
19208         * m4/xsize.m4 (gl_XSIZE):
19209         Do not require AC_C_INLINE.
19210         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
19211         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
19212         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
19213         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
19214         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
19215         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
19216         * modules/binary-io, modules/eealloc, modules/mbfile:
19217         * modules/mbiter, modules/mbuiter:
19218         (Depends-on): Add extern-inline.
19220         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
19221         * lib/pipe-filter-aux.c: New file.
19222         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
19223         Replace all uses of 'static inline' with it.
19224         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19225         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
19226         (filter_retcode): No real need for inline here.
19227         * modules/pipe-filter-gi, modules/pipe-filter-ii:
19228         (Files): Add lib/pipe-filter-aux.c.
19229         (Depends-on): Add extern-inline.
19230         (configure.ac): Do not require AC_C_INLINE.
19231         (lib_SOURCES): Add pipe-filter-aux.c.
19233         fdutimensat: omit unnecessary AC_C_INLINE
19234         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
19236         fchmodat, fchownat, fstatat: use extern-inline
19237         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
19238         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
19239         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
19240         New macros.
19241         * lib/openat.h:
19242         Replace all uses of 'static inline' with them.
19243         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19244         * modules/fchmodat, modules/fchownat, modules/fstatat:
19245         * modules/openat-h:
19246         (Depends-on):
19247         Add extern-inline.
19248         (configure.ac): Remove AC_C_INLINE.
19250         acl, mbchar, priv-set: use extern-inline
19251         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
19252         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
19253         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
19254         New macros.
19255         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
19256         Replace all uses of 'static inline' with it.
19257         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19258         * m4/acl.m4 (gl_FUNC_ACL):
19259         * m4/mbchar.m4 (gl_MBCHAR):
19260         * m4/priv-set.m4 (gl_PRIV_SET):
19261         Remove AC_C_INLINE, since 'inline' is no longer used directly.
19262         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
19263         Add extern-inline.
19265         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
19266         * m4/sockets.m4 (gl_SOCKETS):
19267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19268         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
19269         environments where it's already guaranteed to work, so we needn't
19270         check for it at 'configure'-time.
19272         tls-tests: omit unnecessary 'inline'
19273         * tests/test-tls.c (perhaps_yield): No longer inline.
19274         Simplicity and portability trump efficiency in test cases.
19276         utimens-tests: avoid unnecessary 'inline'
19277         * modules/fdutimensat-tests (configure.ac):
19278         * modules/futimens-tests (configure.ac):
19279         * modules/utimens-tests (configure.ac):
19280         * modules/utimensat-tests (configure.ac):
19281         Remove AC_C_INLINE.
19282         * tests/test-utimens-common.h (ctime_compare):
19283         No longer inline.  Simplicity and portability trump efficiency here.
19285         misc: don't limit commentary to inline functions
19286         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
19287         * lib/xalloc-oversized.h, lib/xsize.h:
19288         Contrast macros to functions in general, not just to inline functions,
19289         when the commentary does not apply only to inline functions.
19291 2012-09-20  Jim Meyering  <meyering@redhat.com>
19293         non-recursive-gnulib-prefix-hack: new module
19294         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
19295         the file that originated in Bison.
19296         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
19297         largely copied from a snippet that resided in bison's configure.ac.
19298         * modules/non-recursive-gnulib-prefix-hack: New file.
19299         * MODULES.html.sh (Support for maintaining and releasing projects):
19300         Add it.
19302 2012-09-18  Jim Meyering  <meyering@redhat.com>
19304         maint.mk: generalize _gl_tight_scope for non-recursive make
19305         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
19306         that *.h would describe additional .h files in the directory
19307         specified by $(_gl_TS_dir).  I.e., add this...
19308         (_gl_TS_other_headers): New variable.
19310         maint.mk: exempt trailing blanks found in "binary" files
19311         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
19312         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
19313         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19315 2012-09-17  Jim Meyering  <meyering@redhat.com>
19317         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
19318         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
19319         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
19320         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19322 2012-09-17  Jim Meyering  <meyering@redhat.com>
19324         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
19325         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
19326         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
19327         It is not in the same category as "exit (0)" or "exit (1)", and
19328         besides, I know of no symbolic name for that 77.  Reported by
19329         Richard W.M. Jones in
19330         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19332 2012-09-17  Jim Meyering  <meyering@redhat.com>
19334         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
19335         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
19336         all uses of #define, not just those that start in column 1.
19337         Richard W.M. Jones reported a false positive in
19338         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19340 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19342         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
19343         * lib/localcharset.c (locale_charset) [DARWIN7]:
19344         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
19345         as these two values are incompatible.  Problem reported by Max Horn.
19346         For more discussion, please see
19347         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
19349         doc: document sticky-EOF issue
19350         * doc/posix-functions/fgetc.texi (fgetc):
19351         * doc/posix-functions/fgets.texi (fgets):
19352         * doc/posix-functions/fread.texi (fread):
19353         * doc/posix-functions/fscanf.texi (fscanf):
19354         * doc/posix-functions/getc.texi (getc):
19355         * doc/posix-functions/getchar.texi (getchar):
19356         * doc/posix-functions/scanf.texi (scanf):
19357         Mention that glibc and default Solaris do not conform to
19358         C99 and POSIX-2001 or later, with respect to how getchar
19359         etc. behave when feof reports nonzero.
19361 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19363         poll: fix poll(0, NULL, msec)
19364         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
19365         but nfd is 0.  In that case poll should behave like select.
19367 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19368             Paolo Bonzini  <bonzini@gnu.org>
19370         poll: fix for systems that can't recv() on a non-socket
19371         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
19372         is readable.  In this case POLLHUP will not be supported.
19373         * doc/posix-functions/poll.texi: Document this.
19375 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
19377         poll/select: document portability problems not fixed by Gnulib.
19378         * doc/posix-functions/poll.texi: poll does not work well on
19379         pipes under Windows.  It has the same limitations as select on
19380         BeOS.
19381         * doc/posix-functions/select.texi: select does not work well
19382         on pipes under Windows.
19384 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19386         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
19387         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
19388         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
19389         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
19391 2012-09-06  Eric Blake  <eblake@redhat.com>
19393         net_if: give more details about the bug being fixed
19394         * doc/posix-headers/net_if.texi: Add clarification.
19396 2012-09-05  Eric Blake  <eblake@redhat.com>
19398         net_if: new module
19399         * modules/net_if: New module, borrowing ideas from netinet_in.
19400         * m4/net_if_h.m4: New file.
19401         * lib/net_if.in.h: Likewise.
19402         * doc/posix-headers/net_if.texi (net/if.h): Document it.
19403         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19404         * tests/test-net_if.c: Make function checks conditional.
19405         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
19407 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
19409         readutmp: fix non-portable UT_PID use
19410         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
19411         Use `UT_PID (u) > 0' as absolute condition.
19413 2012-09-04  Jim Meyering  <meyering@redhat.com>
19415         fts: reduce two or more trailing spaces to just one, usually
19416         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
19417         or more slashes, trim all but the final one.  But if a name consists
19418         solely of two slashes, don't modify it.  If it consists solely of
19419         three or more slashes, strip all but one.
19421         This is part of the solution to a minor problem with rm:
19422         it would print a bogus ELOOP diagnostic when failing to remove
19423         the slash-decorated name of a symlink-to-directory:
19425             $ mkdir d && ln -s d s && env rm -r s/
19426             rm: cannot remove 's': Too many levels of symbolic links
19428         With the change below and a trivial don't-trim-trailing-slashes
19429         adjustment to remove.c, it does this:
19431             $ env rm -r s/
19432             rm: cannot remove 's/': Not a directory
19434         Improved by: Eric Blake
19436         fts: when there is no risk of overlap, use memcpy, not memmove
19437         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
19439 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19441         stdbool: be more compatible with mixed C/C++ compiles
19442         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
19443         Define to bool, true, false, respectively, as GCC's builtin
19444         stdbool.h does.  Problem reported by Michael Goffioul in
19445         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
19447 2012-08-28  Jim Meyering  <meyering@redhat.com>
19449         revert last change: it was not needed
19450         * tests/test-vc-list-files-git.sh: There's already a test for
19451         a working git, just below.
19453 2012-08-28  Jim Meyering  <meyering@redhat.com>
19455         tests: test-vc-list-files-git.sh: skip if git is not available
19456         * tests/test-vc-list-files-git.sh: Skip this test when git is
19457         not available.
19459 2012-08-26  Bruno Haible  <bruno@clisp.org>
19461         gnulib-tool: Remove no-op option --no-changelog.
19462         * gnulib-tool (func_usage): Don't mention --no-changelog.
19463         (do_changelog): Remove variable.
19464         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19466 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19468         doc: remove fdl-1.2.texi
19469         It is no longer used or maintained, and its use of @acronym
19470         is problematic.  See the thread containing
19471         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
19472         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
19473         * doc/old-licenses/fdl-1.2.texi: Remove.
19475         execinfo: port to FreeBSD
19476         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
19477         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
19478         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
19479         * modules/execinfo (Link): Add $(LIB_EXECINFO).
19481 2012-08-23  Jim Meyering  <meyering@redhat.com>
19483         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
19484         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
19485         to placate gcc's -Wold-style-declaration.
19487 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19489         doc: do not use @acronym
19490         * doc/inet_ntoa.texi (inet_ntoa):
19491         * doc/parse-datetime.texi (Seconds since the Epoch)
19492         (Specifying time zone rules):
19493         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
19494         Don't use @acronym.  Problem reported by John Darlington in
19495         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
19497 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19499         stdnoreturn: port to newer GCCs
19500         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
19501         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
19502         Problem reported by Jim Meyering in
19503         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
19504         Also, rename the 'test' function to a void a clash with the
19505         already-supplied 'main' function; this fixes a bug that incorrectly
19506         rejected GCC 4.7.1's <stdnoreturn.h>.
19507         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
19508         Document GCC problem.
19510 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
19512         pipe-filter: fix comment typo
19513         * lib/pipe-filter.h: Mention correct function.
19515 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19517         execinfo: new module
19518         This is for Emacs.  Currently, it provides a no-effect stub
19519         on all platforms where it does not already work.
19520         It already works on glibc-based systems, and on Solaris 11.
19521         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
19522         New files.
19523         * doc/glibc-headers/execinfo.texi (execinfo.h):
19524         * MODULES.html.sh (Misc): Document it.
19526 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19528         extern-inline: support old GCC 'inline'
19529         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
19530         if available.  This applies to GCC versions 2.7 through 4.2, or
19531         when newer GCC is using -fgnu89-inline.  The goal is to address
19532         some of the performance issues mentioned by Bruno Haible in
19533         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
19535 2012-08-20  Eric Blake  <eblake@redhat.com>
19537         maint.mk: avoid redundant file name in message
19538         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19539         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
19540         (sc_makefile_path_separator_check): Remove bogus $(ME).
19542 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
19544         timer-time: fix link order when static linking on glibc
19545         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19546         _after_ -lrt so that it's significant.
19548 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19550         timespec: omit unnecessary AC_C_INLINE
19551         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
19553         stat-time: omit unnecessary AC_C_INLINE
19554         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
19555         Do not require AC_C_INLINE.
19557         ignore-value: omit unnecessary AC_C_INLINE
19558         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
19560         sys_select: avoid 'static inline'
19561         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
19563         mktime: avoid 'static inline'
19564         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
19565         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
19567 2012-08-19  Bruno Haible  <bruno@clisp.org>
19569         gnulib-tool: Improve coding style.
19570         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
19571         func_emit_lib_Makefile_am.
19572         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19574 2012-08-19  Bruno Haible  <bruno@clisp.org>
19576         gnulib-tool: Fix indentation.
19577         * gnulib-tool (func_import): Fix indentation.
19579 2012-08-19  Bruno Haible  <bruno@clisp.org>
19581         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
19582         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
19583         on the list of removed files.
19585 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19587         test-parse-datetime: avoid glibc leap-second glitch
19588         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
19589         with the 2012 rules.  Problem reported by Bruce Dubbs in
19590         <http://bugs.gnu.org/12206>.
19592 2012-08-14  Bruno Haible  <bruno@clisp.org>
19594         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19595         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19596         from argument.
19597         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19599 2012-08-14  Eric Blake  <eblake@redhat.com>
19601         ldexp: relax license
19602         * modules/ldexp (License): Trivial relax, since the module only
19603         provides a permissively licensed m4 file.
19605 2012-08-13  Bruno Haible  <bruno@clisp.org>
19607         gnulib-tool: Fix persistence of --witness-c-macro option.
19608         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19609         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19611 2012-08-11  Eric Blake  <eblake@redhat.com>
19613         count-leading-zeros: use a lookup table on non-gcc compilers
19614         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19615         alternate implementation, suggested by Jim Meyering.
19617 2012-08-10  Eric Blake  <eblake@redhat.com>
19619         count-leading-zeros: new module
19620         * modules/count-leading-zeros: New module.
19621         * m4/count-leading-zeros.m4: New file.
19622         * lib/count-leading-zeros.h: Likewise.
19623         * modules/count-leading-zeros-tests: New test.
19624         * tests/test-count-leading-zeros.c: New file.
19625         * MODULES.html.sh (Integer arithmetic functions): Document it.
19627 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19628             Jim Meyering  <meyering@redhat.com>
19630         maintainer-makefile: Fix syntax error with dash.
19631         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19632         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19634 2012-08-05  Jim Meyering  <meyering@redhat.com>
19636         extern-inline: also ignore -Wmissing-declarations
19637         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19638         required with gcc-4.8.0-to-be.
19640         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19641         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19642         for /error ?([^,]*)/.  This avoids false-positives for strings like
19643         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19645 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19647         gnumakefile: better interaction with Automake-NG
19648         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19649         Automake-NG always contain a definition of VPATH, even in non-VPATH
19650         builds (its value being simply '.' in that case).  So, in the
19651         'clean-GNUmakefile' rule, to determine whether running under a
19652         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19653         '$(VPATH)' expands to the empty string.
19655 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19657         base64: Use extern C scope in header file, for C++.
19658         * lib/base64.h: Add C++ namespace protection.
19660 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19662         stat-time, timespec, u64: support naive out-of-dir builds
19663         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19664         Use '#include "foo.h"', not '#include <foo.h>', when including
19665         one's own interface.  This works better when configuring with
19666         out-of-directory builds, since packages need not add an
19667         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19669 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19671         utimens: use extern-inline
19672         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19673         * lib/utimens.h: Add copyright notice, since this is now large enough
19674         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19675         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19676         * modules/utimens (Depends-on): Add extern-inline.
19678         u64: use extern-inline
19679         * lib/u64.c: New file.
19680         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19681         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19682         * modules/u64 (Files): Add lib/u64.c.
19683         (Depends-on): Add extern-inline.
19684         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19685         does that now.
19686         (lib_SOURCES): Add u64.c.
19688         timespec: use extern-inline
19689         * lib/timespec.c: New file.
19690         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19691         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19692         * modules/timespec (Files): Add lib/timespec.c.
19693         (Depends-on): Add extern-inline.
19694         (lib_SOURCES): Add timespec.c.
19696         stat-time: use extern-inline
19697         * lib/stat-time.c: New file.
19698         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19699         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19700         * modules/stat-time (Files): Add lib/stat-time.c.
19701         (Depends-on): Add extern-inline.
19702         (lib_SOURCES): Add stat-time.c.
19704         extern-inline: new module
19705         * modules/extern-inline, m4/extern-inline.m4: New files.
19706         This is for better support of 'extern inline' a la ISO C99,
19707         with a portable alternative on compilers that do not support
19708         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19709         of the Emacs executable, when compiled with debugging disabled,
19710         which is a typical way that Emacs is built while developing.
19712 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19714         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19715         * build-aux/do-release-commit-and-tag: Move variable definitions
19716         together.
19717         ($branch): Instead of defaulting to "master", default to the current
19718         branch (as gnu-web-doc-update does).
19719         (help): Display the current values of the option arguments.
19720         * top/maint.mk (release-commit): New.
19721         * top/README-release: Simplify the corresponding step.
19723 2012-07-30  Eric Blake  <eblake@redhat.com>
19725         passfd: fix comment on recvfd
19726         * lib/passfd.c (recvfd): Fix comment.
19727         Reported by Jann Horn <jannhorn@googlemail.com>.
19729 2012-07-30  Jim Meyering  <meyering@redhat.com>
19731         maint.mk: avoid a sub-shell
19732         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19734 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19736         maint.mk: use silent-rules support from Automake
19737         * top/maint.mk (news-check, vc-diff-check, announcement)
19738         (no-submodule-changes, alpha beta stable, release-prep)
19739         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19741 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19743         maint.mk: provide a web-manual-update target
19744         * top/maint.mk: here.
19745         * top/README-release: Use it to simplify the web manual update step.
19747 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19749         README-release: shorten the circuit to post a news
19750         * top/README-release: Point directly to the news submission form.
19752 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19754         gnu-web-doc-update: fix --help
19755         * build-aux/gnu-web-doc-update: The information "top level" was written
19756         twice.
19758 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19760         maint.mk: absolute VPATH issue
19761         * top/maint.mk (release-prep): Help Git find .git/.
19762         From Jim Meyering.
19764 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19766         gitlog-to-changelog: fix previous change
19767         * build-aux/gitlog-to-changelog: Fix condition.
19768         Add missing ";".
19770 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19772         gitlog-to-changelog: don't expect .git to be in $srcdir
19773         Reported by Bruno Haible.
19774         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
19775         * build-aux/gitlog-to-changelog (&git_dir_option): New.
19776         Use it.
19778 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19780         maint.mk: absolute VPATH build fix
19781         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
19782         $(srcdir) is not a parent of $(builddir).
19784 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
19786         clean-temp: Fix memory leak.
19787         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
19788         'files' members of tmpdir.
19790 2012-07-27  Jim Meyering  <meyering@redhat.com>
19792         maint.mk: new rule: refresh-gnulib-patches
19793         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
19794         Use this rule to refresh them.
19795         * top/maint.mk (refresh-gnulib-patches): New rule.
19797 2012-07-24  Bruno Haible  <bruno@clisp.org>
19799         gnulib-tool: Fix handling of inctests variable.
19800         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
19801         Reported by Nick Bowler <nbowler@elliptictech.com>.
19803 2012-07-22  Bruno Haible  <bruno@clisp.org>
19805         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
19806         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
19807         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19808         Remove exemption for getpass.h.
19809         Suggested by Eric Blake.
19811 2012-07-20  Eric Blake  <eblake@redhat.com>
19813         verify: document conflict with -Wnested-externs
19814         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
19816         maint.mk: forbid exit(-1)
19817         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
19819 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19821         fsusage: port back to Solaris
19822         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
19823         error (fsd not declared) on Solaris 10.  Reported privately by
19824         Andrew Borodin.
19826 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
19828         gnu-web-doc-update: fix error messages
19829         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
19831         gnu-web-doc-update: check the requirements.
19832         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
19833         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
19834         * build-aux/bootstrap (find_tool): Comment change.
19836 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19838         maint.mk: minor simplication.
19839         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
19840         for default values.
19842 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
19844         gitlog-to-changelog: VPATH build issues
19845         If builddir is not a subdirectory of srcdir, running git from it will
19846         fail.
19847         * build-aux/gitlog-to-changelog (--srcdir): New option.
19849 2012-07-15  Bruno Haible  <bruno@clisp.org>
19851         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
19852         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
19853         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
19854         Remove exemption for fpending.h.
19855         Suggested by Eric Blake.
19857 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19859         pthread_sigmask: fix bug on FreeBSD 9
19860         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19861         Include string.h.
19862         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19863         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19864         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19865         but pthread_sigmask (1729, NULL, NULL) returns zero.
19866         See <http://bugs.gnu.org/11884>.
19867         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19868         by inspecting whether the main call changed the old mask.
19870 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19872         README-release: make it more legible
19873         * top/README-release: Improve typography slightly.
19875 2012-07-15  Jim Meyering  <meyering@redhat.com>
19877         maint: require that each sc_... command start with "@"
19878         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19879         "make sc_maint" helps us avoid this nit.
19881 2012-07-15  Jim Meyering  <meyering@redhat.com>
19883         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19884         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19886 2012-07-13  Eric Blake  <eblake@redhat.com>
19888         maint.mk: new syntax check for HAVE_DECL checks
19889         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19890         * cfg.mk
19891         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19892         Exempt some false positives.
19893         Based on a report by Karel Zak.
19895         argp: make HAVE_DECL usage consistent
19896         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19897         macros, not whether they are defined.
19898         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19899         convention with other declaration checks.
19900         Reported by Karel Zak, with suggestions from Paul Eggert.
19902         stat-time: relax license to LGPLv2+
19903         * modules/stat-time (License): Relax, with consent of all authors.
19905         strndup: fix m4 usage error
19906         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19907         defined, to either 0 or 1.
19908         Reported by Karel Zak.
19910 2012-07-11  Jim Meyering  <meyering@redhat.com>
19912         maint: enable the sc_avoid_if_before_free syntax-check rule
19913         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19914         (if_before_free_offenders_): Define.
19915         (if_before_free_basename_re_): Define.
19916         Exempt current files with useless if-before-free.
19918 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19920         gettext: do not assume '#define ... defined ...' behavior
19921         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
19922         Do not use '#define FOO ... defined BAR ...', as the C standard says
19923         it's not portable to expect that this works after macro expansion.
19924         Problem reported for gzip by Steven M. Schweda in
19925         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
19927 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19929         getloadavg: clean out old Emacs and Autoconf cruft
19930         See Glenn Morris in <http://bugs.gnu.org/11905>.
19931         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
19932         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
19933         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
19934         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
19936 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
19938         bootstrap: let warn be like tests/init.sh's warn_
19939         Reported by Jim Meyering.
19940         * build-aux/bootstrap (warn): Remove, replaced by...
19941         (warnf_, warn_): these.
19942         Adjust callers.
19943         Shorten messages that no longer fit in 80 columns.
19945 2012-07-09  Bruno Haible  <bruno@clisp.org>
19947         getopt: Simplify after Emacs changed.
19948         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
19949         (gl_GETOPT_IFELSE): Remove macro.
19951 2012-07-09  Jim Meyering  <meyering@redhat.com>
19953         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19954         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
19956         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
19957         Bugs in both of those conspired to make the
19958         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
19959         _sc_search_regexp's handling of non-empty $in_files would filter
19960         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
19961         choice of in_files value meant there would be no match in most
19962         projects, due to the presence of two or more Makefile.in files.
19963         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
19964         Fix a bug in how a non-empty $$in_files was processed:
19965         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
19966         in spite of the name, it's a regexp, not a list of file names.
19968 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19970         getloadavg, getopt: fix commentary re configure.in
19971         Autoconf is deprecating the name 'configure.in', so change it to
19972         to the new name 'configure.ac' in a couple of places.
19973         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
19974         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
19975         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
19976         Emacs has renamed it to configure.ac, and it no longer refers
19977         to these macros anyway.
19979         timespec: mark functions with const attributes
19980         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
19981         Mark with _GL_ATTRIBUTE_CONST.
19983 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19985         canonicalize[-lgpl]: handle "guessing" values when cross-building
19986         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19987         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
19988         matches "*yes" instead of just "yes".  Regression introduced in commit
19989         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
19991 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19992             Bruno Haible  <bruno@clisp.org>
19994         canonicalize: make the right guess when cross-compiling to GNU
19995         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
19996         determine whether cross-compiling to glibc systems, so as to
19997         include GNU/Hurd.
19999 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20001         timespec-sub: avoid duplicate include
20002         * lib/timespec-sub.c: Do not include <config.h> twice.
20003         Reported by Juanma Barranquero.
20005 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
20007         bootstrap: use a more consistent error reporting scheme
20008         * build-aux/bootstrap (warn, die): New.
20009         Use them.
20011 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20013         sys_time: allow too-wide tv_sec
20014         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
20015         timeval even if tv_sec is wider than time_t.  This allows
20016         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
20017         as without this patch gnulib replaces struct timeval
20018         and OpenBSD futimes therefore has a type mismatch.
20019         * doc/posix-headers/sys_time.texi: Mention this.
20021         pthread: check for both pthread_create and pthread_join
20022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
20023         alter the check so that it tests for both pthread_create and
20024         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
20025         Suggested by Bruno Haible and Richard Yao in
20026         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
20028         parse-datetime: doc tuneup
20029         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
20030         spacing issues.
20032 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
20034         do-release-commit-and-tag: fix the previous commit
20035         * build-aux/do-release-commit-and-tag: Actually the test was right,
20036         but the comment and the error message were misleading.
20037         Fix comment, and improve error message.
20038         Perform check first, so that NEWS is not modified uselessly.
20040         do-release-commit-and-tag: fix typo
20041         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
20042         _not_ start with a stub.
20044 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20046         pthread: check for pthread_create, not pthread_join
20047         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
20048         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
20049         pthread_join in libc.  I hope this removes the need for all the
20050         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
20051         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
20053 2012-07-04  Jim Meyering  <meyering@redhat.com>
20055         parse-datetime: fix failure to diagnose invalid input
20056         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
20057         rather than diagnosing the invalid input.  Now it reports this:
20058         date: invalid date '\260'
20059         * lib/parse-datetime.y (to_uchar): Define.
20060         (yylex): Don't sign-extend "other" bytes.
20061         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
20062         Thanks to Bruno Haible for the patch to this file.
20063         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
20064         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
20066 2012-07-03  Jim Meyering  <meyering@redhat.com>
20068         bootstrap: do not require now-removed build-aux/missing
20069         Now that build-aux/missing is, er, missing, bootstrap would
20070         silently fail.
20071         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
20072         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
20073         no longer part of gnulib.
20074         Diagnose the failure.
20076 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20078         alloca: add support for HP NonStop TNS/E native
20079         * lib/alloca.in.h (alloca): Support the new host.
20080         From a suggestion by Joachim Schmitz in
20081         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
20083 2012-07-02  Pádraig Brady  <P@draigBrady.com>
20085         fsusage: remove code not needed on non GNU/Linux systems.
20087         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20088         Don't include headers no longer needed in this case.
20089         * lib/fsusage.c [STAT_STATVFS &&
20090         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
20091         STAT_STATFS2_FRSIZE to exclude code not used in this case.
20093 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20095         fsusage: include files needed for glibc 2.6 fallback
20096         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20097         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
20098         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
20099         Problem reported by Ludovic Courtès in
20100         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
20102         fsusage: avoid needless check on GNU/Linux
20103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
20104         on GNU/Linux systems, since it can't possibly work.
20106 2012-07-01  Bruno Haible  <bruno@clisp.org>
20108         log: Fix an autoconf >= 2.64 warning.
20109         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
20110         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20112 2012-06-28  Bruno Haible  <bruno@clisp.org>
20114         log10f: Fix possible configuration problem.
20115         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
20116         $LOGF_LIBM.
20117         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20119 2012-06-28  Bruno Haible  <bruno@clisp.org>
20121         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
20122         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
20123         not gl_cv_func_unlink_works.
20124         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20126 2012-06-27  Eric Blake  <eblake@redhat.com>
20128         config: drop scripts that automake says are not independent
20129         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
20130         * build-aux/elisp-comp: Delete.
20131         * build-aux/missing: Likewise.
20132         * build-aux/ylwrap: Likewise.
20133         * modules/elisp-comp: Likewise.
20134         * MODULES.html.sh: Drop mention of elisp-comp.
20135         * NEWS: Mention this.
20137 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
20139         root-uid: new module
20140         This is for portability to Tandem's NonStop Kernel.
20141         * lib/root-uid.h, modules/root-uid: New files.
20142         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
20143         * lib/write-any-file.c, tests/test-sethostname2.c:
20144         Include "root-uid.h".
20145         * lib/euidaccess.c (euidaccess):
20146         * lib/pt_chown.c (main):
20147         * lib/unlinkdir.c (cannot_unlink_dir):
20148         * lib/write-any-file.c (can_write_any_file):
20149         * m4/mknod.m4 (gl_FUNC_MKNOD):
20150         * tests/test-sethostname2.c (geteuid, main):
20151         Don't assume ROOT_UID == 0.
20152         * modules/euidaccess (Depends-on):
20153         * modules/pt_chown (Depends-on):
20154         * modules/sethostname-tests (Depends-on):
20155         * modules/unlinkdir (Depends-on):
20156         * modules/write-any-file (Depends-on):
20157         Add root-uid.
20159         regex: use locale-independent comparison for codeset name
20160         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
20161         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
20162         for codeset name.
20163         * lib/regex_internal.h: Do not include <strings.h>, since we
20164         no longer use strcasecmp.
20165         * modules/regex (Depends-on): Remove strcase.
20167 2012-06-23  Bruno Haible  <bruno@clisp.org>
20169         getopt-posix: No longer guarantee that option processing is resettable.
20170         * doc/posix-functions/getopt.texi: Drop description of problem with
20171         internal state. Fix info about mingw and msvc9.
20172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
20173         option processing by getopt(). Run three test programs instead of one.
20174         Simplify cross-compilation guess.
20175         * NEWS: Mention the change.
20176         Reported by Rich Felker <dalias@aerifal.cx>.
20178 2012-06-26  Bruno Haible  <bruno@clisp.org>
20180         argp, regex: Ensure strcasecmp gets declared.
20181         * lib/argp-help.c: Include <strings.h>.
20182         * lib/regex_internal.h: Likewise.
20183         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
20185 2012-06-24  Bruno Haible  <bruno@clisp.org>
20187         ptsname_r: Make it consistent with ptsname on AIX.
20188         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
20189         implementation as for OSF/1.
20190         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
20191         a pty master.
20193         ptsname_r: Make it consistent with ptsname on OSF/1.
20194         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20195         OSF/1.
20197 2012-06-24  Bruno Haible  <bruno@clisp.org>
20199         ttyname_r: Fix result on OSF/1, Solaris.
20200         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
20202 2012-06-24  Bruno Haible  <bruno@clisp.org>
20204         ptsname_r: Add support for Solaris.
20205         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20206         Solaris.
20208         ptsname_r: Fix test failure on native Windows.
20209         * modules/ptsname_r (Depends-on): Add isatty.
20211         ptsname_r: Fix test failures on IRIX, Solaris.
20212         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
20213         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
20214         accordingly.
20215         * lib/ptsname_r.c: Include <fcntl.h>.
20216         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
20217         set errno if fd is invalid.
20218         * tests/test-isatty.c (main): Update comments.
20220 2012-06-24  Bruno Haible  <bruno@clisp.org>
20222         ptsname test: Extend test.
20223         * tests/test-ptsname.c: Include <errno.h>.
20224         (main): Test behaviour with invalid file descriptor.
20226 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20228         time: fix obsolete comment
20229         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
20230         reference to HAVE_STRUCT_TIMESPEC in comment.
20232 2012-06-23  Bruno Haible  <bruno@clisp.org>
20234         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
20235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
20236         does not handle abbreviated long options with equivalent
20237         disambiguations, set gl_replace_getopt to yes.
20238         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
20240 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20242         time_r: fix typo that always overrode localtime_r decl
20243         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
20244         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
20245         not in a standard include.
20247 2012-06-22  Bruno Haible  <bruno@clisp.org>
20249         Write "Mac OS X" instead of "MacOS X".
20250         * README: Write "Mac OS X" instead of "MacOS X".
20251         * build-aux/bootstrap: Likewise.
20252         * build-aux/install-reloc: Likewise.
20253         * lib/acl-internal.h: Likewise.
20254         * lib/acl_entries.c: Likewise.
20255         * lib/argp-ba.c: Likewise.
20256         * lib/argp-pv.c: Likewise.
20257         * lib/config.charset: Likewise.
20258         * lib/copy-acl.c: Likewise.
20259         * lib/csharpexec.c: Likewise.
20260         * lib/euidaccess.c: Likewise.
20261         * lib/fbufmode.c: Likewise.
20262         * lib/fflush.c: Likewise.
20263         * lib/file-has-acl.c: Likewise.
20264         * lib/filemode.h: Likewise.
20265         * lib/fpurge.c: Likewise.
20266         * lib/freadable.c: Likewise.
20267         * lib/freadahead.c: Likewise.
20268         * lib/freading.c: Likewise.
20269         * lib/freadptr.c: Likewise.
20270         * lib/freadseek.c: Likewise.
20271         * lib/fseeko.c: Likewise.
20272         * lib/fseterr.c: Likewise.
20273         * lib/fsusage.c: Likewise.
20274         * lib/fwritable.c: Likewise.
20275         * lib/fwriting.c: Likewise.
20276         * lib/get-rusage-as.c: Likewise.
20277         * lib/get-rusage-data.c: Likewise.
20278         * lib/getdomainname.c: Likewise.
20279         * lib/idpriv-drop.c: Likewise.
20280         * lib/idpriv-droptemp.c: Likewise.
20281         * lib/localcharset.c: Likewise.
20282         * lib/locale.in.h: Likewise.
20283         * lib/localename.c: Likewise.
20284         * lib/mbsrtowcs-state.c: Likewise.
20285         * lib/nproc.c: Likewise.
20286         * lib/passfd.c: Likewise.
20287         * lib/posix_openpt.c: Likewise.
20288         * lib/printf-parse.c: Likewise.
20289         * lib/progreloc.c: Likewise.
20290         * lib/safe-read.h: Likewise.
20291         * lib/safe-write.h: Likewise.
20292         * lib/sched.in.h: Likewise.
20293         * lib/set-mode-acl.c: Likewise.
20294         * lib/signal.in.h: Likewise.
20295         * lib/stdint.in.h: Likewise.
20296         * lib/stdio-impl.h: Likewise.
20297         * lib/stdlib.in.h: Likewise.
20298         * lib/strtod.c: Likewise.
20299         * lib/sys_select.in.h: Likewise.
20300         * lib/tcgetsid.c: Likewise.
20301         * lib/unistd.in.h: Likewise.
20302         * lib/unlockpt.c: Likewise.
20303         * lib/vasnprintf.c: Likewise.
20304         * lib/vma-iter.c: Likewise.
20305         * lib/wcsrtombs-state.c: Likewise.
20306         * m4/acl.m4: Likewise.
20307         * m4/acosl.m4: Likewise.
20308         * m4/asinl.m4: Likewise.
20309         * m4/atanl.m4: Likewise.
20310         * m4/c-stack.m4: Likewise.
20311         * m4/cosl.m4: Likewise.
20312         * m4/expl.m4: Likewise.
20313         * m4/extensions.m4: Likewise.
20314         * m4/fdatasync.m4: Likewise.
20315         * m4/fmal.m4: Likewise.
20316         * m4/frexp.m4: Likewise.
20317         * m4/frexpf.m4: Likewise.
20318         * m4/frexpl.m4: Likewise.
20319         * m4/fsusage.m4: Likewise.
20320         * m4/getdomainname.m4: Likewise.
20321         * m4/getloadavg.m4: Likewise.
20322         * m4/getopt.m4: Likewise.
20323         * m4/gettext.m4: Likewise.
20324         * m4/gnulib-common.m4: Likewise.
20325         * m4/intdiv0.m4: Likewise.
20326         * m4/intlmacosx.m4: Likewise.
20327         * m4/largefile.m4: Likewise.
20328         * m4/ldexpl.m4: Likewise.
20329         * m4/link-follow.m4: Likewise.
20330         * m4/locale-ar.m4: Likewise.
20331         * m4/locale-fr.m4: Likewise.
20332         * m4/locale-ja.m4: Likewise.
20333         * m4/locale-tr.m4: Likewise.
20334         * m4/locale-zh.m4: Likewise.
20335         * m4/locale_h.m4: Likewise.
20336         * m4/lock.m4: Likewise.
20337         * m4/logl.m4: Likewise.
20338         * m4/mathfunc.m4: Likewise.
20339         * m4/minus-zero.m4: Likewise.
20340         * m4/mktime.m4: Likewise.
20341         * m4/mmap-anon.m4: Likewise.
20342         * m4/multiarch.m4: Likewise.
20343         * m4/nanosleep.m4: Likewise.
20344         * m4/nocrash.m4: Likewise.
20345         * m4/poll.m4: Likewise.
20346         * m4/printf-frexpl.m4: Likewise.
20347         * m4/printf.m4: Likewise.
20348         * m4/signbit.m4: Likewise.
20349         * m4/sinl.m4: Likewise.
20350         * m4/sqrtl.m4: Likewise.
20351         * m4/strerror_r.m4: Likewise.
20352         * m4/tanl.m4: Likewise.
20353         * m4/threadlib.m4: Likewise.
20354         * m4/ttyname_r.m4: Likewise.
20355         * m4/unlink.m4: Likewise.
20356         * m4/visibility.m4: Likewise.
20357         * m4/wcwidth.m4: Likewise.
20358         * tests/minus-zero.h: Likewise.
20359         * tests/test-alloca-opt.c: Likewise.
20360         * tests/test-copy-acl.sh: Likewise.
20361         * tests/test-copy-file.sh: Likewise.
20362         * tests/test-fdatasync.c: Likewise.
20363         * tests/test-file-has-acl.sh: Likewise.
20364         * tests/test-flock.c: Likewise.
20365         * tests/test-fsync.c: Likewise.
20366         * tests/test-localename.c: Likewise.
20367         * tests/test-malloca.c: Likewise.
20368         * tests/test-nonblocking-pipe.h: Likewise.
20369         * tests/test-nonblocking-socket.h: Likewise.
20370         * tests/test-openpty.c: Likewise.
20371         * tests/test-posix_openpt.c: Likewise.
20372         * tests/test-ptsname.c: Likewise.
20373         * tests/test-ptsname_r.c: Likewise.
20374         * tests/test-sameacls.c: Likewise.
20375         * tests/test-select.h: Likewise.
20376         * tests/test-set-mode-acl.sh: Likewise.
20377         * tests/test-snprintf-posix.h: Likewise.
20378         * tests/test-sprintf-posix.h: Likewise.
20379         * tests/test-strtod.c: Likewise.
20380         * tests/test-time.c: Likewise.
20381         * tests/test-vasnprintf-posix.c: Likewise.
20382         * tests/test-vasprintf-posix.c: Likewise.
20383         * doc/acl-resources.txt: Likewise.
20384         * doc/**/*.texi: Likewise.
20385         Reported by Max Horn <max@quendi.de>.
20387 2012-06-22  Bruno Haible  <bruno@clisp.org>
20389         grantpt: Relax requirement regarding invalid file descriptors.
20390         * lib/grantpt.c: Don't include <fcntl.h>.
20391         (grantpt): Don't verify the validity of the file descriptor.
20392         * modules/grantpt (Depends-on): Remove fcntl-h.
20393         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
20394         file descriptors.
20395         * doc/posix-functions/grantpt.texi: Document more platforms on which
20396         grantpt succeeds for invalid file descriptors.
20397         Reported by Rich Felker <dalias@aerifal.cx>.
20399 2012-06-22  Bruno Haible  <bruno@clisp.org>
20401         fbufmode test: Don't test unportable behaviour.
20402         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
20403         (main): Invoke it three times.
20404         Reported by Szabolcs Nagy <nsz@port70.net>
20405         and Rich Felker <dalias@aerifal.cx>.
20407 2012-06-21  Bruno Haible  <bruno@clisp.org>
20409         gnulib-tool: Refactor inctests variable.
20410         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
20411         (func_modules_transitive_closure,
20412         func_modules_transitive_closure_separately,
20413         func_import, func_create_testdir): Update.
20415         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
20416         * gnulib-tool: Accept option --without-tests.
20417         (func_usage): Document --without-tests option. Rearrange.
20418         (inctests): Normalize according to the mode.
20419         * NEWS: Mention the change.
20420         Suggested by Simon Josefsson.
20422 2012-06-21  Bruce Korb  <bkorb@gnu.org>
20424         parse-duration test: Avoid spurious output.
20425         * tests/test-parse-duration.sh: Reindent with leading tabs.
20427 2012-06-21  Jim Meyering  <meyering@redhat.com>
20429         maint: disable the strncpy prohibition
20430         * cfg.mk: Do not prohibit strncpy here.
20432 2012-06-21  Bruno Haible  <bruno@clisp.org>
20434         nonblocking: Avoid compilation error on mingw64.
20435         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
20436         fscanf.
20437         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
20438         * modules/vfscanf (configure.ac): Likewise.
20439         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
20440         definition only if stdio.h has prepared it.
20441         Reported by Daniel P. Berrange <berrange@redhat.com>.
20443 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
20445         gnulib-tool: Use readlink if it is available.
20446         * gnulib-tool (func_readlink): Choose function more appropriately.
20448 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20450         posixtm-tests: port to buggy compiler
20451         Problem reported by Simon Josefsson in
20452         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
20453         * modules/posixtm-tests (Depends-on): Add stdint.
20454         * tests/test-posixtm.c (struct posixtm_test.t_expected):
20455         Now of type int_least64_t, not int64_t, both because that's
20456         what INT64_C returns and because int_least64_t works even
20457         on 72-bit hosts.
20458         (T): Use INT64_C on constants outside the traditional int range,
20459         to work around compiler bug noted by Simon.
20461         mktime: fix integer overflow in 'configure'-time test
20462         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
20463         after integer overflow.  Problem reported by Rich Felker in
20464         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
20465         Also, don't look for further instances of a bug if we've already
20466         found one instance; this helps 'configure' run faster.
20468 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
20470         tmpfile, clean-temp: Fix invocation of GetVersionEx.
20471         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
20472         GetVersionEx correctly.
20473         * lib/clean-temp.c (supports_delete_on_close): Likewise.
20475 2012-06-20  Bruno Haible  <bruno@clisp.org>
20477         fdopen: Allow implementations that don't reject invalid fd arguments.
20478         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
20479         succeeds.
20480         Reported by Rich Felker <dalias@aerifal.cx>.
20482 2012-06-20  Simon Josefsson  <simon@josefsson.org>
20484         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
20485         bring in LIBINTL.
20487 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20489         init.sh: do not rely on autoupated PWD
20490         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
20491         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
20492         Although Nelson's bug was not necessarily fixed by this patch,
20493         it seems wise to make the change for safety.
20494         * tests/init.sh (path_prepend_): Do not rely on PWD updating
20495         automagically after 'cd'; this is not reliable on older shells.
20496         (setup_): Fail if we cannot cd to temporary directory.
20498 2012-06-19  Bruno Haible  <bruno@clisp.org>
20500         stat, fstat: Avoid warnings on mingw64.
20501         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
20502         redefining.
20503         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
20504         Reported by Daniel P. Berrange <berrange@redhat.com>.
20506 2012-06-19  Bruno Haible  <bruno@clisp.org>
20508         stdioext: Add support for musl libc.
20510         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
20511         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
20513         * m4/fseterr.m4: New file.
20514         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
20515         function exists.
20516         * modules/fseterr (Files): Add m4/fseterr.m4.
20517         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
20518         __fseterr does not exist.
20519         (Makefile.am): Remove fseterr.c from lib_SOURCES.
20521         * lib/freadable.h: Update comment.
20523         * lib/fwritable.h: Update comment.
20525         * lib/freading.h: Update comment.
20527         * lib/fwriting.h: Update comment.
20529         * m4/freadahead.m4: New file.
20530         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
20531         that function exists.
20532         * modules/freadahead (Files): Add m4/freadahead.m4.
20533         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
20534         __freadahead does not exist.
20535         (Makefile.am): Remove freadahead.c from lib_SOURCES.
20537         * m4/freadptr.m4: New file.
20538         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
20539         function exists.
20540         * modules/freadptr (Files): Add m4/freadptr.m4.
20541         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
20542         __freadptr does not exist.
20543         (Makefile.am): Remove freadptr.c from lib_SOURCES.
20545         * m4/freadseek.m4: New file.
20546         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
20547         exists.
20548         * modules/freadseek (Files): Add m4/freadseek.m4.
20549         (configure.ac): Invoke gl_FUNC_FREADSEEK.
20551         * lib/fpurge.c (fpurge): Update comment.
20553         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
20555 2012-06-19  Bruno Haible  <bruno@clisp.org>
20557         *printf-posix: Put more info into config.log.
20558         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
20559         exit code into config.log.
20561 2012-06-19  Bruno Haible  <bruno@clisp.org>
20563         getopt-gnu: Fix exit code overflow in autoconf test.
20564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
20565         to keep them below < 128.
20567 2012-06-17  Jim Meyering  <meyering@redhat.com>
20569         maint.mk: fix typo in code to derive GPG key at release time
20570         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
20572 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20574         regex: avoid warning when pointers are not long
20575         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
20576         and uintptr_t, not long, for portability to hosts where pointers and
20577         long have different sizes.  Issue noted by Daniel P. Berrange in
20578         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
20579         and fix suggested by Bruno Haible in
20580         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
20582 2012-06-17  Bruno Haible  <bruno@clisp.org>
20584         dummy: Relicense into the public domain.
20585         * modules/dummy (License): Set to "public domain".
20586         Suggested by Reuben Thomas.
20588 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20590         announce-gen: VPATH issues
20591         * build-aux/announce-gen (--srcdir): New option, used to trim the
20592         $srcdir part of the path from $builddir to NEWS.
20593         * top/maint.mk (announcement): Adjust.
20595 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20597         gnu-web-doc-update: VPATH builds
20598         * build-aux/gnu-web-doc-update (--builddir): New option.
20599         Revamp the handling of options.
20600         Prefer $(...) to `...`.
20601         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20602         the template, and it is GNU mktemp specific.
20603         Prefer set -e to long series of &&.
20604         Restore the initial git branch, not "master".
20605         Properly initialize submodules (don't rely only on bootstrap).
20606         Do not reconfigure blindly, use config.status.
20607         * top/README-release: Update instructions for gnu-web-doc-update.
20609 2012-06-11  Jim Meyering  <meyering@redhat.com>
20611         maint.mk: revert most of the previous change re "all these"
20612         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20613         For rationale, see the discussion at
20614         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20616 2012-06-10  Karl Berry  <karl@gnu.org>
20618         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20620         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20622 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20624         parse-duration: Relicense under LGPLv2+.
20625         * modules/parse-duration (License): Change to LGPLv2+.
20627 2012-06-10  Jim Meyering  <meyering@redhat.com>
20629         maint.mk: prohibit common grammar error: "all these"
20630         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20631         the list of prohibited word sequences.  It should be "all of these".
20632         * lib/tempname.c (__gen_tempname): Fix one of them.
20634 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20636         do-release-commit-and-tag: support VPATH builds
20637         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20638         (noteworthy): Defined earlier to factor its value.
20639         (noteworthy_stub): New.
20640         Use it to factor.
20641         (help_version): Split into...
20642         (help, version): these.
20643         Adjust the option processing part.
20644         Support "--option=value" in addition to "--option value".
20645         (builddir): New.
20646         (--builddir): New option.
20647         * top/README-release: Document this.
20648         Reword slightly so that the reader cannot understand that he
20649         has to do these steps before calling do-release-commit-and-tag.
20651 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20653         readme-release: also require announce-gen and maintainer-makefile
20654         * modules/readme-release (Depends-on): here.
20655         * modules/announce-gen, modules/do-release-commit-and-tag,
20656         modules/gnu-web-doc-update, modules/maintainer-makefile
20657         (Description): Point to readme-release.
20659 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20661         maint.mk: fix VPATH issues.
20662         * top/maint.mk (news-check): GNU Make understand $< very well.
20663         (release-prep): NEWS is in $(srcdir).
20665 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20667         readme-release: require the promoted modules.
20668         * modules/readme-release (Depends-on): Add
20669         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20670         in this text.
20672 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20673             Bruno Haible  <bruno@clisp.org>
20675         error, strerror-override: Support mingw64 from Fedora 17.
20676         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20677         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20678         EINPROGRESS.
20679         * lib/strerror-override.h (strerror_override): Test it.
20680         * lib/strerror-override.c (strerror_override): Likewise.
20681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20683 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20684             Bruno Haible  <bruno@clisp.org>
20686         error, strerror-override: Support mingw64 from Fedora 17.
20687         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20688         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20689         * lib/strerror-override.h (strerror_override): Test it.
20690         * lib/strerror-override.c (strerror_override): Likewise.
20692 2012-06-03  Bruno Haible  <bruno@clisp.org>
20694         error, strerror-override: Support new errno values from POSIX:2008.
20695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20696         ENOTRECOVERABLE.
20697         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20698         platforms.
20699         * lib/strerror-override.c (strerror_override): Conditionalize the
20700         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20701         * lib/strerror-override.h (strerror_override): Declare also if
20702         GNULIB_defined_EOWNERDEAD is defined.
20703         * tests/test-errno.c (e130, e131): New variables.
20704         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20705         ENOTRECOVERABLE.
20706         Reported by Paolo Bonzini.
20708 2012-05-31  Jim Meyering  <meyering@redhat.com>
20710         savewd: add missing dependency on sys_wait module
20711         * modules/savewd (Depends-on): Add sys_wait, needed at least
20712         for MSVC.  Report and suggested change by Michael Goffioul.
20714 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20716         system-quote-tests: port to CentOS 5
20717         Problem reported by Tom G. Christensen in
20718         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20719         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20721 2012-05-29  Jim Meyering  <meyering@redhat.com>
20723         maint: fix typos in comments and ChangeLog
20724         Culprits identified and fixed mostly automatically using these commands:
20725         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20726         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20727         using http://github.com/lyda/misspell-check
20728         * ChangeLog: Fix typos.
20729         * doc/solaris-versions: Likewise.
20730         * lib/regexec.c (re_search_stub): Likewise.
20731         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20733 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20735         manywarnings: remove duplicate -Wmultichar entry
20736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20737         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20738         so keep the entry marked as documented.
20740 2012-05-27  Karl Berry  <karl@gnu.org>
20742         * config/srclist.txt (mktime.c): remove last libc sync,
20743         perhaps just temporarily.
20745 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20747         regex: don't assume uint64_t or uint32_t
20748         * lib/regcomp.c (init_word_char): Don't assume that the types
20749         uint64_t and uint32_t exist.  The C standard doesn't guarantee
20750         them, and on some 32-bit compilers there is no uint64_t.
20751         Problem reported by Gianluigi Tiesi in
20752         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
20754 2012-05-25  Jim Meyering  <meyering@redhat.com>
20756         maint.mk: add strncpy-prohibiting syntax-check rule
20757         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
20759 2012-05-24  Jim Meyering  <meyering@redhat.com>
20761         maint.mk: compute $(gpg_key_ID) more portably
20762         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
20763         That use of sed is not portable to some fringe systems.
20764         Reported by Paul Eggert in
20765         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
20767 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20769         mktime: sync from glibc
20770         * config/srclist.txt: Uncomment mktime.c.
20771         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
20772         First, indent with tabs, since glibc uses tabs and doesn't want to
20773         change and we'd rather be identical to glibc.  Also, two small
20774         coding changes:
20775         (isdst_differ): Use &&, not &, as && is the usual style.
20776         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
20777         for clarity.
20779 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20781         announce-gen: du -h is more portable than du --human
20782         * build-aux/announce-gen (sizes): Invoke du with -h instead
20783         of --human.  Accept leading white space in its output.
20785 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20787         announce-gen: Improve diagnostics.
20788         * build-aux/announce-gen: When parsing command line options,
20789         prefer "announce-gen: option --release-type requires an argument"
20790         to "Option release-type requires an argument".
20792 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20794         maint.mk: gpg_key_ID: use sed more portably
20795         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
20796         the closing brace.
20797         (refresh-po): Fuse two sed invocations into one.
20799 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
20801         gitlog-to-changelog: support the log message format used in Bison.
20802         * build-aux/gitlog-to-changelog: Support --strip-tab and
20803         --strip-cherry-picked.
20805 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20807         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
20808         the rest of the current time slice to another thread in the current
20809         process. So if the thread that feeds the file decscriptor we're
20810         polling is not in the current process, we get busy-waiting.
20811         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
20812         Patch from Theodore Leblond.
20813         * lib/select.c: Split polling out of the loop that sets the output
20814         fd_sets.  Check for zero result and loop if the wait timeout is
20815         infinite.
20817 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20819         select: Fix build error on IRIX 6.5.
20820         * lib/select.c: Include stddef.h for NULL.
20822 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20824         gc: fix libgcrypt detection on older machines.
20825         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
20826         copyright years because the file has been distributed every year
20827         since it was created.
20829 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20831         crypto: fix bug in large buffer handling
20832         Problem reported by Serge Belyshev for glibc in
20833         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
20834         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
20835         * lib/md4.c (md4_process_block):
20836         * lib/md5.c (md5_process_block):
20837         * lib/sha1.c (sha1_process_block):
20838         * lib/sha256.c (sha256_process_block):
20839         Don't assume the buffer length is less than 2**32.
20840         * lib/sha512.c (sha512_process_block): Likewise.
20841         Here, the bug is present only in the rare case where the host does
20842         not support uint64_t or where size_t is wider than 64 bits.
20843         Use u64size to work around the problems.
20844         * lib/u64.h (u64size): New macro.
20846 2012-05-15  Pádraig Brady  <P@draigBrady.com>
20848         fsusage: fix block size returned on older Linux 2.6
20850         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
20851         which is available since Linux 2.6.
20852         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
20853         when the member is available so it can be used as a fallback.
20854         * doc/posix-functions/statvfs.texi: Mention the hang issue
20855         on Linux < 2.6.36.
20857 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20859         bootstrap: suppress stderr chatter
20860         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20861         Omit unnecessary chatter to stderr.  The main program chatter
20862         was there only inadvertantly.
20864         bootstrap: .gitignore files created by autopoint, libtool
20865         I ran into this problem when bootstrapping the latest diffutils.
20866         After './bootstrap', 'git status' reported lots of untracked files
20867         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20868         autopoint and do not need to be version-controlled.
20869         * build-aux/bootstrap: Put into .gitignore the files that
20870         autopoint and libtool create, by keeping track of files that exist
20871         after but not before these programs are run.
20872         (version_controlled_file): Move up.  2nd arg is now full file
20873         name, not base name; this is more convenient.  Put CVS at the end,
20874         as it's now somewhat deprecated.
20876 2012-05-14  Jim Meyering  <meyering@redhat.com>
20878         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20879         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20880         definition.  Reported by Bruno Haible.
20882 2012-05-13  Bruno Haible  <bruno@clisp.org>
20883             Paul Eggert  <eggert@cs.ucla.edu>
20885         binary-io: Define set_binary_mode function.
20886         * lib/binary-io.h (set_binary_mode): New function.
20887         (SET_BINARY): Define in terms of set_binary_mode.
20888         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20889         * tests/test-binary-io.c (main): Accept an argument, and test either
20890         set_binary_mode or SET_BINARY depending on the argument.
20891         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20892         argument. Clean up also t-bin-out0.tmp.
20894 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20896         bootstrap: take advantage of POSIX shell features
20898         The 'bootstrap' script offered by Gnulib script already uses POSIX
20899         shell features (like $((...)) arithmetic expansions) that are not
20900         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20901         means that bootstrap must already be run using a proper POSIX shell,
20902         which will thus provide more features, like ${var#pattern} parameter
20903         expansion or inversion of a command exit status with '!'.  We can
20904         thus use these features to improve the clarity and the performances
20905         of the bootstrap script.
20907         Suggested by Eric Blake.
20909         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20910         of sed/expr plus command substitutions, to save some forks.  While
20911         we are at it, prefer the POSIX $(...) form of command substitution,
20912         rather than the legacy form `...` (since the former is visually
20913         clearer and interacts better with quoting), and prefer the idiom:
20914           "if ! CMD; then ACTION ..."
20915         over the idiom:
20916           "if CMD; then :; else ACTION ..."
20917         which was required by legacy Bourne shells not supporting '!'.
20919 2012-05-12  Bruno Haible  <bruno@clisp.org>
20921         system-quote: Add more comments.
20922         * lib/system-quote.h: Add more comments about wilcards and limitations.
20923         Suggested by Eli Zaretskii <eliz@gnu.org>.
20925         sh-quote, system-quote: Add comments about wildcards.
20926         * lib/sh-quote.h: Clarify what happens with wildcard characters.
20927         * lib/system-quote.h: Likewise.
20928         Reported by Eli Zaretskii <eliz@gnu.org>.
20930 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20932         fsusage: check for GNU/Linux statvfs problem dynamically
20933         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
20934         Define STAT_STATFS2_BSIZE too, since in this case the code now
20935         checks dynamically whether statvfs is reliable, falling back on
20936         Linux-style statfs otherwise.
20937         (statvfs_works): New function, for dynamically testing statvfs.
20938         (get_fs_usage) [STAT_STATVFS]: Use it.
20939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
20940         statvfs on GNU/Linux hosts, since it's now done dynamically.
20942 2012-05-10  Bruno Haible  <bruno@clisp.org>
20944         system-quote, execute, spawn-pipe: Escape '?' on Windows.
20945         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
20946         '?' character.
20947         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
20948         * tests/test-system-quote-main.c (check_all): Check also strings like
20949         "??????????".
20950         Reported by Eli Zaretskii <eliz@gnu.org>.
20952 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20954         _Noreturn: port config.h to gcc -Wundef
20955         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
20956         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
20957         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
20959 2012-05-10  Bruno Haible  <bruno@clisp.org>
20961         system-quote: Refactor.
20962         * lib/system-quote.h (system_quote_copy): Fix comment.
20963         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
20964         New functions, extracted from system_quote_copy.
20965         (system_quote_length, system_quote_copy): Use these functions.
20966         Reported by Paul Eggert.
20968 2012-05-08  Bruno Haible  <bruno@clisp.org>
20970         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
20971         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
20973 2012-05-08  Bruno Haible  <bruno@clisp.org>
20975         Tests for module 'system-quote'.
20976         * modules/system-quote-tests: New file.
20977         * tests/test-system-quote.sh: New file.
20978         * tests/test-system-quote-main.c: New file.
20979         * tests/test-system-quote-child.c: New file.
20981         New module 'system-quote'.
20982         * lib/system-quote.h: New file.
20983         * lib/system-quote.c: New file.
20984         * modules/system-quote: New file.
20986 2012-05-08  Bruno Haible  <bruno@clisp.org>
20988         sh-quote: Make C++ safe and allow multiple inclusion.
20989         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
20990         declarations in extern "C".
20992 2012-05-08  Bruno Haible  <bruno@clisp.org>
20994         sh-quote tests: Make tests stricter.
20995         * tests/test-sh-quote.c (check_one): Check the return value of
20996         shell_quote_copy.
20997         (main): Check a string with a CR character. Check a string that
20998         contains UCHAR_MAX.
21000 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
21002         warnings.m4: provide a means to specify the program to compile.
21003         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
21004         (gl_WARN_ADD): here.
21005         Use gl_AS_VAR_APPEND.
21006         Support an argument to specify the program to compile.
21007         (gl_WARN_ADD): Accept an argument to specify the program to compile.
21008         AC_SUBST the WARN_CFLAGS when they are used.
21009         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
21010         leave this to gl_WARN_ADD.
21012 2012-05-08  Eric Blake  <eblake@redhat.com>
21014         doc: recommendations on gettext version
21015         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
21016         choice between versions.
21017         * DEPENDENCIES (gettext): Cover both approaches.
21019 2012-05-08  Jim Meyering  <meyering@redhat.com>
21021         init.sh: explain why EXEEXT support uses aliases rather than functions
21022         * tests/init.sh: Add a comment.
21024         init.sh: don't let bash aliases interfere with tests
21025         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
21026         is bash.  This avoids problems for those who alias standard commands to
21027         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
21028         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
21030 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21032         stdint: be more consistent with glibc, SunOS libc
21033         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
21034         (gl_int_fast16_t, gl_uint_fast16_t)
21035         (gl_int_fast32_t, gl_uint_fast32_t)
21036         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
21037         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
21038         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
21039         Be consistent with glibc by default, and with SunOS 5.10 and later
21040         if __sun is defined.  This lessens the likelihood of clashes if
21041         code compiled for older hosts is combined with code compiled for
21042         newer ones.  Problem reported by Niels Möller in
21043         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
21045 2012-05-07  Eric Blake  <eblake@redhat.com>
21047         isatty: relax license to LGPLv2+
21048         * modules/isatty (License): Relax license.
21050 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21052         stat-size: comment fix
21053         * lib/stat-size.h: Remove obsolete comment about indenting.
21055 2012-05-06  Bruno Haible  <bruno@clisp.org>
21057         Tests for module 'sh-quote'.
21058         * modules/sh-quote-tests: New file.
21059         * tests/test-sh-quote.c: New file.
21061 2012-05-06  Bruno Haible  <bruno@clisp.org>
21063         sh-quote: Improve shell_quote_argv's signature.
21064         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
21065         * lib/sh-quote.c (shell_quote_argv): Likewise.
21067 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21069         stdint: document issues with int_fast8_t etc.
21070         * doc/posix-headers/stdint.texi (stdint.h): Say that other
21071         stdint.h substitutes may define these types differently.  See
21072         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
21074 2012-05-05  Bruno Haible  <bruno@clisp.org>
21076         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
21077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
21078         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
21079         or 'guessing no (mishandles large arguments)'.
21081 2012-05-05  Bruno Haible  <bruno@clisp.org>
21083         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
21084         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
21085         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21086         set gl_cv_func_link_follows_symlink to "guessing no".
21088 2012-05-05  Bruno Haible  <bruno@clisp.org>
21090         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
21091         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
21092         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
21093         "guessing no".
21094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
21096 2012-05-05  Bruno Haible  <bruno@clisp.org>
21098         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
21099         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
21100         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21101         set gl_cv_struct_dirent_d_ino to "guessing yes".
21103 2012-05-05  Bruno Haible  <bruno@clisp.org>
21105         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
21106         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
21107         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
21108         "guessing yes".
21110 2012-05-05  Bruno Haible  <bruno@clisp.org>
21112         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
21113         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
21114         compiling to a glibc system, set gl_cv_func_signbit and
21115         gl_cv_func_signbit_gcc to "guessing yes".
21117 2012-05-05  Bruno Haible  <bruno@clisp.org>
21119         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
21120         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
21121         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
21122         to "guessing yes".
21123         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
21124         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
21126 2012-05-05  Bruno Haible  <bruno@clisp.org>
21128         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
21129         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
21130         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
21131         gl_cv_func_realpath_works to "guessing yes".
21133 2012-05-05  Bruno Haible  <bruno@clisp.org>
21135         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
21136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
21137         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
21139 2012-05-04  Bruno Haible  <bruno@clisp.org>
21141         Tweak last commit.
21142         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
21143         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21145 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
21147         unistd_h: make it easier to avoid sys_types_h
21148         This is useful for Emacs, which has its own method of porting to
21149         Windows, and which therefore does not need the sys_types_h module.
21150         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
21151         code moved here from gl_SYS_TYPES_H.
21152         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
21153         using the code directly.
21154         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
21155         gl_SYS_TYPES_H.
21156         * modules/sys_types (Files):
21157         * modules/unistd (Files): Add m4/off_t.m4.
21159 2012-05-03  Bruno Haible  <bruno@clisp.org>
21161         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
21162         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
21163         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
21164         "guessing yes" or "guessing no".
21165         (gl_FUNC_LSTAT): Update.
21166         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
21167         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
21168         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
21170 2012-05-03  Bruno Haible  <bruno@clisp.org>
21172         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
21173         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
21174         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
21175         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
21176         cross-compiling, choose the first alternative on glibc systems.
21177         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
21179 2012-05-03  Bruno Haible  <bruno@clisp.org>
21181         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
21182         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
21183         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
21185 2012-05-03  Bruno Haible  <bruno@clisp.org>
21187         chown: Avoid "guessing no" when cross-compiling to glibc systems.
21188         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
21190 2012-05-03  Bruno Haible  <bruno@clisp.org>
21192         Avoid "guessing no" guesses when cross-compiling to glibc systems.
21193         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
21194         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
21195         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
21196         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
21197         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
21198         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
21199         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
21200         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
21201         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
21202         compiling to glibc systems, set gl_cv_func_chown_slash_works,
21203         gl_cv_func_chown_ctime_works to "guessing yes".
21204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
21205         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
21206         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
21207         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
21208         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
21209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
21210         compiling to glibc systems, set gl_cv_func_open_directory_works to
21211         "guessing yes".
21212         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
21213         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
21214         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
21215         "guessing yes".
21216         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
21217         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
21218         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
21219         compiling to glibc systems, set gl_cv_func_floorf_ieee to
21220         "guessing yes".
21221         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
21222         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
21223         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
21224         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
21225         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
21226         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
21227         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
21228         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
21229         "guessing yes".
21230         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
21231         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
21232         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
21233         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
21234         "guessing yes".
21235         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
21236         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
21237         "guessing yes".
21238         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
21239         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
21240         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
21241         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
21242         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
21243         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
21244         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
21245         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
21246         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
21247         compiling to glibc systems, set gl_cv_func_log10f_ieee to
21248         "guessing yes".
21249         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
21250         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
21251         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
21252         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
21253         "guessing yes".
21254         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
21255         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
21256         "guessing yes".
21257         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
21258         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
21259         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
21260         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
21261         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
21262         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
21263         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
21264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
21265         compiling to glibc systems, set gl_cv_func_mkfifo_works to
21266         "guessing yes".
21267         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
21268         compiling to glibc systems, set gl_cv_func_mknod_works to
21269         "guessing yes".
21270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
21271         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
21272         "guessing yes".
21273         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
21274         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
21275         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
21276         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
21277         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
21278         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
21279         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
21280         compiling to glibc systems, set gl_cv_func_svid_putenv to
21281         "guessing yes".
21282         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
21283         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
21284         "guessing yes".
21285         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
21286         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
21287         "guessing yes".
21288         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
21289         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
21290         to "guessing yes".
21291         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
21292         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
21293         to "guessing yes".
21294         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
21295         compiling to glibc systems, set gl_cv_func_rmdir_works to
21296         "guessing yes".
21297         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
21298         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
21299         gl_cv_func_unlink_parent_fails to "guessing yes".
21300         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
21301         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
21302         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
21303         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
21304         gl_cv_func_rename_dest_works to "guessing yes".
21305         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
21306         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
21307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
21308         compiling to glibc systems, set gl_cv_func_roundf_ieee to
21309         "guessing yes".
21310         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
21311         compiling to glibc systems, set gl_cv_func_roundl_ieee to
21312         "guessing yes".
21313         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
21314         compiling to glibc systems, set gl_cv_func_setenv_works to
21315         "guessing yes".
21316         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
21317         compiling to glibc systems, set gl_cv_func_unsetenv_works to
21318         "guessing yes".
21319         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
21320         compiling to glibc systems, set gl_cv_func_sleep_works to
21321         "guessing yes".
21322         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
21323         compiling to glibc systems, set gl_cv_func_stat_file_slash to
21324         "guessing yes".
21325         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
21326         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
21327         "guessing yes".
21328         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
21329         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
21330         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
21331         compiling to glibc systems, set gl_cv_func_truncf_ieee to
21332         "guessing yes".
21333         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
21334         compiling to glibc systems, set gl_cv_func_truncl_ieee to
21335         "guessing yes".
21336         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
21337         compiling to glibc systems, set gl_cv_func_usleep_works to
21338         "guessing yes".
21339         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
21340         compiling to glibc systems, set gl_cv_func_futimesat_works to
21341         "guessing yes".
21343 2012-05-03  Bruno Haible  <bruno@clisp.org>
21345         Say "guessing yes" or "guessing no" when cross-compiling.
21346         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
21347         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
21348         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
21349         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
21350         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
21351         am_cv_func_working_getline to "guessing yes" or "guessing no".
21352         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
21353         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
21354         (gl_FUNC_MEMMEM): When cross-compiling, set
21355         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
21356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
21357         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
21358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
21359         set gl_cv_func_strcasestr_works_always to "guessing yes" or
21360         "guessing no".
21361         (gl_FUNC_STRCASESTR): When cross-compiling, set
21362         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
21363         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
21364         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
21365         (gl_FUNC_STRSTR): When cross-compiling, set
21366         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
21367         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
21368         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
21369         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
21370         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
21372 2012-05-01  Bruno Haible  <bruno@clisp.org>
21374         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
21375         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
21376         * build-aux/reloc-ldflags: Likewise.
21377         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
21379 2012-05-01  Bruno Haible  <bruno@clisp.org>
21381         gnulib-tool: Remove transitional code.
21382         * gnulib-tool: Don't warn about --import with 0 arguments any more.
21383         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21385 2012-05-01  Bruno Haible  <bruno@clisp.org>
21387         getcwd: Fix misindentation.
21388         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
21390 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21392         exclude: process exclude and include directives in order
21393         This restores the pre-2009 behavior, and is part of a fix of a
21394         grep bug reported by Quentin Arce in
21395         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
21396         * lib/exclude.c (struct exclude): Remove 'tail' member.
21397         (new_exclude_segment): Prepend the new segment instead of appending.
21398         Return void, since that's now more convenient.
21399         (file_pattern_matches): Renamed from excluded_file_pattern_p.
21400         (file_name_matches): Renamed from excluded_file_name_p.
21401         (file_pattern_matches, file_name_matches):
21402         Return true if the pattern matches, not if it excludes.
21403         All callers changed.
21404         (excluded_file_name): Process the list in reverse order;
21405         since the list is now reversed this restores the pre-2009 behavior.
21406         (add_exclude): Adjust to new reversed-order list.  Use local var
21407         rather than macro, for clarity.
21408         * tests/test-exclude7.sh: Adjust to corrected behavior.
21410         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
21411         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
21412         it's not possible here.  Handle the case of \ at end of pattern
21413         without dumping core.
21414         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
21416         _Noreturn: future-proof non-GNU and non-MSVC compilers
21417         * build-aux/snippet/_Noreturn.h (_Noreturn):
21418         * m4/gnulib-common.m4 (gl_COMMON_BODY):
21419         Do not define _Noreturn if __STDC_VERSION__ indicates this is
21420         C11 or later.  This is more likely to work with random future C
21421         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
21422         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
21424         exclude: handle wildcards with FNM_EXTMATCH
21425         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
21426         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
21427         comment that "has wildcards" really means "has or may have
21428         wildcards".  Simplify by avoiding the need to call strcspn.
21430 2012-04-29  Bruno Haible  <bruno@clisp.org>
21432         gnulib-tool: Fix list of authors.
21433         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
21435 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
21437         bootstrap: support Automake-NG in $buildreq
21438         * bootstrap (check_versions): Handle automake and aclocal from
21439         Automake-NG specially.  They can be specified as respectively
21440         the "automake-ng" and "aclocal-ng" requirements.
21442 2012-04-25  Eric Blake  <eblake@redhat.com>
21444         bootstrap: only force latest Makefile.in.in for gettext module
21445         * build-aux/bootstrap (with_gettext): Only install latest
21446         Makefile.in.in for projects requesting bleeding edge gettext.
21448 2012-04-22  Bruno Haible  <bruno@clisp.org>
21450         doc: Mention reason for replacement on glibc/Linux systems.
21451         * doc/posix-functions/dprintf.texi: Mention the problem with special
21452         'long double' values.
21453         * doc/posix-functions/fprintf.texi: Likewise.
21454         * doc/posix-functions/printf.texi: Likewise.
21455         * doc/posix-functions/snprintf.texi: Likewise.
21456         * doc/posix-functions/sprintf.texi: Likewise.
21457         * doc/posix-functions/vdprintf.texi: Likewise.
21458         * doc/posix-functions/vfprintf.texi: Likewise.
21459         * doc/posix-functions/vprintf.texi: Likewise.
21460         * doc/posix-functions/vsnprintf.texi: Likewise.
21461         * doc/posix-functions/vsprintf.texi: Likewise.
21462         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
21463         platforms with F_DUPFD_CLOEXEC problems.
21464         * doc/posix-functions/glob.texi: Mention which platforms are affected
21465         by the problem with symbolic links.
21466         * doc/posix-functions/linkat.texi: Mention the problem with
21467         AT_SYMLINK_FOLLOW on Linux.
21469 2012-04-22  Bruno Haible  <bruno@clisp.org>
21471         pwrite: Don't replace on all platforms.
21472         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
21474 2012-04-22  Bruno Haible  <bruno@clisp.org>
21476         rint* tests: Avoid gcc warnings.
21477         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
21478         * tests/test-rintf.c (INFINITY, NAN): Likewise.
21479         * tests/test-rintl.c (INFINITY, NAN): Likewise.
21481 2012-04-21  Bruno Haible  <bruno@clisp.org>
21483         users.txt: Update.
21484         * users.txt: Add freedink, wdiff. Update URLs for projects that have
21485         switched from CVS to git, bzr, or svn.
21487 2012-04-21  Bruno Haible  <bruno@clisp.org>
21489         Large File Support for native Windows platforms.
21491         * m4/largefile.m4 (gl_LARGEFILE): New macro.
21492         * modules/largefile (configure.ac): Require gl_LARGEFILE.
21494         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
21495         type.
21496         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
21497         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
21498         * doc/posix-headers/sys_types.texi: Mention the effect of the
21499         'largefile' module.
21501         * lib/fcntl.in.h: Add comments about off_t.
21502         * modules/fcntl-h (Depends-on): Add sys_types.
21504         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
21505         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
21506         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
21507         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
21508         * modules/unistd (Depends-on): Add sys_types.
21509         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
21511         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
21512         instead of lseek.
21513         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
21514         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
21515         * modules/lseek (Depends-on): Add sys_types.
21517         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
21518         msvc-nothrow.h.
21519         (SetFileSize): New function.
21520         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
21521         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
21522         if Large File Support is requested.
21523         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
21524         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
21526         * lib/stdio.in.h: Add comments about off_t.
21527         * modules/stdio (Depends-on): Add sys_types.
21529         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
21530         instead of ftello.
21531         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
21532         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
21533         (gl_PREREQ_FTELLO): New macro.
21534         * modules/ftello (Depends-on): Add sys_types.
21535         (configure.ac): Incoke gl_PREREQ_FTELLO.
21537         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
21538         instead of fseeko.
21539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
21540         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
21541         (gl_PREREQ_FSEEKO): New macro.
21542         * modules/fseeko (Depends-on): Add sys_types.
21543         (configure.ac): Invoke gl_PREREQ_FSEEKO.
21545         * lib/sys_stat.in.h: Add comments about off_t.
21546         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
21547         64-bit integer for st_size in 'struct stat'.
21548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
21549         Define _GL_WINDOWS_64_BIT_ST_SIZE.
21550         * modules/sys_stat (Depends-on): Add sys_types.
21551         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
21553         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
21554         instead of stat or _stat.
21556         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
21557         'struct _stati64' instead of fstat and 'struct stat'.
21558         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
21559         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
21561         Reported by Ray Satiro <raysatiro@yahoo.com>.
21563 2012-04-19  Eric Blake  <eblake@redhat.com>
21565         bootstrap: accommodate older libtool
21566         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
21567         Reported by Daniel P. Berrange.
21569 2012-04-19  Jim Meyering  <meyering@redhat.com>
21571         announce-gen: avoid failure due to lack of Digest::SHA1
21572         Even with the preferred Digest::SHA available, this script
21573         would fail when the backup module, Digest::SHA1, was not installed.
21574         * build-aux/announce-gen: Quote the conditional use of "use".
21575         Reported by Reuben Thomas in:
21576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
21578         bootstrap: don't let a user's CDPATH setting affect this script
21579         When CDPATH is set, cd will sometimes generate output.
21580         When "cd" is run in a subshell whose output matters, that
21581         surprising-to-some output can cause malfunction.
21582         Unsetting CDPATH turns off this shell "feature."
21583         * build-aux/bootstrap (CDPATH): Unset.
21584         Reported by Reuben Thomas in:
21585         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
21586         and inspired by his patch here:
21587         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
21589 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
21590         and Jim Meyering  <meyering@redhat.com>
21592         maint.mk: catch "see @xref{}" and similar
21593         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21594         prohibit "See also @xref{", "Also see @pxref{", and similar.
21596 2012-04-16  Jim Meyering  <meyering@redhat.com>
21598         bootstrap: really use gnulib's po/Makefile.in.in
21599         * build-aux/bootstrap: Correct the source file name in previous change.
21600         Reported by Akim Demaille.
21602         configmake: correct minor inconsistency in Makefile rule
21603         * modules/configmake (Makefile.am): All other rules like this one
21604         run the final "mv -f ..." in the same backslash-continued command
21605         as the one that does everything else.  This one put the mv -f ...
21606         command on a separate, non-backslash-continued line.
21607         Make it like the others.
21609         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21610         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21611         the one from gettext.  Reported by Akim Demaille.
21613 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21615         Fix recursion of install-* into po directories.
21616         Bison's install-pdf bug reported by Hans Aberg at
21617         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21618         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21619         (install-info, install-pdf, install-ps): New targets.
21621 2012-04-16  Jim Meyering  <meyering@redhat.com>
21623         maint: avoid spurious "make sc_maint" failure
21624         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21625         exempt all *.class file names, for lib/javaversion.class.
21627 2012-04-15  Bruno Haible  <bruno@clisp.org>
21629         lseek: Make configure test independent of environment.
21630         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21631         Windows, we know that lseek() on pipes is broken; skip the runtime
21632         test.
21634 2012-04-14  Bruno Haible  <bruno@clisp.org>
21636         stat: Bypass buggy override in mingw64.
21637         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21638         * lib/stat.c (stat) [mingw64]: Define to _stat.
21639         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21641 2012-04-14  Bruno Haible  <bruno@clisp.org>
21643         pathmax: Fix compilation error on MSVC 9.
21644         * modules/pathmax (Depends-on): Add unistd.
21646 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21648         README: document pointer comparison assumption
21649         * README (Portability guidelines): Document assumption about
21650         pointer comparisons, in response to a recent bug-gnulib comment by
21651         Jeffrey Kegler.
21653 2012-04-12  Bruno Haible  <bruno@clisp.org>
21655         Tests for module 'getrusage'.
21656         * modules/getrusage-tests: New file.
21657         * tests/test-getrusage.c: New file.
21659         New module 'getrusage'.
21660         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21661         warn-on-use.h.
21662         (getrusage): New declaration.
21663         * lib/getrusage.c: New file.
21664         * m4/getrusage.m4: New file.
21665         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21666         is declared.
21667         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21668         HAVE_GETRUSAGE.
21669         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21670         snippet/c++defs, snippet/warn-on-use.
21671         (Makefile.am): Update generation of sys/resource.h. Substitute
21672         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21673         * modules/getrusage: New file.
21674         * doc/posix-functions/getrusage.texi: Mention the new module.
21676 2012-04-12  Bruno Haible  <bruno@clisp.org>
21678         Tests for module 'sys_resource'.
21679         * modules/sys_resource-tests: New file.
21680         * tests/test-sys_resource.c: New file.
21682         New module 'sys_resource'.
21683         * lib/sys_resource.in.h: New file.
21684         * m4/sys_resource_h.m4: New file.
21685         * modules/sys_resource: New file.
21686         * doc/posix-headers/sys_resource.texi: Mention the new module.
21688 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21690         ioctl: Fix compilation error on mingw.
21691         * lib/ioctl.c: Include <windows.h>.
21692         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21694 2012-04-04  Jim Meyering  <meyering@redhat.com>
21696         regex: correct #pragma guard expression
21697         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21698         not 4.3.  Correct its cpp guard expression.
21700 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21702         regex: remove unnecessary type punning
21703         Problem reported by Vladimir Serbinenko in
21704         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21705         * lib/regex.h (struct re_pattern_buffer): Change the type of
21706         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21707         Fix comment to match code.
21708         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21709         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21710         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21711         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21712         (set_regs):
21713         Omit no-longer-necessary casts.
21715 2012-04-03  Bruno Haible  <bruno@clisp.org>
21717         Tests for module 'ilogbl'.
21718         * modules/ilogbl-tests: New file.
21719         * tests/test-ilogbl.c: New file.
21721         New module 'ilogbl'.
21722         * lib/math.in.h (ilogbl): New declaration.
21723         * lib/ilogbl.c: New file.
21724         * m4/ilogbl.m4: New file.
21725         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21727         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21728         Split sed invocation, to avoid the limit of 100 substitutions of
21729         HP-UX 'sed'.
21730         * modules/ilogbl: New file.
21731         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21732         * doc/posix-functions/ilogbl.texi: Mention the new module.
21734 2012-04-03  Bruno Haible  <bruno@clisp.org>
21736         Tests for module 'ilogbf'.
21737         * modules/ilogbf-tests: New file.
21738         * tests/test-ilogbf.c: New file.
21740         New module 'ilogbf'.
21741         * lib/math.in.h (ilogbf): New declaration.
21742         * lib/ilogbf.c: New file.
21743         * m4/ilogbf.m4: New file.
21744         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
21745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
21746         REPLACE_ILOGBF.
21747         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
21748         REPLACE_ILOGBF.
21749         * modules/ilogbf: New file.
21750         * tests/test-math-c++.cc: Check the declaration of ilogbf.
21751         * doc/posix-functions/ilogbf.texi: Mention the new module.
21753 2012-04-03  Bruno Haible  <bruno@clisp.org>
21755         Tests for module 'ilogb'.
21756         * modules/ilogb-tests: New file.
21757         * tests/test-ilogb.c: New file.
21758         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
21759         tests/test-logb-ieee.h.
21761         New module 'ilogb'.
21762         * lib/math.in.h (ilogb): New declaration.
21763         * lib/ilogb.c: New file.
21764         * m4/ilogb.m4: New file.
21765         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
21766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
21767         REPLACE_ILOGB.
21768         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
21769         REPLACE_ILOGB.
21770         * modules/ilogb: New file.
21771         * tests/test-math-c++.cc: Check the declaration of ilogb.
21772         * doc/posix-functions/ilogb.texi: Mention the new module.
21774 2012-04-03  Bruno Haible  <bruno@clisp.org>
21776         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
21777         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
21778         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
21779         (main): Check their values.
21780         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
21781         problem.
21783 2012-04-03  Bruno Haible  <bruno@clisp.org>
21785         Tests for module 'logbl-ieee'.
21786         * modules/logbl-ieee-tests: New file.
21787         * tests/test-logbl-ieee.c: New file.
21789         New module 'logbl-ieee'.
21790         * modules/logbl-ieee: New file.
21792         Tests for module 'logb-ieee'.
21793         * modules/logb-ieee-tests: New file.
21794         * tests/test-logb-ieee.c: New file.
21796         New module 'logb-ieee'.
21797         * modules/logb-ieee: New file.
21799         Tests for module 'logbf-ieee'.
21800         * modules/logbf-ieee-tests: New file.
21801         * tests/test-logbf-ieee.c: New file.
21802         * tests/test-logb-ieee.h: New file.
21804         New module 'logbf-ieee'.
21805         * modules/logbf-ieee: New file.
21807 2012-04-03  Bruno Haible  <bruno@clisp.org>
21809         Tests for module 'logbl'.
21810         * modules/logbl-tests: New file.
21811         * tests/test-logbl.c: New file.
21813         New module 'logbl'.
21814         * lib/math.in.h (logbl): New declaration.
21815         * lib/logbl.c: New file.
21816         * m4/logbl.m4: New file.
21817         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
21818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
21819         REPLACE_LOGBL.
21820         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
21821         REPLACE_LOGBL.
21822         * modules/logbl: New file.
21823         * tests/test-math-c++.cc: Check the declaration of logbl.
21824         * doc/posix-functions/logbl.texi: Mention the new module.
21826 2012-04-02  Bruno Haible  <bruno@clisp.org>
21828         Tests for module 'logbf'.
21829         * modules/logbf-tests: New file.
21830         * tests/test-logbf.c: New file.
21832         New module 'logbf'.
21833         * lib/math.in.h (logbf): New declaration.
21834         * lib/logbf.c: New file.
21835         * m4/logbf.m4: New file.
21836         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
21837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
21838         REPLACE_LOGBF.
21839         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
21840         REPLACE_LOGBF.
21841         * modules/logbf: New file.
21842         * tests/test-math-c++.cc: Check the declaration of logbf.
21843         * doc/posix-functions/logbf.texi: Mention the new module.
21845 2012-04-02  Bruno Haible  <bruno@clisp.org>
21847         logb tests: More tests.
21848         * tests/test-logb.h: New file, based on tests/test-logb.c and
21849         tests/test-frexp.h.
21850         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
21851         (main): Just invoke test_function.
21852         * modules/logb-tests (Files): Add tests/test-logb.h,
21853         tests/minus-zero.h, tests/randomd.c.
21854         (Makefile.am): Add randomd.c to test_logb_SOURCES.
21856         logb: Provide replacement and workarounds.
21857         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21858         is 1.
21859         * lib/logb.c: New file.
21860         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21861         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21863         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21864         * modules/logb (Files): Add lib/logb.c.
21865         (Depends-on): Add isfinite, frexp, isnand.
21866         (configure.ac): Compile the replacement code logb.c if needed.
21867         * tests/test-math-c++.cc: Check the declaration of logb.
21868         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21869         with subnormal numbers.
21871 2012-04-02  Bruno Haible  <bruno@clisp.org>
21873         log10* tests: Speed up.
21874         * tests/test-log10.h (test_function): Reduce amount of random numbers
21875         to test.
21877 2012-04-01  Bruno Haible  <bruno@clisp.org>
21879         logf-ieee: Fix test whether logf works.
21880         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21882 2012-04-01  Bruno Haible  <bruno@clisp.org>
21884         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21885         * lib/log10l.c: Include <float.h>
21886         (log10l): On IRIX, normalize the +Infinity value.
21887         * modules/log10l (Depends-on): Add 'float'.
21888         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21889         +Infinity.
21891         log10f-ieee: Work around test failure on NetBSD 5.1.
21892         * m4/log10f-ieee.m4: New file.
21893         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21894         test whether log10f works with a negative argument. Replace it if not.
21895         * lib/log10f.c (log10f): For negative arguments, return NaN.
21896         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21897         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21898         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21900         log10f-ieee: Work around test failure on Solaris 9.
21901         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21902         (configure.ac): Require gl_FUNC_LOG10F.
21904         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21905         * m4/log10-ieee.m4: New file.
21906         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21907         whether log10 works with a negative argument. Replace it if not.
21908         * lib/log10.c (log10): For negative arguments, return NaN.
21909         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21910         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21911         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21913         Tests for module 'log10l-ieee'.
21914         * modules/log10l-ieee-tests: New file.
21915         * tests/test-log10l-ieee.c: New file.
21917         New module 'log10l-ieee'.
21918         * modules/log10l-ieee: New file.
21920         Tests for module 'log10-ieee'.
21921         * modules/log10-ieee-tests: New file.
21922         * tests/test-log10-ieee.c: New file.
21924         New module 'log10-ieee'.
21925         * modules/log10-ieee: New file.
21927         Tests for module 'log10f-ieee'.
21928         * modules/log10f-ieee-tests: New file.
21929         * tests/test-log10f-ieee.c: New file.
21930         * tests/test-log10-ieee.h: New file.
21932         New module 'log10f-ieee'.
21933         * modules/log10f-ieee: New file.
21935 2012-04-01  Bruno Haible  <bruno@clisp.org>
21937         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
21938         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
21939         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
21940         workaround.
21941         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
21942         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
21943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
21944         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
21945         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
21946         (Depends-on): Update conditions.
21947         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
21948         IRIX 6.5, OSF/1 5.1 problems.
21950 2012-04-01  Bruno Haible  <bruno@clisp.org>
21952         log10f: Work around OSF/1 5.1 bug.
21953         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
21954         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21955         workaround.
21956         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
21957         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
21958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
21959         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
21960         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
21961         (Depends-on): Update conditions.
21962         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
21964 2012-04-01  Bruno Haible  <bruno@clisp.org>
21966         log10: Work around OSF/1 5.1 bug.
21967         * lib/math.in.h (log10): New declaration.
21968         * lib/log10.c: New file.
21969         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
21970         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
21971         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
21972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
21973         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
21974         * modules/log10 (Files): Add lib/log10.c.
21975         (Depends-on): Add math.
21976         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
21977         * tests/test-math-c++.cc: Check the declaration of log10.
21978         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
21980 2012-03-31  Bruno Haible  <bruno@clisp.org>
21982         log10l tests: More tests.
21983         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21984         tests/minus-zero.h, tests/randoml.c.
21985         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
21986         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
21987         (main): Invoke test_function.
21989         log10f tests: More tests.
21990         * modules/log10f-tests (Files): Add tests/test-log10.h,
21991         tests/minus-zero.h, tests/randomf.c.
21992         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
21993         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
21994         (main): Invoke test_function.
21996         log10 tests: More tests.
21997         * tests/test-log10.h: New file.
21998         * modules/log10-tests (Files): Add tests/test-log10.h,
21999         tests/minus-zero.h, tests/randomd.c.
22000         (Makefile.am): Add randomd.c to test_log10_SOURCES.
22001         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
22002         (main): Invoke test_function.
22004 2012-03-31  Simon Josefsson  <simon@josefsson.org>
22006         fflush: Fix syntax error.
22007         * lib/fflush.c: Include unused-parameter.h, needed for
22008         _GL_UNUSED_PARAMETER.
22009         * modules/fflush (Depends-on): Add snippet/unused-parameter.
22011 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22013         regex: pacify GCC when compiling GRUB
22014         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
22015         a diagnostic.  Reported by Vladimir Serbinenko in
22016         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
22018 2012-03-29  Eric Blake  <eblake@redhat.com>
22020         stdio: don't assume gets any more
22021         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
22022         support.
22023         * modules/stdio (Makefile.am): Likewise.
22024         * lib/stdio-read.c (gets): Likewise.
22025         * tests/test-stdio-c++.cc: Likewise.
22026         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
22027         * lib/stdio.in.h (gets): Make warning occur in more places.
22028         * doc/posix-functions/gets.texi (gets): Update documentation.
22029         Reported by Christer Solskogen.
22031         maint.mk: fix syntax checks without exclusions
22032         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
22033         Reported by Daniel P. Berrange.
22035         strerror_r: avoid compiler warning
22036         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
22037         level.
22039         fflush: avoid compiler warning
22040         * lib/fflush.c (update_fpos_cache): Mark variables that are
22041         potentially unused.
22043 2012-03-25  Bruno Haible  <bruno@clisp.org>
22045         Tests for module 'localeconv'.
22046         * modules/localeconv-tests: New file.
22047         * tests/test-localeconv.c: New file.
22049         New module 'localeconv'.
22050         * lib/locale.in.h (localeconv): New declaration.
22051         * lib/localeconv.c: New file.
22052         * m4/localeconv.m4: New file.
22053         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
22054         REPLACE_LOCALECONV.
22055         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
22056         REPLACE_LOCALECONV.
22057         * modules/localeconv: New file.
22058         * modules/nl_langinfo (Depends-on): Add localeconv.
22059         * modules/human (Depends-on): Likewise.
22060         * doc/posix-functions/localeconv.texi: Mention the new module.
22062 2012-03-25  Bruno Haible  <bruno@clisp.org>
22064         locale: Provide a complete 'struct lconv'.
22065         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22066         'struct lconv' does not contain int_p_cs_precedes.
22067         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22068         * doc/posix-headers/locale.texi: Update.
22070         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
22071         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
22072         * doc/posix-headers/locale.texi: Update.
22074         locale: Provide a working 'struct lconv'.
22075         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
22076         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22077         'struct lconv' does not even contain decimal_point.
22078         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
22079         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
22080         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22081         * doc/posix-headers/locale.texi: Mention the problems with
22082         'struct lconv'.
22083         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22085 2012-03-24  Bruno Haible  <bruno@clisp.org>
22087         Enable common subexpression optimization in GCC.
22088         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
22089         macros.
22090         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
22091         GCC attribute 'const'.
22092         (uc_locale_language): Declare with GCC attribute 'pure'.
22093         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
22094         with GCC attribute 'const'.
22095         * lib/unictype.in.h (uc_is_general_category_withtable,
22096         uc_combining_class, uc_combining_class_name,
22097         uc_combining_class_long_name, uc_bidi_class_name,
22098         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
22099         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
22100         uc_decimal_value, uc_digit_value, uc_numeric_value,
22101         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
22102         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
22103         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
22104         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
22105         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
22106         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
22107         Declare with GCC attribute 'const'.
22108         (uc_general_category_name, uc_general_category_long_name,
22109         uc_general_category_byname, uc_general_category,
22110         uc_is_general_category, uc_combining_class_byname,
22111         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
22112         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
22113         Declare with GCC attribute 'pure'.
22114         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
22115         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
22116         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
22117         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
22118         with GCC attribute 'pure'.
22119         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
22120         'const'.
22121         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
22122         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
22123         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
22124         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
22125         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
22126         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
22127         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
22128         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
22129         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
22130         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
22131         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
22132         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
22133         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
22134         GCC attribute 'pure'.
22135         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
22136         'const'.
22137         * lib/uniwidth.in.h (uc_width): Simplify declaration.
22138         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
22139         u32_strwidth): Declare with GCC attribute 'pure'.
22141         Enable common subexpression optimization in GCC.
22142         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22143         (alphasort): Declare with GCC attribute 'pure'.
22144         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22145         (atoll): Declare with GCC attribute 'pure'.
22146         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22147         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22148         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
22149         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22150         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
22151         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
22152         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
22154 2012-03-24  Bruno Haible  <bruno@clisp.org>
22156         gnulib-tool: Avoid unintended error output from 'cmp'.
22157         * gnulib-tool (func_add_file, func_update_file, func_import): Use
22158         "cmp -s", not "cmp > /dev/null".
22160 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
22162         gnulib-tool: fix imprecise comments w.r.t. an automake bug
22164         It's not just Automake versions < 1.9b that creates an empty
22165         pkgdatadir at installation time if pkgdata_DATA is specified
22166         to empty; modern automake versions do this as well, at least
22167         until automake 1.11.4 (not yet released at the moment of writing,
22168         but soon to appear).  That behaviour was generally considered a
22169         feature rather than a bug, at least until this discussion:
22170         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
22172         See also automake bugs #10997 and #11030.
22174         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
22175         reference to relevant automake bug numbers.
22176         (func_emit_tests_Makefile_am): Likewise.
22178 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22180         announce-gen: use Digest::SHA when possible
22181         * build-aux/announce-gen: Use Digest::SHA when possible, falling
22182         back to Digest::SHA1 if necessary.
22184 2012-03-20  Jim Meyering  <meyering@redhat.com>
22186         tests: avoid gcc warnings about argv vs. const initializers
22187         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
22188         warnings about discarding 'const' qualifier from pointer target type.
22189         * tests/test-posix_spawn2.c (main): Likewise.
22191 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22193         README-release: simplify slightly
22194         * top/README-release: Run "git checkout master" only once.
22196 2012-03-15  Mark Wielaard  <mark@klomp.org>
22198         git-merge-changelog: add specific example on how to use with hg.
22199         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
22201 2012-03-18  Mark Wielaard  <mark@klomp.org>
22203         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
22205 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
22207         git-version-gen: don't let "prefix" envvar cause trouble
22208         * build-aux/git-version-gen (prefix): Initialize properly,
22209         so as not to use a value specified via the environment.
22210         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
22212 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22214         regex: diagnose too-large repeat counts in EREs
22215         Previously, the code did not diagnose the too-large repeat count
22216         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
22217         as if it were 'b\{1000000000}', which is unexpected.
22218         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
22219         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
22220         is a reasonable one for this problem.  Another option would be to
22221         create a new REG_OVERFLOW error for repeat counts that are too large.
22222         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
22223         count is too large, so that the caller can distinguish the two cases.
22224         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
22225         "Too large" return code, and that repeat counts are one example of this.
22227 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22229         doc: some glibc x32 integer width issues
22230         * doc/posix-headers/sys_types.texi (sys/types.h):
22231         * doc/posix-headers/time.texi (time.h):
22232         Mention that glibc x32 does not conform to POSIX in a couple of
22233         areas related to integer widths.
22235 2012-03-15  Bruno Haible  <bruno@clisp.org>
22237         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
22238         * lib/fma.c (VOLATILE): New macro.
22239         (FUNC): Use it to work around a GCC compiler bug.
22241 2012-03-13  Bruno Haible  <bruno@clisp.org>
22243         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22244         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
22245         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
22246         REPLACE_HYPOTL to 1.
22247         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
22249 2012-03-13  Bruno Haible  <bruno@clisp.org>
22251         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
22253         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
22254         REPLACE_REMAINDERL to 1.
22255         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
22256         bug.
22258 2012-03-13  Bruno Haible  <bruno@clisp.org>
22260         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22261         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
22262         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
22263         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
22264         too big rounding errors.
22265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
22266         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
22267         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
22268         (Depends-on): Update conditions.
22269         * tests/test-sqrtl.c (my_ldexpl): New function.
22270         (main): Add test of a particular value.
22271         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22273 2012-03-13  Pádraig Brady  <P@draigBrady.com>
22275         doc: Update timer_* platform portability notes.
22276         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
22277         that always return ENOSYS.
22278         * doc/posix-functions/timer_delete.texi: Likewise.
22279         * doc/posix-functions/timer_gettime.texi: Likewise.
22280         * doc/posix-functions/timer_settime.texi: Likewise.
22282 2012-03-13  Bruno Haible  <bruno@clisp.org>
22284         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22285         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
22286         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
22287         REPLACE_CBRTL to 1.
22288         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22290 2012-03-13  Bruno Haible  <bruno@clisp.org>
22292         remainderl: Avoid compilation error on AIX >= 5.2.
22293         * lib/math.in.h (remainderl): Undefine macro from the system header.
22295 2012-03-13  Bruno Haible  <bruno@clisp.org>
22297         Avoid compilation errors with MSVC option -fp:strict.
22298         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
22299         * lib/cbrtf.c: Likewise.
22300         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22302 2012-03-12  Bruno Haible  <bruno@clisp.org>
22304         uninorm: Don't crash in out-of-memory conditions.
22305         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
22306         gracefully.
22307         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
22308         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
22310 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
22312         quote: fix syntax-check
22313         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
22314         also exports quote_quoting_options.
22316 2012-03-12  Simon Josefsson  <simon@josefsson.org>
22318         Collapse list of copyright years to ranges.  See
22319         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
22320         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
22321         build-aux/csharpexec.sh.in, build-aux/gnupload,
22322         build-aux/install-reloc, build-aux/javacomp.sh.in,
22323         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
22324         build-aux/move-if-change, build-aux/reloc-ldflags,
22325         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
22327 2012-03-11  Bruno Haible  <bruno@clisp.org>
22329         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22330         * m4/log2f-ieee.m4: New file.
22331         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
22332         whether log2f works with a minus zero argument. Replace it if not.
22333         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
22334         (Depends-on): Add log2-ieee.
22335         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
22336         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
22338         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22339         * m4/log2-ieee.m4: New file.
22340         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
22341         whether log2 works with a minus zero argument. Replace it if not.
22342         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
22343         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
22344         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
22346         Tests for module 'log2l-ieee'.
22347         * modules/log2l-ieee-tests: New file.
22348         * tests/test-log2l-ieee.c: New file.
22350         New module 'log2l-ieee'.
22351         * modules/log2l-ieee: New file.
22353         Tests for module 'log2-ieee'.
22354         * modules/log2-ieee-tests: New file.
22355         * tests/test-log2-ieee.c: New file.
22357         New module 'log2-ieee'.
22358         * modules/log2-ieee: New file.
22360         Tests for module 'log2f-ieee'.
22361         * modules/log2f-ieee-tests: New file.
22362         * tests/test-log2f-ieee.c: New file.
22363         * tests/test-log2-ieee.h: New file.
22365         New module 'log2f-ieee'.
22366         * modules/log2f-ieee: New file.
22368 2012-03-11  Bruno Haible  <bruno@clisp.org>
22370         Tests for module 'log2l'.
22371         * modules/log2l-tests: New file.
22372         * tests/test-log2l.c: New file.
22374         New module 'log2l'.
22375         * lib/math.in.h (log2l): New declaration.
22376         * lib/log2l.c: New file.
22377         * m4/log2l.m4: New file.
22378         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
22379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
22380         REPLACE_LOG2L.
22381         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
22382         REPLACE_LOG2L.
22383         * modules/log2l: New file.
22384         * tests/test-math-c++.cc: Check the declaration of log2l.
22385         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
22386         and OSF/1 problems.
22388 2012-03-11  Bruno Haible  <bruno@clisp.org>
22390         Tests for module 'log2f'.
22391         * modules/log2f-tests: New file.
22392         * tests/test-log2f.c: New file.
22394         New module 'log2f'.
22395         * lib/math.in.h (log2f): New declaration.
22396         * lib/log2f.c: New file.
22397         * m4/log2f.m4: New file.
22398         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
22399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
22400         REPLACE_LOG2F.
22401         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
22402         REPLACE_LOG2F.
22403         * modules/log2f: New file.
22404         * tests/test-math-c++.cc: Check the declaration of log2f.
22405         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
22406         and OSF/1 and Cygwin problems.
22408 2012-03-11  Bruno Haible  <bruno@clisp.org>
22410         Tests for module 'log2'.
22411         * modules/log2-tests: New file.
22412         * tests/test-log2.c: New file.
22413         * tests/test-log2.h: New file.
22415         New module 'log2'.
22416         * lib/math.in.h (log2): New declaration.
22417         * lib/log2.c: New file.
22418         * m4/log2.m4: New file.
22419         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
22420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
22421         REPLACE_LOG2.
22422         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
22423         REPLACE_LOG2.
22424         * modules/log2: New file.
22425         * tests/test-math-c++.cc: Check the declaration of log2.
22426         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
22427         and OSF/1 and Cygwin problems.
22429 2012-03-11  Bruno Haible  <bruno@clisp.org>
22431         exp2* tests: More tests.
22432         * tests/test-exp2.h (test_function): Test all integral arguments that
22433         don't need to overflow or denormalized numbers.
22434         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
22435         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
22436         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
22438 2012-03-10  Bruno Haible  <bruno@clisp.org>
22440         log1pl-ieee: Work around test failure on AIX 7.1.
22441         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
22443         log1pl-ieee: Work around test failure on IRIX 6.5.
22444         * m4/log1pl-ieee.m4: New file.
22445         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
22446         test whether log1pl works with a minus zero argument. Replace it if
22447         not.
22448         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
22449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
22450         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
22451         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
22452         (Depends-on): Update conditions.
22453         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22454         m4/signbit.m4.
22455         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
22456         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
22458         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
22459         * m4/log1pf-ieee.m4: New file.
22460         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
22461         test whether log1pf works with a minus zero argument. Replace it if
22462         not.
22463         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
22464         m4/signbit.m4.
22465         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
22466         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
22468         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
22469         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
22470         (configure.ac): Require gl_FUNC_LOG1PF.
22472         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
22473         * m4/log1p-ieee.m4: New file.
22474         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
22475         whether log1p works with a minus zero argument. Replace it if not.
22476         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
22477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
22478         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
22479         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
22480         (Depends-on): Update conditions.
22481         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22482         m4/signbit.m4.
22483         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
22484         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
22486         Tests for module 'log1pl-ieee'.
22487         * modules/log1pl-ieee-tests: New file.
22488         * tests/test-log1pl-ieee.c: New file.
22490         New module 'log1pl-ieee'.
22491         * modules/log1pl-ieee: New file.
22493         Tests for module 'log1p-ieee'.
22494         * modules/log1p-ieee-tests: New file.
22495         * tests/test-log1p-ieee.c: New file.
22497         New module 'log1p-ieee'.
22498         * modules/log1p-ieee: New file.
22500         Tests for module 'log1pf-ieee'.
22501         * modules/log1pf-ieee-tests: New file.
22502         * tests/test-log1pf-ieee.c: New file.
22503         * tests/test-log1p-ieee.h: New file.
22505         New module 'log1pf-ieee'.
22506         * modules/log1pf-ieee: New file.
22508 2012-03-10  Bruno Haible  <bruno@clisp.org>
22510         Tests for module 'log1pl'.
22511         * modules/log1pl-tests: New file.
22512         * tests/test-log1pl.c: New file.
22514         New module 'log1pl'.
22515         * lib/math.in.h (log1pl): New declaration.
22516         * lib/log1pl.c: New file.
22517         * m4/log1pl.m4: New file.
22518         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
22519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
22520         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
22521         * modules/log1pl: New file.
22522         * tests/test-math-c++.cc: Check the declaration of log1pl.
22523         * doc/posix-functions/log1pl.texi: Mention the new module.
22525 2012-03-10  Bruno Haible  <bruno@clisp.org>
22527         Tests for module 'log1pf'.
22528         * modules/log1pf-tests: New file.
22529         * tests/test-log1pf.c: New file.
22531         New module 'log1pf'.
22532         * lib/math.in.h (log1pf): New declaration.
22533         * lib/log1pf.c: New file.
22534         * m4/log1pf.m4: New file.
22535         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
22536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
22537         REPLACE_LOG1PF.
22538         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
22539         REPLACE_LOG1PF.
22540         * modules/log1pf: New file.
22541         * tests/test-math-c++.cc: Check the declaration of log1pf.
22542         * doc/posix-functions/log1pf.texi: Mention the new module.
22544 2012-03-10  Bruno Haible  <bruno@clisp.org>
22546         log1p tests: More tests.
22547         * tests/test-log1p.h: New file.
22548         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
22549         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
22550         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
22551         (main): Invoke test_function.
22553         log1p: Provide replacement for Minix and MSVC.
22554         * lib/math.in.h (log1p): New declaration.
22555         * lib/log1p.c: New file.
22556         * m4/log1p.m4: New file.
22557         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
22558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
22559         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
22560         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
22561         (Depends-on): Add math, isnand, log, round.
22562         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
22563         HAVE_LOG1P is 0.
22564         * tests/test-math-c++.cc: Check the declaration of log1p.
22565         * doc/posix-functions/log1p.texi: Mention the replacement.
22567 2012-03-10  Bruno Haible  <bruno@clisp.org>
22569         math tests: Small simplification.
22570         * tests/test-exp.h (test_function): Use the same err_bound for
22571         'double' on platforms with sizeof (long double) == sizeof (double)
22572         than on platforms with sizeof (long double) > sizeof (double).
22573         * tests/test-exp2.h (test_function): Likewise.
22574         * tests/test-expm1.h (test_function): Likewise.
22575         * tests/test-log.h (test_function): Likewise.
22577 2012-03-10  Bruno Haible  <bruno@clisp.org>
22579         Fix some comments.
22580         * lib/expl.c: Fix an ambiguous comment.
22581         * lib/expm1.c: Likewise.
22582         * lib/expm1l.c: Likewise.
22583         * lib/exp2.c: Likewise.
22584         * lib/exp2l.c: Likewise.
22586 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
22588         regex: allow inclusion of <regex.h> before <limits.h>
22589         Without this patch, portable programs had to include <limits.h> before
22590         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
22591         I ran into this problem with a test version of GNU grep on Solaris 8.
22592         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
22593         This is done conditionally so that this change can be merged
22594         back to glibc.
22595         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22596         using the included regex.
22598         fts: depend on fdopendir
22599         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22600         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22601         problem was introduced when fdopendir was split out.
22603 2012-03-10  Bruno Haible  <bruno@clisp.org>
22605         Remove unused variables.
22606         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22607         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22609 2012-03-10  Bruno Haible  <bruno@clisp.org>
22611         isnanf-nolibm: Fix last commit.
22612         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22614         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22615         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22617 2012-03-10  Bruno Haible  <bruno@clisp.org>
22619         logf-ieee: Work around test failure on NetBSD 5.1.
22620         * m4/logf-ieee.m4: New file.
22621         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22622         whether logf works with a negative argument. Replace it if not.
22623         * lib/logf.c (logf): For negative arguments, return NaN.
22624         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22625         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22626         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22628         logf-ieee: Work around test failure on Solaris 9.
22629         * modules/logf-ieee (Depends-on): Add log-ieee.
22630         (configure.ac): Require gl_FUNC_LOGF.
22632         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22633         * m4/log-ieee.m4: New file.
22634         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22635         log works with a negative argument. Replace it if not.
22636         * lib/log.c (log): For negative arguments, return NaN.
22637         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22638         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22639         * doc/posix-functions/log.texi: Mention the log-ieee module.
22641         Tests for module 'logl-ieee'.
22642         * modules/logl-ieee-tests: New file.
22643         * tests/test-logl-ieee.c: New file.
22645         New module 'logl-ieee'.
22646         * modules/logl-ieee: New file.
22648         Tests for module 'log-ieee'.
22649         * modules/log-ieee-tests: New file.
22650         * tests/test-log-ieee.c: New file.
22652         New module 'log-ieee'.
22653         * modules/log-ieee: New file.
22655         Tests for module 'logf-ieee'.
22656         * modules/logf-ieee-tests: New file.
22657         * tests/test-logf-ieee.c: New file.
22658         * tests/test-log-ieee.h: New file.
22660         New module 'logf-ieee'.
22661         * modules/logf-ieee: New file.
22663 2012-03-10  Bruno Haible  <bruno@clisp.org>
22665         log: Fix bug introduced on 2012-03-09.
22666         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22668 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22670         timer-time: link explicitly with pthreads on glibc
22671         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22672         to support static linking, when newer glibc is
22673         detected, as that contains pthread emulation of
22674         POSIX timer functions where required.
22675         * modules/timer-time: Depend on threadlib to
22676         pull in the appropriate library to link.
22678 2012-03-10  Bruno Haible  <bruno@clisp.org>
22680         log* tests: More tests.
22681         * tests/test-log.h: New file.
22682         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22683         (main): Invoke test_function.
22684         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22685         (main): Invoke test_function.
22686         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22687         (main): Invoke test_function.
22688         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22689         tests/randomd.c.
22690         (Makefile.am): Add randomd.c to test_log_SOURCES.
22691         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22692         tests/randomf.c.
22693         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22694         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22695         tests/randoml.c.
22696         (Depends-on): Add 'float'.
22697         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22699 2012-03-09  Bruno Haible  <bruno@clisp.org>
22701         logl: Work around OSF/1 5.1 bug.
22702         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22703         * lib/logl.c (logl): If logl exists, use it and provide just the
22704         workaround.
22705         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22706         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22708         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22709         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22710         (Depends-on): Update conditions.
22711         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22713 2012-03-09  Bruno Haible  <bruno@clisp.org>
22715         logf: Work around OSF/1 5.1 bug.
22716         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22717         * lib/logf.c (logf): If logf exists, use it and provide just the
22718         workaround.
22719         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22720         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22722         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22723         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22724         (Depends-on): Update conditions.
22725         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22727 2012-03-09  Bruno Haible  <bruno@clisp.org>
22729         log: Work around OSF/1 5.1 bug.
22730         * lib/math.in.h (log): New declaration.
22731         * lib/log.c: New file.
22732         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22733         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22734         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22736         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22737         * modules/log (Files): Add lib/log.c.
22738         (Depends-on): Add math.
22739         (configure.ac): If REPLACE_LOG is 1, compile an override.
22740         * tests/test-math-c++.cc: Check the declaration of log.
22741         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22743 2012-03-09  Jim Meyering  <meyering@redhat.com>
22745         readtokens.c: adjust wording in a comment
22746         * lib/readtokens.c: Insert omitted "that" in a comment.
22748 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22750         modechange: add notations +40, 00440, etc.
22751         * lib/modechange.c (mode_compile): Support new notations
22752         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
22754 2012-03-08  Bruno Haible  <bruno@clisp.org>
22756         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
22757         * m4/exp2l-ieee.m4: New file.
22758         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
22759         test whether exp2l works with a NaN argument and with a negative
22760         infinity argument. Replace it if not.
22761         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
22762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
22763         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22764         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
22765         (Depends-on): Update conditions.
22766         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
22767         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
22768         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
22770         Tests for module 'exp2l-ieee'.
22771         * modules/exp2l-ieee-tests: New file.
22772         * tests/test-exp2l-ieee.c: New file.
22774         New module 'exp2l-ieee'.
22775         * modules/exp2l-ieee: New file.
22777         Tests for module 'exp2-ieee'.
22778         * modules/exp2-ieee-tests: New file.
22779         * tests/test-exp2-ieee.c: New file.
22781         New module 'exp2-ieee'.
22782         * modules/exp2-ieee: New file.
22784         Tests for module 'exp2f-ieee'.
22785         * modules/exp2f-ieee-tests: New file.
22786         * tests/test-exp2f-ieee.c: New file.
22787         * tests/test-exp2-ieee.h: New file.
22789         New module 'exp2f-ieee'.
22790         * modules/exp2f-ieee: New file.
22792 2012-03-08  Bruno Haible  <bruno@clisp.org>
22794         Tests for module 'exp2l'.
22795         * modules/exp2l-tests: New file.
22796         * tests/test-exp2l.c: New file.
22798         New module 'exp2l'.
22799         * lib/math.in.h (exp2l): New declaration.
22800         * lib/exp2l.c: New file.
22801         * lib/expl-table.c: New file, extracted from lib/expl.c.
22802         * lib/expl.c (gl_expl_table): New declaration.
22803         (expl): Remove expl_table. Update reference.
22804         * m4/exp2l.m4: New file.
22805         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
22806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
22807         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
22808         * modules/exp2l: New file.
22809         * modules/expl (Files): Add lib/expl-table.c.
22810         (configure.ac): Compile also expl-table.c.
22811         * tests/test-math-c++.cc: Check the declaration of exp2l.
22812         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
22813         problem.
22815 2012-03-08  Bruno Haible  <bruno@clisp.org>
22817         Tests for module 'exp2f'.
22818         * modules/exp2f-tests: New file.
22819         * tests/test-exp2f.c: New file.
22821         New module 'exp2f'.
22822         * lib/math.in.h (exp2f): New declaration.
22823         * lib/exp2f.c: New file.
22824         * m4/exp2f.m4: New file.
22825         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
22826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
22827         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
22828         * modules/exp2f: New file.
22829         * tests/test-math-c++.cc: Check the declaration of exp2f.
22830         * doc/posix-functions/exp2f.texi: Mention the new module and the
22831         IRIX problem.
22833 2012-03-08  Bruno Haible  <bruno@clisp.org>
22835         Tests for module 'exp2'.
22836         * modules/exp2-tests: New file.
22837         * tests/test-exp2.c: New file.
22838         * tests/test-exp2.h: New file.
22840         New module 'exp2'.
22841         * lib/math.in.h (exp2): New declaration.
22842         * lib/exp2.c: New file.
22843         * m4/exp2.m4: New file.
22844         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
22845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
22846         REPLACE_EXP2.
22847         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
22848         REPLACE_EXP2.
22849         * modules/exp2: New file.
22850         * tests/test-math-c++.cc: Check the declaration of exp2.
22851         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
22852         and OpenBSD problems.
22854 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22856         savedir: fix comment typo
22857         * lib/savedir.c (savedirstream): Fix typo in comment.
22859 2012-03-08  Bruno Haible  <bruno@clisp.org>
22861         test-readtokens.c: use const; remove unwarranted cast
22862         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22864 2012-03-08  Bruno Haible  <bruno@clisp.org>
22866         fmal: Avoid compilation error on AIX.
22867         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22868         AIX 5.2..7.1.
22870 2012-03-08  Bruno Haible  <bruno@clisp.org>
22872         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22873         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22874         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22875         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22876         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22877         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22878         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22880 2012-03-08  Bruno Haible  <bruno@clisp.org>
22882         remainderf: Override buggy system function on IRIX 6.5.
22883         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22884         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22885         when it exists.
22886         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22888 2012-03-08  Jim Meyering  <meyering@redhat.com>
22890         test-readtokens.c: avoid const-related compilation warnings
22891         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22893 2012-03-07  Jim Meyering  <meyering@redhat.com>
22894             Bruno Haible  <bruno@clisp.org>
22896         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22897         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22898         tests/randomd.c.
22899         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22900         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22901         tests/randoml.c.
22902         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22904 2012-03-07  Bruno Haible  <bruno@clisp.org>
22906         expm1l: Avoid compilation error on AIX.
22907         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22908         AIX 5.2..7.1.
22910 2012-03-07  Bruno Haible  <bruno@clisp.org>
22912         expm1l: Don't override undeclared system function on IRIX 6.5.
22913         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22914         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22915         it exists. Set HAVE_DECL_EXPM1L.
22916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22917         HAVE_EXPM1L.
22918         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
22919         HAVE_EXPM1L.
22920         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
22922 2012-03-07  Bruno Haible  <bruno@clisp.org>
22924         remainderl: Don't override undeclared system function on IRIX 6.5.
22925         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
22926         HAVE_REMAINDERL.
22927         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
22928         declared when it exists. Set HAVE_DECL_REMAINDERL.
22929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
22930         not HAVE_REMAINDERL.
22931         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
22932         HAVE_REMAINDERL.
22933         * doc/posix-functions/remainderl.texi: Mention missing declaration
22934         problem.
22936 2012-03-07  Bruno Haible  <bruno@clisp.org>
22938         rintf: Don't override undeclared system function on IRIX 6.5.
22939         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
22940         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
22941         exists. Set HAVE_DECL_RINTF.
22942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
22943         HAVE_RINTF.
22944         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
22945         HAVE_RINTF.
22946         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
22948 2012-03-07  Bruno Haible  <bruno@clisp.org>
22950         roundl: Avoid compilation error on AIX.
22951         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
22952         AIX 5.2..7.1.
22954 2012-03-07  Bruno Haible  <bruno@clisp.org>
22956         roundl: Don't override undeclared system function on IRIX 6.5.
22957         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
22958         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
22959         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22960         * modules/roundl (configure.ac): For replacement code, test
22961         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22962         (Depends-on): Update conditions.
22963         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
22965 2012-03-07  Bruno Haible  <bruno@clisp.org>
22967         roundf: Don't override undeclared system function on IRIX 6.5.
22968         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
22969         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
22970         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22971         * modules/roundf (configure.ac): For replacement code, test
22972         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22973         (Depends-on): Update conditions.
22974         * modules/roundf-ieee (Depends-on): Update conditions.
22975         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
22977 2012-03-07  Bruno Haible  <bruno@clisp.org>
22979         round: Don't override undeclared system function on IRIX 6.5.
22980         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
22981         argument.
22982         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
22983         also when it is not declared. Set HAVE_ROUND. For replacement code,
22984         test HAVE_ROUND, not HAVE_DECL_ROUND.
22985         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
22986         not HAVE_DECL_ROUND.
22987         (Depends-on): Update conditions.
22988         * modules/round-ieee (Depends-on): Update conditions.
22989         * doc/posix-functions/round.texi: Mention the IRIX problem.
22991 2012-03-07  Bruno Haible  <bruno@clisp.org>
22993         copysignf: Don't override undeclared system function on IRIX 6.5.
22994         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
22995         HAVE_COPYSIGNF.
22996         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
22997         declared when it exists. Set HAVE_DECL_COPYSIGNF.
22998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
22999         not HAVE_COPYSIGNF.
23000         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
23001         HAVE_COPYSIGNF.
23002         * doc/posix-functions/copysignf.texi: Mention missing declaration
23003         problem.
23005 2012-03-07  Jim Meyering  <meyering@redhat.com>
23007         readtokens: add tests
23008         * modules/readtokens-tests: New file.
23009         * tests/test-readtokens.c: New file.
23011 2012-03-07  Jim Meyering  <meyering@redhat.com>
23013         quotearg: the module must now include quote.h
23014         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
23015         So must the module.
23016         * modules/quotearg (Files): Add quote.h.
23018 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23020         readtokens: avoid core dumps with unusual calling patterns
23021         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
23022         * lib/readtokens.c: Include limits.h.
23023         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
23024         (readtoken): Don't cache the delimiters; the cache code was buggy
23025         if !delim && saved_delim, or if the new n_delim differs from the old.
23026         Also, it wasn't thread-safe.
23028 2012-03-07  Bruno Haible  <bruno@clisp.org>
23030         quote: Adhere to common module description layout.
23031         * modules/quote (Makefile.am): Add back empty section.
23033 2012-03-06  Akim Demaille  <demaille@gostai.com>
23035         quote: fuse into quotearg
23036         This patch is made for the benefit of Bison.
23037         quote does not leave the choice of the quoting style to the user.
23038         quoting_style provides poor customizability, yet quoting_options,
23039         which is very rich, is hidden inside quotearg.c.  So in order to
23040         allow quote customization, move its implementation to quotearg.c.
23041         * lib/quote.c: Remove.
23042         * modules/quote: Adjust.
23043         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
23044         warning: provide all the members of literal structs.
23045         (quote_quoting_options): New.
23046         (quote, quote_n): Import implementation from quote.c.
23047         * lib/quote.h: Import the comments from quote.c.
23048         (quote_quoting_options): New.
23050 2012-03-06  Bruno Haible  <bruno@clisp.org>
23052         Tests for module 'expm1l-ieee'.
23053         * modules/expm1l-ieee-tests: New file.
23054         * tests/test-expm1l-ieee.c: New file.
23056         New module 'expm1l-ieee'.
23057         * modules/expm1l-ieee: New file.
23059         Tests for module 'expm1f-ieee'.
23060         * modules/expm1f-ieee-tests: New file.
23061         * tests/test-expm1f-ieee.c: New file.
23063         New module 'expm1f-ieee'.
23064         * modules/expm1f-ieee: New file.
23066         Tests for module 'expm1-ieee'.
23067         * modules/expm1-ieee-tests: New file.
23068         * tests/test-expm1-ieee.c: New file.
23069         * tests/test-expm1-ieee.h: New file.
23071         New module 'expm1-ieee'.
23072         * modules/expm1-ieee: New file.
23073         * m4/expm1-ieee.m4: New file.
23074         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
23075         whether expm1 works with a minus zero argument. Replace it if not.
23076         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
23077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
23078         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
23079         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
23080         (Depends-on): Update conditions.
23081         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
23082         AIX problem.
23084 2012-03-06  Bruno Haible  <bruno@clisp.org>
23086         Work around expm1f bug on IRIX 6.5.
23087         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
23088         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
23089         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
23090         not work.
23091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
23092         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
23093         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
23094         (Depends-on): Update conditions.
23095         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
23097 2012-03-06  Bruno Haible  <bruno@clisp.org>
23099         Tests for module 'expm1l'.
23100         * modules/expm1l-tests: New file.
23101         * tests/test-expm1l.c: New file.
23103         New module 'expm1l'.
23104         * lib/math.in.h (expm1l): New declaration.
23105         * lib/expm1l.c: New file.
23106         * m4/expm1l.m4: New file.
23107         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
23108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
23109         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
23110         * modules/expm1l: New file.
23111         * tests/test-math-c++.cc: Check the declaration of expm1l.
23112         * doc/posix-functions/expm1l.texi: Mention the new module.
23114 2012-03-06  Bruno Haible  <bruno@clisp.org>
23116         Tests for module 'expm1f'.
23117         * modules/expm1f-tests: New file.
23118         * tests/test-expm1f.c: New file.
23120         New module 'expm1f'.
23121         * lib/math.in.h (expm1f): New declaration.
23122         * lib/expm1f.c: New file.
23123         * m4/expm1f.m4: New file.
23124         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
23125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
23126         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
23127         * modules/expm1f: New file.
23128         * tests/test-math-c++.cc: Check the declaration of expm1f.
23129         * doc/posix-functions/expm1f.texi: Mention the new module.
23131 2012-03-06  Bruno Haible  <bruno@clisp.org>
23133         Tests for module 'expm1'.
23134         * modules/expm1-tests: New file.
23135         * tests/test-expm1.c: New file.
23136         * tests/test-expm1.h: New file.
23138         New module 'expm1'.
23139         * lib/math.in.h (expm1): New declaration.
23140         * lib/expm1.c: New file.
23141         * m4/expm1.m4: New file.
23142         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
23143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
23144         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
23145         * modules/expm1: New file.
23146         * tests/test-math-c++.cc: Check the declaration of expm1.
23147         * doc/posix-functions/expm1.texi: Mention the new module.
23149 2012-03-06  Bruno Haible  <bruno@clisp.org>
23151         math: Ensure declarations of math functions.
23152         * modules/acosf (Depends-on): Add 'extensions'.
23153         * modules/asinf (Depends-on): Likewise.
23154         * modules/atan2f (Depends-on): Likewise.
23155         * modules/atanf (Depends-on): Likewise.
23156         * modules/cbrt (Depends-on): Likewise.
23157         * modules/cbrtf (Depends-on): Likewise.
23158         * modules/cbrtl (Depends-on): Likewise.
23159         * modules/copysignf (Depends-on): Likewise.
23160         * modules/copysignl (Depends-on): Likewise.
23161         * modules/cosf (Depends-on): Likewise.
23162         * modules/coshf (Depends-on): Likewise.
23163         * modules/expf (Depends-on): Likewise.
23164         * modules/fabsf (Depends-on): Likewise.
23165         * modules/fabsl (Depends-on): Likewise.
23166         * modules/fmaf (Depends-on): Likewise.
23167         * modules/fmal (Depends-on): Likewise.
23168         * modules/fmodf (Depends-on): Likewise.
23169         * modules/fmodl (Depends-on): Likewise.
23170         * modules/frexpf (Depends-on): Likewise.
23171         * modules/frexpl (Depends-on): Likewise.
23172         * modules/hypot (Depends-on): Likewise.
23173         * modules/hypotf (Depends-on): Likewise.
23174         * modules/hypotl (Depends-on): Likewise.
23175         * modules/ldexpf (Depends-on): Likewise.
23176         * modules/ldexpl (Depends-on): Likewise.
23177         * modules/log10f (Depends-on): Likewise.
23178         * modules/log10l (Depends-on): Likewise.
23179         * modules/log1p (Depends-on): Likewise.
23180         * modules/logb (Depends-on): Likewise.
23181         * modules/logf (Depends-on): Likewise.
23182         * modules/modff (Depends-on): Likewise.
23183         * modules/modfl (Depends-on): Likewise.
23184         * modules/powf (Depends-on): Likewise.
23185         * modules/remainderf (Depends-on): Likewise.
23186         * modules/remainderl (Depends-on): Likewise.
23187         * modules/rintf (Depends-on): Likewise.
23188         * modules/rintl (Depends-on): Likewise.
23189         * modules/sinf (Depends-on): Likewise.
23190         * modules/sinhf (Depends-on): Likewise.
23191         * modules/sqrtf (Depends-on): Likewise.
23192         * modules/tanf (Depends-on): Likewise.
23193         * modules/tanhf (Depends-on): Likewise.
23194         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
23195         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
23196         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
23197         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
23198         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
23199         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
23200         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
23201         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
23202         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
23203         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
23204         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
23205         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
23206         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
23207         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
23208         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
23209         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
23210         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23211         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23212         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
23213         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
23214         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23215         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
23216         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
23217         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
23218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
23219         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
23220         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
23221         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23222         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
23223         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23224         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23225         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
23226         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
23227         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23228         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
23229         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
23230         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
23231         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
23232         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
23233         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
23234         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
23236 2012-03-06  Bruno Haible  <bruno@clisp.org>
23238         math: Update module names in warnings.
23239         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23240         tanl): Use specific module name in warn-on-use warning.
23242 2012-03-06  Bruno Haible  <bruno@clisp.org>
23244         expl: Simplify computation.
23245         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
23247 2012-03-05  Bruno Haible  <bruno@clisp.org>
23249         exp* tests: More tests.
23250         * tests/test-exp.h: New file.
23251         * tests/test-exp.c: Include <float.h> and test-exp.h.
23252         (main): Invoke test_function.
23253         * tests/test-expf.c: Include <float.h> and test-exp.h.
23254         (main): Invoke test_function.
23255         * tests/test-expl.c: Include <float.h> and test-exp.h.
23256         (main): Invoke test_function.
23257         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
23258         (Makefile.am): Add randomd.c to test_exp_SOURCES.
23259         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
23260         (Makefile.am): Add randomf.c to test_expf_SOURCES.
23261         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
23262         (Depends-on): Add 'float'.
23263         (Makefile.am): Add randoml.c to test_expl_SOURCES.
23265         expl: Fix precision of computed result.
23266         * lib/expl.c: Completely rewritten.
23267         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
23268         (Maintainer): Add me.
23269         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
23271 2012-03-05  Bruno Haible  <bruno@clisp.org>
23273         cbrt* tests: More tests.
23274         * tests/test-cbrt.h: New file.
23275         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
23276         (main): Invoke test_function.
23277         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
23278         (main): Invoke test_function.
23279         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
23280         (main): Invoke test_function.
23281         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
23282         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
23283         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
23284         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
23285         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
23286         (Depends-on): Add 'float'.
23287         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
23289 2012-03-05  Bruno Haible  <bruno@clisp.org>
23291         hypot* tests: More tests.
23292         * tests/test-hypot.h: New file, partially extracted from
23293         tests/test-hypotl.c.
23294         * tests/test-hypot.c: Include test-hypot.h.
23295         (main): Invoke test_function.
23296         * tests/test-hypotf.c: Include test-hypot.h.
23297         (main): Invoke test_function.
23298         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
23299         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
23300         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
23301         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
23302         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
23303         tests/randomf.c.
23304         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
23305         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
23306         tests/randoml.c.
23307         (Depends-on): Add 'fpucw', 'float'.
23308         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
23310 2012-03-05  Bruno Haible  <bruno@clisp.org>
23312         fpucw: Doc about FreeBSD.
23313         * lib/fpucw.h: Mention FreeBSD in comments.
23315 2012-03-04  Bruno Haible  <bruno@clisp.org>
23317         sqrt* tests: More tests.
23318         * tests/test-sqrt.h: New file.
23319         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
23320         (main): Invoke test_function.
23321         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
23322         (main): Invoke test_function.
23323         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
23324         (main): Invoke test_function.
23325         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
23326         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
23327         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
23328         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
23329         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
23330         (Depends-on): Add 'float'.
23331         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
23333 2012-03-04  Bruno Haible  <bruno@clisp.org>
23335         remainder* tests: More tests.
23336         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
23337         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
23338         (main): Invoke test_function.
23339         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
23340         (main): Invoke test_function.
23341         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
23342         (main): Invoke test_function.
23343         * modules/remainder-tests (Files): Add tests/test-remainder.h,
23344         tests/randomd.c.
23345         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
23346         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
23347         tests/randomf.c.
23348         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
23349         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
23350         tests/randoml.c.
23351         (Depends-on): Add 'float'.
23352         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
23354 2012-03-04  Bruno Haible  <bruno@clisp.org>
23356         remainder, remainderf, remainderl: Fix computation for large quotients.
23357         * lib/remainder.c: Completely rewritten.
23358         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
23359         USE_FLOAT.
23360         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
23361         USE_LONG_DOUBLE.
23362         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
23363         isnand, isinf. Remove round, fma.
23364         * modules/remainderf (Files): Add lib/remainder.c.
23365         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
23366         Remove roundf, fmaf.
23367         * modules/remainderl (Files): Add lib/remainder.c.
23368         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
23369         isinf. Remove roundl, fmal.
23370         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
23371         REMAINDER_LIBM.
23372         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
23373         REMAINDERF_LIBM.
23374         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
23375         REMAINDERL_LIBM.
23377 2012-03-04  Bruno Haible  <bruno@clisp.org>
23379         fmod* tests: More tests.
23380         * tests/test-fmod.h (my_ldexp): New function.
23381         (test_function): Reduce amount of random numbers to test. Add tests
23382         of very large quotients x / y.
23383         * tests/test-fmod.c (MAX_EXP): New macro.
23384         * tests/test-fmodf.c (MAX_EXP): Likewise.
23385         * tests/test-fmodl.c (MAX_EXP): Likewise.
23387 2012-03-04  Bruno Haible  <bruno@clisp.org>
23389         fmod, fmodl: Fix computation for large quotients x / y.
23390         * lib/fmod.c: Completely rewritten.
23391         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
23392         USE_LONG_DOUBLE.
23393         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
23394         isnand. Remove fma.
23395         * modules/fmodl (Files): Add lib/fmod.c.
23396         (Depends-on): Add float, isfinite, signbit, fabsl,
23397         frexpl, ldexpl, isnanl. Remove fma.
23398         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
23399         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
23401 2012-03-03  Bruno Haible  <bruno@clisp.org>
23403         fmod* tests: More tests.
23404         * tests/test-fmod.h: New file.
23405         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
23406         (main): Invoke test_function.
23407         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
23408         (main): Invoke test_function.
23409         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
23410         (main): Invoke test_function.
23411         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
23412         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
23413         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
23414         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
23415         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
23416         (Depends-on): Add 'float'.
23417         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
23419 2012-03-03  Bruno Haible  <bruno@clisp.org>
23421         rint* tests: More tests.
23422         * tests/test-rint.h: New file, partially extracted from
23423         tests/test-rintl.c.
23424         * tests/test-rint.c: Include test-rint.h.
23425         (main): Invoke test_function.
23426         * tests/test-rintf.c: Include test-rint.h.
23427         (main): Invoke test_function.
23428         * tests/test-rintl.c: Include test-rint.h.
23429         (main): Invoke test_function.
23430         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
23431         (Makefile.am): Add randomd.c to test_rint_SOURCES.
23432         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
23433         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
23434         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
23435         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
23437 2012-03-03  Bruno Haible  <bruno@clisp.org>
23439         modf* tests: More tests.
23440         * tests/test-modf.h: New file.
23441         * tests/test-modf.c: Include <float.h> and test-modf.h.
23442         (main): Invoke test_function.
23443         * tests/test-modff.c: Include <float.h> and test-modf.h.
23444         (main): Invoke test_function.
23445         * tests/test-modfl.c: Include <float.h> and test-modf.h.
23446         (main): Invoke test_function.
23447         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
23448         (Makefile.am): Add randomd.c to test_modf_SOURCES.
23449         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
23450         (Makefile.am): Add randomf.c to test_modff_SOURCES.
23451         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
23452         (Depends-on): Add 'float'.
23453         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
23455 2012-03-03  Bruno Haible  <bruno@clisp.org>
23457         fabs* tests: More tests.
23458         * tests/test-fabs.h: New file, partially extracted from
23459         tests/test-fabsl.c.
23460         * tests/test-fabs.c (RANDOM): New macro.
23461         * tests/test-fabsf.c (RANDOM): New macro.
23462         * tests/test-fabsl.c (RANDOM): New macro.
23463         * modules/fabs-tests (Files): Add tests/randomd.c.
23464         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
23465         * modules/fabsf-tests (Files): Add tests/randomf.c.
23466         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
23467         * modules/fabsl-tests (Files): Add tests/randoml.c.
23468         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
23470 2012-03-03  Bruno Haible  <bruno@clisp.org>
23472         ldexp* tests: More tests.
23473         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
23474         * tests/test-ldexp.c (RANDOM): New macro.
23475         * tests/test-ldexpf.c (RANDOM): New macro.
23476         * tests/test-ldexpl.c (RANDOM): New macro.
23477         * modules/ldexp-tests (Files): Add tests/randomd.c.
23478         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
23479         * modules/ldexpf-tests (Files): Add tests/randomf.c.
23480         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
23481         * modules/ldexpl-tests (Files): Add tests/randoml.c.
23482         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
23484 2012-03-03  Bruno Haible  <bruno@clisp.org>
23486         frexp* tests: More tests.
23487         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
23488         * tests/test-frexp.c (RANDOM): New macro.
23489         * tests/test-frexpf.c (RANDOM): New macro.
23490         * tests/test-frexpl.c (RANDOM): New macro.
23491         * modules/frexp-tests (Files): Add tests/randomd.c.
23492         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
23493         * modules/frexpf-tests (Files): Add tests/randomf.c.
23494         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
23495         * modules/frexpl-tests (Files): Add tests/randoml.c.
23496         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
23498 2012-03-03  Bruno Haible  <bruno@clisp.org>
23500         Support for pseudo-random numbers in tests.
23501         * tests/randomf.c: New file.
23502         * tests/randomd.c: New file.
23503         * tests/randoml.c: New file.
23504         * tests/macros.h (randomf, randomd, randoml): New declarations.
23506 2012-03-03  Bruno Haible  <bruno@clisp.org>
23508         frexp* tests: Refactor.
23509         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
23510         * tests/test-frexp.c: Include and use it.
23511         * tests/test-frexpf.c: Likewise.
23512         * tests/test-frexpl.c: Likewise.
23513         * modules/frexp-tests (Files): Add tests/test-frexp.h.
23514         * modules/frexpf-tests (Files): Likewise.
23515         * modules/frexpl-tests (Files): Likewise.
23517 2012-03-02  Jim Meyering  <meyering@redhat.com>
23519         maint: don't specify XZ_OPT=-9ev in dist-related rule
23520         Using xz's -9 option is warranted only if you have a very large
23521         tarball (see xz's documentation for the sizes vs. presets), and
23522         requires 64MiB of memory at decompression time.
23523         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
23524         Automake's default of just "-e" is fine.  Override on a
23525         per-package basis by setting XZ_OPT e.g., in cfg.mk.
23527 2012-03-01  Eric Blake  <eblake@redhat.com>
23529         maint.mk: allow announcement for non-gnulib project
23530         * maint.mk (announcement): Skip gnulib version if not used.
23532 2012-03-01  Jim Meyering  <meyering@redhat.com>
23534         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
23535         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
23536         envvar settings cannot interfere.  Otherwise, setting envvars like
23537         prohibit=foo require=bar, etc. would cause spurious test failures.
23539 2012-03-01  Eric Blake  <eblake@redhat.com>
23541         maint.mk: add per-line exclusions to prohibitions
23542         * maint.mk (_sc_search_regexp): Add $exclude parameter.
23543         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
23544         (sc_const_long_option): Use it.
23546 2012-03-01  Bruno Haible  <bruno@clisp.org>
23548         Tests for module 'expl-ieee'.
23549         * modules/expl-ieee-tests: New file.
23550         * tests/test-expl-ieee.c: New file.
23552         New module 'expl-ieee'.
23553         * modules/expl-ieee: New file.
23555         Tests for module 'exp-ieee'.
23556         * modules/exp-ieee-tests: New file.
23557         * tests/test-exp-ieee.c: New file.
23559         New module 'exp-ieee'.
23560         * modules/exp-ieee: New file.
23562         Tests for module 'expf-ieee'.
23563         * modules/expf-ieee-tests: New file.
23564         * tests/test-expf-ieee.c: New file.
23565         * tests/test-exp-ieee.h: New file.
23567         New module 'expf-ieee'.
23568         * modules/expf-ieee: New file.
23570 2012-02-29  Bruno Haible  <bruno@clisp.org>
23572         cbrtl-ieee: Work around test failure on IRIX 6.5.
23573         * m4/cbrtl-ieee.m4: New file.
23574         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
23575         test whether cbrtl works with a minus zero argument. Replace it if not.
23576         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
23577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
23578         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
23579         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
23580         (Depends-on): Update conditions.
23581         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23582         m4/signbit.m4.
23583         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
23584         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
23585         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
23587         Tests for module 'cbrtl-ieee'.
23588         * modules/cbrtl-ieee-tests: New file.
23589         * tests/test-cbrtl-ieee.c: New file.
23591         New module 'cbrtl-ieee'.
23592         * modules/cbrtl-ieee: New file.
23594         Tests for module 'cbrt-ieee'.
23595         * modules/cbrt-ieee-tests: New file.
23596         * tests/test-cbrt-ieee.c: New file.
23598         New module 'cbrt-ieee'.
23599         * modules/cbrt-ieee: New file.
23601         Tests for module 'cbrtf-ieee'.
23602         * modules/cbrtf-ieee-tests: New file.
23603         * tests/test-cbrtf-ieee.c: New file.
23604         * tests/test-cbrt-ieee.h: New file.
23606         New module 'cbrtf-ieee'.
23607         * modules/cbrtf-ieee: New file.
23609 2012-02-29  Bruno Haible  <bruno@clisp.org>
23611         cbrtf: Work around bug in IRIX 6.5 system function.
23612         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23613         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23614         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23615         work.
23616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23617         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23618         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23619         (Depends-on): Update conditions.
23620         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23622 2012-02-29  Bruno Haible  <bruno@clisp.org>
23624         Tests for module 'cbrtl'.
23625         * modules/cbrtl-tests: New file.
23626         * tests/test-cbrtl.c: New file.
23628         New module 'cbrtl'.
23629         * lib/math.in.h (cbrtl): New declaration.
23630         * lib/cbrtl.c: New file.
23631         * m4/cbrtl.m4: New file.
23632         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23634         HAVE_DECL_CBRTL.
23635         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23636         HAVE_DECL_CBRTL.
23637         * modules/cbrtl: New file.
23638         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23639         * doc/posix-functions/cbrtl.texi: Mention the new module.
23641 2012-02-29  Bruno Haible  <bruno@clisp.org>
23643         Tests for module 'cbrtf'.
23644         * modules/cbrtf-tests: New file.
23645         * tests/test-cbrtf.c: New file.
23647         New module 'cbrtf'.
23648         * lib/math.in.h (cbrtf): New declaration.
23649         * lib/cbrtf.c: New file.
23650         * m4/cbrtf.m4: New file.
23651         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23653         HAVE_DECL_CBRTF.
23654         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23655         HAVE_DECL_CBRTF.
23656         * modules/cbrtf: New file.
23657         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23658         * doc/posix-functions/cbrtf.texi: Mention the new module.
23660 2012-02-29  Bruno Haible  <bruno@clisp.org>
23662         cbrt: Provide replacement on MSVC and Minix.
23663         * lib/math.in.h (cbrt): New declaration.
23664         * lib/cbrt.c: New file.
23665         * m4/cbrt.m4: New file.
23666         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23668         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23669         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23670         (Depends-on): Add dependencies.
23671         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23672         * tests/test-math-c++.cc: Check the declaration of cbrt.
23673         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23674         replacement.
23676 2012-02-29  Bruno Haible  <bruno@clisp.org>
23678         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23679         * m4/hypotl-ieee.m4: New file.
23680         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23681         test whether hypotl works with mixed NaN and Infinity arguments.
23682         Replace it if not.
23683         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23685         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23686         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23687         (Depends-on): Update conditions.
23688         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23689         (Depends-on): Add hypot-ieee.
23690         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23691         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23693         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23694         * m4/hypotf-ieee.m4: New file.
23695         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23696         test whether hypotf works with mixed NaN and Infinity arguments.
23697         Replace it if not.
23698         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23699         (Depends-on): Add hypot-ieee.
23700         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23701         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23703         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23704         * lib/math.in.h (hypot): New declaration.
23705         * lib/hypot.c: New file.
23706         * m4/hypot-ieee.m4: New file.
23707         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23708         whether hypot works with mixed NaN and Infinity arguments. Replace it
23709         if not.
23710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23711         REPLACE_HYPOT.
23712         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23713         * modules/hypot (Files): Add lib/hypot.c.
23714         (Depends-on): Add dependencies.
23715         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23716         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23717         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23718         * tests/test-math-c++.cc: Check the declaration of hypot.
23719         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23721         Tests for module 'hypotl-ieee'.
23722         * modules/hypotl-ieee-tests: New file.
23723         * tests/test-hypotl-ieee.c: New file.
23725         New module 'hypotl-ieee'.
23726         * modules/hypotl-ieee: New file.
23728         Tests for module 'hypot-ieee'.
23729         * modules/hypot-ieee-tests: New file.
23730         * tests/test-hypot-ieee.c: New file.
23732         New module 'hypot-ieee'.
23733         * modules/hypot-ieee: New file.
23735         Tests for module 'hypotf-ieee'.
23736         * modules/hypotf-ieee-tests: New file.
23737         * tests/test-hypotf-ieee.c: New file.
23738         * tests/test-hypot-ieee.h: New file.
23740         New module 'hypotf-ieee'.
23741         * modules/hypotf-ieee: New file.
23743 2012-02-29  Bruno Haible  <bruno@clisp.org>
23745         Remove unused variables.
23746         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
23747         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23748         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23749         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23751 2012-02-29  Eric Blake  <eblake@redhat.com>
23753         termios: fix pid_t always, not just for tcgetsid
23754         * doc/posix-headers/termios.texi (termios.h): Mention problem.
23755         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
23756         just when building tcgetsid.
23758 2012-02-29  Bruno Haible  <bruno@clisp.org>
23760         Tests for module 'hypotl'.
23761         * modules/hypotl-tests: New file.
23762         * tests/test-hypotl.c: New file.
23764         New module 'hypotl'.
23765         * lib/math.in.h (hypotl): New declaration.
23766         * lib/hypotl.c: New file.
23767         * m4/hypotl.m4: New file.
23768         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
23770         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
23771         * modules/hypotl: New file.
23772         * tests/test-math-c++.cc: Check the hypotl declaration.
23773         * doc/posix-functions/hypotl.texi: Mention the new module.
23775 2012-02-29  Eric Blake  <eblake@redhat.com>
23777         tcgetsid: fix cygwin header bug
23778         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
23780         docs: update cygwin progress
23781         * doc/posix-functions/llround.texi (llround): Added in cygwin
23782         1.7.8.
23783         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
23784         * doc/glibc-functions/program_invocation_name.texi
23785         (program_invocation_name): Likewise.
23786         * doc/glibc-functions/program_invocation_short_name.texi
23787         (program_invocation_short_name): Likewise.
23788         * doc/glibc-functions/madvise.texi (madvise): Likewise.
23789         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
23790         Likewise.
23791         * doc/posix-functions/pthread_spin_destroy.texi
23792         (pthread_spin_destroy): Added in cygwin 1.7.10.
23793         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
23794         Likewise.
23795         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
23796         Likewise.
23797         * doc/posix-functions/pthread_spin_trylock.texi
23798         (pthread_spin_trylock): Likewise.
23799         * doc/posix-functions/pthread_spin_unlock.texi
23800         (pthread_spin_unlock): Likewise.
23801         * doc/posix-functions/pthread_setschedprio.texi
23802         (pthread_setschedprio): Likewise.
23803         * doc/posix-functions/pthread_attr_getstack.texi
23804         (pthread_attr_getstack): Likewise.
23805         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
23806         (pthread_attr_getstackaddr): Likewise.
23807         * doc/glibc-functions/pthread_getattr_np.texi
23808         (pthread_getattr_np): Likewise.
23809         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
23810         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
23811         * doc/posix-functions/clock_settime.texi (clock_settime):
23812         Likewise.
23813         * doc/posix-functions/pthread_attr_getguardsize.texi
23814         (pthread_attr_getguardsize): Likewise.
23815         * doc/posix-functions/pthread_attr_setguardsize.texi
23816         (pthread_attr_setguardsize): Likewise.
23817         * doc/posix-functions/pthread_attr_setstack.texi
23818         (pthread_attr_setstack): Likewise.
23819         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
23820         (pthread_attr_setstackaddr): Likewise.
23821         * doc/posix-functions/clock_getcpuclockid.texi
23822         (clock_getcpuclockid): Likewise.
23823         * doc/posix-functions/pthread_getcpuclockid.texi
23824         (pthread_getcpuclockid): Likewise.
23825         * doc/glibc-functions/error.texi (error): Likewise.
23826         * doc/glibc-functions/error_at_line.texi (error_at_line):
23827         Likewise.
23828         * doc/glibc-functions/error_message_count.texi
23829         (error_message_count): Likewise.
23830         * doc/glibc-functions/error_one_per_line.texi
23831         (error_one_per_line): Likewise.
23832         * doc/glibc-functions/error_print_progname.texi
23833         (error_print_progname): Likewise.
23834         * doc/posix-functions/pthread_condattr_getclock.texi
23835         (pthread_condattr_getclock): Likewise.
23836         * doc/posix-functions/pthread_condattr_setclock.texi
23837         (pthread_condattr_setclock): Likewise.
23838         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
23839         Likewise.
23840         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
23841         * doc/glibc-functions/getpt.texi (getpt): Likewise.
23842         * doc/glibc-functions/get_current_dir_name.texi
23843         (get_current_dir_name): Likewise.
23844         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
23845         Likewise.
23846         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
23847         wrong return type.
23848         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
23849         1.7.11.
23851 2012-02-29  Bruno Haible  <bruno@clisp.org>
23853         Tests for module 'hypotf'.
23854         * modules/hypotf-tests: New file.
23855         * tests/test-hypotf.c: New file.
23857         New module 'hypotf'.
23858         * lib/math.in.h (hypotf): New declaration.
23859         * lib/hypotf.c: New file.
23860         * m4/hypotf.m4: New file.
23861         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23863         REPLACE_HYPOTF.
23864         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23865         REPLACE_HYPOTF.
23866         * modules/hypotf: New file.
23867         * tests/test-math-c++.cc: Check the hypotf declaration.
23868         * doc/posix-functions/hypotf.texi: Mention the new module.
23870         hypot: Prepare for hypotf module.
23871         * m4/hypot.m4: New file.
23872         * modules/hypot (Files): Add m4/hypot.m4.
23873         (configure.ac): Invoke gl_FUNC_HYPOT.
23875 2012-02-29  Bruno Haible  <bruno@clisp.org>
23877         hypot tests: More tests.
23878         * tests/test-hypot.c: Include <float.h>.
23879         (main): Add tests about overflow and underflow.
23881 2012-02-29  Bruno Haible  <bruno@clisp.org>
23883         math code: Add comments.
23884         * lib/acosl.c: Add comment about related glibc source files.
23885         * lib/asinl.c: Likewise.
23886         * lib/atanl.c: Likewise.
23887         * lib/expl.c: Likewise.
23888         * lib/logl.c: Likewise.
23889         * lib/sincosl.c: Likewise.
23890         * lib/sinl.c: Likewise.
23891         * lib/tanl.c: Likewise.
23892         * lib/trigl.c: Likewise.
23893         * lib/cosl.c: Likewise. Fix comments.
23895 2012-02-28  Bruno Haible  <bruno@clisp.org>
23897         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23898         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23899         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23900         HUGE_VALL are defined.
23901         (numeric_equald): Renamed from numeric_equal.
23902         (numeric_equalf, numeric_equall): New functions.
23903         (main): Check also HUGE_VALF, HUGE_VALL.
23904         * modules/math-tests (Files): Add tests/macros.h.
23905         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23906         HUGE_VALL.
23908 2012-02-28  Bruno Haible  <bruno@clisp.org>
23910         doc: Move ISO C11 feature notes into POSIX chapters.
23911         * doc/posix-functions/aligned_alloc.texi: Renamed from
23912         doc/glibc-functions/aligned_alloc.texi.
23913         * doc/posix-functions/quick_exit.texi: Renamed from
23914         doc/glibc-functions/quick_exit.texi.
23915         * doc/posix-headers/uchar.texi: Renamed from
23916         doc/glibc-headers/uchar.texi.
23917         * doc/posix-functions/c16rtomb.texi: Renamed from
23918         doc/glibc-functions/c16rtomb.texi.
23919         * doc/posix-functions/c32rtomb.texi: Renamed from
23920         doc/glibc-functions/c32rtomb.texi.
23921         * doc/posix-functions/mbrtoc16.texi: Renamed from
23922         doc/glibc-functions/mbrtoc16.texi.
23923         * doc/posix-functions/mbrtoc32.texi: Renamed from
23924         doc/glibc-functions/mbrtoc32.texi.
23925         * doc/gnulib.texi: Update.
23926         (Glibc uchar.h): Remove section.
23927         Suggested by Eric Blake.
23929 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
23931         stdnoreturn: port to MSVC better
23932         MSVC standard headers use __declspec(noreturn), so #define noreturn
23933         to empty on that platform.  Reported by Bruno Haible in
23934         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
23935         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
23936         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
23938 2012-02-28  Bruno Haible  <bruno@clisp.org>
23940         doc: Mention new glibc headers and functions.
23941         * doc/glibc-headers/uchar.texi: New file.
23942         * doc/glibc-functions/aligned_alloc.texi: New file.
23943         * doc/glibc-functions/c16rtomb.texi: New file.
23944         * doc/glibc-functions/c32rtomb.texi: New file.
23945         * doc/glibc-functions/clock_adjtime.texi: New file.
23946         * doc/glibc-functions/fanotify_init.texi: New file.
23947         * doc/glibc-functions/fanotify_mark.texi: New file.
23948         * doc/glibc-functions/inet6_opt_append.texi: New file.
23949         * doc/glibc-functions/inet6_opt_find.texi: New file.
23950         * doc/glibc-functions/inet6_opt_finish.texi: New file.
23951         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
23952         * doc/glibc-functions/inet6_opt_init.texi: New file.
23953         * doc/glibc-functions/inet6_opt_next.texi: New file.
23954         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
23955         * doc/glibc-functions/inet6_rth_add.texi: New file.
23956         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
23957         * doc/glibc-functions/inet6_rth_init.texi: New file.
23958         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
23959         * doc/glibc-functions/inet6_rth_segments.texi: New file.
23960         * doc/glibc-functions/inet6_rth_space.texi: New file.
23961         * doc/glibc-functions/login.texi: New file.
23962         * doc/glibc-functions/mbrtoc16.texi: New file.
23963         * doc/glibc-functions/mbrtoc32.texi: New file.
23964         * doc/glibc-functions/name_to_handle_at.texi: New file.
23965         * doc/glibc-functions/ntp_gettimex.texi: New file.
23966         * doc/glibc-functions/open_by_handle_at.texi: New file.
23967         * doc/glibc-functions/prlimit.texi: New file.
23968         * doc/glibc-functions/process_vm_readv.texi: New file.
23969         * doc/glibc-functions/process_vm_writev.texi: New file.
23970         * doc/glibc-functions/recvmmsg.texi: New file.
23971         * doc/glibc-functions/scandirat.texi: New file.
23972         * doc/glibc-functions/sendmmsg.texi: New file.
23973         * doc/glibc-functions/setns.texi: New file.
23974         * doc/glibc-functions/timespec_get.texi: New file.
23975         * doc/gnulib.texi: Include them.
23976         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
23977         sections.
23978         Reported by Eric Blake.
23980 2012-02-28  Bruno Haible  <bruno@clisp.org>
23982         Avoid compilation errors with MSVC option -fp:strict.
23983         * lib/floor.c: Use MSVC specific pragma fenv_access.
23984         * lib/ceil.c: Likewise.
23985         * lib/trunc.c: Likewise.
23986         * lib/round.c: Likewise.
23987         * lib/rint.c: Likewise.
23988         * lib/fma.c: Likewise.
23989         * lib/integer_length.c: Likewise.
23990         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23992         * tests/test-floor2.c: Likewise.
23993         * tests/test-floorf2.c: Likewise.
23994         * tests/test-ceil2.c: Likewise.
23995         * tests/test-ceilf2.c: Likewise.
23996         * tests/test-trunc2.c: Likewise.
23997         * tests/test-truncf2.c: Likewise.
23998         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24000 2012-02-27  Bruno Haible  <bruno@clisp.org>
24002         Tests for module 'sqrtl-ieee'.
24003         * modules/sqrtl-ieee-tests: New file.
24004         * tests/test-sqrtl-ieee.c: New file.
24006         New module 'sqrtl-ieee'.
24007         * modules/sqrtl-ieee: New file.
24009         Tests for module 'sqrt-ieee'.
24010         * modules/sqrt-ieee-tests: New file.
24011         * tests/test-sqrt-ieee.c: New file.
24013         New module 'sqrt-ieee'.
24014         * modules/sqrt-ieee: New file.
24016         Tests for module 'sqrtf-ieee'.
24017         * modules/sqrtf-ieee-tests: New file.
24018         * tests/test-sqrtf-ieee.c: New file.
24019         * tests/test-sqrt-ieee.h: New file.
24021         New module 'sqrtf-ieee'.
24022         * modules/sqrtf-ieee: New file.
24024 2012-02-27  Bruno Haible  <bruno@clisp.org>
24026         remainderl-ieee: Work around test failure on OSF/1.
24027         * m4/remainderl-ieee.m4: New file.
24028         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
24029         present, test whether remainderl works with a zero second argument.
24030         Replace it if not.
24031         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
24032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
24033         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
24034         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
24035         (Depends-on): Update conditions.
24036         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
24037         (Depends-on): Add remainder-ieee.
24038         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
24039         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
24040         module.
24042         remainderf-ieee: Work around test failure on OSF/1.
24043         * m4/remainderf-ieee.m4: New file.
24044         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
24045         present, test whether remainderf works with a zero second argument.
24046         Replace it if not.
24047         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
24048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
24049         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
24050         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
24051         (Depends-on): Update conditions.
24052         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
24053         (Depends-on): Add remainder-ieee.
24054         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
24055         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
24056         module.
24058         remainder-ieee: Work around test failure on OSF/1.
24059         * m4/remainder-ieee.m4: New file.
24060         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
24061         present, test whether remainder works with a zero second argument.
24062         Replace it if not.
24063         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
24064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
24065         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
24066         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
24067         (Depends-on): Update dependencies.
24068         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
24069         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
24070         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
24072         Tests for module 'remainderl-ieee'.
24073         * modules/remainderl-ieee-tests: New file.
24074         * tests/test-remainderl-ieee.c: New file.
24076         New module 'remainderl-ieee'.
24077         * modules/remainderl-ieee: New file.
24079         Tests for module 'remainder-ieee'.
24080         * modules/remainder-ieee-tests: New file.
24081         * tests/test-remainder-ieee.c: New file.
24083         New module 'remainder-ieee'.
24084         * modules/remainder-ieee: New file.
24086         Tests for module 'remainderf-ieee'.
24087         * modules/remainderf-ieee-tests: New file.
24088         * tests/test-remainderf-ieee.c: New file.
24089         * tests/test-remainder-ieee.h: New file.
24091         New module 'remainderf-ieee'.
24092         * modules/remainderf-ieee: New file.
24094 2012-02-27  Bruno Haible  <bruno@clisp.org>
24096         modff, modfl: Fix configure syntax error.
24097         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
24098         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
24100 2012-02-27  Bruno Haible  <bruno@clisp.org>
24102         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
24103         * m4/fmodl-ieee.m4: New file.
24104         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
24105         whether fmodl works with zero arguments. Replace it if not.
24106         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
24107         (Depends-on): Add fmod-ieee.
24108         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
24109         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
24111         fmodf-ieee: Work around test failure on OSF/1.
24112         * m4/fmodf-ieee.m4: New file.
24113         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
24114         whether fmodf works with zero arguments. Replace it if not.
24115         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
24116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
24117         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
24118         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
24119         (Depends-on): Update dependencies.
24120         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
24121         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
24122         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
24124         fmodf-ieee: Work around test failure on MSVC 9.
24125         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
24126         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
24128         fmod-ieee: Work around test failures on OSF/1, mingw.
24129         * m4/fmod-ieee.m4: New file.
24130         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
24131         whether fmod works with zero arguments. Replace it if not.
24132         * lib/math.in.h (fmod): New declaration.
24133         * lib/fmod.c: New file.
24134         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
24135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
24136         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
24137         * modules/fmod (Files): Add lib/fmod.c.
24138         (Depends-on): Add math, isinf, trunc, fma.
24139         (configure.ac): Arrange to compile lib/fmod.c if needed.
24140         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
24141         m4/signbit.m4.
24142         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
24143         * tests/test-math-c++.cc: Check the declaration of fmod.
24144         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
24146         fmodl-ieee: Fix test failures.
24147         * lib/fmodl.c (fmodl): Treat Inf specially.
24148         * modules/fmodl (Depends-on): Add isinf.
24150         Tests for module 'fmodl-ieee'.
24151         * modules/fmodl-ieee-tests: New file.
24152         * tests/test-fmodl-ieee.c: New file.
24154         New module 'fmodl-ieee'.
24155         * modules/fmodl-ieee: New file.
24157         Tests for module 'fmod-ieee'.
24158         * modules/fmod-ieee-tests: New file.
24159         * tests/test-fmod-ieee.c: New file.
24161         New module 'fmod-ieee'.
24162         * modules/fmod-ieee: New file.
24164         Tests for module 'fmodf-ieee'.
24165         * modules/fmodf-ieee-tests: New file.
24166         * tests/test-fmodf-ieee.c: New file.
24167         * tests/test-fmod-ieee.h: New file.
24169         New module 'fmodf-ieee'.
24170         * modules/fmodf-ieee: New file.
24172 2012-02-27  Bruno Haible  <bruno@clisp.org>
24174         Tests for module 'rintl-ieee'.
24175         * modules/rintl-ieee-tests: New file.
24176         * tests/test-rintl-ieee.c: New file.
24178         New module 'rintl-ieee'.
24179         * modules/rintl-ieee: New file.
24181         Tests for module 'rint-ieee'.
24182         * modules/rint-ieee-tests: New file.
24183         * tests/test-rint-ieee.c: New file.
24185         New module 'rint-ieee'.
24186         * modules/rint-ieee: New file.
24188         Tests for module 'rintf-ieee'.
24189         * modules/rintf-ieee-tests: New file.
24190         * tests/test-rintf-ieee.c: New file.
24191         * tests/test-rint-ieee.h: New file.
24193         New module 'rintf-ieee'.
24194         * modules/rintf-ieee: New file.
24196 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24198         regex: re_search etc. should return -2 when memory exhausted
24199         This bug was uncovered when testing 'grep'.  Without the fix,
24200         re_search and friends return -1 when memory is exhausted, but -1
24201         means no match, and this causes grep to falsely report no-match
24202         instead of memory-exhaustion.  See
24203         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
24204         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
24205         trouble; this can occur if re_search_internal ran out of memory.
24207 2012-02-26  Bruno Haible  <bruno@clisp.org>
24209         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
24210         * m4/modfl-ieee.m4: New file.
24211         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
24212         whether modfl works with Inf. Replace it if not.
24213         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
24214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
24215         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
24216         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
24217         (Depends-on): Update dependencies.
24218         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
24219         m4/signbit.m4.
24220         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
24221         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
24223         modfl-ieee: Fix dependencies.
24224         * modules/modfl-ieee (Depends-on): Add modf-ieee.
24226         modfl-ieee: Fix test failures.
24227         * lib/modfl.c (modfl): Treat NaN and Inf specially.
24228         * modules/modfl (Depends-on): Add isfinite, isinf.
24230         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
24231         * m4/modff-ieee.m4: New file.
24232         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
24233         whether modff works with NaN and Inf. Replace it if not.
24234         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
24235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
24236         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
24237         * modules/modff (configure.ac): Consider REPLACE_MODFF.
24238         (Depends-on): Update dependencies.
24239         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
24240         m4/signbit.m4.
24241         (Depends-on): Add modf-ieee.
24242         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
24243         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
24245         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
24246         * m4/modf-ieee.m4: New file.
24247         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
24248         whether modf works with NaN and Inf. Replace it if not.
24249         * lib/math.in.h (modf): New declaration.
24250         * lib/modf.c: New file.
24251         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
24252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
24253         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
24254         * modules/modf (Files): Add lib/modf.c.
24255         (Depends-on): Add math, isfinite, trunc, isinf.
24256         (configure.ac): Addrange to compile lib/modf.c if needed.
24257         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
24258         m4/signbit.m4.
24259         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
24260         * tests/test-math-c++.cc: Check the declaration of modf.
24261         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
24263         Tests for module 'modfl-ieee'.
24264         * modules/modfl-ieee-tests: New file.
24265         * tests/test-modfl-ieee.c: New file.
24267         New module 'modfl-ieee'.
24268         * modules/modfl-ieee: New file.
24270         Tests for module 'modf-ieee'.
24271         * modules/modf-ieee-tests: New file.
24272         * tests/test-modf-ieee.c: New file.
24274         New module 'modf-ieee'.
24275         * modules/modf-ieee: New file.
24277         Tests for module 'modff-ieee'.
24278         * modules/modff-ieee-tests: New file.
24279         * tests/test-modff-ieee.c: New file.
24280         * tests/test-modf-ieee.h: New file.
24282         New module 'modff-ieee'.
24283         * modules/modff-ieee: New file.
24285 2012-02-26  Bruno Haible  <bruno@clisp.org>
24287         Tests for module 'fabsl-ieee'.
24288         * modules/fabsl-ieee-tests: New file.
24289         * tests/test-fabsl-ieee.c: New file.
24291         New module 'fabsl-ieee'.
24292         * modules/fabsl-ieee: New file.
24294         Tests for module 'fabs-ieee'.
24295         * modules/fabs-ieee-tests: New file.
24296         * tests/test-fabs-ieee.c: New file.
24298         New module 'fabs-ieee'.
24299         * modules/fabs-ieee: New file.
24301         Tests for module 'fabsf-ieee'.
24302         * modules/fabsf-ieee-tests: New file.
24303         * tests/test-fabsf-ieee.c: New file.
24304         * tests/test-fabs-ieee.h: New file.
24306         New module 'fabsf-ieee'.
24307         * modules/fabsf-ieee: New file.
24309 2012-02-26  Bruno Haible  <bruno@clisp.org>
24311         Tests for module 'fmal-ieee'.
24312         * modules/fmal-ieee-tests: New file.
24313         * tests/test-fmal-ieee.c: New file.
24315         New module 'fmal-ieee'.
24316         * modules/fmal-ieee: New file.
24318         Tests for module 'fma-ieee'.
24319         * modules/fma-ieee-tests: New file.
24320         * tests/test-fma-ieee.c: New file.
24322         New module 'fma-ieee'.
24323         * modules/fma-ieee: New file.
24325         Tests for module 'fmaf-ieee'.
24326         * modules/fmaf-ieee-tests: New file.
24327         * tests/test-fmaf-ieee.c: New file.
24328         * tests/test-fma-ieee.h: New file.
24330         New module 'fmaf-ieee'.
24331         * modules/fmaf-ieee: New file.
24333 2012-02-26  Bruno Haible  <bruno@clisp.org>
24335         Tests for module 'ldexpl-ieee'.
24336         * modules/ldexpl-ieee-tests: New file.
24337         * tests/test-ldexpl-ieee.c: New file.
24339         New module 'ldexpl-ieee'.
24340         * modules/ldexpl-ieee: New file.
24342         Tests for module 'ldexp-ieee'.
24343         * modules/ldexp-ieee-tests: New file.
24344         * tests/test-ldexp-ieee.c: New file.
24346         New module 'ldexp-ieee'.
24347         * modules/ldexp-ieee: New file.
24349         Tests for module 'ldexpf-ieee'.
24350         * modules/ldexpf-ieee-tests: New file.
24351         * tests/test-ldexpf-ieee.c: New file.
24352         * tests/test-ldexp-ieee.h: New file.
24354         New module 'ldexpf-ieee'.
24355         * modules/ldexpf-ieee: New file.
24357 2012-02-26  Bruno Haible  <bruno@clisp.org>
24359         Refactor frexp*-ieee tests.
24360         * tests/test-frexp-ieee.h: New file.
24361         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
24362         (main): Just call test_function.
24363         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
24364         (main): Just call test_function.
24365         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
24366         (main): Just call test_function.
24367         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
24368         * modules/frexp-ieee-tests (Files): Likewise.
24369         * modules/frexpl-ieee-tests (Files): Likewise.
24371         Tests for module 'frexpl-ieee'.
24372         * modules/frexpl-ieee-tests: New file.
24373         * tests/test-frexpl-ieee.c: New file.
24375         New module 'frexpl-ieee'.
24376         * modules/frexpl-ieee: New file.
24378         Tests for module 'frexp-ieee'.
24379         * modules/frexp-ieee-tests: New file.
24380         * tests/test-frexp-ieee.c: New file.
24382         New module 'frexp-ieee'.
24383         * modules/frexp-ieee: New file.
24385         Tests for module 'frexpf-ieee'.
24386         * modules/frexpf-ieee-tests: New file.
24387         * tests/test-frexpf-ieee.c: New file.
24389         New module 'frexpf-ieee'.
24390         * modules/frexpf-ieee: New file.
24392 2012-02-26  Bruno Haible  <bruno@clisp.org>
24394         roundl-ieee tests: More tests.
24395         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24396         (main): Add tests for [MX] shaded specification in POSIX.
24397         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24398         (Depends-on): Add isnanl-nolibm.
24400         round-ieee tests: More tests.
24401         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24402         (main): Add tests for [MX] shaded specification in POSIX.
24403         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24404         (Depends-on): Add isnand-nolibm.
24406         roundf-ieee tests: More tests.
24407         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24408         (main): Add tests for [MX] shaded specification in POSIX.
24409         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24410         (Depends-on): Add isnanf-nolibm.
24412         truncl-ieee tests: More tests.
24413         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24414         (main): Add tests for [MX] shaded specification in POSIX.
24415         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24416         (Depends-on): Add isnanl-nolibm.
24418         trunc-ieee tests: More tests.
24419         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24420         (main): Add tests for [MX] shaded specification in POSIX.
24421         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24422         (Depends-on): Add isnand-nolibm.
24424         truncf-ieee tests: More tests.
24425         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24426         (main): Add tests for [MX] shaded specification in POSIX.
24427         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24428         (Depends-on): Add isnanf-nolibm.
24430         ceill-ieee tests: More tests.
24431         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24432         (main): Add tests for [MX] shaded specification in POSIX.
24433         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24434         (Depends-on): Add isnanl-nolibm.
24436         ceil-ieee tests: More tests.
24437         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24438         (main): Add tests for [MX] shaded specification in POSIX.
24439         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24440         (Depends-on): Add isnand-nolibm.
24442         ceilf-ieee tests: More tests.
24443         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24444         (main): Add tests for [MX] shaded specification in POSIX.
24445         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24446         (Depends-on): Add isnanf-nolibm.
24448         floorl-ieee tests: More tests.
24449         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24450         (main): Add tests for [MX] shaded specification in POSIX.
24451         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24452         (Depends-on): Add isnanl-nolibm.
24454         floor-ieee tests: More tests.
24455         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24456         (main): Add tests for [MX] shaded specification in POSIX.
24457         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24458         (Depends-on): Add isnand-nolibm.
24460         floorf-ieee tests: More tests.
24461         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24462         (main): Add tests for [MX] shaded specification in POSIX.
24463         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24464         (Depends-on): Add isnanf-nolibm.
24466 2012-02-26  Bruno Haible  <bruno@clisp.org>
24468         fpieee: More comments.
24469         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
24471 2012-02-25  Bruno Haible  <bruno@clisp.org>
24473         Tests for module 'log10l'.
24474         * modules/log10l-tests: New file.
24475         * tests/test-log10l.c: New file.
24476         * tests/test-math-c++.cc: Check the declaration of log10l.
24478         New module 'log10l'.
24479         * lib/math.in.h (log10l): New declaration.
24480         * lib/log10l.c: New file.
24481         * m4/log10l.m4: New file.
24482         * modules/log10l: New file.
24483         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
24484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
24485         HAVE_DECL_LOG10L.
24486         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
24487         HAVE_DECL_LOG10L.
24488         * doc/posix-functions/log10l.texi: Mention the new module.
24490 2012-02-25  Bruno Haible  <bruno@clisp.org>
24492         fmodl, remainder*: Avoid wrong results due to rounding errors.
24493         * lib/fmodl.c (fmodl): Correct the result if it is not within the
24494         expected bounds.
24495         * lib/remainderf.c (remainderf): Likewise.
24496         * lib/remainder.c (remainder): Likewise.
24497         * lib/remainderl.c (remainderl): Likewise.
24499 2012-02-25  Bruno Haible  <bruno@clisp.org>
24501         Tests for module 'remainderl'.
24502         * modules/remainderl-tests: New file.
24503         * tests/test-remainderl.c: New file.
24504         * tests/test-math-c++.cc: Check the declaration of remainderl.
24506         New module 'remainderl'.
24507         * lib/math.in.h (remainderl): New declaration.
24508         * lib/remainderl.c: New file.
24509         * m4/remainderl.m4: New file.
24510         * modules/remainderl: New file.
24511         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
24512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
24513         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
24514         HAVE_REMAINDERL.
24515         * doc/posix-functions/remainderl.texi: Mention the new module.
24517 2012-02-25  Bruno Haible  <bruno@clisp.org>
24519         Tests for module 'remainderf'.
24520         * modules/remainderf-tests: New file.
24521         * tests/test-remainderf.c: New file.
24522         * tests/test-math-c++.cc: Check the declaration of remainderf.
24524         New module 'remainderf'.
24525         * lib/math.in.h (remainderf): New declaration.
24526         * lib/remainderf.c: New file.
24527         * m4/remainderf.m4: New file.
24528         * modules/remainderf: New file.
24529         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
24530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
24531         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
24532         HAVE_REMAINDERF.
24533         * doc/posix-functions/remainderf.texi: Mention the new module.
24535 2012-02-25  Bruno Haible  <bruno@clisp.org>
24537         remainder: Support for MSVC.
24538         * lib/math.in.h (remainder): New declaration.
24539         * lib/remainder.c: New file.
24540         * m4/remainder.m4: New file.
24541         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
24542         (Depends-on): Add math, round, fma.
24543         (configure.ac): Use results of gl_FUNC_REMAINDER.
24544         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
24545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
24546         HAVE_DECL_REMAINDER.
24547         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
24548         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
24549         * tests/test-math-c++.cc: Check the declaration of remainder.
24550         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
24551         problems are fixed.
24553 2012-02-25  Bruno Haible  <bruno@clisp.org>
24555         Tests for module 'fmodl'.
24556         * modules/fmodl-tests: New file.
24557         * tests/test-fmodl.c: New file.
24558         * tests/test-math-c++.cc: Check the declaration of fmodl.
24560         New module 'fmodl'.
24561         * lib/math.in.h (fmodl): New declaration.
24562         * lib/fmodl.c: New file.
24563         * m4/fmodl.m4: New file.
24564         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
24565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
24566         REPLACE_FMODL.
24567         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
24568         REPLACE_FMODL.
24569         * modules/fmodl: New file.
24570         * doc/posix-functions/fmodl.texi: Mention the new module.
24572 2012-02-25  Bruno Haible  <bruno@clisp.org>
24574         Tests for module 'modfl'.
24575         * modules/modfl-tests: New file.
24576         * tests/test-modfl.c: New file.
24577         * tests/test-math-c++.cc: Check the declaration of modfl.
24579         New module 'modfl'.
24580         * lib/math.in.h (modfl): New declaration.
24581         * lib/modfl.c: New file.
24582         * m4/modfl.m4: New file.
24583         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
24584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
24585         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
24586         * modules/modfl: New file.
24587         * doc/posix-functions/modfl.texi: Mention the new module.
24589 2012-02-25  Bruno Haible  <bruno@clisp.org>
24591         Tests for module 'fabsl'.
24592         * modules/fabsl-tests: New file.
24593         * tests/test-fabsl.c: New file.
24594         * tests/test-math-c++.cc: Check the declaration of fabsl.
24596         New module 'fabsl'.
24597         * lib/math.in.h (fabsl): New declaration.
24598         * lib/fabsl.c: New file.
24599         * m4/fabsl.m4: New file.
24600         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24602         REPLACE_FABSL.
24603         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24604         REPLACE_FABSL.
24605         * modules/fabsl: New file.
24606         * doc/posix-functions/fabsl.texi: Mention the new module.
24608 2012-02-25  Bruno Haible  <bruno@clisp.org>
24610         fabs tests: More tests.
24611         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24612         (zero): New variable.
24613         (main): Add tests for signed zero.
24614         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24616         fabsf tests: More tests.
24617         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24618         (zero): New variable.
24619         (main): Add tests for signed zero.
24620         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24622 2012-02-24  Bruno Haible  <bruno@clisp.org>
24624         atanl: Provide function definition on MSVC.
24625         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24626         function pointer.
24627         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24629 2012-02-24  Bruno Haible  <bruno@clisp.org>
24631         acosl: Provide function definition on MSVC.
24632         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24633         function pointer.
24634         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24636 2012-02-24  Bruno Haible  <bruno@clisp.org>
24638         asinl: Provide function definition on MSVC.
24639         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24640         function pointer.
24641         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24643 2012-02-24  Bruno Haible  <bruno@clisp.org>
24645         tanl: Provide function definition on MSVC.
24646         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24647         function pointer.
24648         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24650 2012-02-24  Bruno Haible  <bruno@clisp.org>
24652         cosl: Provide function definition on MSVC.
24653         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24654         function pointer.
24655         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24657 2012-02-24  Bruno Haible  <bruno@clisp.org>
24659         sinl: Provide function definition on MSVC.
24660         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24661         function pointer.
24662         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24664 2012-02-24  Bruno Haible  <bruno@clisp.org>
24666         logl: Provide function definition on MSVC.
24667         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24668         function pointer.
24669         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24671 2012-02-24  Bruno Haible  <bruno@clisp.org>
24673         expl: Provide function definition on MSVC.
24674         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24675         function pointer.
24676         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24678 2012-02-24  Bruno Haible  <bruno@clisp.org>
24680         sqrtl: Provide function definition on MSVC.
24681         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24682         a function pointer.
24683         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24685 2012-02-24  Bruno Haible  <bruno@clisp.org>
24687         ceill: Provide function definition on MSVC.
24688         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24689         used as a function pointer.
24690         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24692 2012-02-24  Bruno Haible  <bruno@clisp.org>
24694         floorl: Provide function definition on MSVC.
24695         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24696         used as a function pointer.
24697         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24699 2012-02-24  Bruno Haible  <bruno@clisp.org>
24701         ceilf: Provide function definition on MSVC.
24702         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24703         used as a function pointer.
24704         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24706 2012-02-24  Bruno Haible  <bruno@clisp.org>
24708         floorf: Provide function definition on MSVC.
24709         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24710         used as a function pointer.
24711         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24713 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24715         stdnoreturn: new module
24716         This implements a replacement for C11's <stdnoreturn.h>.
24717         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24718         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24719         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24720         * tests/test-stdnoreturn.c: New files.
24722 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24724         regex: fix false multibyte matches in some regular expressions
24725         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24726         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24727         * lib/regex_internal.c (re_string_skip_chars):
24728         Fix miscomputation of remain_len that may cause incomplete
24729         multi-byte character and false match.
24731 2012-02-24  Jim Meyering  <meyering@redhat.com>
24733         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24734         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24735         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24736         Remove now-unnecessary str''cmp obfuscation.
24737         Suggested by Akim Demaille.
24739 2012-02-24  Bruno Haible  <bruno@clisp.org>
24741         streq: Rename macro.
24742         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24743         * NEWS: Mention the change.
24744         * lib/mbrtowc.c (mbrtowc): Update.
24745         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
24746         * lib/wcwidth.c (wcwidth): Update.
24747         Suggested by Akim Demaille and Jim Meyering.
24749 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24751         regex: fix typo in definition of MIN
24752         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
24753         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
24755 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24756             Bruno Haible  <bruno@clisp.org>
24758         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
24759         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
24760         entries into a stack-allocated buffer directly.
24761         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
24763 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24764             Bruno Haible  <bruno@clisp.org>
24766         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
24768          - There were several instances of this pattern:
24770              for (;;) {
24771                n = acl (f, GETACLCNT, 0, NULL);
24772                [ allocate an array A of size N ]
24773                if (acl (f, GETACL, n, a) == n)
24774                  break;
24775              }
24777            This loop might never terminate if some other process is constantly
24778            manipulating the file's ACL.  The loop should be rewritten to
24779            terminate.
24781          - The acl (... GETACLNT ...) call is merely an optimization; its value
24782            is merely a hint as to how big to make the array.  A better
24783            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
24784            and just guess a reasonably-big size, growing the size and trying
24785            again if it's not large enough.  This guarantees termination, and
24786            saves a system call.
24788         * lib/acl-internal.h: Include <limits.h>.
24789         (MIN, SIZE_MAX): New macros.
24790         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
24791         a stack-allocated buffer, and use malloc if it does not fit. Don't
24792         use GETACLCNT.
24793         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24795 2012-02-19  Bruno Haible  <bruno@clisp.org>
24797         acl: Fix endless loop on Solaris with vxfs.
24798         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
24799         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
24800         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24801         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
24802         * tests/test-sameacls.c (main)[Solaris]: Likewise.
24803         Reported by Bill Jones in
24804         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
24806 2012-02-19  Bruno Haible  <bruno@clisp.org>
24808         acl: Fix copy-acl test failure on Solaris 11.0.
24809         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
24810         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
24811         that this function returns 0 in some more cases.
24813 2012-02-19  Bruno Haible  <bruno@clisp.org>
24815         acl: Update doc references.
24816         * doc/acl-resources.txt: Update links to Solaris documentation.
24818 2012-02-19  Bruno Haible  <bruno@clisp.org>
24820         Fix test failure in many locales on Solaris 11.
24821         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
24822         'tr' arguments.
24823         * tests/test-pipe-filter-ii1.c (main): Likewise.
24824         * build-aux/bootstrap (check_versions): Run 'tr' command with range
24825         expressions in the C locale.
24826         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24827         * m4/host-os.m4 (gl_HOST_OS): Likewise.
24829 2012-02-19  Bruno Haible  <bruno@clisp.org>
24831         gnulib-tool: Improve usage message.
24832         * gnulib-tool (func_usage): Move doc of --help and --version to the
24833         section "Operation modes".
24835 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
24837         README-release: make it easier to execute commands
24838         * top/README-release: break commands out on to separate lines.
24840 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
24842         GNUmakefile: simplify detection of unconfigured trees
24843         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
24844         whether the tree make is being run from is already configured or
24845         not.  Related simplifications.
24847 2012-02-13  Simon Josefsson  <simon@josefsson.org>
24849         * gnulib-tool (func_usage): Document --help and --version.
24851 2012-02-11  Jim Meyering  <meyering@redhat.com>
24853         bootstrap: don't exit 0 upon gnulib-tool failure
24854         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
24855         its exit status, not 0.
24857 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24859         README-release: various improvements
24860         * top/README-release: Give a command to push changes for the
24861         release.  Add "distcheck" to list of other pre-release checks.
24862         Fix instance of "make stable" which should be "make TYPE".
24864 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24866         maint: replace FSF snail-mail addresses with URLs
24867         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24868         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24869         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24870         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24871         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24872         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24873         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24874         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24875         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24876         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24877         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24878         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24879         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24880         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24881         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24882         * lib/glthread/thread.c, lib/glthread/thread.h:
24883         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24884         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24885         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24886         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24887         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24888         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24889         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24890         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24891         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24892         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24893         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24894         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24895         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24896         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24897         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24898         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24899         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24900         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24901         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24902         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24903         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24904         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24905         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24906         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24907         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24908         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24909         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24910         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24911         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24912         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24913         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24914         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24915         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24916         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24917         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
24918         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
24919         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
24920         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
24921         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
24922         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
24923         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
24924         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
24925         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
24926         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
24927         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
24928         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
24929         * tests/test-poll.c, tests/test-quotearg-simple.c:
24930         * tests/test-quotearg.c, tests/test-quotearg.h:
24931         * tests/test-round-ieee.c, tests/test-round1.c:
24932         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
24933         * tests/test-roundl-ieee.c, tests/test-roundl.c:
24934         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
24935         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
24936         * tests/test-strerror.c, tests/test-strerror_r.c:
24937         * tests/test-strsignal.c, tests/test-strverscmp.c:
24938         * tests/test-xmemdup0.c:
24939         Replace FSF snail mail addresses with URLs, as per GNU coding
24940         standards.  See glibc bug
24941         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
24943 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24945         README-release: capitalize a word and split a line
24946         * top/README-release: Fix punctuation and spacing.
24948 2012-02-08  Akim Demaille  <demaille@gostai.com>
24950         fatal-signal: use C prototypes (with explicit void).
24951         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24952         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
24954 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24956         regex: spelling fix
24957         * lib/regexec.c: spelling fix
24959         regex: rely on stdint.h for SIZE_MAX
24960         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
24962 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24964         regex: merge glibc changes
24966         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
24967         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
24968         (init_word_char): Work even if bitset words are not exactly 32 or
24969         64 bits wide.  Don't assume there are no padding bits.
24970         * lib/regex.c [_LIBC]: Do not include <config.h>.
24971         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
24972         and -Wtype-limits.
24973         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
24974         needless disagreement with glibc.  All uses changed.  Define it to
24975         1 only if _GNU_SOURCE, to match glibc.
24976         (_REG_RM_NAME): Remove; no longer needed, since the names in
24977         question are now all protected by __USE_GNU.
24978         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
24979         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
24980         * lib/regex_internal.h (MIN): New macro.
24982         2012-01-03 Ulrich Drepper <drepper@gmail.com>
24983         * lib/regcomp.c (init_word_char): Optimize regex a bit.
24985         2011-12-30 Jakub Jelinek <jakub@redhat.com>
24986         * lib/regex_internal.c (re_string_fetch_byte_case):
24987         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
24988         is miscompiled, and it turns out it is because of an incorrect
24989         attribute on re_string_fetch_byte_case.  Unlike
24990         re_string_peek_byte_case, this one is really not pure, it modifies
24991         memory (increments pstr->cur_idx), and with the pure attribute GCC
24992         assumed it doesn't and it cached the presumed value of
24993         regexp->cur_idx in a variable across the
24994          for (;; ++i)
24995            {
24996              if (i >= BRACKET_NAME_BUF_SIZE)
24997                return REG_EBRACK;
24998              if (token->type == OP_OPEN_CHAR_CLASS)
24999                ch = re_string_fetch_byte_case (regexp);
25000              else
25001                ch = re_string_fetch_byte (regexp);
25002              if (re_string_eoi(regexp))
25003                return REG_EBRACK;
25004              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
25005                break;
25006              elem->opr.name[i] = ch;
25007            }
25009         2011-11-29 Andreas Schwab <schwab@redhat.com>
25010         * lib/regcomp.c (build_equiv_class):
25011         Fix access after end of search string in regex matcher.
25013         2011-11-12 Ulrich Drepper <drepper@redhat.com>
25014         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
25016         2011-10-12 Ulrich Drepper <drepper@redhat.com>
25017         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
25019         2011-10-11 Ulrich Drepper <drepper@redhat.com>
25020         * lib/regcomp.c (parse_branch, parse_sub_exp):
25021         More regex memory leak fixes and tests.
25022         (parse_sub_exp, parse_bracket_exp):
25023         Fix memory leak for some invalid regular expressions.
25025         2011-05-28 Ulrich Drepper <drepper@gmail.com>
25026         * lib/regex_internal.c, lib/regexec.c:
25027         Fix unnecessary overallocation due to incomplete character.  When
25028         incomplete characters are found at the end of a string the code
25029         ran amok and allocated lots of memory.  Stricter limits are now in
25030         place.
25032         2011-05-20 Reuben Thomas <rrt@sc3d.org>
25033         * lib/regex.h: Update documentation.
25035         2011-05-16 Aharon Robbins <arnold@skeeve.com>
25036         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
25038         2010-05-05 Andreas Schwab <schwab@redhat.com>
25039         * lib/regexec.c (find_collation_sequence_value):
25040         Fix lookup of collation sequence value during regexp matching.
25042         2010-01-22 Ulrich Drepper <drepper@redhat.com>
25043         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
25045         2008-01-16 Ulrich Drepper <drepper@redhat.com>
25046         * lib/regex.h: Cleanup namespace.
25048         2007-11-26 Ulrich Drepper <drepper@redhat.com>
25049         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
25051         2007-08-26 Ulrich Drepper <drepper@redhat.com>
25052         * lib/regex_internal.h: Prevent some declarations and definitions
25053         to be seen when used in tests.
25055         2005-05-06 Ulrich Drepper <drepper@redhat.com>
25056         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
25057         __libc_lock_* macros if not _LIBC.
25058         (struct re_dfa_t): Add lock.
25060 2012-02-07  Eric Blake  <eblake@redhat.com>
25062         maint.mk: also prohibit lower-case @var@
25063         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
25064         lower case, like @top_srcdir@.
25066 2012-02-04  Eric Blake  <eblake@redhat.com>
25068         canonicalize: avoid uninitialized memory use
25069         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
25070         random '/' left in dest.
25071         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
25073 2012-02-04  Bruno Haible  <bruno@clisp.org>
25075         isatty: Fix test failure of ptsname_r on native Windows.
25076         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
25077         and don't set errno.
25078         (isatty): Test first whether fd is valid. Set errno when returning 0.
25080 2012-02-04  Bruno Haible  <bruno@clisp.org>
25082         spawn-pipe tests: Fix a NULL program name in a diagnostic.
25083         * tests/test-spawn-pipe-main.c: Include progname.h.
25084         (main): Invoke set_program_name.
25085         * modules/spawn-pipe-tests (Depends-on): Add progname.
25087         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
25088         * tests/test-nonblocking-socket-main.c: Include progname.h.
25089         (main): Invoke set_program_name.
25090         * modules/nonblocking-socket-tests (Depends-on): Add progname.
25092         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
25093         * tests/test-nonblocking-pipe-main.c: Include progname.h.
25094         (main): Invoke set_program_name.
25095         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
25097 2012-02-04  Eric Blake  <eblake@redhat.com>
25099         canonicalize-lgpl: fix // handling
25100         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
25102         canonicalize: fix // handling
25103         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
25104         /// to //, since only // is special.
25106 2012-02-04  Bruno Haible  <bruno@clisp.org>
25108         ioctl: Fix test failure on native Windows.
25109         * lib/ioctl.c: Include msvc-nothrow.h.
25110         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
25112 2012-02-04  Bruno Haible  <bruno@clisp.org>
25114         fsync: Avoid test failure on native Windows.
25115         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
25116         read-only.
25118 2012-02-04  Bruno Haible  <bruno@clisp.org>
25120         sys_select: Avoid syntax error on OpenBSD 5.0.
25121         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
25122         currently being included, just include the system's <sys/select.h>.
25124 2012-02-04  Bruno Haible  <bruno@clisp.org>
25126         sys_select: Avoid syntax error on OpenBSD 5.0.
25127         * lib/sys_select.in.h: Include <signal.h> only after the include_next
25128         <sys/select.h>, not before.
25129         Reported by Jiri B <jirib@devio.us>.
25131 2012-02-04  Bruno Haible  <bruno@clisp.org>
25133         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
25134         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
25135         global variables.
25136         * tests/test-get-rusage-data.c (main): Likewise.
25137         Reported by Jim Meyering.
25139 2012-02-04  Bruno Haible  <bruno@clisp.org>
25141         stdioext: Fix last commit.
25142         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
25144 2012-02-03  Bruno Haible  <bruno@clisp.org>
25146         stdioext: Add tentative support for Plan9.
25147         * lib/stdio-impl.h: Include <errno.h>.
25148         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
25149         * lib/freadable.c (freadable): Likewise.
25150         * lib/fwritable.c (fwritable): Likewise.
25151         * lib/fbufmode.c (fbufmode): Likewise.
25152         * lib/freading.c (freading): Likewise.
25153         * lib/fwriting.c (fwriting): Likewise.
25154         * lib/freadptr.c (freadptr): Likewise.
25155         * lib/freadseek.c (freadptrinc): Likewise.
25156         * lib/freadahead.c (freadahead): Likewise.
25157         * lib/fpurge.c (fpurge): Likewise.
25158         * lib/fseeko.c (rpl_fseeko): Likewise.
25159         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
25160         Reported by Jens Staal <staal1978@gmail.com>.
25162 2012-02-02  Jim Meyering  <meyering@redhat.com>
25164         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
25165         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
25166         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
25167         not even to try to add the attribute.  Instead, add a pragma to suppress
25168         the suggestion/warning.
25170 2012-01-31  Karl Berry  <karl@gnu.org>
25172         setstate doc: typo.
25173         * doc/posix-functions/setstate.texi (setstate): { not (.
25175 2012-01-31  Bruno Haible  <bruno@clisp.org>
25177         popen: Make more robust on Windows.
25178         * lib/popen.c: On native Windows, use the _popen based code even if
25179         HAVE_POPEN is set.
25180         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
25181         environment variable on native Windows.
25183 2012-01-30  Bruno Haible  <bruno@clisp.org>
25185         pclose: Fix typo.
25186         * lib/stdio.in.h (pclose): Fix typo in warning message.
25188 2012-01-30  Bruno Haible  <bruno@clisp.org>
25190         doc about getlogin_r, setstate.
25191         * doc/posix-functions/getlogin_r.texi: List the incompatible
25192         declaration problem under "not fixed by gnulib".
25193         * doc/posix-functions/setstate.texi: Mention incompatible declaration
25194         problem on Solaris 11 and other platforms.
25196 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
25197             Bruno Haible  <bruno@clisp.org>
25199         poll tests: Make test more robust.
25200         * tests/test-poll.c: Include macros.h.
25201         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
25202         return value of various I/O operations.
25203         * modules/poll-tests (Files): Add tests/macros.h.
25205 2012-01-30  Bruno Haible  <bruno@clisp.org>
25207         sys_stat: Fix support for mingw64 and MSVC.
25208         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
25209         header files already do it.
25210         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
25211         stat itself.
25212         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25214 2012-01-30  Bruno Haible  <bruno@clisp.org>
25216         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
25217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
25218         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
25220 2012-01-29  Bruno Haible  <bruno@clisp.org>
25222         quotearg: Fix test failure on MacOS X 10.5.
25223         * tests/test-quotearg-simple.c: Include localcharset.h.
25224         (main): If the locale encoding is not ASCII, bypass the tests of
25225         locale_quoting_style and clocale_quoting_style.
25226         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
25228 2012-01-29  Jim Meyering  <meyering@redhat.com>
25230         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
25231         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
25232         detect uses of canonicalize_file_name.
25234 2012-01-28  Bruno Haible  <bruno@clisp.org>
25236         test-framework-sh: Fix test failure with AIX 7.1 diff.
25237         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
25238         in column 1, like 'diff -c' does.
25239         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
25240         whether 'diff -u' is used. Instead, test whether the output contains
25241         some '@' character.
25243 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25245         strtoimax: eliminate need for stdint.h, inttypes.h checks
25246         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
25247         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
25248         the prerequisites for a recently-introduced strtoimax test.
25249         I guess this might cause strtoimax to be replaced when not
25250         strictly necessary on older hosts, but this shouldn't introduce
25251         any bugs and it should make Emacs 'configure' faster on typical
25252         modern hosts.  Problem discovered when importing the latest gnulib
25253         to an Emacs test version.
25254         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
25256 2012-01-28  Bruno Haible  <bruno@clisp.org>
25258         sys_time: Override 'struct timeval' on some native Windows platforms.
25259         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
25260         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
25261         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
25262         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
25263         needs to be overridden.
25264         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
25265         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
25266         * tests/test-sys_select.c: Check that the tv_sec member has the same
25267         size as a 'time_t'.
25268         * tests/test-sys_time.c: Likewise.
25269         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
25270         is set, set also REPLACE_GETTIMEOFDAY.
25271         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
25272         convert the resulting 'struct timeval' before returning.
25273         * lib/select.c: Include <sys/time.h>.
25274         (select, timeval): Undefine at the right place.
25275         * modules/select (Depends-on): Add sys_time.
25276         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
25277         some Windows platforms.
25278         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25280 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25282         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
25283         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
25284         an integer.
25285         * lib/fcntl.c (dupfd): Likewise.
25286         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
25288 2012-01-28  Bruno Haible  <bruno@clisp.org>
25290         fcntl: Avoid compilation error on native Windows.
25291         * modules/fcntl (Depends-on): Add 'close'.
25293 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25295         select, poll, isatty: Avoid warnings on x86_64 mingw64.
25296         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
25297         pointer to an integer.
25298         * lib/poll.c (IsConsoleHandle): Likewise.
25299         * lib/isatty.c (IsConsoleHandle): Likewise.
25301 2012-01-28  Jim Meyering  <meyering@redhat.com>
25303         doc: clarify README-release
25304         * top/README-release: Clarify: you should make a point to have
25305         the latest stable versions of build tools in your PATH, and the
25306         reference to buildreq is solely for its list of tool names, not
25307         for its minimal-functional version numbers.
25308         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
25310         maint.mk: use more readable (yet functionally equivalent) quoting
25311         It is common to quote a single quote in a single quoted string like
25312         this:  '...'\''...'.  Unless you know the idiom, that looks like
25313         gibberish, so prefer to double-quote the string when possible.
25314         Then you can use a more readable, lone single quote: "...'..."
25315         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
25316         "don't" is more readable than the equivalent 'don'\''t'.
25317         (sc_cast_of_x_alloc_return_value): Likewise.
25318         (sc_cast_of_alloca_return_value): Likewise.
25319         (sc_makefile_path_separator_check): Similar: use ":" in '...',
25320         rather than '\'':'\''.
25322 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25324         stdalign: relax _Alignof and tighten _Alignas test
25325         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
25326         as it was too strict: alignof must divide offsetof, but it need
25327         not equal offsetof.  Inspired by Joseph S. Myers's comment
25328         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
25329         Conversely, tighten the _Alignas test a bit, as the resulting
25330         alignment must be exactly 8.
25332 2012-01-27  Bruno Haible  <bruno@clisp.org>
25334         stdalign: Document the last change.
25335         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
25337 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25339         stdalign: check that alignof and offsetof are consistent
25340         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
25341         Problem reported for gnulib by Richard W.M. Jones in
25342         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
25344 2012-01-27  Jim Meyering  <meyering@redhat.com>
25346         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
25347         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
25348         convert a sequence with gaps to the minimal containing range.
25349         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
25350         * tests/test-update-copyright.sh: Test for this.
25351         The FSF confirmed it is ok to do this, assuming there is at
25352         least one significant change per year in the affected range:
25353         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
25355 2012-01-26  Bruno Haible  <bruno@clisp.org>
25357         pipe2: refine doc about thread-safety
25358         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
25359         multithread-safety problem.
25360         * doc/glibc-functions/accept4.texi: Likewise.
25362 2012-01-26  Bruno Haible  <bruno@clisp.org>
25364         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
25365         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
25366         In the test program, include <fcntl.h>, for O_RDONLY.
25368 2012-01-26  Eric Blake  <eblake@redhat.com>
25370         pipe2: document lack of thread-safety in replacement
25371         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
25372         issue in replacement.
25373         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25374         Based on a report by Eric Wong.
25376 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25377             Bruno Haible  <bruno@clisp.org>
25379         malloca: Avoid warnings on x86_64 mingw64.
25380         * lib/malloca.c: Include <stdint.h>.
25381         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
25382         * modules/malloca (Depends-on): Add stdint.
25383         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
25385 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25387         obstack: remove __STDC__ conditionals
25388         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
25389         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
25390         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
25391         m4/include_next.m4 as the only gnulib-maintained places that still
25392         refer to __STDC__.
25394 2012-01-24  Bruno Haible  <bruno@clisp.org>
25396         havelib: Modern quoting.
25397         * build-aux/config.rpath: Quote 'like this', not `like this', as per
25398         the recent change to the GNU coding standards.
25400 2012-01-24  Bruno Haible  <bruno@clisp.org>
25402         stdint: Improve support for Android.
25403         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
25404         Reported by Simon Josefsson <simon@josefsson.org>.
25406 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25408         doc: omit trailing empty lines from INSTALL etc.
25409         * doc/Makefile (INSTALL): Omit trailing empty lines.
25410         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
25411         omit trailing empty lines.  This simplifies the build procedure.
25413 2012-01-23  Jim Meyering  <meyering@redhat.com>
25415         tests: avoid spurious warnings about gl_sockets_startup
25416         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
25417         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
25418         reporting a "statement with no effect".
25419         * tests/test-accept.c (main): Mark as "(void)".
25420         * tests/test-accept4.c (main): Likewise.
25421         * tests/test-bind.c (main): Likewise.
25422         * tests/test-connect.c (main): Likewise.
25423         * tests/test-getpeername.c (main): Likewise.
25424         * tests/test-getsockname.c (main): Likewise.
25425         * tests/test-getsockopt.c (main): Likewise.
25426         * tests/test-listen.c (main): Likewise.
25427         * tests/test-recv.c (main): Likewise.
25428         * tests/test-recvfrom.c (main): Likewise.
25429         * tests/test-send.c (main): Likewise.
25430         * tests/test-sendto.c (main): Likewise.
25431         * tests/test-setsockopt.c (main): Likewise.
25432         * tests/test-shutdown.c (main): Likewise.
25434 2012-01-21  Bruno Haible  <bruno@clisp.org>
25436         locale-fr.m4: Fix for Android.
25437         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
25438         failure of the test program on Bionic libc.
25440 2012-01-21  Jim Meyering  <meyering@redhat.com>
25442         bootstrap: fail when bootstrap_post_import_hook fails
25443         Otherwise, it's far too easy to miss diagnostics emitted
25444         between gnulib-tool's output and that of running configure.
25445         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
25447 2012-01-17  Jim Meyering  <meyering@redhat.com>
25449         maint: enable sc_trailing_blank
25450         * build-aux/pmccabe.css: Remove trailing blanks.
25451         * doc/acl-cygwin.txt: Likewise.
25452         * doc/gnu-oids.texi: Likewise
25453         * cfg.mk: Enable sc_trailing_blank.
25454         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
25456 2012-01-17  Jim Meyering  <meyering@redhat.com>
25458         maint: enable sc_prohibit_openat_without_use
25459         * cfg.mk: Enable sc_prohibit_openat_without_use.
25460         Exempt lib/selinux-at.c.
25462 2012-01-17  Jim Meyering  <meyering@redhat.com>
25464         maint: enable sc_prohibit_cloexec_without_use
25465         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
25466         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
25468 2012-01-17  Jim Meyering  <meyering@redhat.com>
25470         maint: enable sc_prohibit_intprops_without_use
25471         * cfg.mk: Enable sc_prohibit_intprops_without_use
25472         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
25474 2012-01-17  Jim Meyering  <meyering@redhat.com>
25476         maint: enable sc_prohibit_hash_pjw_without_use
25477         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
25478         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
25479         to match any use of \<hash_pjw\>, i.e., not necessarily with a
25480         following " (".
25482 2012-01-17  Jim Meyering  <meyering@redhat.com>
25484         maint: enable double-word-prohibiting rule
25485         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
25486         Exempt three files.
25488 2012-01-17  Jim Meyering  <meyering@redhat.com>
25490         maint: remove empty lines at EOF, but excluding modules/*
25491         Apply syntax rules at home as well as abroad.  Most changes
25492         were induced by running this:
25493           make srcdir=. _build-aux=build-aux -f top/maint.mk \
25494             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
25495             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
25496         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
25497         Exempt modules/* and two binary files.
25498         Also exempt doc/INSTALL*, per request from Bruno Haible.
25499         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
25500         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
25501         * doc/Copyright/request-assign.future: Likewise.
25502         * doc/Copyright/request-disclaim.changes: Likewise.
25503         * doc/INSTALL: Likewise.
25504         * doc/INSTALL.ISO: Likewise.
25505         * doc/INSTALL.UTF-8: Likewise.
25506         * doc/acl-cygwin.txt: Likewise.
25507         * doc/acl-resources.txt: Likewise.
25508         * doc/fdl-1.2.texi: Likewise.
25509         * doc/fdl-1.3.texi: Likewise.
25510         * doc/fdl.texi: Likewise.
25511         * lib/argp-pin.c: Likewise.
25512         * lib/round.c: Likewise.
25513         * lib/unicase/u16-totitle.c: Likewise.
25514         * lib/unictype/block_test.c: Likewise.
25515         * lib/uninorm/canonical-decomposition.c: Likewise.
25516         * m4/README: Likewise.
25517         * m4/relocatable-lib.m4: Likewise.
25518         * tests/test-isnand-nolibm.c: Likewise.
25519         * tests/test-isnand.c: Likewise.
25520         * tests/uninorm/NormalizationTest.txt: Likewise.
25522 2012-01-17  Jim Meyering  <meyering@redhat.com>
25524         maint: add framework to run syntax-check rules against gnulib sources
25525         * cfg.mk: New file, to disable all currently-failing tests.
25526         We'll enable them one by one, as they are made to pass.
25527         * Makefile (sc_maint): New rule.
25529 2012-01-21  Bruno Haible  <bruno@clisp.org>
25531         stdint: Add support for Android.
25532         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
25533         include the system's <stdint.h>.
25534         Reported by Simon Josefsson <simon@josefsson.org>.
25536 2012-01-19  Jim Meyering  <meyering@redhat.com>
25538         bootstrap: add bootstrap_post_import_hook
25539         Bison does still need something like the gnulib_mk_hook whose
25540         invocation I had to remove along with slurp in commit 767ccd40.
25541         Technically, we could get along without it, but doing so would
25542         have required living with a warning and a mandatory post-bootstrap
25543         automake rerun.
25544         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
25545         (bootstrap_post_import_hook): New function.
25546         Invoke it after gnulib-tool --import and before autoreconf.
25548 2012-01-18  Jim Meyering  <meyering@redhat.com>
25550         gitlog-to-changelog: don't use "no_"-prefixed variable name
25551         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
25552         to enable both --cluster and --no-cluster.  Change variable name,
25553         s/\$no_cluster/$cluster/, and reverse usage to match.
25555         gitlog-to-changelog: use "||", not "or" in expressions
25556         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
25557         expressions.
25559 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25561         gitlog-to-changelog: new option --no-cluster
25562         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
25563         clustering of adjacent commit messages.
25565 2012-01-17  Jim Meyering  <meyering@redhat.com>
25567         maint: spell file systems with two words, not one
25568         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
25569         two words, not one.
25571 2012-01-16  Jim Meyering  <meyering@redhat.com>
25573         bootstrap: add a FIXME comment to ensure we eventually remove the hack
25574         * build-aux/bootstrap (gnulib_tool_options): Add comment.
25576 2012-01-16  Eric Blake  <eblake@redhat.com>
25578         bootstrap: cater to autoconf 2.59
25579         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
25580         is not available.
25582         bootstrap: properly check for libtool
25583         * build-aux/bootstrap (libtoolize): Also run libtool when older
25584         usage is detected.
25586 2012-01-15  Bruno Haible  <bruno@clisp.org>
25588         Improve support for MSVC 9.
25589         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
25590         clashes on MSVC.
25591         * lib/fcntl.in.h: Likewise.
25592         * lib/stdlib.in.h: Likewise.
25593         * lib/sys_stat.in.h: Likewise.
25595 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25597         gnupload: we hold the master copy of this script now
25598         For motivation and more information, see:
25599         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25600         * build-aux/gnupload: Make it clear in the heading comments that the
25601         master copy of this file is maintained by gnulib.  Since we are at
25602         it, bump its copyright year and ...
25603         ($scriptversion): ... the date in its version.
25604         ($usage): Patches and bug reports should be sent to the gnulib list,
25605         not the automake one.
25606         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25607         anymore.
25609 2012-01-15  Bruno Haible  <bruno@clisp.org>
25611         Fix module 'random'.
25612         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25613         initstate, setstate are declared.
25615 2012-01-14  Bruno Haible  <bruno@clisp.org>
25617         Tests for module 'random'.
25618         * modules/random-tests: New file.
25619         * tests/test-random.c: New file, based on tests/test-random_r.c.
25621         New module 'random'.
25622         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25623         declarations.
25624         * lib/random.c: New file, based on glibc/stdlib/random.c.
25625         * m4/random.m4: New file.
25626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25627         HAVE_RANDOM.
25628         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25629         * modules/random: New file.
25630         * config/srclist.txt: Add an entry for random.c.
25631         * doc/posix-functions/random.texi: Mention the 'random' module.
25632         * doc/posix-functions/initstate.texi: Likewise.
25633         * doc/posix-functions/setstate.texi: Likewise.
25634         * doc/posix-functions/srandom.texi: Likewise.
25636 2012-01-12  Bruno Haible  <bruno@clisp.org>
25638         random_r: Use common idioms.
25639         * lib/random_r.c: Include <stdlib.h> first.
25641         random_r: Override incompatible API on AIX, OSF/1.
25642         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25643         Override the system function if REPLACE_RANDOM_R is 1.
25644         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25645         and OSF/1, set REPLACE_RANDOM_R.
25646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25647         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25648         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25649         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25650         * doc/glibc-functions/random_r.texi: Likewise.
25651         * doc/glibc-functions/setstate_r.texi: Likewise.
25653         random_r: Support for MSVC 9.
25654         * lib/random_r.c: Include stdint.h, not inttypes.h.
25656 2012-01-12  Eric Blake  <eblake@redhat.com>
25658         inet_ntop: guard extra work by IF_LINT
25659         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25660         better code generation when not checking for warnings.
25661         Suggested by Paul Eggert and Jim Meyering.
25663         strptime: fix regression on mingw
25664         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25665         Fix regression.  Reported by Bruno Haible.
25667 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25668             Bruno Haible  <bruno@clisp.org>
25670         copy-file: add error-code-returning variant.
25671         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25672         (qcopy_file_preserving): New declaration.
25673         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25674         copy_file_preserving. Change return type to 'int'. Don't emit an error
25675         message here.
25676         (copy_file_preserving): New function.
25677         * tests/test-copy-file.c: Include <stdlib.h>.
25678         (main): Test qcopy_file_preserving if the environment variable
25679         NO_STDERR_OUTPUT is set.
25680         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25681         with NO_STDERR_OUTPUT
25682         * tests/test-copy-file-2.sh: Likewise.
25684 2012-01-10  Bruno Haible  <bruno@clisp.org>
25686         copy-file: Use 'quote' module consistently.
25687         * lib/copy-file.c (copy_file_preserving): Use quote().
25689         copy-file: Refactor.
25690         * lib/copy-file.c: Include quote.h.
25691         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25692         message here.
25693         * modules/copy-file (Depends-on): Add quote.
25695         acl: Export qcopy_acl.
25696         * lib/acl.h (qcopy_acl): New declaration.
25697         * lib/copy-acl.c (qcopy_acl): Make non-static.
25699         acl: Rename a local variable.
25700         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25702         acl: Align return values of copy_acl and qcopy_acl.
25703         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25704         maybe < -1.
25706 2012-01-11  Eric Blake  <eblake@redhat.com>
25708         strptime: silence gcc warnings
25709         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25710         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25711         Reported by Daniel P. Berrange.
25713         inet_ntop: silence gcc warning
25714         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25715         Reported by Daniel P. Berrange.
25717 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25719         getloadavg test: skip the test on GNU/Linux without /proc mounted
25720         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25721         file.  When /proc is not mounted, it always fails with ENOENT.
25722         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25723         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25725 2012-01-10  Bruno Haible  <bruno@clisp.org>
25727         regex: Avoid link error on MSVC 9.
25728         * modules/regex (Depends-on): Add wctype.
25730 2012-01-10  Bruno Haible  <bruno@clisp.org>
25732         doc: Mention --with-tests option.
25733         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25734         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25735         --with-tests.
25736         Reported by Reuben Thomas.
25738 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25740         users.txt: order package names lexicographically.
25741         * users.txt: Order package names lexicographically.
25743 2012-01-10  Jim Meyering  <meyering@redhat.com>
25745         maint.mk: fix description in comment
25746         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
25748         ignore-value: remove deprecated ignore_ptr function
25749         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
25750         * NEWS: Note this.
25752 2012-01-09  Jim Meyering  <meyering@redhat.com>
25754         test-init.sh: avoid a subshell
25755         * tests/test-init.sh: Remove protective subshell.
25756         Suggested by Bernhard Voelker.  While a subshell is normally
25757         required to protect against older shells (Solaris, FreeBSD) that
25758         warn about a missing program before performing redirection, the
25759         shell-selection tests performed by init.sh probably exclude any
25760         offending shell.
25762 2012-01-08  Bruno Haible  <bruno@clisp.org>
25764         setlocale tests: Avoid test failure on Solaris 11.0.
25765         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
25766         variable.
25768 2012-01-08  Bruno Haible  <bruno@clisp.org>
25770         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
25771         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25772         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25773         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
25774         macro.
25775         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
25776         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25777         * lib/spawn_faction_addopen.c: Add workaround implementation if
25778         HAVE_WORKING_POSIX_SPAWN.
25779         * modules/spawn (Makefile): Substitute
25780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25781         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
25782         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
25783         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25784         (Depends-on): Update conditions.
25785         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25786         the Solaris 11 bug.
25788 2012-01-08  Bruno Haible  <bruno@clisp.org>
25790         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
25791         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25793         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
25794         macro.
25795         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
25796         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25797         * lib/spawn_faction_adddup2.c: Add workaround implementation if
25798         HAVE_WORKING_POSIX_SPAWN.
25799         * modules/spawn (Makefile): Substitute
25800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25801         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
25802         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
25803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25804         (Depends-on): Update conditions.
25805         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25806         the Solaris 11 bug.
25808 2012-01-08  Bruno Haible  <bruno@clisp.org>
25810         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
25811         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25812         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
25814         HAVE_WORKING_POSIX_SPAWN.
25815         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
25816         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
25817         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25818         * lib/spawn_faction_addclose.c: Add workaround implementation if
25819         HAVE_WORKING_POSIX_SPAWN.
25820         * modules/spawn (Makefile): Substitute
25821         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25822         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
25823         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
25824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25825         (Depends-on): Update conditions.
25826         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25827         the Solaris 11 bug.
25829 2012-01-08  Bruno Haible  <bruno@clisp.org>
25831         doc: Update for Solaris 11.0.
25832         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
25833         * m4/printf.m4: Update comments.
25835 2012-01-08  Bruno Haible  <bruno@clisp.org>
25837         mktime: Avoid compilation error on Solaris 11.
25838         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
25840 2012-01-08  Bruno Haible  <bruno@clisp.org>
25842         doc: Small fix.
25843         * doc/posix-headers/nl_types.texi: Correct platforms list.
25845 2012-01-08  Simon Josefsson  <simon@josefsson.org>
25847         Add lgpl-3.0 module.
25848         * MODULES.html.sh (Support for building documentation): Add
25849         lgpl-3.0.
25850         * modules/lgpl-3.0: New file.
25852 2012-01-08  Jim Meyering  <meyering@redhat.com>
25854         select.c: indent with spaces, not TABs
25855         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
25857 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25859         quotearg: do not use grave accent for left quote
25860         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25861         locale_quoting_style.
25862         (quotearg_buffer_restyled): Fix example.
25863         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25865 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25867         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25868         Most programs do not have translation catalogs for English and much
25869         less separate catalogs for British and American English.  Drop the
25870         suggestion to translators about these two, and provide it
25871         automatically for Unicode locales.  Like most programs, even those
25872         using American English, we use single quotation marks.  This conflicts
25873         with the American typographic convention, but works better when you
25874         cite the entire error message within double quotes.  It also tries not
25875         to clash with established practice and with what non-gnulib programs
25876         will usually do.
25877         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25878         using an UTF-8 or GB-18030 locale.  The list of other locales with
25879         quotes was provided by Bruno Haible.
25880         (quotearg_buffer_restyled): Adjust instructions to translators.
25881         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25882         text, since this would be wrong when using Unicode.
25883         * modules/quotearg: Depend on c-strcaseeq.
25885 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25887         quotearg: fix Wikipedia link
25888         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25890 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25892         Fix for mingw with MSVC9.
25893         * m4/ld-version-script.m4: Check that compiler rejects version
25894         scripts with syntax errors.  Reported by Bruno Haible
25895         <bruno@clisp.org>.
25897 2012-01-06  Bruno Haible  <bruno@clisp.org>
25899         Talk about "native Windows API", not "Woe32".
25900         * lib/accept4.c: Update comments to mention native Windows.
25901         * lib/execute.c: Likewise.
25902         * lib/fatal-signal.c: Likewise.
25903         * lib/localcharset.c: Likewise.
25904         * lib/nanosleep.c: Likewise.
25905         * lib/nl_langinfo.c: Likewise.
25906         * lib/pclose.c: Likewise.
25907         * lib/pipe-filter-gi.c: Likewise.
25908         * lib/pipe-filter-ii.c: Likewise.
25909         * lib/pipe.c: Likewise.
25910         * lib/pipe2.c: Likewise.
25911         * lib/popen.c: Likewise.
25912         * lib/progreloc.c: Likewise.
25913         * lib/relocatable.c: Likewise.
25914         * lib/sigaction.c: Likewise.
25915         * lib/sigprocmask.c: Likewise.
25916         * lib/spawn-pipe.h: Likewise.
25917         * lib/spawn-pipe.c: Likewise.
25918         * lib/spawni.c: Likewise.
25919         * lib/stat-time.h: Likewise.
25920         * lib/w32spawn.h: Likewise.
25921         * tests/test-isatty.c: Likewise.
25922         * lib/config.charset: More comments.
25923         * doc/gnulib-intro.texi: Mention native Windows.
25924         * doc/posix-functions/_Exit_C99.texi: Likewise.
25925         * doc/posix-headers/fcntl.texi: Likewise.
25927 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
25929         argp: Avoid crash if translator uses % characters in a translation.
25930         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
25931         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25933 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25935         doc: C11 and C++11 are now official
25936         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
25937         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
25938         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
25939         * modules/stdalign:
25940         Replace references to draft C1X to C11, and to draft C++0X to C++11.
25942 2012-01-06  Bruno Haible  <bruno@clisp.org>
25944         uc-is-grapheme-break tests: Tweak.
25945         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
25946         message.
25948 2012-01-06  Bruno Haible  <bruno@clisp.org>
25950         test-init.sh: correct the test for diff -u
25951         * tests/test-init.sh: Also redirect stdout to /dev/null.
25953 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25955         Use ', not `, for quoting output.
25956         * build-aux/announce-gen (usage, sizes, print_news_deltas)
25957         (print_changelog_deltas, get_tool_versions, main program):
25958         * build-aux/git-version-gen:
25959         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
25960         * build-aux/move-if-change (help):
25961         * build-aux/useless-if-before-free (usage, main program):
25962         * check-module (parse_module_file, usage)
25963         (find_included_lib_files, check_module):
25964         * lib/argmatch.c (main) [TEST]:
25965         * lib/argp-help.c (_help):
25966         * lib/getopt1.c (main) [TEST]:
25967         * lib/git-merge-changelog.c (usage):
25968         * lib/xstrtol-error.c (xstrtol_error):
25969         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
25970         * m4/argz.m4 (gl_FUNC_ARGZ):
25971         * m4/bison.m4 (gl_BISON):
25972         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
25973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25974         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25975         * m4/fpending.m4 (gl_PREREQ_FPENDING):
25976         * m4/gc-random.m4 (gl_GC_RANDOM):
25977         * m4/intl.m4 (gt_CHECK_DECL):
25978         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
25979         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
25980         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
25981         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
25982         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
25983         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
25984         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
25985         * tests/test-dirname.c (main):
25986         * tests/test-getpass.c (main):
25987         * tests/test-iconvme.c (main):
25988         * tests/test-parse-datetime.c (LOG):
25989         * tests/test-xstrtoimax.sh:
25990         * tests/test-xstrtol.sh:
25991         * tests/test-xstrtoll.sh:
25992         * tests/test-xstrtoumax.sh:
25993         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
25994         * top/GNUmakefile (abort-due-to-no-makefile):
25995         Quote 'like this', not `like this', as per the recent change to
25996         the GNU coding standards.
25998 2012-01-05  Bruno Haible  <bruno@clisp.org>
26000         strtoimax: Don't force a replacement on systems where intmax_t is int.
26001         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
26002         'intmax_t' is not larger than 'int'.
26003         Reported by Pádraig Brady <P@draigBrady.com>.
26005 2012-01-05  Bruno Haible  <bruno@clisp.org>
26007         doc: Mention NetBSD bugs.
26008         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
26009         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
26011 2012-01-05  Bruno Haible  <bruno@clisp.org>
26013         strtoumax tests: Enhance tests.
26014         * tests/test-strtoumax.c (main): Add tests for large values.
26016 2012-01-05  Bruno Haible  <bruno@clisp.org>
26018         strtoimax: Work around AIX 5.1 bug.
26019         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
26020         definition.
26021         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
26022         Set HAVE_STRTOIMAX.
26023         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
26024         REPLACE_STRTOIMAX.
26025         * modules/inttypes-incomplete (Makefile.am): Substitute
26026         REPLACE_STRTOIMAX.
26027         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
26028         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
26029         (Depends-on): Update conditions.
26030         * tests/test-strtoimax.c (main): Add tests for large values.
26031         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
26033 2012-01-05  Bruno Haible  <bruno@clisp.org>
26035         inttypes: Modernize.
26036         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
26037         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
26038         (Makefile.am): Update inttypes.h rule.
26040 2012-01-05  Jim Meyering  <meyering@redhat.com>
26042         init.sh: don't waste a subshell just to redirect stderr
26043         * tests/init.sh: In testing for diff -u and diff -c, use a
26044         stderr-redirecting exec inside `...` rather than a subshell.
26046         test-init.sh: avoid failure on HP-UX 11.00
26047         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
26048         resolves to diff -c or cmp.  Reported by Bruno Haible.
26050 2012-01-05  Bruno Haible  <bruno@clisp.org>
26052         Tests for module 'strtoull'.
26053         * modules/strtoull-tests: New file.
26054         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
26056 2012-01-05  Bruno Haible  <bruno@clisp.org>
26058         Tests for module 'strtoll'.
26059         * modules/strtoll-tests: New file.
26060         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
26062 2012-01-05  Bruno Haible  <bruno@clisp.org>
26064         Tests for module 'strtoul'.
26065         * modules/strtoul-tests: New file.
26066         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
26068 2012-01-05  Bruno Haible  <bruno@clisp.org>
26070         Tests for module 'strtol'.
26071         * modules/strtol-tests: New file.
26072         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
26074 2012-01-04  Jim Meyering  <meyering@redhat.com>
26076         test-init.sh: accommodate Solaris 5.10's different diff -u output
26077         * tests/test-init.sh: Also exempt @@ lines from the comparison
26078         of diff output, since Solaris 5.10 and GNU diff formats differ.
26079         Reported by Stefano Lattarini.
26081 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26083         test-posixtm: don't assume signed integer wraparound
26084         * tests/test-posixtm.c (main): Don't assume wraparound semantics
26085         after signed integer overflow.  Inspired by (though it may not
26086         fix) Bruno Haible's bug report in
26087         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
26089         Spell out "Windows 9x" and "Windows XP".
26090         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
26091         "Windows 9x" and "WinXP" with "Windows XP".
26093 2012-01-04  Jim Meyering  <meyering@redhat.com>
26095         test-vc-list-files-cvs.sh: remove obsolete comment
26096         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
26097         double exit.  Now that's all encapsulated via skip_ and Exit.
26099 2012-01-04  Bruno Haible  <bruno@clisp.org>
26101         Talk about "native Windows API", not "Win32".
26102         * lib/classpath.c: Update comments to mention native Windows.
26103         * lib/csharpexec.c: Likewise.
26104         * lib/dup2.c: Likewise.
26105         * lib/error.c: Likewise.
26106         * lib/fcntl.c: Likewise.
26107         * lib/filename.h: Likewise.
26108         * lib/findprog.c: Likewise.
26109         * lib/get-rusage-as.c: Likewise.
26110         * lib/get-rusage-data.c: Likewise.
26111         * lib/getpagesize.c: Likewise.
26112         * lib/javaexec.c: Likewise.
26113         * lib/msvc-inval.c: Likewise.
26114         * lib/msvc-nothrow.c: Likewise.
26115         * lib/nanosleep.c: Likewise.
26116         * lib/nonblocking.c: Likewise.
26117         * lib/printf-parse.c: Likewise.
26118         * lib/setlocale.c: Likewise.
26119         * lib/sigaction.c: Likewise.
26120         * lib/strerror_r.c: Likewise.
26121         * lib/tmpdir.c: Likewise.
26122         * lib/vasnprintf.c: Likewise.
26123         * lib/w32spawn.h: Likewise.
26124         * lib/waitpid.c: Likewise.
26125         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
26126         * m4/locale-ar.m4: Likewise.
26127         * m4/locale-fr.m4: Likewise.
26128         * m4/locale-ja.m4: Likewise.
26129         * m4/locale-tr.m4: Likewise.
26130         * m4/locale-zh.m4: Likewise.
26131         * m4/printf.m4: Likewise.
26132         * tests/test-cloexec.c: Likewise.
26133         * tests/test-copy-acl.sh: Likewise.
26134         * tests/test-copy-file.sh: Likewise.
26135         * tests/test-file-has-acl.sh: Likewise.
26136         * tests/test-set-mode-acl.sh: Likewise.
26137         * tests/test-dup-safer.c: Likewise.
26138         * tests/test-dup2.c: Likewise.
26139         * tests/test-dup3.c: Likewise.
26140         * tests/test-fcntl.c: Likewise.
26141         * tests/test-nonblocking-pipe.h: Likewise.
26142         * tests/test-nonblocking-socket.h: Likewise.
26143         * tests/test-pipe.c: Likewise.
26144         * tests/test-pipe2.c: Likewise.
26145         * tests/test-spawn-pipe-child.c: Likewise.
26146         * doc/acl-resources.txt: Likewise.
26147         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26148         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
26149         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
26150         * lib/localcharset.c: Update comments to mention native Windows.
26151         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26152         * lib/localename.c: Likewise.
26153         * lib/progreloc.c: Likewise.
26154         * lib/relocatable.c: Likewise.
26155         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26156         (windows_compute_revents): Renamed from win32_compute_revents.
26157         (windows_compute_revents_socket): Renamed from
26158         win32_compute_revents_socket.
26159         * lib/select.c: Update comments to mention native Windows.
26160         (windows_poll_handle): Renamed from win32_poll_handle.
26161         * m4/threadlib.m4: Update comments to mention native Windows.
26162         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
26163         --enable-threads=windows instead of --enable-threads=win32. Set
26164         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
26165         * lib/glthread/lock.h: Update comments to mention native Windows.
26166         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
26167         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
26168         USE_WIN32_THREADS.
26169         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
26170         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
26171         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
26172         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
26173         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
26174         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
26175         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
26176         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
26177         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
26178         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
26179         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
26180         * tests/test-tls.c: Likewise.
26181         Rationale:
26182         Microsoft renamed the "Win32 API" to "Windows API", as it is available
26183         on both 32-bit and 64-bit Windows systems.
26184         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
26185         line of distinction is between "native Windows" on one side and Unix/
26186         POSIX systems on the other side. More details in
26187         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
26188         Suggested by Paul Eggert.
26190 2012-01-03  Bruno Haible  <bruno@clisp.org>
26192         isatty: Support for MSVC 9.
26193         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
26194         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
26195         (_isatty_nothrow): New function.
26196         (isatty): Use it instead of _isatty.
26197         (IsConsoleHandle): Add comment, from Paolo Bonzini.
26198         * lib/poll.c (IsConsoleHandle): Likewise.
26199         * lib/select.c (IsConsoleHandle): Likewise.
26200         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
26201         (gl_PREREQ_ISATTY): New macro.
26202         * modules/isatty (Depends-on): Add msvc-inval.
26203         (configure.ac): Invoke gl_PREREQ_ISATTY.
26205 2012-01-03  Jim Meyering  <meyering@redhat.com>
26207         maint.mk: remove temporary transition aid from over 1.5 years ago
26208         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
26209         purpose was to aid in the transition (avoiding silent malfunction)
26210         from that old name to the new _sc_search_regexp.  This shim was
26211         added by commit 219c504b.
26213         init.sh: do not try to accommodate compare arguments starting with "-"
26214         * tests/init.sh (compare_dev_null_): Do not try to accommodate
26215         compare arguments that start with "-".  Besides, we do not worry
26216         about this when invoking diff or cmp; why start now with sed?
26217         Using "--" to separate options from argument would trigger sed
26218         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
26219         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
26221 2012-01-02  Bruno Haible  <bruno@clisp.org>
26223         Enhance tests for module 'isatty'.
26224         * modules/isatty-tests (Depends-on): Add pipe-posix.
26225         * tests/test-isatty.c: Include <fcntl.h>.
26226         (DEV_NULL): New macro.
26227         (main): Test the resut of isatty() also on regular files, pipes, and
26228         /dev/null.
26230         New module 'isatty'.
26231         * lib/unistd.in.h (isatty): New declaration.
26232         * lib/isatty.c: New file, based on an idea of
26233         Bastien Roucariès <roucaries.bastien@gmail.com>.
26234         * m4/isatty.m4: New file.
26235         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
26236         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
26237         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
26238         REPLACE_ISATTY.
26239         * modules/isatty: New file.
26240         * doc/posix-functions/isatty.texi: Mention the new module.
26241         Suggested by Paolo Bonzini.
26243 2012-01-02  Bruno Haible  <bruno@clisp.org>
26245         canonicalize: Tweak 2011-12-29 commit.
26246         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
26247         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
26249 2012-01-02  Jim Meyering  <meyering@redhat.com>
26251         gitlog-to-changelog: describe input syntax in --help output
26252         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
26254         gitlog-to-changelog: fix typo in --help: show backslash before email @
26255         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
26256         in sources, but not in actual output.
26258 2011-12-30  Jim Meyering  <meyering@redhat.com>
26260         gitlog-to-changelog: don't malfunction when name contains %-directive
26261         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
26262         in a name string cause trouble.  E.g., with a user name of "%s",
26263         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
26265 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
26267         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
26268         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
26269         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
26270         the "  (tiny change)" notation that is appended to the standard
26271         ChangeLog "date  name  email" header line.
26273 2012-01-01  Jim Meyering  <meyering@redhat.com>
26275         test-framework-sh: init.sh: fix "make dist" failure
26276         When using gnulib-tool's --with-tests option and any module that
26277         depends on test-framework-sh, "make dist" would fail due to the
26278         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
26279         in the gltests directory, and not in the gllib/ directory.
26280         One way to work around that is to move the EXTRA_DIST += init.sh
26281         from the primary module to the -tests one:
26282         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
26283         * modules/test-framework-sh (Makefile.am): ...not here.
26284         Reported by Tom G. Christensen in
26285         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
26287         version-etc: update copyright year reported by --version
26288         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
26290 2011-12-31  Pádraig Brady  <P@draigBrady.com>
26292         canonicalize: only stat() if required
26293         * lib/canonicalize.c (canonicalize_filename_mode):
26294         Avoid calling l?stat() when both CAN_MISSING,
26295         and CAN_NOLINKS are set, as we neither need
26296         to resolve symlinks or test component existence.
26298 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26300         doc: cover st_ino issues once; add OpenVMS etc.
26301         * doc/posix-functions/stat.texi (stat):
26302         * doc/posix-functions/lstat.texi (lstat):
26303         * doc/posix-functions/fstatat.texi (fstatat):
26304         * doc/posix-functions/fstat.texi (fstat):
26305         Move general 'struct stat' stuff to sys_stat.texi,
26306         leaving behind a pointer.
26307         * doc/posix-headers/sys_stat.texi (sys/stat.h):
26308         Merge duplicate info about 'struct stat' problems into here.
26309         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
26310         and suggest partial workarounds.
26312         same-inode: port to OpenVMS
26313         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
26314         three st_ino values.
26316 2011-12-30  Pádraig Brady  <P@draigBrady.com>
26318         canonicalize: fix references to stat() and lstat()
26319         * lib/canonicalize.c (canonicalize_filename_mode):
26320         Ensure references always resolve to a replacement
26321         function if required (even via a macro).
26323 2011-12-30  Jim Meyering  <meyering@redhat.com>
26325         gitlog-to-changelog: remove a little duplication
26326         * build-aux/gitlog-to-changelog (main): Grep @lines once,
26327         rather than twice.
26329 2011-12-29  Pádraig Brady  <P@draigBrady.com>
26331         canonicalize: add support for not resolving symlinks
26332         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
26333         indicate we don't want to follow symlinks.  Also
26334         provide CAN_MODE_MASK to aid setting these existing
26335         mutually exclusive values.
26336         * lib/canonicalize.c (canonicalize_filename_mode):
26337         Extract the flags from can_mode parameter, which
26338         are currently just used to select between stat()
26339         and lstat().  Also ensure that mutually exclusive
26340         values are flagged immediately as invalid.
26341         * tests/test-canonicalize.c: Verify symlinks are
26342         not followed, and that invalid flag combinations
26343         are diagnosed.
26345 2011-12-25  Jim Meyering  <meyering@redhat.com>
26347         gitlog-to-changelog: do not clump multi-paragraph entries
26348         Identical header lines (date,name,email+coauthors) are suppressed,
26349         thus putting all entries with those same characteristics under
26350         a single header.  However, when a log entry consists of two or
26351         more paragraphs, it may not be clear where it starts and ends.
26352         This change makes it so that such an entry is always separated
26353         from others by a header line, even when that header would
26354         otherwise be suppressed.
26355         * build-aux/gitlog-to-changelog: Implement the above.
26356         Inspired by a related request from Stefano Lattarini in
26357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
26359 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26361         announce-gen: fix `cmd' typo in diagnostic
26362         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
26363         diagnostic: a missing '$' meant that the command was not output.
26365 2011-12-23  Jim Meyering  <meyering@redhat.com>
26367         test-framework-sh: distribute init.sh
26368         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
26369         Otherwise, "make -C gnulib-tests check" (at least in grep) would
26370         fail due to the lack of init.sh.
26372         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
26373         * modules/atexit-tests: Rather than listing tests/init.sh,
26374         now that there's a module for it, simply depend on that new module.
26375         * modules/closein-tests: Likewise.
26376         * modules/exclude-tests: Likewise.
26377         * modules/getcwd-tests: Likewise.
26378         * modules/perror-tests: Likewise.
26379         * modules/pread-tests: Likewise.
26380         * modules/pwrite-tests: Likewise.
26381         * modules/vc-list-files-tests: Likewise.
26382         * modules/verify-tests: Likewise.
26383         * modules/xalloc-die-tests: Likewise.
26384         * modules/xstrtoimax-tests: Likewise.
26385         * modules/xstrtol-tests: Likewise.
26386         * modules/xstrtoll-tests: Likewise.
26387         * modules/xstrtoumax-tests: Likewise.
26388         * modules/yesno-tests: Likewise.
26390 2011-12-22  Jim Meyering  <meyering@redhat.com>
26392         test-framework-sh: add minimal tests of init.sh's compare function
26393         * modules/test-framework-sh-tests: New file.
26394         * tests/test-init.sh: New file.
26396         test-framework-sh: new module
26397         * modules/test-framework-sh: New file.
26398         * MODULES.html.sh (Support for maintaining and releasing projects):
26399         List it.
26401         init.sh: do not emit simulated diff output to stderr
26402         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
26404 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26406         .gitignore: ignore gnulib.dvi and regex.info
26407         * doc/.gitignore:add gnulib.dvi and regex.info
26409 2011-12-22  Jim Meyering  <meyering@redhat.com>
26411         init.sh: correct previous change
26412         * tests/init.sh (compare): My previous change was wrong.
26413         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
26415         init.sh: avoid unwarranted test failure when using "set -e"
26416         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
26417         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
26418         a use like "compare exp out" would get evoke an unconditional failure.
26420 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
26422         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
26423         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
26424         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
26425         autoreconf that did not.
26426         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
26427         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26429 2011-12-17  Jim Meyering  <meyering@redhat.com>
26431         bootstrap: remove some now-unneeded code
26432         This script arose back when gnulib-tool was young.
26433         Since then, it has seen improvements that render much of this
26434         script unnecessary.  In particular, it can now make symlinks
26435         to the files it uses.  Also, I no longer see as much value in
26436         marking files as read-only via comments.
26437         If you relied on the symlink-creation feature of the preceding
26438         version of this script, you can get most of that functionality
26439         by adding the --symlink option to the definition of
26440         gnulib_tool_option_extras in your bootstrap.conf file.
26441         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
26442         Run autopoint and libtoolize *before* gnulib-tool.
26443         After it, run an abbreviated autoreconf, rather than a loop around
26444         all tools.
26445         (slirp, bt_mark_as_generated): Remove functions.
26447 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26449         ftoastr: fix typo
26450         * lib/ftoastr.h: Fix misspelling in comment.
26452 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
26454         * top/README-release: fix punctuation.
26456 2011-12-17  Jim Meyering  <meyering@redhat.com>
26458         bootstrap: correct the recent buildreq change
26459         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
26460         had no effect.
26461         * build-aux/bootstrap (buildreq): Bracket each search term with
26462         "*...*", so that the shell "case" statement works as intended.
26463         Add comments.
26465 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
26467         build: let bootstrap resort to wget when downloading .po files
26468         * build-aux/bootstrap (download_po_files): Fallback to wget when
26469         downloading the .po files via rsync fails.  This is necessary to
26470         bootstrap from behind a strict firewall.
26472 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26474         stdint: don't assume C++11 when compiling with g++
26475         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
26476         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
26477         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
26478         work also in C++ before C++11, as that improperly inhibits
26479         generating a substitute stdint.h for that case.
26481 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26483         alloca: protect comment from gnulib-tool
26484         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
26485         that gnulib-tool doesn't think it's a license, and munge it to
26486         say "GCC version 3".
26488 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
26490         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
26491         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
26492         $(abs_top_builddir) instead of $(top_builddir).
26494 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
26496         strftime-tests: also test nanoseconds
26497         * tests/test-strftime.c (T): Add a test of %N.
26499 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
26501         inttypes, stdint: add C++11 support
26502         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
26503         when including inttypes.h and stdint.h.  Support this change to
26504         the standard.
26505         * doc/posix-headers/inttypes.texi (inttypes.h):
26506         * doc/posix-headers/stdint.texi (stdint.h): Document this.
26507         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
26508         Define if not defined already, for the benefit of pre-C++11 hosts.
26509         Define the standard format macros (e.g., PRId8) always.
26510         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
26511         Likewise, if __cpluspus.  Define the standard constant and limit
26512         macros (e.g., INT8_C, INT8_MAX) always.
26513         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
26514         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
26515         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
26516         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
26517         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
26518         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
26519         Likewise.
26521 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26523         nonblocking tests: Fix test failure on Linux/PPC.
26524         Suggested by Prerna Saxena in
26525         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
26526         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
26527         Set to 1100000.
26529 2011-12-12  Jim Meyering  <meyering@redhat.com>
26531         argmatch: don't hard-code `' when listing valid option arguments
26532         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
26533         use the quote function to add quotes.  Use fputs rather than
26534         fprintf for the format string with no format directive.
26536 2011-12-07  Eric Blake  <eblake@redhat.com>
26538         bootstrap: detect tools required by gnulib-tool
26539         * build-aux/bootstrap (buildreq): Provide minimum implicit
26540         dependencies.
26541         * DEPENDENCIES: Mention patch as a prereq.
26543 2011-12-04  Bruno Haible  <bruno@clisp.org>
26545         sethostname: Port to Windows platforms.
26546         * lib/sethostname.c: Provide an alternate implementation for Windows
26547         platforms.
26548         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
26549         (main): Skip the test if sethostname() fails with EPERM. On Windows
26550         platforms, don't check the result of gethostname().
26552 2011-12-04  Bruno Haible  <bruno@clisp.org>
26553             Jim Meyering  <meyering@redhat.com>
26555         tests: Avoid spurious error message on platforms without mktemp program.
26556         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
26558 2011-12-04  Bruno Haible  <bruno@clisp.org>
26560         sethostname: Fix documentation.
26561         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
26562         "not fixed" section.
26564 2011-12-03  Bruno Haible  <bruno@clisp.org>
26566         gnulib-tool: Verify that the License field is present and non-empty.
26567         * gnulib-tool (func_get_license_raw): New function, extracted from
26568         func_get_license.
26569         (func_get_license): Use it. Warn if the module is not a test module and
26570         has no license.
26571         Suggested by Jim Meyering.
26573 2011-12-03  Bruno Haible  <bruno@clisp.org>
26575         sethostname tests: Fix link error on mingw.
26576         * tests/test-sethostname1.c: New file, extracted from
26577         tests/test-sethostname.c.
26578         * tests/test-sethostname2.c: New file, extracted from
26579         tests/test-sethostname.c.
26580         * tests/test-sethostname.c: Remove file.
26581         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
26582         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
26583         (Depends-on): Add gethostname.
26584         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
26585         Link the latter with $(GETHOSTNAME_LIB).
26587         sethostname tests: Fix compilation error on mingw.
26588         * tests/test-sethostname.c: Don't include <sys/types.h>.
26589         (geteuid): Use a dummy value without uid_t.
26590         * modules/sethostname-tests (Depends-on): Remove sys_types.
26592         sethostname tests: Avoid a gcc warning.
26593         * tests/test-sethostname.c (main): Remove an unused variable.
26595         Tweak last commit.
26596         * modules/sethostname-tests (Files): Sort by decreasing importance.
26597         (configure.ac): Check for geteuid.
26598         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26599         the test when there's nothing to test. Drop an unnecessary cast.
26600         Improve an error message. Verify that the final sethostname() call
26601         succeeds.
26603 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26605         Add a test suite for the sethostname module.
26606         * modules/sethostname-tests: New file.  A test program
26607         for the sethostname module.
26608         * tests/test-sethostname.c: Likewise.
26610 2011-12-03  Bruno Haible  <bruno@clisp.org>
26612         Tweak last commit.
26613         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26614         Fix preprocessor directives indentation. Fix typos.
26615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26616         * modules/unistd (Makefile): Likewise.
26618 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26620         Integrate the sethostname module into unistd.
26621         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26622         into the unistd.h header.
26623         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26624         preprocessor directives.
26625         * modules/unistd: Setup the Makefile substitutions of the
26626         SETHOSTNAME preprocessor directives.
26628 2011-12-03  Bruno Haible  <bruno@clisp.org>
26630         Tweak last commit.
26631         * lib/sethostname.c: Don't include <string.h>.
26632         (sethostname): No need to copy the argument string to the stack. Don't
26633         call clearerr. Preserve errno when fprintf failed.
26634         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26635         Don't invoke AC_REPLACE_FUNCS.
26636         * modules/sethostname (Link): Remove empty section.
26637         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26638         failure problem.
26640 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26642         New module 'sethostname'.
26643         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26644         for systems that lack it.
26645         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26646         sethostname declaration and function.
26647         * modules/sethostname: New file.  Define the sethostname module.
26649 2011-12-03  Bruno Haible  <bruno@clisp.org>
26651         Tweak last commit.
26652         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26654 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26656         Split the HOST_NAME_MAX detection into a separate m4 macro.
26657         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26658         macro so it can be used by the pending sethostname module.
26660 2011-12-03  Bruno Haible  <bruno@clisp.org>
26662         Fix module descriptions syntax.
26663         * modules/argv-iter (License): Fix syntax.
26664         * modules/di-set (License): Likewise.
26665         * modules/ino-map (License): Likewise.
26666         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26668 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26670         stdalign: port to Clang 3.0
26671         Problem reported by Simon Josefsson in
26672         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26673         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26674         which has <stdalign.h> but which does not define alignof.
26675         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26677 2011-12-01  Eric Blake  <eblake@redhat.com>
26679         mktempd: silence dd usage
26680         * build-aux/mktempd (rand_bytes): Silence dd.
26682 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26684         manywarnings: Don't mention gcc version in docstring.
26685         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26686         Jim Meyering <meyering@redhat.com>.
26688 2011-11-30  Jim Meyering  <meyering@redhat.com>
26690         hash: mark a few floating point constants with "f" suffix
26691         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26692         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26693         floating point constants with "f", since they're destined to be
26694         saved/used as "float"s.
26696 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26698         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26699         * tests/test-float.c (test_long_double): Correct and re-enable the
26700         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26702 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26704         Avoid subtracting two pointers that don't point into the same block.
26705         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26706         only pointers into the same memory block are subtracted. We cannot
26707         assume that sizeof (ptrdiff_t) == sizeof (void *).
26709 2011-11-29  Eric Blake  <eblake@redhat.com>
26711         maint.mk: add syntax check for use of compare from init.sh
26712         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26713         moved here from coreutils.
26715         manywarnings: drop -Wunsuffixed-float-constants
26716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26717         '1.0D', which is the only way to silence this warning for 'double'.
26719 2011-11-29  Jim Meyering  <meyering@redhat.com>
26721         hash: mark compute_bucket_size with the pure attribute
26722         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26724         quotearg, propername: correct pragma guard expression
26725         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26726         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26728 2011-11-28  Jim Meyering  <meyering@redhat.com>
26730         propername: do not mark proper_name with the const attribute
26731         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26732         since it examines data pointed to by its parameter.
26733         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26734         the suggestion from -Wsuggest-attribute=const.
26736         propername: mark one more function as const
26737         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26739 2011-11-27  Jim Meyering  <meyering@redhat.com>
26741         mark functions with const and pure attributes
26743         Mark functions per suggestions from gcc-4.6 when using these options:
26744         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
26745         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
26746         Follow these guidelines: when possible, apply the attribute to
26747         an extern declaration, not to its definition.  Apply it to the
26748         definition only when the definition is static.
26749         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
26750         * lib/argv-iter.h (argv_iter_n_args): Likewise.
26751         * lib/base64.h (isbase64): Likewise.
26752         * lib/basename-lgpl.c (last_component, base_len): Likewise.
26753         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
26754         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
26755         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
26756         (c_tolower, c_toupper): Likewise.
26757         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
26758         * lib/chdir-long.c (find_non_slash): Likewise.
26759         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
26760         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
26761         * lib/file-type.h (file_type): Likewise.
26762         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
26763         * lib/filevercmp.c (verrevcmp): Likewise.
26764         * lib/freadahead.h (freadahead): Likewise.
26765         * lib/fts.c (fts_maxarglen): Likewise.
26766         * lib/hash-pjw.h (hash_pjw): Likewise.
26767         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
26768         * lib/hash.c (is_prime, next_prime): Likewise.
26769         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
26770         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
26771         (hash_table_ok, hash_get_first, hash_string): Likewise.
26772         (compute_bucket_size): Likewise.
26773         * lib/i-ring.h (i_ring_empty): Likewise.
26774         * lib/isnan.c (isnanl): Likewise.
26775         * lib/math.h (isnanl, rpl_isnanl): Likewise.
26776         * lib/memcasecmp.h (memcasecmp): Likewise.
26777         * lib/memchr2.h (memchr2): Likewise.
26778         * lib/memcmp2.h (memcmp2): Likewise.
26779         * lib/parse-datetime.y (lookup_zone): Likewise.
26780         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
26781         [!WINDOWS_SOCKETS]: Likewise.
26782         * lib/strnlen1.h (strnlen1): Likewise.
26783         * lib/uniwidth.in.h (uc_width): Likewise.
26784         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
26785         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
26786         (quoting_options_from_style): Add a comment.
26787         * lib/propername.h (proper_name): Add a comment.
26789 2011-11-27  Bruno Haible  <bruno@clisp.org>
26791         Remove unused macros from !_LIBC code in glibc-borrowed files.
26792         * lib/fnmatch.c (STRCOLL): Remove macro.
26793         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
26794         * lib/glob.c (__stat, __readdir64): Remove macros.
26795         * lib/tempname.c (__open64, __xstat64): Remove macros.
26796         Suggested by Paul Eggert.
26798 2011-11-27  Bruno Haible  <bruno@clisp.org>
26800         getcwd: Fix link error on MSVC 9.
26801         * modules/getcwd (Depends-on): Add readdir, rewinddir.
26803 2011-11-27  Bruno Haible  <bruno@clisp.org>
26805         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
26806         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
26807         HAVE_OPENDIR is 0.
26808         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
26809         HAVE_CLOSEDIR is 0.
26810         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
26811         is 0.
26812         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
26814 2011-11-27  Bruno Haible  <bruno@clisp.org>
26816         getcwd: Fix bug from 2011-08-17.
26817         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
26818         platforms that need it.
26819         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
26820         code of 4 to be a failure, not a success. This ensures that
26821         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
26823 2011-11-27  Bruno Haible  <bruno@clisp.org>
26825         binary-io tests: Avoid test failure on mingw when libtool is used.
26826         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
26827         Don't verify the size of t-bin-out1.tmp here.
26828         * tests/test-binary-io.sh: Verify it here.
26829         Reported by Simon Josefsson.
26831 2011-11-26  Bruno Haible  <bruno@clisp.org>
26833         Fix conflict between two instantiations of module 'unistd'.
26834         * gnulib-tool (func_emit_autoconf_snippet): Substitute
26835         ${include_guard_prefix} also in the autoconf snippet.
26836         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
26837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
26838         GNULIB_UNISTD_H_GETOPT.
26839         * modules/getopt-posix (configure.ac): Set the
26840         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
26841         * modules/getopt-gnu (configure.ac): Likewise.
26842         * modules/unistd (Makefile.am): Change the substitution value of
26843         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
26844         Reported by Simon Josefsson.
26846 2011-11-25  Bruno Haible  <bruno@clisp.org>
26848         pagealign_alloc: Doc and comments.
26849         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
26850         module.
26851         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
26853 2011-11-25  Jim Meyering  <meyering@redhat.com>
26855         test-update-copyright.sh: avoid false-positive failure
26856         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
26857         around false positive failure on Cygwin/Windows.  The latter was
26858         matching erroneously-created files with names like
26859         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26861 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26863         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26864         * m4/valgrind-tests.m4: Check that the parameters that will be
26865         used works, not just a subset of them.  Reported by Bruno Haible
26866         <bruno@clisp.org>.
26868 2011-11-24  Jim Meyering  <meyering@redhat.com>
26870         test-stdalign.c: comment out long double tests
26871         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26872         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26873         error: '_Alignas' specifiers cannot reduce alignment of \
26874         'static_longdouble_alignas'.
26876 2011-11-22  Jim Meyering  <meyering@redhat.com>
26878         init.sh: make "compare /dev/null FILE" output more readable
26879         * tests/init.sh (compare_): Document the preferred order of arguments.
26880         (emit_diff_u_header_): New function.
26881         (compare_dev_null_): Emit a simulated diff, rather than just the
26882         contents of the unexpected file.  Suggestion from Bruno Haible.
26884 2011-11-21  Jim Meyering  <meyering@redhat.com>
26885             Eric Blake  <eblake@redhat.com>
26887         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26888         * tests/init.sh: Make our compare function slightly more portable.
26889         Reported by Bruno Haible in
26890         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26892 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26894         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26895         before using it, in code that ends up in config.h.
26897 2011-11-20  Bruno Haible  <bruno@clisp.org>
26899         getcwd: Work around getcwd bug on AIX 5..7.
26900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26901         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26902         Use a different value for gl_cv_func_getcwd_path_max. Move the
26903         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26904         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26905         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26906         Define HAVE_MINIMALLY_WORKING_GETCWD.
26907         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26908         where it is not even minimally working, that is, on AIX.
26909         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26910         m4/getcwd-path-max.m4.
26911         (main): Update exit code computation.
26912         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26913         getcwd does not handle long file names.
26915 2011-11-20  Bruno Haible  <bruno@clisp.org>
26917         getcwd: Fix bug from 2009-09-10.
26918         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
26919         like "no".
26921 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26923         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
26925 2011-11-20  Bruno Haible  <bruno@clisp.org>
26927         fma tests: Avoid shadowing local variables.
26928         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
26929         expected.
26931 2011-11-20  Bruno Haible  <bruno@clisp.org>
26933         copysignf tests: Fix.
26934         * tests/test-copysignf.c: Fix signature check.
26936 2011-11-20  Bruno Haible  <bruno@clisp.org>
26938         fma: Remove unused code.
26939         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
26940         unused macros.
26942 2011-11-20  Bruno Haible  <bruno@clisp.org>
26944         sethostname: Fix doc about AIX.
26945         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
26946         sethostname; it has it.
26948         sethostname: Mention more portability problems.
26949         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
26950         problem.
26951         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26953 2011-11-19  Bruno Haible  <bruno@clisp.org>
26955         Depend on module fcntl-h when AT_FDCWD is used.
26956         * modules/utimens (Depends-on): Add fcntl-h.
26957         * modules/areadlinkat (Depends-on): Likewise.
26958         * modules/areadlinkat-with-size (Depends-on): Likewise.
26959         * modules/faccessat (Depends-on): Likewise.
26960         * modules/fchmodat (Depends-on): Likewise.
26961         * modules/fchownat (Depends-on): Likewise.
26962         * modules/getcwd (Depends-on): Likewise.
26963         * modules/mkdirat (Depends-on): Likewise.
26964         * modules/mkfifoat (Depends-on): Likewise.
26965         * modules/readlinkat (Depends-on): Likewise.
26966         * modules/symlinkat (Depends-on): Likewise.
26967         * modules/dup2-tests (Depends-on): Likewise.
26968         * modules/fdutimensat-tests (Depends-on): Likewise.
26969         * modules/futimens-tests (Depends-on): Likewise.
26971 2011-11-19  Bruno Haible  <bruno@clisp.org>
26973         euidaccess: Update a comment.
26974         * lib/euidaccess.c: Update comment about platforms with faccessat.
26976 2011-11-19  Bruno Haible  <bruno@clisp.org>
26978         openat: Fix file list.
26979         * modules/openat (Files): Remove lib/at-func.c.
26981 2011-11-19  Bruno Haible  <bruno@clisp.org>
26983         fstatat: Simplify.
26984         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
26985         gnulib should define rpl_fstatat, there is a
26986         "#define fstatat rpl_fstatat" in <sys/stat.h>.
26988 2011-11-19  Bruno Haible  <bruno@clisp.org>
26990         Ensure 'inline' can be used in tests/test-utimens-common.h.
26991         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
26992         * modules/futimens-tests (configure.ac): Likewise.
26993         * modules/utimens-tests (configure.ac): Likewise.
26994         * modules/utimensat-tests (configure.ac): Likewise.
26996 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26998         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
26999         not hash_insert0.
27000         (hash_insert_if_absent): Doc fix.
27002 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27004         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
27006 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27008         test-getcwd: disambiguate exit status
27009         * tests/test-getcwd.c (test_long_name): Return 0..7.
27010         (main): Exit with an unambiguous exit status.  The old
27011         code yielded a mysterious mixture of two failure codes.
27013         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
27014         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
27015         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
27016         rpl_fstatat or fstatat.  This should fix the other problem
27017         reported by Kai Habel in
27018         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27019         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
27020         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
27021         and I reproduced it on a Solaris 8 host we still have in production.
27023 2011-11-18  Jim Meyering  <meyering@redhat.com>
27025         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
27026         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
27027         Add a sentence to the comment.
27028         (hash_insert0): New function that simply calls hash_insert_if_absent.
27029         * lib/hash.h (hash_insert_if_absent): Declare it.
27030         (hash_insert0): Add deprecation attribute.
27031         (_GL_ATTRIBUTE_DEPRECATED): Define.
27032         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
27033         not hash_insert0.
27034         * NEWS: Mention it, even though it's not really an incompatible change.
27036 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
27038         openat: avoid compilation failure due to lack of <errno.h> inclusion
27039         * lib/openat.c: Include <errno.h>.
27041 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27043         * modules/getcwd (Depends-on): Add fdopendir.
27044         This fixes one of the two problems reported by Kai Habel in
27045         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27047         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
27048         stdalign problem reported by Ian Beckwith in
27049         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
27050         * modules/crypto/gc-arcfour (Depends-on):
27051         Depend conditionally on crypto/arcfour.
27052         * modules/crypto/gc-arctwo (Depends-on):
27053         Depend conditionally on crypto/arctwo.
27054         * modules/crypto/gc-des (Depends-on):
27055         Depend conditionally on crypto/des.
27056         * modules/crypto/gc-hmac-md5 (Depends-on):
27057         Depend conditionally on crypto/hmac-md5.
27058         * modules/crypto/gc-hmac-sha1 (Depends-on):
27059         Depend conditionally on crypto/hmac-sha1.
27060         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
27061         * modules/crypto/gc-md4 (Depends-on):
27062         Depend conditionally on crypto/md4.
27063         * modules/crypto/gc-md5 (Depends-on):
27064         Depend conditionally on crypto/md5.
27065         * modules/crypto/gc-rijndael (Depends-on):
27066         Depend conditionally on crypto/rijndael.
27067         * modules/crypto/gc-sha1 (Depends-on):
27068         Depend conditionally on crypto/sha1.
27069         * modules/crypto/gc-arcfour:
27070         * modules/crypto/gc-arctwo:
27071         * modules/crypto/gc-des:
27072         * modules/crypto/gc-hmac-md5:
27073         * modules/crypto/gc-hmac-sha1:
27074         * modules/crypto/gc-md2:
27075         * modules/crypto/gc-md4:
27076         * modules/crypto/gc-md5:
27077         * modules/crypto/gc-rijndael:
27078         * modules/crypto/gc-sha1:
27079         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
27080         now that the conditional dependencies do the work for us.
27082 2011-11-17  Jim Meyering  <meyering@redhat.com>
27084         tests: factor st_ctime-comparison out of two headers
27085         * tests/test-utimens-common.h (ctime_compare): Define.
27086         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
27087         * tests/test-lutimens.h (test_lutimens): Likewise.
27088         * tests/test-utimens.h (test_utimens): Likewise.
27090         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
27091         Invoke the test program via an init.sh-using wrapper.
27092         * tests/test-getcwd.sh: New file.
27093         * modules/getcwd-tests (Files): Add it.
27094         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
27096 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
27098         gitlog-to-changelog: support multi-author commits.
27099         The FSF cares about keeping track of all authors of patches to its
27100         projects, but Git doesn't provide obvious support for multi-author
27101         changesets. Consensus seems to be forming around the use of extra
27102         Signed-off-by inspired lines in the log message formatted as
27103         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
27104         multi-author commits between version control systems.
27105         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
27106         log message and output in standard ChangeLog multi-author format.
27107         Reported by Peter Rosin <peda@lysator.liu.se>
27109 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27110             Bruno Haible  <bruno@clisp.org>
27112         Fix some modules' file list.
27113         * modules/fstatat (Files): Add m4/lstat.m4.
27114         * modules/openat (Files): Likewise.
27115         * modules/unlinkat (Files): Likewise.
27117 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
27119         maint.mk: fix tight-scope.mk generation in VPATH builds.
27120         * top/maint.mk (tight-scope.mk): Make sure to prefix file
27121         reference with $(srcdir) so that the file is found correctly even
27122         when running `make syntax-check' in a VPATH build.
27124 2011-11-13  Bruno Haible  <bruno@clisp.org>
27125             Jim Meyering  <meyering@redhat.com>
27127         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
27128         * tests/init.sh (compare): Remove "No differences encountered" or
27129         synonymous output from the 'diff' program.
27131 2011-11-13  Bruno Haible  <bruno@clisp.org>
27133         Makefile: Tweak indentation.
27134         * Makefile: Use tab as first character in every line that contains rule
27135         commands.
27137 2011-11-13  Bruno Haible  <bruno@clisp.org>
27139         Syntax check for copyright statements.
27140         * check-copyright: New file.
27141         * Makefile (sc_check_copyright): New rule.
27143 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27145         * build-aux/git-version-gen: Add --prefix to configure the tag
27146         match string.
27148 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27150         * build-aux/git-version-gen: Add --help and --version.
27152 2011-11-12  Jim Meyering  <meyering@redhat.com>
27154         revamp the other test-exclude?.sh scripts to use init.sh, too
27155         * tests/test-exclude1.sh: Use init.sh.
27156         * tests/test-exclude2.sh: Likewise.
27157         * tests/test-exclude3.sh: Likewise.
27158         * tests/test-exclude4.sh: Likewise.
27159         * tests/test-exclude5.sh: Likewise.
27160         * tests/test-exclude6.sh: Likewise.
27161         * tests/test-exclude7.sh: Likewise.
27162         * tests/test-exclude8.sh: Likewise.
27163         * modules/exclude-tests (Files): List init.sh.
27165         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
27166         These shell scripts ignored failure of the binary test-exclude,
27167         so making the latter return 77 didn't cause them to be skipped.
27168         * tests/test-exclude5.sh: Exit with test-exclude's error status
27169         when that program fails.  Revamp to use init.sh.
27170         * tests/test-exclude2.sh: Likewise.
27172         test-exclude: fix a typo
27173         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
27175 2011-11-11  Bruno Haible  <bruno@clisp.org>
27177         obstack: Fix compilation error on MSVC 9.
27178         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
27180 2011-11-11  Jim Meyering  <meyering@redhat.com>
27182         test-exclude: skip tests rather than failing on deficient systems
27183         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
27184         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
27185         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
27186         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
27188 2011-11-10  Bruno Haible  <bruno@clisp.org>
27190         ptsname_r test: Avoid gcc warning on glibc systems.
27191         * tests/test-ptsname_r.c (null_ptr): New function.
27192         (test_errors): Use it.
27194 2011-11-10  Bruno Haible  <bruno@clisp.org>
27196         ptsname_r: Avoid compilation error on OSF/1 5.1.
27197         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
27198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
27199         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
27200         function is not declared or incompatibly declared.
27201         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
27202         * modules/ptsname_r (Depends-on, configure.ac): Update.
27203         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
27205 2011-11-10  Bruno Haible  <bruno@clisp.org>
27207         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
27208         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
27209         When cross-compiling, guess yes on all platforms except AIX.
27210         Reported by Ludovic Courtès <ludo@gnu.org>.
27212 2011-11-09  Bruno Haible  <bruno@clisp.org>
27214         ptsname_r tests: Fix bugs.
27215         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
27216         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
27218 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27220         fstatat: work with cross-compilation
27221         Problem reported by Ludovic Courtès in
27222         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
27223         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
27224         "cross-compiling" and assume the bug is present.  Replace
27225         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
27226         an inverted sense, to be more conservative about our assumptions.
27227         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
27229 2011-11-09  Bruno Haible  <bruno@clisp.org>
27231         Improve MODULES.html output.
27232         * modules/mkfifoat (Description): Use the word "function".
27233         * modules/readlinkat (Description): Likewise.
27234         * modules/symlinkat (Description): Likewise.
27236 2011-11-09  Eric Blake  <eblake@redhat.com>
27238         ptsname_r-tests: new test module
27239         * modules/ptsname_r-tests: New module.
27240         * tests/test-ptsname_r.c: New file.
27242         ptsname_r: new module
27243         * modules/ptsname_r: New module.
27244         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
27245         * lib/ptsname.c (__ptsname_r): Split...
27246         * lib/ptsname_r.c: ...into new file.
27247         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27248         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
27249         * modules/stdlib (Makefile.am): Substitute witnesses.
27250         * lib/stdlib.in.h (ptsname_r): Declare it.
27251         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
27252         * MODULES.html.sh (Misc): Likewise.
27253         * modules/ptsname (Depends-on): Alter dependency.
27254         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
27256 2011-11-09  Jim Meyering  <meyering@redhat.com>
27258         announce-gen: be more concise when there's only one URL+tarball
27259         * build-aux/announce-gen (get_tool_versions): When you distribute
27260         only one type of tarball, combine the first two "Here are..."
27261         sections and make the key-checking grammar independent of
27262         how many tarballs there are.
27264 2011-11-09  Eric Blake  <eblake@redhat.com>
27266         openpty: provide a stub on mingw
27267         * lib/pty.in.h (includes): Provide forward declarations.
27268         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
27270         raise: fix mingw handling of SIGPIPE
27271         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
27273 2011-11-08  Bruno Haible  <bruno@clisp.org>
27275         More conditional dependencies.
27276         * modules/faccessat (Depends-on): Add conditions.
27277         * modules/fchmodat (Depends-on): Likewise.
27278         * modules/fchownat (Depends-on): Likewise.
27279         * modules/fstatat (Depends-on): Likewise.
27280         * modules/mkfifoat (Depends-on): Likewise.
27281         * modules/readlinkat (Depends-on): Likewise.
27282         * modules/symlinkat (Depends-on): Likewise.
27283         * modules/unlinkat (Depends-on): Likewise.
27284         * modules/utimensat (Depends-on): Likewise.
27285         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
27286         * modules/linkat (Depends-on): Refine the conditions.
27287         * modules/renameat (Depends-on): Likewise.
27289 2011-11-08  Bruno Haible  <bruno@clisp.org>
27291         faccessat: Move AC_LIBOBJ invocation to module description.
27292         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
27293         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
27294         invocation from here...
27295         * modules/faccessat (configure.ac): ... to here. Invoke
27296         gl_PREREQ_FACCESSAT.
27298 2011-11-08  Bruno Haible  <bruno@clisp.org>
27300         faccessat: Simplify autoconf macro.
27301         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
27302         gl_FUNC_EUIDACCESS.
27304 2011-11-08  Bruno Haible  <bruno@clisp.org>
27306         renameat: Fix dependencies.
27307         * modules/renameat (Depends-on): Add stdbool.
27309 2011-11-08  Bruno Haible  <bruno@clisp.org>
27311         mkfifoat: Fix module description.
27312         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
27313         not gl_UNISTD_MODULE_INDICATOR.
27315 2011-11-08  Bruno Haible  <bruno@clisp.org>
27317         fstatat: Remove unused dependency.
27318         * modules/fstatat (Depends-on): Remove fstat.
27320 2011-11-08  Simon Josefsson  <simon@josefsson.org>
27322         GNUmakefile: behave when Makefile is missing.
27323         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
27325 2011-11-08  Bruno Haible  <bruno@clisp.org>
27327         openat: Conditionalize dependencies.
27328         * lib/openat.c: Reduce the scope of some #includes.
27329         * modules/openat (Depends-on): Add conditions.
27331 2011-11-07  Jim Meyering  <meyering@redhat.com>
27333         maint.mk: extract GPG key ID without using a temporary file
27334         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
27335         without using a temporary file.  Based on a suggestion from Werner Koch
27336         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
27338 2011-11-07  Eric Blake  <eblake@redhat.com>
27340         grantpt: fix typo
27341         * lib/stdlib.in.h (grantpt): Check correct function.
27343         maint.mk: silence new syntax check
27344         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
27346 2011-11-06  Bruno Haible  <bruno@clisp.org>
27348         Doc about floating-point and math API.
27349         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
27350         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
27352 2011-11-06  Bruno Haible  <bruno@clisp.org>
27354         stdalign tests: Skip the test when compiled by Sun C.
27355         * tests/test-stdalign.c (main): Skip the test on Sun C.
27357 2011-11-06  Bruno Haible  <bruno@clisp.org>
27359         ansi-c++-opt: Complete the 2011-06-05 change.
27360         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
27361         does not support namespaces, set the variable to "no", not to ":".
27363 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27365         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
27367 2011-11-06  Bruno Haible  <bruno@clisp.org>
27369         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
27370         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
27371         (minus_zerol) [HP-UX]: New macro.
27372         (unary_minus) [HP-UX]: New function.
27373         (copysignl) [HP-UX]: Use unary_minus function.
27375 2011-11-06  Bruno Haible  <bruno@clisp.org>
27377         ldexp, ldexpf, ldexpl: Enhance tests.
27378         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
27379         and tests/test-ldexpl.c.
27380         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
27381         LDEXP, MIN_EXP, MAX_EXP): New macros.
27382         Include test-ldexp.h.
27383         (main): Just call test_function.
27384         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
27385         infinity.h, nan.h.
27386         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27387         MAX_EXP): New macros.
27388         Include test-ldexp.h.
27389         (x, y): Remove variables.
27390         (main): Just call test_function.
27391         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
27392         infinity.h, nan.h.
27393         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27394         MAX_EXP): New macros.
27395         Include test-ldexp.h.
27396         (x, y): Remove variables.
27397         (main): Just call test_function.
27398         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
27399         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
27400         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27401         (Depends-on): Add isnand-nolibm, signbit, float.
27402         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
27403         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27404         (Depends-on): Add isnanf-nolibm, signbit, float.
27406 2011-11-06  Bruno Haible  <bruno@clisp.org>
27408         math tests: Cosmetics.
27409         * tests/test-math-c++.cc: Reorder declarations.
27411 2011-11-05  Bruno Haible  <bruno@clisp.org>
27413         fma*: Simplify test.
27414         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
27415         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
27417         Tests for module 'fmal'.
27418         * modules/fmal-tests: New file.
27419         * tests/test-fmal1.c: New file.
27420         * tests/test-fmal2.c: New file.
27422         New module 'fmal'.
27423         * lib/math.in.h (fmal): New declaration.
27424         * lib/fmal.c: New file.
27425         * m4/fmal.m4: New file.
27426         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
27427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
27428         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
27429         REPLACE_FMAL.
27430         * modules/fmal: New file.
27431         * doc/posix-functions/fmal.texi: Mention the new module and the various
27432         bugs.
27434         Tests for module 'fmaf'.
27435         * modules/fmaf-tests: New file.
27436         * tests/test-fmaf1.c: New file.
27437         * tests/test-fmaf2.c: New file.
27439         New module 'fmaf'.
27440         * lib/math.in.h (fmaf): New declaration.
27441         * lib/fmaf.c: New file.
27442         * m4/fmaf.m4: New file.
27443         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
27444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
27445         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
27446         REPLACE_FMAF.
27447         * modules/fmaf: New file.
27448         * doc/posix-functions/fmaf.texi: Mention the new module and the various
27449         bugs.
27451         Tests for module 'fma'.
27452         * modules/fma-tests: New file.
27453         * tests/test-fma1.c: New file.
27454         * tests/test-fma1.h: New file.
27455         * tests/test-fma2.c: New file.
27456         * tests/test-fma2.h: New file.
27458         New module 'fma'.
27459         * lib/math.in.h (fma): New declaration.
27460         * lib/fma.c: New file.
27461         * m4/fma.m4: New file.
27462         * m4/fegetround.m4: New file.
27463         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
27464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
27465         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
27466         REPLACE_FMA.
27467         * modules/fma: New file.
27468         * doc/posix-functions/fma.texi: Mention the new module and the various
27469         bugs.
27471         Extend gl_MATHFUNC.
27472         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
27473         Support 'void' as argument type.
27474         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
27476 2011-11-05  Jim Meyering  <meyering@redhat.com>
27478         maint.mk: also prohibit inclusion of dirent.h without use
27479         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
27481 2011-11-05  Bruno Haible  <bruno@clisp.org>
27483         ldexpl tests: Avoid test failure on MSVC 9.
27484         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
27485         value. Needed in order to enforce the conversion from a value greater
27486         than LDBL_MAX to Infinity.
27488 2011-11-05  Bruno Haible  <bruno@clisp.org>
27490         New modules 'at-internal', 'openat-h', split off from module 'openat'.
27491         * modules/at-internal: New file, extracted from modules/openat.
27492         * modules/openat-h: New file.
27493         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
27494         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
27495         * modules/openat (Description): Add reference to POSIX function.
27496         (Files): Remove lib/openat.h, lib/openat-proc.c.
27497         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
27498         intprops, unistd.
27499         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
27500         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
27501         gl_FCNTL_MODULE_INDICATOR.
27502         (Include): Remove unistd.h, openat.h.
27503         * modules/areadlinkat (Files): Add lib/at-func.c.
27504         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27505         openat-die, openat-h, save-cwd.
27506         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
27507         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27508         openat-die, openat-h, save-cwd, unistd.
27509         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
27510         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27511         openat-h, save-cwd. Remove fcntl-h, openat.
27512         * modules/fchmodat (Files): Remove lib/openat.h.
27513         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27514         openat, stdbool, unistd.
27515         * modules/fchownat (Files): Remove lib/openat.h.
27516         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27517         openat, stdbool, sys_stat.
27518         * modules/fdopendir (Files): Remove lib/openat-priv.h,
27519         lib/openat-proc.c.
27520         (Depends-on): Add at-internal.
27521         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
27522         * modules/fstatat (Files): Remove lib/openat.h.
27523         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27524         stdbool, unistd.
27525         * modules/fts (Depends-on): Add openat-h.
27526         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
27527         openat.
27528         * modules/mkdirat (Files): Remove lib/openat.h.
27529         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27530         openat, stdbool, sys_stat.
27531         * modules/mkfifoat (Files): Add lib/at-func.c.
27532         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27533         openat-h, save-cwd. Remove fcntl-h, openat.
27534         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
27535         * modules/readlinkat (Files): Add lib/at-func.c.
27536         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27537         openat-h, save-cwd. Remove fcntl-h, openat.
27538         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
27539         openat.
27540         * modules/selinux-at (Files): Add lib/at-func.c.
27541         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27542         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
27543         * modules/symlinkat (Files): Add lib/at-func.c.
27544         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27545         openat-h, save-cwd. Remove fcntl-h, openat.
27546         * modules/unlinkat (Files): Remove lib/openat.h.
27547         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27548         stdbool.
27549         * modules/utimensat (Files): Add lib/at-func.c.
27550         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
27551         openat-die, openat-h, save-cwd.
27552         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
27553         * modules/fdutimensat-tests (Depends-on): Add openat.
27554         * modules/fstatat-tests (Depends-on): Add openat-h.
27555         * modules/readlinkat-tests (Depends-on): Add openat.
27556         * modules/symlinkat-tests (Depends-on): Add openat.
27558 2011-11-05  Bruno Haible  <bruno@clisp.org>
27560         openat: Include <stdbool.h>.
27561         * lib/openat.c: Include <stdbool.h>.
27563 2011-11-04  Bruno Haible  <bruno@clisp.org>
27565         fchownat, renameat, unlinkat: Fix dependencies.
27566         * modules/fchownat (Depends-on): Add fstatat.
27567         * modules/renameat (Depends-on): Likewise.
27568         * modules/unlinkat (Depends-on): Likewise.
27570 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27572         openat: remove direct dependency on dirent
27573         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
27574         and hasn't been needed ever since fdopendir was split into its own
27575         module on 2009-08-31.
27576         * modules/openat (Depends-on): Remove dirent.
27578 2011-11-04  Bruno Haible  <bruno@clisp.org>
27580         renameat: Optimize code size.
27581         * modules/renameat (configure.ac): Don't compile at-func2.c if
27582         REPLACE_RENAMEAT is 1.
27584 2011-11-04  Bruno Haible  <bruno@clisp.org>
27586         openat tests: Fix file list.
27587         * modules/openat-tests (Files): Add tests/test-open.h.
27589 2011-11-04  Bruno Haible  <bruno@clisp.org>
27591         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
27592         * modules/fchmodat (Depends-on): Add openat-die.
27593         * modules/fchownat (Depends-on): Likewise.
27594         * modules/linkat (Depends-on): Likewise.
27595         * modules/renameat (Depends-on): Likewise.
27596         * modules/openat (Depends-on): Add dirent.
27598 2011-11-04  Jim Meyering  <meyering@redhat.com>
27600         at-func*.c: fix comments
27601         * lib/at-func2.c: Correct/improve first-line comment.
27602         * lib/at-func.c: Correct grammar in first-line comment.
27604 2011-11-04  Bruno Haible  <bruno@clisp.org>
27606         New module 'mkdirat', split off from module 'openat'.
27607         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27608         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27609         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27610         * modules/mkdirat: New file, extracted from modules/openat.
27611         * modules/openat (Files): Remove lib/mkdirat.c.
27612         (Depends-on): Remove mkdir.
27613         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27614         (Include): Remove <sys/stat.h>.
27615         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27616         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27617         tests/test-mkdir.h.
27618         (Depends-on): Remove ignore-value.
27619         (Makefile.am): Remove rules for test-mkdirat.
27620         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27621         of module 'openat'.
27622         * NEWS: Mention the change.
27624 2011-11-04  Bruno Haible  <bruno@clisp.org>
27626         closedir: Avoid warning on mingw.
27627         * lib/closedir.c: Include <unistd.h>.
27629 2011-11-04  Bruno Haible  <bruno@clisp.org>
27631         New module 'fstatat', split off from module 'openat'.
27632         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27633         defined.
27634         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27635         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27636         gl_FUNC_FSTATAT.
27637         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27638         * modules/fstatat: New file, extracted from modules/openat.
27639         * modules/openat (Files): Remove lib/fstatat.c.
27640         (Depends-on): Remove lstat.
27641         (configure.ac): Remove AC_LIBOBJ of fstatat.
27642         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27643         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27644         tests/test-lstat.h, tests/test-stat.h.
27645         (Depends-on): Remove getcwd-lgpl.
27646         (Makefile.am): Remove rules for test-fstatat.
27647         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27648         of module 'openat'.
27649         * NEWS: Mention the change.
27650         * modules/getcwd (Depends-on): Add fstatat.
27651         * modules/linkat (Depends-on): Likewise.
27652         * modules/mkfifoat-tests (Depends-on): Likewise.
27653         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27655 2011-11-03  Bruno Haible  <bruno@clisp.org>
27657         New module 'unlinkat', split off from module 'openat'.
27658         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27659         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27660         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27661         * modules/unlinkat: New file, extracted from modules/openat. Correct
27662         the dependency conditions.
27663         * modules/openat (Files): Remove lib/unlinkat.c.
27664         (Depends-on): Remove rmdir, unlink.
27665         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27666         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27667         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27668         tests/test-rmdir.h, tests/test-unlink.h.
27669         (Depends-on): Remove unlinkdir.
27670         (Makefile.am): Remove rules for test-unlinkat.
27671         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27672         of module 'openat'.
27673         * NEWS: Mention the change.
27674         * modules/linkat-tests (Depends-on): Add unlinkat.
27675         * modules/mkfifoat-tests (Depends-on): Likewise.
27676         * modules/readlinkat-tests (Depends-on): Likewise.
27678 2011-11-02  Bruno Haible  <bruno@clisp.org>
27680         New module 'fchmodat', split off from module 'openat'.
27681         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27682         defined.
27683         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27684         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27685         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27686         * modules/fchmodat: New file, extracted from modules/openat.
27687         * modules/openat (Files): Remove lib/fchmodat.c.
27688         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27689         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27690         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27691         (Makefile.am): Remove rules for test-fchmodat.
27692         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27693         of module 'openat'.
27694         * NEWS: Mention the change.
27696 2011-11-02  Jim Meyering  <meyering@redhat.com>
27698         putenv: indent #definition of "environ" to placate cppi
27699         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27701         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27702         Git logs are often treated as immutable, because editing them
27703         changes the SHA1 checksums of all descendants.  Thus, errors in
27704         git logs tend to stay there forever.  However, when we generate
27705         a ChangeLog file -- typically for distribution -- from that git log,
27706         we can actually make corrections in the generated file.  The key
27707         lies in recording in machine-readable/applicable form the desired
27708         corrections.  See --help for description and an example.
27709         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27710         (usage): Describe it; alphabetize option descriptions.
27711         (main): Honor the new option, carefully.
27713 2011-11-01  Jim Meyering  <meyering@redhat.com>
27715         gitlog-to-changelog: avoid an infloop
27716         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27717         that ends up being empty.
27719 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27721         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27722         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27723         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27724         contains (possibly-quoted) backslashes.  This should avoid
27725         all-too-common shell bugs if COMPLICATED contains backslashes in
27726         the "wrong" places.  Reported by David Evans in
27727         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27728         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27729         because we want ASCII ranges.  Is there some reason we don't use
27730         the C locale everywhere in this script?
27731         (func_module, top level): Avoid unwanted pathname expansion when
27732         $repo_url_prefix or $repo_url_suffix_repl contain shell
27733         metacharacters like '?' and '*'.
27735 2011-11-01  Bruno Haible  <bruno@clisp.org>
27737         fchownat: Improve description.
27738         * modules/fchownat (Description): Add link to function.
27740 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27742         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27743         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
27744         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
27745         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27747 2011-11-01  Bruno Haible  <bruno@clisp.org>
27749         alignof: Avoid collision with stdalign module.
27750         * lib/alignof.h (alignof): Remove macro.
27751         * NEWS: Mention the change.
27752         Reported by Paul Eggert.
27754 2011-11-01  Bruno Haible  <bruno@clisp.org>
27756         New module 'fchownat', split off from module 'openat'.
27757         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
27758         defined.
27759         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
27760         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
27761         invoke gl_FUNC_FCHOWNAT.
27762         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
27763         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
27764         * modules/fchownat: New file, extracted from modules/openat.
27765         * modules/openat (Files): Remove lib/fchownat.c.
27766         (Depends-on): Remove lchown.
27767         (configure.ac): Remove AC_LIBOBJ of fchownat.
27768         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
27769         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
27770         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
27771         (Depends-on): Remove mgetgroups, usleep, stat-time.
27772         (configure.ac): Remove test for getegid.
27773         (Makefile.am): Remove rules for test-fchownat.
27774         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
27775         of module 'openat'.
27776         * NEWS: Mention the change.
27778 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27780         stdalign: port better to MSVC and to Sun C 5.11
27781         This fixes some of the problems reported by Bruno Haible in
27782         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
27783         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
27784         shortcomings of MSVC and of Sun C 5.11.
27785         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
27786         around __declspec arg.
27787         * modules/stdalign-tests (Files): Add tests/macros.h.
27788         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
27789         Include macros.h, for ASSERT.
27790         (DECLARE_ALIGNED): Remove.
27791         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
27792         to catch bug), and to 1 if not (simplifies the rest of the code).
27793         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
27794         (CHECK_AUTO): Remove.
27795         (CHECK_ALIGNED): Check only the alignment of the static vars,
27796         since auto var alignment isn't supported by Sun C 5.11.
27797         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
27798         ASSERT failures are easier to diagnose.
27800 2011-10-31  Bruno Haible  <bruno@clisp.org>
27802         doc about some IRIX 5.3 problems.
27803         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
27804         on IRIX 5.3.
27805         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
27806         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
27807         5.3.
27808         * doc/posix-functions/grantpt.texi: Likewise.
27809         * doc/posix-functions/unlockpt.texi: Likewise.
27810         * doc/posix-functions/lgamma.texi: Likewise.
27811         * doc/posix-functions/nextafter.texi: Likewise.
27812         * doc/posix-functions/remainder.texi: Likewise.
27813         * doc/posix-functions/select.texi: Mention misplaced declaration on
27814         IRIX 5.3.
27815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27817 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
27819         gitlog-to-changelog: fix git-log invocation.
27820         git-log mishandles date strings before 1970-01-01 UTC, and there is
27821         no use to specify --since=1970-01-01 by default anyway.
27822         * build-aux/gitlog-to-changelog: By default, when no --since option
27823         was given, do not specify explicit --since option to git-log.
27825 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
27827         gitlog-to-changelog: new option --append-dot.
27828         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
27829         first non-blank line of each commit message terminated with a dot.
27831 2011-10-30  Bruno Haible  <bruno@clisp.org>
27833         ffsl, ffsll: Avoid compilation error due to 'restrict'.
27834         * lib/ffsl.h: Include <config.h>.
27835         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
27837 2011-10-30  Jim Meyering  <meyering@redhat.com>
27839         GNUmakefile: reenable "make syntax-check" for most projects
27840         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
27841         build-aux variable", "syntax-check" would do nothing but succeed with
27842         the "No version control files detected..." diagnostic (unless you
27843         happened to override _build-aux via cfg.mk).
27844         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
27845         to precede inclusion of maint.mk.  Otherwise, these variables would
27846         be used undefined in any project that does not override the default.
27848 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
27850         gitlog-to-changelog: treat a message with only blank lines as empty.
27851         * build-aux/gitlog-to-changelog: Move the code that removes leading and
27852         trailing blank lines before the code that issues a warning about an
27853         empty commit message.
27855 2011-10-30  Jim Meyering  <meyering@redhat.com>
27857         test-parse-datetime.c: avoid new DST-related false positive test failure
27858         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27859         based on the time/date we'll convert, not the current time.
27860         Otherwise, the moment we cross a DST boundary like today's in
27861         Europe, (CEST to CET), that offset ends up being one hour off.
27863 2011-10-27  Bruno Haible  <bruno@clisp.org>
27865         fstat: Tweak documentation.
27866         * modules/fstat (Description): More precise description.
27868 2011-10-27  Bruno Haible  <bruno@clisp.org>
27870         Update documentation regarding 'largefile' module.
27871         * doc/posix-functions/fstat.texi: Tweak wording.
27872         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27873         problems with huge directories and/or small ino_t types.
27874         * doc/posix-functions/readdir.texi: Likewise.
27875         * doc/posix-functions/rewinddir.texi: Likewise.
27877 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27879         maint.mk: don't maintain a second build-aux variable.
27880         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27881         depends on GNUmakefile, which already maintains a cfg.mk
27882         overridable $(_build-aux) for projects with a non-standard
27883         build-aux directory location, although without the $(srcdir)
27884         prefix.  Use that variable consistently instead of introducing a
27885         second one.  Adjust all call sites.
27887 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27889         Add stdalign module and use it in other modules.
27890         This is based on a previous proposal by Bruno Haible
27891         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27893         stdalign: new module
27894         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27895         * modules/stdalign: New files.
27896         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27897         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27899         stdalign-tests: new module
27900         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27902         argp: use stdalign
27903         * lib/argp-parse.c: Include <stdalign.h>.
27904         (alignof): Remove.
27905         * modules/argp (Depends-on): Add stdalign.
27907         crypto libraries: use stdalign
27908         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27909         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27910         Do not include <stdlib.h> twice, in md4.c.
27911         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27912         because we are accessing a pointer's bit-pattern, not a size.
27913         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27914         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27915         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27916         * modules/crypto/sha512: Likewise.
27918         sys_socket: use stdalign, not alignof
27919         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
27920         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
27922 2011-10-27  Bruno Haible  <bruno@clisp.org>
27924         raise test: Avoid a test failure on Linux/MIPS.
27925         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
27926         because 99 is a valid signal on Linux/MIPS.
27928 2011-10-27  Bruno Haible  <bruno@clisp.org>
27930         nonblocking tests: Fix test failure on Linux/MIPS.
27931         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27932         Set to 270000.
27934 2011-10-27  Bruno Haible  <bruno@clisp.org>
27936         utimensat: Work around problem on Linux/hppa.
27937         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
27938         values.
27939         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
27941 2011-10-25  Jim Meyering  <meyering@redhat.com>
27943         maint.mk: fix a bug in sc_prohibit_stddef_without_use
27944         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
27945         after symbols like NULL, size_t, etc.
27946         Reported by Alfred M. Szmidt.
27948         maint.mk: exempt ENODATA from a syntax-check rule
27949         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
27950         from the sc_prohibit_always-defined_macros syntax-check rule.
27951         Add a comment.  See this for more details:
27952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
27954 2011-10-23  Jim Meyering  <meyering@redhat.com>
27956         fts: close parent dir FD before returning from post-traversal fts_read
27957         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
27958         unlink A, even though an FD open on A remained.  This is suboptimal
27959         (holding a file descriptor open longer than needed), but otherwise not
27960         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
27961         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
27962         that represents a real problem: it causes the removal of A to fail
27963         with e.g., "rm: cannot remove `A': Device or resource busy"
27965         fts visits each directory twice and keeps a cache (fts_fd_ring) of
27966         directory file descriptors.  After completing the final, FTS_DP,
27967         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
27968         cache, but then proceeded to add a new FD to it via the subsequent
27969         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
27970         final file descriptor would be closed only via fts_close's call to
27971         fd_ring_clear.  Now, it is usually closed earlier, via the final
27972         FTS_DP-returning fts_read call.
27973         * lib/fts.c (restore_initial_cwd): New function, converted from
27974         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
27975         Update callers.
27976         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
27977         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
27979 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
27980             Bruno Haible  <bruno@clisp.org>
27981             Jim Meyering  <jim@meyering.net>
27983         readme-release: improve safety of release prep instructions.
27984         * README-release: Don't git pull all branches when only master
27985         is needed for the release process.
27986         Run make maintainer-clean before changing trees and merging.
27987         Don't try to run ./configure right after git pull in case files
27988         that influence the bootstrap process have changed, move the
27989         ./configure step to after running ./bootstrap.
27990         Don't bootstrap "one last time"... it's the first time!
27992 2011-10-22  Bruno Haible  <bruno@clisp.org>
27994         errno, strerror-override: Support for MSVC 10.
27995         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
27996         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
27997         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
27998         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
27999         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
28000         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
28001         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
28002         Assign values compatible with MSVC 10.
28003         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
28004         New macros.
28005         (GNULIB_defined_EWINSOCK): New macro.
28006         * lib/strerror-override.c (strerror_override): Update accordingly.
28007         * lib/strerror-override.h: Likewise.
28008         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
28009         longer equal to the corresponding errno value.
28010         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28012 2011-10-22  Bruno Haible  <bruno@clisp.org>
28014         perror: Recognize when test program crashes.
28015         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
28016         strerror, set gl_cv_func_perror_works to no.
28017         Reported by Daniel Richard G. <skunk@iskunk.org>.
28019         perror: Fix indentation.
28020         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
28022 2011-10-22  Bruno Haible  <bruno@clisp.org>
28024         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
28025         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
28026         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
28027         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
28028         functions, not as a macro.
28029         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
28030         macros.
28031         (isfinite, isinf, isnan, signbit): Check overloaded functions and
28032         absence of macro.
28033         Suggested by Eric Blake.
28034         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28036 2011-10-21  Bruno Haible  <bruno@clisp.org>
28038         relocatable-prog-wrapper: Don't leave object files behind.
28039         * build-aux/install-reloc: Re-synchronize list of .o files to be
28040         removed with list of compilation units.
28042 2011-10-20  Bruno Haible  <bruno@clisp.org>
28044         openpty, posix_openpt: Remove code duplication.
28045         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
28046         * lib/openpty.c: Include <stdlib.h>.
28047         (openpty): Use posix_openpt on all platforms except IRIX.
28048         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
28050 2011-10-20  Bruno Haible  <bruno@clisp.org>
28052         unlockpt: Detect invalid argument.
28053         * lib/unlockpt.c: Include <fcntl.h>.
28054         (unlockpt): Check whether fd is valid, using fcntl().
28055         * modules/unlockpt (Depends-on): Add fcntl-h.
28057 2011-10-20  Bruno Haible  <bruno@clisp.org>
28059         openpty: Avoid compilation error on AIX 6.1.
28060         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
28062 2011-10-20  Bruno Haible  <bruno@clisp.org>
28064         posix_openpt: Support for OpenBSD.
28065         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
28066         (posix_openpt) [OpenBSD]: New code.
28067         * lib/grantpt.c: Include <fcntl.h>.
28068         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
28069         * modules/grantpt (Depends-on): Add fcntl-h.
28071 2011-10-20  Bruno Haible  <bruno@clisp.org>
28073         posix_openpt test: Coding style.
28074         * tests/test-posix_openpt.c: Use GNU coding style.
28076 2011-10-20  Bruno Haible  <bruno@clisp.org>
28078         grantpt: Support --avoid=pt_chown.
28079         * modules/grantpt (Files): Add lib/pty-private.h.
28081 2011-10-20  Bruno Haible  <bruno@clisp.org>
28083         posix_openpt: Fix autoconf macro.
28084         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
28085         unneeded check for _getpty.
28087 2011-10-20  Bruno Haible  <bruno@clisp.org>
28089         openpty: Update comments.
28090         * lib/openpty.c: Add comments about Minix.
28092 2011-10-19  Eric Blake  <eblake@redhat.com>
28094         openpty: relax license
28095         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
28097         pt_chown: use configmake to simplify build
28098         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
28100         ptsname and others: relax license
28101         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
28102         * modules/unlockpt (License): Likewise.
28103         * modules/pt_chown (License): Likewise.
28104         * modules/ptsname (License): Likewise.
28105         * modules/ttyname_r (License): Likewise.
28107 2011-10-19  Jim Meyering  <meyering@redhat.com>
28109         posix_openpt: remove spurious #endif
28110         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
28112 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
28114         maint.mk: Respect $(build_aux) in web-manual rule.
28115         * top/maint.mk (web-manual): Find gen-announce script in user's
28116         $(build_aux) directory instead of hard-coding 'build-aux'.
28118 2011-10-19  Bruno Haible  <bruno@clisp.org>
28120         posix_openpt: Fix compilation error.
28121         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
28122         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
28123         Mention the openpty module as an alternative.
28125 2011-10-19  Bruno Haible  <bruno@clisp.org>
28127         Support for old NeXTstep 3.3 frexp().
28128         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
28129         execution time of the test to 5 seconds.
28130         Reported by Daniel Richard G. <skunk@iskunk.org>.
28132 2011-10-19  Bruno Haible  <bruno@clisp.org>
28134         Support for old NeXTstep 3.3 sed.
28135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
28136         part, use /.../, not \|...|. Escape periods in the header file name.
28137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28138         Reported by Daniel Richard G. <skunk@iskunk.org>.
28140 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28142         Support for old NeXTstep 3.3 gcc.
28143         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
28144         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
28145         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
28146         * lib/spawn.in.h (_Restrict_arr_): Likewise.
28147         * lib/regex.h (_Restrict_arr_): Likewise.
28148         * lib/regex_internal.h (re_token_t): Likewise.
28149         * lib/regexec.c (check_node_accept_bytes): Likewise.
28150         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
28152 2011-10-18  Eric Blake  <eblake@redhat.com>
28154         posix_openpt: new module
28155         * modules/posix_openpt: New module.
28156         * m4/posix_openpt.m4: New file.
28157         * lib/posix_openpt.c: Likewise.
28158         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
28159         (gl_STDLIB_H_DEFAULTS): Set defaults.
28160         * modules/stdlib (Makefile.am): Substitute macros.
28161         * lib/stdlib.in.h (posix_openpt): Declare.
28162         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
28163         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
28164         * modules/posix_openpt-tests: New test module.
28165         * tests/test-posix_openpt.c: New test.
28167 2011-10-15  Bruno Haible  <bruno@clisp.org>
28169         xstrtoll: Fix compilation failure.
28170         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
28171         from lib/strtol.c.
28172         * doc/posix-headers/limits.texi: Mention missing numerical limits on
28173         some platforms.
28174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28176 2011-10-15  Bruno Haible  <bruno@clisp.org>
28178         vasnprintf: Optimize bit search operation.
28179         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
28180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
28181         gl_DOUBLE_EXPONENT_LOCATION.
28182         * modules/vasnprintf (Files): Add m4/exponentd.m4.
28183         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28184         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28185         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28186         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28187         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28188         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28189         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28190         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
28192 2011-10-15  Bruno Haible  <bruno@clisp.org>
28194         vasnprintf: Fix comments.
28195         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
28197 2011-10-14  Bruno Haible  <bruno@clisp.org>
28199         Tests for module 'integer_length_ll'.
28200         * modules/integer_length_ll-tests: New file.
28201         * tests/test-integer_length_ll.c: New file.
28203         New module 'integer_length_ll'.
28204         * lib/integer_length_ll.c: New file.
28205         * modules/integer_length_ll: New file.
28207 2011-10-14  Bruno Haible  <bruno@clisp.org>
28209         Tests for module 'integer_length_l'.
28210         * modules/integer_length_l-tests: New file.
28211         * tests/test-integer_length_l.c: New file.
28213         New module 'integer_length_l'.
28214         * lib/integer_length_l.c: New file.
28215         * modules/integer_length_l: New file.
28217 2011-10-14  Bruno Haible  <bruno@clisp.org>
28219         Tests for module 'integer_length'.
28220         * modules/integer_length-tests: New file.
28221         * tests/test-integer_length.c: New file.
28223         New module 'integer_length'.
28224         * lib/integer_length.h: New file.
28225         * lib/integer_length.c: New file.
28226         * modules/integer_length: New file.
28228 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28230         popen: Fix dependency conditions.
28231         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
28233 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28235         perror: Fix autoconf test.
28236         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
28237         <stdlib.h> and <string.h>.
28239 2011-10-14  Bruno Haible  <bruno@clisp.org>
28241         ffsl: Optimize on 64-bit platforms.
28242         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
28243         unrolling.
28245 2011-10-13  Bruno Haible  <bruno@clisp.org>
28247         ffsl: Optimize on 32-bit platforms.
28248         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
28249         use ffs() without a loop.
28251         ffsl, ffsll: Optimize for GCC.
28252         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
28253         * lib/ffsl.c (GCC_BUILTIN): New macro.
28254         * lib/ffsll.c (GCC_BUILTIN): Likewise.
28256 2011-10-13  Bruno Haible  <bruno@clisp.org>
28258         ffs, bcopy, memset: Support symbol renaming via config.h.
28259         * lib/ffs.c: Include <config.h>.
28260         * lib/bcopy.c: Likewise.
28261         * lib/memset.c: Likewise.
28263 2011-10-10  Bruno Haible  <bruno@clisp.org>
28265         atanl: Simplify for platforms where 'long double' == 'double'.
28266         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28267         alternative implementation.
28268         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28269         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28270         * modules/atanl (Depends-on): Add atan. Update conditions.
28272 2011-10-10  Bruno Haible  <bruno@clisp.org>
28274         acosl: Simplify for platforms where 'long double' == 'double'.
28275         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28276         alternative implementation.
28277         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28278         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28279         * modules/acosl (Depends-on): Add acos. Update conditions.
28281 2011-10-10  Bruno Haible  <bruno@clisp.org>
28283         asinl: Simplify for platforms where 'long double' == 'double'.
28284         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28285         alternative implementation.
28286         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28287         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28288         * modules/asinl (Depends-on): Add asin. Update conditions.
28290 2011-10-10  Bruno Haible  <bruno@clisp.org>
28292         tanl: Simplify for platforms where 'long double' == 'double'.
28293         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28294         implementation.
28295         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28296         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28297         * modules/tanl (Depends-on): Add tan. Update conditions.
28298         (configure.ac): Don't compile trigl.c if
28299         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28301 2011-10-10  Bruno Haible  <bruno@clisp.org>
28303         cosl: Simplify for platforms where 'long double' == 'double'.
28304         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28305         implementation.
28306         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28307         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28308         * modules/cosl (Depends-on): Add cos. Update conditions.
28309         (configure.ac): Don't compile sincosl.c and trigl.c if
28310         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28312 2011-10-10  Bruno Haible  <bruno@clisp.org>
28314         sinl: Simplify for platforms where 'long double' == 'double'.
28315         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28316         implementation.
28317         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28318         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28319         * modules/sinl (Depends-on): Add sin. Update conditions.
28320         (configure.ac): Don't compile sincosl.c and trigl.c if
28321         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28323 2011-10-10  Bruno Haible  <bruno@clisp.org>
28325         logl: Simplify for platforms where 'long double' == 'double'.
28326         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28327         implementation.
28328         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28329         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28330         * modules/logl (Depends-on): Add log. Update conditions.
28332 2011-10-10  Bruno Haible  <bruno@clisp.org>
28334         expl: Simplify for platforms where 'long double' == 'double'.
28335         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28336         implementation.
28337         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28338         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28339         * modules/expl (Depends-on): Add exp. Update conditions.
28341 2011-10-10  Bruno Haible  <bruno@clisp.org>
28343         sqrtl: Simplify for platforms where 'long double' == 'double'.
28344         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28345         alternative implementation.
28346         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28347         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28348         * modules/sqrtl (Depends-on): Update conditions.
28350 2011-10-10  Bruno Haible  <bruno@clisp.org>
28352         ldexpl: Simplify for platforms where 'long double' == 'double'.
28353         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28354         alternative implementation.
28355         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28356         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28357         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
28359 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
28361         ffsll: set correct witness
28362         * modules/ffsll (configure.ac): Fix typo.
28364 2011-10-10  Bruno Haible  <bruno@clisp.org>
28366         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
28367         * lib/printf-frexpl.c: Include <config.h>.
28368         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28369         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
28370         second time.
28371         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
28372         gl_LONG_DOUBLE_VS_DOUBLE.
28373         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
28374         conditions.
28376 2011-10-10  Bruno Haible  <bruno@clisp.org>
28378         frexpl: Simplify for platforms where 'long double' == 'double'.
28379         * lib/frexpl.c: Include <config.h>.
28380         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28381         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28382         time.
28383         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28384         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28385         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
28386         * modules/frexpl (Depends-on): Add frexp. Update conditions.
28387         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
28388         conditions.
28390 2011-10-10  Jim Meyering  <meyering@redhat.com>
28392         test-renameat: don't leave behind a temporary file
28393         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
28394           ERROR: files left in build directory after distclean:
28395           ./gltests/test-renameat.too
28396           make[1]: *** [distcleancheck] Error 1
28397         Reported by Tom G. Christensen.
28399 2011-10-09  Bruno Haible  <bruno@clisp.org>
28401         rint: Determine RINT_LIBM correctly on AIX 7.
28402         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
28403         directly, not only through a function pointer. Also accept an optional
28404         4th argument with extra code.
28405         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
28406         rintf() call by gcc when optimizing.
28408         mathfunc.m4: Refactor.
28409         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
28410         m4 variable.
28412 2011-10-09  Bruno Haible  <bruno@clisp.org>
28414         rintl: Simplify for platforms where 'long double' == 'double'.
28415         * lib/rintl.c: Include <config.h>.
28416         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28417         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28418         time.
28419         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28420         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28421         * modules/rintl (Depends-on): Add rint. Update conditions.
28423 2011-10-09  Bruno Haible  <bruno@clisp.org>
28425         roundl: Simplify for platforms where 'long double' == 'double'.
28426         * lib/roundl.c: Include <config.h>.
28427         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28428         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28429         time.
28430         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28431         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28432         * modules/roundl (Depends-on): Add round. Update conditions.
28434 2011-10-09  Bruno Haible  <bruno@clisp.org>
28436         truncl: Simplify for platforms where 'long double' == 'double'.
28437         * lib/truncl.c: Include <config.h>.
28438         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28439         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28440         time.
28441         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28442         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28443         * modules/truncl (Depends-on): Add trunc. Update conditions.
28445 2011-10-09  Bruno Haible  <bruno@clisp.org>
28447         ceill: Simplify for platforms where 'long double' == 'double'.
28448         * lib/ceill.c: Include <config.h>.
28449         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28450         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28451         time.
28452         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28453         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28454         * modules/ceill (Depends-on): Add ceil. Update conditions.
28456 2011-10-09  Bruno Haible  <bruno@clisp.org>
28458         floorl: Simplify for platforms where 'long double' == 'double'.
28459         * lib/floorl.c: Include <config.h>.
28460         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28461         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28462         time.
28463         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28464         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28465         * modules/floorl (Depends-on): Add floor. Update conditions.
28467 2011-10-09  Bruno Haible  <bruno@clisp.org>
28469         rint: Fix ordering constraints.
28470         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
28471         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
28472         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
28474 2011-10-09  Bruno Haible  <bruno@clisp.org>
28476         copysignl: Simplify for platforms where 'long double' == 'double'.
28477         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28478         alternative.
28479         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28480         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28481         * modules/copysignl (Depends-on): Add copysign. Update conditions.
28483 2011-10-09  Bruno Haible  <bruno@clisp.org>
28485         Tests for module 'rintl'.
28486         * modules/rintl-tests: New file.
28487         * tests/test-rintl.c: New file.
28489         New module 'rintl'.
28490         * lib/math.in.h (rintl): New declaration.
28491         * lib/rintl.c: New file.
28492         * m4/rintl.m4: New file.
28493         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
28494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
28495         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
28496         * modules/rintl: New file.
28497         * tests/test-math-c++.cc: Check the declaration of rintl.
28498         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28499         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
28500         * doc/posix-functions/rintl.texi: Mention the new module.
28502 2011-10-09  Bruno Haible  <bruno@clisp.org>
28504         Tests for module 'rintf'.
28505         * modules/rintf-tests: New file.
28506         * tests/test-rintf.c: New file.
28508         New module 'rintf'.
28509         * lib/math.in.h (rintf): New declaration.
28510         * lib/rintf.c: New file.
28511         * m4/rintf.m4: New file.
28512         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
28513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
28514         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
28515         * modules/rintf: New file.
28516         * tests/test-math-c++.cc: Check the declaration of rintf.
28517         * doc/posix-functions/rintf.texi: Mention the new module.
28519 2011-10-09  Bruno Haible  <bruno@clisp.org>
28521         rint: Support for MSVC.
28522         * lib/math.in.h (rint): New declaration.
28523         * lib/rint.c: New file.
28524         * m4/rint.m4: New file.
28525         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
28526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
28527         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
28528         * modules/rint (Description): Fix.
28529         (Files): Add lib/rint.c, m4/rint.m4.
28530         (Depends-on): Add math.
28531         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
28532         gl_MATH_MODULE_INDICATOR.
28533         * tests/test-math-c++.cc: Check the declaration of rint.
28534         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28535         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
28536         * doc/posix-functions/rint.texi: Mention the replacement provided by
28537         the module.
28539         rint tests: More tests.
28540         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
28541         minus-zero.h, infinity.h, nan.h.
28542         (main): Skip the test if the current rounding mode is not standard. Add
28543         tests for negative numbers, minus zero, infinity, NaN.
28544         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
28545         tests/nan.h.
28546         (Depends-on): Add isnand-nolibm.
28548 2011-10-09  Bruno Haible  <bruno@clisp.org>
28550         Tests for module 'copysignl'.
28551         * modules/copysignl-tests: New file.
28552         * tests/test-copysignl.c: New file.
28554         New module 'copysignl'.
28555         * lib/math.in.h (copysignl): New declaration.
28556         * lib/copysignl.c: New file.
28557         * m4/copysignl.m4: New file.
28558         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
28559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
28560         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
28561         HAVE_COPYSIGNL.
28562         * modules/copysignl: New file.
28563         * tests/test-math-c++.cc: Check the declaration of copysignl.
28564         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28565         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
28566         * doc/posix-functions/copysignl.texi: Mention the new module.
28568 2011-10-09  Bruno Haible  <bruno@clisp.org>
28570         Tests for module 'copysignf'.
28571         * modules/copysignf-tests: New file.
28572         * tests/test-copysignf.c: New file.
28574         New module 'copysignf'.
28575         * lib/math.in.h (copysignf): New declaration.
28576         * lib/copysignf.c: New file.
28577         * m4/copysignf.m4: New file.
28578         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
28579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
28580         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
28581         HAVE_COPYSIGNF.
28582         * modules/copysignf: New file.
28583         * tests/test-math-c++.cc: Check the declaration of copysignf.
28584         * doc/posix-functions/copysignf.texi: Mention the new module.
28586 2011-10-09  Bruno Haible  <bruno@clisp.org>
28588         Ensure that HAVE_* variables are set to 1 before they are set to 0.
28589         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
28590         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
28591         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28592         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
28593         gl_SIGNAL_H_DEFAULTS.
28595 2011-10-09  Bruno Haible  <bruno@clisp.org>
28597         poll: Make macro safer.
28598         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28599         ac_cv_header_poll_h is not set.
28601 2011-10-09  Bruno Haible  <bruno@clisp.org>
28603         copysign: Provide replacement.
28604         * lib/math.in.h (copysign): New declaration.
28605         * lib/copysign.c: New file.
28606         * m4/copysign.m4: New file.
28607         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28609         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28610         HAVE_COPYSIGN.
28611         * modules/copysign (Description): Clarify.
28612         (Files): Add lib/copysign.c, m4/copysign.m4.
28613         (Depends-on): Add math, signbit.
28614         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28615         gl_MATH_MODULE_INDICATOR.
28616         * tests/test-math-c++.cc: Check the declaration of copysign.
28617         * doc/posix-functions/copysign.texi: Mention the effects of the module
28618         on Minix and MSVC.
28620 2011-10-09  Bruno Haible  <bruno@clisp.org>
28622         isinf: Ensure macro on AIX 5.1.
28623         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28624         macro.
28625         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28627 2011-10-09  Bruno Haible  <bruno@clisp.org>
28629         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28630         * modules/snprintf-posix-tests (configure.ac): Require
28631         gl_LONG_DOUBLE_VS_DOUBLE.
28632         * modules/sprintf-posix-tests (configure.ac): Likewise.
28633         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28634         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28635         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28636         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28637         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28638         tests on platforms where 'long double' is the same as 'double'.
28639         * tests/test-sprintf-posix.h (test_function): Likewise.
28640         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28641         * tests/test-vasprintf-posix.c (test_function): Likewise.
28643         *printf: Fix for platforms where 'long double' == 'double'.
28644         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28645         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28646         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28647         * modules/fprintf-posix (Files): Likewise.
28648         * modules/obstack-printf-posix (Files): Likewise.
28649         * modules/snprintf-posix (Files): Likewise.
28650         * modules/sprintf-posix (Files): Likewise.
28651         * modules/vasnprintf (Files): Likewise.
28652         * modules/vasnprintf-posix (Files): Likewise.
28653         * modules/vasprintf-posix (Files): Likewise.
28654         * modules/vdprintf-posix (Files): Likewise.
28655         * modules/vfprintf-posix (Files): Likewise.
28656         * modules/vsnprintf-posix (Files): Likewise.
28657         * modules/vsprintf-posix (Files): Likewise.
28658         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28659         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28660         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28661         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28662         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28663         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28664         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28666         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28667         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28668         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28669         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28670         'long double'.
28671         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28673         isinf: Fix for platforms where 'long double' == 'double'.
28674         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28675         Don't blindly assume 80-bit 'long double'.
28677         isfinite: Fix for platforms where 'long double' == 'double'.
28678         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28679         Don't blindly assume 80-bit 'long double'.
28681         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28682         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28683         * modules/isfinite-tests (configure.ac): Require
28684         gl_LONG_DOUBLE_VS_DOUBLE.
28685         * modules/isinf-tests (configure.ac): Likewise.
28686         * modules/isnan-tests (configure.ac): Likewise.
28687         * modules/isnanl-tests (configure.ac): Likewise.
28688         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28689         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28690         tests on platforms where 'long double' is the same as 'double'.
28691         * tests/test-isinf.c (test_isinfl): Likewise.
28692         * tests/test-isnan.c (test_long_double): Likewise.
28693         * tests/test-isnanl.h (main): Likewise.
28695 2011-10-08  Bruno Haible  <bruno@clisp.org>
28697         Tests for module 'tanhf'.
28698         * modules/tanhf-tests: New file.
28699         * tests/test-tanhf.c: New file.
28701         New module 'tanhf'.
28702         * lib/math.in.h (tanhf): New declaration.
28703         * lib/tanhf.c: New file.
28704         * m4/tanhf.m4: New file.
28705         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28707         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28708         * modules/tanhf: New file.
28709         * tests/test-math-c++.cc: Check the declaration of tanhf.
28710         * doc/posix-functions/tanhf.texi: Mention the new module.
28712         tanh: Use a .m4 file.
28713         * m4/tanh.m4: New file.
28714         * modules/tanh (Files): Add it.
28715         (configure.ac): Just invoke gl_FUNC_TANH.
28717 2011-10-08  Bruno Haible  <bruno@clisp.org>
28719         Tests for module 'coshf'.
28720         * modules/coshf-tests: New file.
28721         * tests/test-coshf.c: New file.
28723         New module 'coshf'.
28724         * lib/math.in.h (coshf): New declaration.
28725         * lib/coshf.c: New file.
28726         * m4/coshf.m4: New file.
28727         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28729         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28730         * modules/coshf: New file.
28731         * tests/test-math-c++.cc: Check the declaration of coshf.
28732         * doc/posix-functions/coshf.texi: Mention the new module.
28734         cosh: Use a .m4 file.
28735         * m4/cosh.m4: New file.
28736         * modules/cosh (Files): Add it.
28737         (configure.ac): Just invoke gl_FUNC_COSH.
28739 2011-10-08  Bruno Haible  <bruno@clisp.org>
28741         Tests for module 'sinhf'.
28742         * modules/sinhf-tests: New file.
28743         * tests/test-sinhf.c: New file.
28745         New module 'sinhf'.
28746         * lib/math.in.h (sinhf): New declaration.
28747         * lib/sinhf.c: New file.
28748         * m4/sinhf.m4: New file.
28749         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
28750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
28751         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
28752         * modules/sinhf: New file.
28753         * tests/test-math-c++.cc: Check the declaration of sinhf.
28754         * doc/posix-functions/sinhf.texi: Mention the new module.
28756         sinh: Use a .m4 file.
28757         * m4/sinh.m4: New file.
28758         * modules/sinh (Files): Add it.
28759         (configure.ac): Just invoke gl_FUNC_SINH.
28761 2011-10-08  Bruno Haible  <bruno@clisp.org>
28763         Tests for module 'atan2f'.
28764         * modules/atan2f-tests: New file.
28765         * tests/test-atan2f.c: New file.
28767         New module 'atan2f'.
28768         * lib/math.in.h (atan2f): New declaration.
28769         * lib/atan2f.c: New file.
28770         * m4/atan2f.m4: New file.
28771         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
28772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
28773         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
28774         * modules/atan2f: New file.
28775         * tests/test-math-c++.cc: Check the declaration of atan2f.
28776         * doc/posix-functions/atan2f.texi: Mention the new module.
28778         atan2: Use a .m4 file.
28779         * m4/atan2.m4: New file.
28780         * modules/atan2 (Files): Add it.
28781         (configure.ac): Just invoke gl_FUNC_ATAN2.
28783 2011-10-08  Bruno Haible  <bruno@clisp.org>
28785         Tests for module 'atanf'.
28786         * modules/atanf-tests: New file.
28787         * tests/test-atanf.c: New file.
28789         New module 'atanf'.
28790         * lib/math.in.h (atanf): New declaration.
28791         * lib/atanf.c: New file.
28792         * m4/atanf.m4: New file.
28793         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
28794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
28795         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
28796         * modules/atanf: New file.
28797         * tests/test-math-c++.cc: Check the declaration of atanf.
28798         * doc/posix-functions/atanf.texi: Mention the new module.
28800         atan: Use a .m4 file.
28801         * m4/atan.m4: New file.
28802         * modules/atan (Files): Add it.
28803         (configure.ac): Just invoke gl_FUNC_ATAN.
28805 2011-10-08  Bruno Haible  <bruno@clisp.org>
28807         Tests for module 'acosf'.
28808         * modules/acosf-tests: New file.
28809         * tests/test-acosf.c: New file.
28811         New module 'acosf'.
28812         * lib/math.in.h (acosf): New declaration.
28813         * lib/acosf.c: New file.
28814         * m4/acosf.m4: New file.
28815         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
28816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
28817         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
28818         * modules/acosf: New file.
28819         * tests/test-math-c++.cc: Check the declaration of acosf.
28820         * doc/posix-functions/acosf.texi: Mention the new module.
28822         acos: Use a .m4 file.
28823         * m4/acos.m4: New file.
28824         * modules/acos (Files): Add it.
28825         (configure.ac): Just invoke gl_FUNC_ACOS.
28827 2011-10-08  Bruno Haible  <bruno@clisp.org>
28829         Tests for module 'asinf'.
28830         * modules/asinf-tests: New file.
28831         * tests/test-asinf.c: New file.
28833         New module 'asinf'.
28834         * lib/math.in.h (asinf): New declaration.
28835         * lib/asinf.c: New file.
28836         * m4/asinf.m4: New file.
28837         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
28838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
28839         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
28840         * modules/asinf: New file.
28841         * tests/test-math-c++.cc: Check the declaration of asinf.
28842         * doc/posix-functions/asinf.texi: Mention the new module.
28844         asin: Use a .m4 file.
28845         * m4/asin.m4: New file.
28846         * modules/asin (Files): Add it.
28847         (configure.ac): Just invoke gl_FUNC_ASIN.
28849 2011-10-08  Bruno Haible  <bruno@clisp.org>
28851         Tests for module 'tanf'.
28852         * modules/tanf-tests: New file.
28853         * tests/test-tanf.c: New file.
28855         New module 'tanf'.
28856         * lib/math.in.h (tanf): New declaration.
28857         * lib/tanf.c: New file.
28858         * m4/tanf.m4: New file.
28859         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28861         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28862         * modules/tanf: New file.
28863         * tests/test-math-c++.cc: Check the declaration of tanf.
28864         * doc/posix-functions/tanf.texi: Mention the new module.
28866         tan: Use a .m4 file.
28867         * m4/tan.m4: New file.
28868         * modules/tan (Files): Add it.
28869         (configure.ac): Just invoke gl_FUNC_TAN.
28871 2011-10-08  Bruno Haible  <bruno@clisp.org>
28873         Tests for module 'cosf'.
28874         * modules/cosf-tests: New file.
28875         * tests/test-cosf.c: New file.
28877         New module 'cosf'.
28878         * lib/math.in.h (cosf): New declaration.
28879         * lib/cosf.c: New file.
28880         * m4/cosf.m4: New file.
28881         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28883         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28884         * modules/cosf: New file.
28885         * tests/test-math-c++.cc: Check the declaration of cosf.
28886         * doc/posix-functions/cosf.texi: Mention the new module.
28888         cos: Use a .m4 file.
28889         * m4/cos.m4: New file.
28890         * modules/cos (Files): Add it.
28891         (configure.ac): Just invoke gl_FUNC_COS.
28893 2011-10-08  Bruno Haible  <bruno@clisp.org>
28895         Tests for module 'sinf'.
28896         * modules/sinf-tests: New file.
28897         * tests/test-sinf.c: New file.
28899         New module 'sinf'.
28900         * lib/math.in.h (sinf): New declaration.
28901         * lib/sinf.c: New file.
28902         * m4/sinf.m4: New file.
28903         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28905         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28906         * modules/sinf: New file.
28907         * tests/test-math-c++.cc: Check the declaration of sinf.
28908         * doc/posix-functions/sinf.texi: Mention the new module.
28910         sin: Use a .m4 file.
28911         * m4/sin.m4: New file.
28912         * modules/sin (Files): Add it.
28913         (configure.ac): Just invoke gl_FUNC_SIN.
28915 2011-10-08  Bruno Haible  <bruno@clisp.org>
28917         Tests for module 'powf'.
28918         * modules/powf-tests: New file.
28919         * tests/test-powf.c: New file.
28921         New module 'powf'.
28922         * lib/math.in.h (powf): New declaration.
28923         * lib/powf.c: New file.
28924         * m4/powf.m4: New file.
28925         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
28926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
28927         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
28928         * modules/powf: New file.
28929         * tests/test-math-c++.cc: Check the declaration of powf.
28930         * doc/posix-functions/powf.texi: Mention the new module.
28932         pow: Use a .m4 file.
28933         * m4/pow.m4: New file.
28934         * modules/pow (Files): Add it.
28935         (configure.ac): Just invoke gl_FUNC_POW.
28937 2011-10-08  Bruno Haible  <bruno@clisp.org>
28939         Tests for module 'log10f'.
28940         * modules/log10f-tests: New file.
28941         * tests/test-log10f.c: New file.
28943         New module 'log10f'.
28944         * lib/math.in.h (log10f): New declaration.
28945         * lib/log10f.c: New file.
28946         * m4/log10f.m4: New file.
28947         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
28948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
28949         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
28950         * modules/log10f: New file.
28951         * tests/test-math-c++.cc: Check the declaration of log10f.
28952         * doc/posix-functions/log10f.texi: Mention the new module.
28954         log10: Use a .m4 file.
28955         * m4/log10.m4: New file.
28956         * modules/log10 (Files): Add it.
28957         (configure.ac): Just invoke gl_FUNC_LOG10.
28959 2011-10-08  Bruno Haible  <bruno@clisp.org>
28961         Tests for module 'logf'.
28962         * modules/logf-tests: New file.
28963         * tests/test-logf.c: New file.
28965         New module 'logf'.
28966         * lib/math.in.h (logf): New declaration.
28967         * lib/logf.c: New file.
28968         * m4/logf.m4: New file.
28969         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
28970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
28971         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
28972         * modules/logf: New file.
28973         * tests/test-math-c++.cc: Check the declaration of logf.
28974         * doc/posix-functions/logf.texi: Mention the new module.
28976         log: Use a .m4 file.
28977         * m4/log.m4: New file.
28978         * modules/log (Files): Add it.
28979         (configure.ac): Just invoke gl_FUNC_LOG.
28981 2011-10-08  Bruno Haible  <bruno@clisp.org>
28983         Tests for module 'expf'.
28984         * modules/expf-tests: New file.
28985         * tests/test-expf.c: New file.
28987         New module 'expf'.
28988         * lib/math.in.h (expf): New declaration.
28989         * lib/expf.c: New file.
28990         * m4/expf.m4: New file.
28991         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
28992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
28993         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
28994         * modules/expf: New file.
28995         * tests/test-math-c++.cc: Check the declaration of expf.
28996         * doc/posix-functions/expf.texi: Mention the new module.
28998         exp: Use a .m4 file.
28999         * m4/exp.m4: New file.
29000         * modules/exp (Files): Add it.
29001         (configure.ac): Just invoke gl_FUNC_EXP.
29003 2011-10-08  Bruno Haible  <bruno@clisp.org>
29005         Tests for module 'sqrtf'.
29006         * modules/sqrtf-tests: New file.
29007         * tests/test-sqrtf.c: New file.
29009         New module 'sqrtf'.
29010         * lib/math.in.h (sqrtf): New declaration.
29011         * lib/sqrtf.c: New file.
29012         * m4/sqrtf.m4: New file.
29013         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
29014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
29015         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
29016         * modules/sqrtf: New file.
29017         * tests/test-math-c++.cc: Check the declaration of sqrtf.
29018         * doc/posix-functions/sqrtf.texi: Mention the new module.
29020 2011-10-08  Bruno Haible  <bruno@clisp.org>
29022         Tests: Avoid link failures w.r.t. libintl.
29023         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
29024         $(LIBINTL).
29025         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
29026         $(LIBINTL).
29027         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
29028         against $(LIBINTL).
29029         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
29030         $(LIBINTL).
29031         * modules/openat-tests (Makefile.am): Link test-fchmodat against
29032         $(LIBINTL).
29033         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
29035 2011-10-08  Bruno Haible  <bruno@clisp.org>
29037         pow tests: Defeat compiler optimizations.
29038         * tests/test-pow.c (main): Assign arguments to x and y before use.
29040 2011-10-08  Bruno Haible  <bruno@clisp.org>
29042         gnulib-tool: Improve last commit.
29043         * gnulib-tool (func_modules_transitive_closure): Simplify code.
29044         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
29045         ignore dependencies that are not among the modules list.
29047 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
29049         gnulib-tool: don't follow dependencies to avoided modules
29050         This fixes a bug that is related to the previous one.
29051         * gnulib-tool (func_modules_transitive_closure)
29052         (func_emit_autoconf_snippets):
29053         Check whether a dependency is acceptable before using it.
29054         (--extract-dependencies): Report an error if --avoid is also used,
29055         since this combination of options is not yet supported.
29057         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
29058         Problem reported by Peter Dyballa in
29059         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
29060         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
29061         when echoing "$condition".
29063 2011-10-07  Bruno Haible  <bruno@clisp.org>
29065         Fix documentation about math functions on MacOS X.
29066         * doc/posix-functions/exp2.texi: Don't say the function is missing on
29067         MacOS X 10.5.
29068         * doc/posix-functions/fdim.texi: Likewise.
29069         * doc/posix-functions/feclearexcept.texi: Likewise.
29070         * doc/posix-functions/fegetenv.texi: Likewise.
29071         * doc/posix-functions/fegetround.texi: Likewise.
29072         * doc/posix-functions/feholdexcept.texi: Likewise.
29073         * doc/posix-functions/feraiseexcept.texi: Likewise.
29074         * doc/posix-functions/fesetenv.texi: Likewise.
29075         * doc/posix-functions/fesetround.texi: Likewise.
29076         * doc/posix-functions/fetestexcept.texi: Likewise.
29077         * doc/posix-functions/feupdateenv.texi: Likewise.
29078         * doc/posix-functions/fmax.texi: Likewise.
29079         * doc/posix-functions/fmin.texi: Likewise.
29080         * doc/posix-functions/log2.texi: Likewise.
29081         * doc/posix-functions/modff.texi: Likewise.
29082         * doc/posix-functions/nan.texi: Likewise.
29083         * doc/posix-functions/nanf.texi: Likewise.
29084         * doc/posix-functions/nextafterf.texi: Likewise.
29085         * doc/posix-functions/remquo.texi: Likewise.
29087 2011-10-07  Bruno Haible  <bruno@clisp.org>
29089         modff: Drop assumption about library that defines modff.
29090         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
29091         AC_CHECK_FUNCS.
29092         * modules/modff (Files): Add m4/mathfunc.m4.
29094 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
29096         raise tests: Avoid a GCC warning.
29097         * tests/test-raise.c (handler): Use _Noreturn.
29099 2011-10-07  Bruno Haible  <bruno@clisp.org>
29101         Tests for module 'ldexpf'.
29102         * modules/ldexpf-tests: New file.
29103         * tests/test-ldexpf.c: New file.
29105         New module 'ldexpf'.
29106         * lib/math.in.h (ldexpf): New declaration.
29107         * lib/ldexpf.c: New file.
29108         * m4/ldexpf.m4: New file.
29109         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
29110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
29111         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
29112         * modules/ldexpf: New file.
29113         * tests/test-math-c++.cc: Check the declaration of ldexpf.
29114         * doc/posix-functions/ldexpf.texi: Mention the new module.
29116 2011-10-06  Bruno Haible  <bruno@clisp.org>
29118         frexpf: Work around problems on IRIX and mingw.
29119         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
29120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
29121         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
29122         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
29123         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
29124         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
29125         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
29127 2011-10-06  Bruno Haible  <bruno@clisp.org>
29129         fabsf: Drop assumption about library that defines fabsf.
29130         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
29131         AC_CHECK_FUNCS.
29132         * modules/fabsf (Files): Add m4/mathfunc.m4.
29134 2011-10-06  Bruno Haible  <bruno@clisp.org>
29136         frexpf: Drop assumption about library that defines frexpf.
29137         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
29138         'int *', 'float *', 'long double *', 'float', 'long double'.
29139         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
29140         AC_CHECK_FUNCS.
29141         * modules/frexpf (Files): Add m4/mathfunc.m4.
29143         Tests for module 'frexpf'.
29144         * modules/frexpf-tests: New file.
29145         * tests/test-frexpf.c: New file.
29147         New module 'frexpf'.
29148         * lib/math.in.h (frexpf): New declaration.
29149         * lib/frexpf.c: New file.
29150         * m4/frexpf.m4: New file.
29151         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
29152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
29153         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
29154         * modules/frexpf: New file.
29155         * tests/test-math-c++.cc: Check the declaration of frexpf.
29156         * doc/posix-functions/frexpf.texi: Mention the new module.
29158 2011-10-06  Bruno Haible  <bruno@clisp.org>
29160         math: Sort function declarations of math.in.h.
29161         * lib/math.in.h (frexp, logb): Move declarations.
29163 2011-10-05  Bruno Haible  <bruno@clisp.org>
29165         Tests for module 'modff'.
29166         * modules/modff-tests: New file.
29167         * tests/test-modff.c: New file.
29169         New module 'modff'.
29170         * lib/math.in.h (modff): New declaration.
29171         * lib/modff.c: New file.
29172         * m4/modff.m4: New file.
29173         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
29174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
29175         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
29176         * modules/modff: New file.
29177         * tests/test-math-c++.cc: Check the declaration of modff.
29178         * doc/posix-functions/modff.texi: Mention the new module.
29180         modf tests: Make test sharper.
29181         * tests/test-modf.c (main): Strengthen upper bound.
29183         modf: Use a .m4 file.
29184         * m4/modf.m4: New file.
29185         * modules/modf (Files): Add it.
29186         (configure.ac): Just invoke gl_FUNC_MODF.
29188 2011-10-05  Bruno Haible  <bruno@clisp.org>
29190         Tests for module 'fmodf'.
29191         * modules/fmodf-tests: New file.
29192         * tests/test-fmodf.c: New file.
29194         New module 'fmodf'.
29195         * lib/math.in.h (fmodf): New declaration.
29196         * lib/fmodf.c: New file.
29197         * m4/fmodf.m4: New file.
29198         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
29199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
29200         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
29201         * modules/fmodf: New file.
29202         * tests/test-math-c++.cc: Check the declaration of fmodf.
29203         * doc/posix-functions/fmodf.texi: Mention the new module.
29205         fmod: Use a .m4 file.
29206         * m4/fmod.m4: New file.
29207         * modules/fmod (Files): Add it.
29208         (configure.ac): Just invoke gl_FUNC_FMOD.
29210 2011-10-05  Bruno Haible  <bruno@clisp.org>
29212         Tests for module 'fabsf'.
29213         * modules/fabsf-tests: New file.
29214         * tests/test-fabsf.c: New file.
29216         New module 'fabsf'.
29217         * lib/math.in.h (fabsf): New declaration.
29218         * lib/fabsf.c: New file.
29219         * m4/fabsf.m4: New file.
29220         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
29221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
29222         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
29223         * modules/fabsf: New file.
29224         * tests/test-math-c++.cc: Check the declaration of fabsf.
29225         * doc/posix-functions/fabsf.texi: Mention the new module.
29227         fabs: Use a .m4 file.
29228         * m4/fabs.m4: New file.
29229         * modules/fabs (Files): Add it.
29230         (configure.ac): Just invoke gl_FUNC_FABS.
29232 2011-10-05  Jim Meyering  <meyering@redhat.com>
29234         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
29235         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
29236         ls -lL regression introduced in coreutils-8.12, it does so at the
29237         cost of an additional stat call in the common case.  Besides, now
29238         that the kernel change that prompted commit 95f7c57f has been reverted
29239         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
29240         we have no use for commit 95f7c57f, "file-has-acl: use
29241         acl_extended_file_nofollow if available".
29243 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
29245         file-has-acl: revert unintended change in behavior of ls -L
29246         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
29247         derived from...
29248         (file_has_acl): ...code here.  Call it.
29249         This problem was introduced with 2011-07-22 commit 95f7c57f,
29250         "file-has-acl: use acl_extended_file_nofollow if available".
29251         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
29253 2011-10-03  Bruno Haible  <bruno@clisp.org>
29255         poll: Avoid link errors on MSVC.
29256         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
29257         * modules/poll (Depends-on): Add sockets.
29258         (Link): New section.
29259         * NEWS: Mention the change.
29260         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
29261         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
29262         $(LIB_POLL) instead of $(LIBSOCKET).
29264 2011-10-03  Bruno Haible  <bruno@clisp.org>
29266         sys_select tests: Fix link error on MSVC 9.
29267         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
29268         with $(LIB_SELECT) instead of $(LIBSOCKET).
29270 2011-10-03  Bruno Haible  <bruno@clisp.org>
29272         sys_select: Fix compilation error on mingw.
29273         * lib/sys_select.in.h: On native Windows, include <io.h>.
29275 2011-10-03  Bruno Haible  <bruno@clisp.org>
29277         wmemset: Support for MSVC.
29278         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
29279         whether wmemset() exists.
29281 2011-10-03  Bruno Haible  <bruno@clisp.org>
29283         wmemmove: Support for MSVC.
29284         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
29285         whether wmemmove() exists.
29287 2011-10-03  Bruno Haible  <bruno@clisp.org>
29289         wmemcpy: Support for MSVC.
29290         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
29291         whether wmemcpy() exists.
29293 2011-10-03  Bruno Haible  <bruno@clisp.org>
29295         wmemcmp: Support for MSVC.
29296         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
29297         whether wmemcmp() exists.
29299 2011-10-03  Bruno Haible  <bruno@clisp.org>
29301         wmemchr: Support for MSVC.
29302         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
29303         whether wmemchr() exists.
29305 2011-10-03  Bruno Haible  <bruno@clisp.org>
29307         glthread/*, strsignal: Support for MSVC.
29308         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
29309         including <winsock.h> on MSVC 9.
29310         * lib/glthread/lock.h: Likewise.
29311         * lib/glthread/thread.h: Likewise.
29312         * lib/glthread/tls.h: Likewise.
29313         * lib/glthread/yield.h: Likewise.
29314         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
29315         if HAVE_UNISTD_H is false.
29316         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
29318 2011-10-03  Bruno Haible  <bruno@clisp.org>
29320         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
29321         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
29322         Set to 100000.
29324 2011-10-03  Bruno Haible  <bruno@clisp.org>
29326         acl: Fix specification.
29327         * lib/file-has-acl.c (file_has_acl): Fix specification.
29329 2011-10-03  Bruno Haible  <bruno@clisp.org>
29331         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
29332         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
29333         (compute_curr_prefix, shared_library_fullname,
29334         find_shared_library_fullname, get_shared_library_fullname, relocate):
29335         Use it together with PIC && INSTALLDIR.
29336         Reported by <jojelino@gmail.com>
29337         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
29339 2011-10-01  Jim Meyering  <meyering@redhat.com>
29341         maint.mk: adjust a release-related rule not to require use of gzip
29342         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
29343         Instead, check each file in $(DIST_ARCHIVES).  This is better for
29344         projects that build only .tar.xz files.  Also fix an erroneous test.
29346         test-linkat: don't leave behind a temporary file
29347         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
29348         Otherwise, coreutils' "make distcheck" would fail with this:
29349           Only in /c/cu/tests/torture/coreutils/test/\
29350             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
29351           make[2]: *** [my-distcheck] Error 1
29353         float, math: add omitted file
29354         * lib/itold.c: Add file, required for yesterday's float change.
29356 2011-10-01  Bruno Haible  <bruno@clisp.org>
29358         isinf: Fix for OpenBSD/x86.
29359         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
29360         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
29361         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
29363 2011-10-01  Bruno Haible  <bruno@clisp.org>
29365         isfinite: Fix syntax error in configure test.
29366         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
29368         isfinite: Fix typo.
29369         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
29370         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
29372 2011-10-01  Bruno Haible  <bruno@clisp.org>
29374         nonblocking tests: Fix test failure on Linux/IA-64.
29375         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
29376         Set to 270000.
29378 2011-10-01  Bruno Haible  <bruno@clisp.org>
29380         mkfifoat tests: Fix a test failure on mingw.
29381         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
29382         with error ENOSYS.
29384 2011-09-30  Bruno Haible  <bruno@clisp.org>
29386         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
29387         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
29388         'long double'. Set REPLACE_ITOLD.
29389         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
29390         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
29391         * lib/itold.c: New file.
29392         * modules/float (Files): Add lib/itold.c.
29393         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
29394         (Makefile.am): Substitute REPLACE_ITOLD.
29395         * modules/math (Depends-on): Add float.
29396         (Makefile.am): Substitute REPLACE_ITOLD.
29397         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
29398         * doc/posix-headers/math.texi: Likewise.
29399         * doc/posix-functions/logl.texi: Likewise.
29401 2011-09-30  Bruno Haible  <bruno@clisp.org>
29403         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
29404         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
29405         Set to 140000.
29407 2011-09-30  Bruno Haible  <bruno@clisp.org>
29409         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
29410         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
29411         invocation, say "right after AC_PROG_CC_STDC", not "right after
29412         AC_PROG_CC".
29413         Reported by Gary V. Vaughan <gary@gnu.org>.
29415 2011-09-30  Bruno Haible  <bruno@clisp.org>
29417         Centralize C99 requirement.
29418         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
29419         * modules/stdarg (configure.ac-early): Invoke it instead of
29420         AC_PROG_CC_STDC.
29421         Reported by Gary V. Vaughan and Paul Eggert.
29423 2011-09-29  Bruno Haible  <bruno@clisp.org>
29425         float: Fix LDBL_MAX value on Linux/PowerPC.
29426         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
29427         on Linux/PowerPC.
29428         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
29429         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
29430         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
29431         platform.
29432         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
29434 2011-09-29  Bruno Haible  <bruno@clisp.org>
29436         doc: Improve doc about gl_EARLY.
29437         * doc/gnulib-tool.texi (Initial import): Mention where to place an
29438         AC_PROG_CC_STDC invocation.
29439         Reported by Gary V. Vaughan <gary@gnu.org>.
29441 2011-09-28  Bruno Haible  <bruno@clisp.org>
29443         fgetc, fputc, fread, fwrite tests: Fix link error.
29444         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
29445         on non-MSVC platforms.
29446         * tests/test-fputc.c (main): Likewise.
29447         * tests/test-fread.c (main): Likewise.
29448         * tests/test-fwrite.c (main): Likewise.
29449         Reported by Jim Meyering.
29451 2011-09-27  Bruno Haible  <bruno@clisp.org>
29453         fputc, fwrite tests: Avoid test failure on MSVC.
29454         * tests/test-fgetc.c: Include msvc-inval.h.
29455         (main): Invoke gl_msvc_inval_ensure_handler.
29456         * tests/test-fputc.c: Include msvc-inval.h.
29457         (main): Invoke gl_msvc_inval_ensure_handler.
29458         * tests/test-fread.c: Include msvc-inval.h.
29459         (main): Invoke gl_msvc_inval_ensure_handler.
29460         * tests/test-fwrite.c: Include msvc-inval.h.
29461         (main): Invoke gl_msvc_inval_ensure_handler.
29462         * modules/fgetc-tests (Depends-on): Add msvc-inval.
29463         * modules/fputc-tests (Depends-on): Likewise.
29464         * modules/fread-tests (Depends-on): Likewise.
29465         * modules/fwrite-tests (Depends-on): Likewise.
29467 2011-09-27  Bruno Haible  <bruno@clisp.org>
29469         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
29470         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
29471         (raise): Remove older, duplicated declaration.
29472         (_gl_raise_SIGPIPE): New declaration.
29473         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
29474         (rpl_raise): Remove function.
29475         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
29476         a gnulib-defined SIGPIPE here.
29477         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
29478         'sigprocmask' has detected missing signal-blocking and the module
29479         'sigpipe' is enabled.
29480         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29482 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
29484         base64-tests: avoid memory leak
29485         * tests/test-base64.c (main): Plug memory leak.
29487         base32: new module
29488         * modules/base32: New module.
29489         * lib/base32.c: New file.
29490         * lib/base32.h: Likewise.
29491         * m4/base32.m4: Likewise.
29492         * modules/base32-tests: New test.
29493         * tests/test-base32.c: Likewise.
29494         * MODULES.html.sh (Misc): Mention it.
29496 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29498         gnulib: use more-standard license notice wording
29499         * gnulib-tool (func_emit_copyright_notice): When emitting a
29500         license notice into a file, use the standard wording as suggested
29501         by the current information for GNU maintainers, except say "file"
29502         rather than "program".  The new wording gives a license version
29503         number, which addresses an issue raised by Glenn Morris in
29504         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
29505         * m4/onceonly.m4: Use that same wording here, too.
29507         dup2: minor simplification
29508         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
29509         as lib/dup2.c no longer uses 'inline'.
29511 2011-09-25  Bruno Haible  <bruno@clisp.org>
29513         strings: Fix compilation error on MSVC.
29514         * lib/strings.in.h: Include <stddef.h> for size_t.
29516 2011-09-25  Bruno Haible  <bruno@clisp.org>
29518         fflush et al.: Document limitation on MSVC.
29519         * doc/posix-functions/fflush.texi: Document possible crash in handling
29520         mode other than DEFAULT_HANDLING.
29521         * doc/posix-functions/fgetc.texi: Likewise.
29522         * doc/posix-functions/fputc.texi: Likewise.
29523         * doc/posix-functions/fread.texi: Likewise.
29524         * doc/posix-functions/fwrite.texi: Likewise.
29526 2011-09-25  Bruno Haible  <bruno@clisp.org>
29528         msvc-inval: Allow three invalid parameter handling modes.
29529         * lib/msvc-inval.h: Don't include <stdlib.h> here.
29530         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
29531         macros.
29532         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
29533         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
29534         SANE_LIBRARY_HANDLING as a no-op.
29535         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
29536         <stdlib.h>.
29537         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
29539 2011-09-25  Bruno Haible  <bruno@clisp.org>
29541         msvc-inval: Make handler multithread-safe.
29542         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
29543         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29544         declarations.
29545         (gl_msvc_inval_current): New declaration.
29546         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29547         Operate on the structure returned by gl_msvc_inval_current().
29548         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
29549         Remove varaiables.
29550         (tls_index, tls_initialized): New variables.
29551         (not_per_thread): New variable.
29552         (gl_msvc_inval_current): New function.
29553         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
29554         returned by gl_msvc_inval_current().
29556 2011-09-25  Bruno Haible  <bruno@clisp.org>
29558         msvc-inval: Install handler globally.
29559         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
29560         !_MSC_VER.
29561         (gl_msvc_invalid_parameter_handler): Remove declaration.
29562         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
29563         declarations.
29564         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29565         Install the handler globally, don't uninstall it.
29566         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29567         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
29568         currently valid, call RaiseException instead.
29569         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
29570         for !_MSC_VER.
29572 2011-09-25  Bruno Haible  <bruno@clisp.org>
29574         strerror_r-posix: Fix for MSVC 9.
29575         * lib/strerror_r.c (local_snprintf): New function.
29576         (snprintf): Define to local_snprintf, not to _snprintf.
29578 2011-09-25  Bruno Haible  <bruno@clisp.org>
29580         ftruncate: Support for MSVC 9.
29581         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
29582         (chsize_nothrow): New function.
29583         (chsize): Redefine as a macro.
29584         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
29585         * modules/ftruncate (Depends-on): Add msvc-inval.
29587 2011-09-25  Bruno Haible  <bruno@clisp.org>
29589         New module 'fstat'.
29590         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
29591         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
29592         * lib/fchdir.c (rpl_fstat): Remove function.
29593         * m4/fstat.m4: New file.
29594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29596         declared.
29597         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29598         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29599         * modules/fstat: New file.
29600         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29601         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29602         is set.
29603         * doc/posix-functions/fstat.texi: Mention the new module and the
29604         problem on MSVC.
29605         * NEWS: Mention the change.
29606         * modules/acl (Depends-on): Add fstat.
29607         * modules/chdir-safer (Depends-on): Likewise.
29608         * modules/chown (Depends-on): Likewise.
29609         * modules/copy-file (Depends-on): Likewise.
29610         * modules/fchdir (Depends-on): Likewise.
29611         * modules/fdopendir (Depends-on): Likewise.
29612         * modules/fopen (Depends-on): Likewise.
29613         * modules/fts (Depends-on): Likewise.
29614         * modules/getcwd (Depends-on): Likewise.
29615         * modules/isapipe (Depends-on): Likewise.
29616         * modules/linkat (Depends-on): Likewise.
29617         * modules/lseek (Depends-on): Likewise.
29618         * modules/mkdir-p (Depends-on): Likewise.
29619         * modules/open (Depends-on): Likewise.
29620         * modules/openat (Depends-on): Likewise.
29621         * modules/read-file (Depends-on): Likewise.
29622         * modules/renameat (Depends-on): Likewise.
29623         * modules/utimens (Depends-on): Likewise.
29625 2011-09-25  Bruno Haible  <bruno@clisp.org>
29627         linkat: Fix compilation on MSVC 9.
29628         * lib/linkat.c: Don't include <stdint.h>.
29630 2011-09-25  Bruno Haible  <bruno@clisp.org>
29632         fclose: Support for MSVC 9.
29633         * lib/fclose.c: Include msvc-inval.h.
29634         (fclose_nothrow): New function.
29635         (rpl_fclose): Use it.
29636         * modules/fclose (Depends-on): Add msvc-inval.
29637         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29639 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29641         dup2: minor simplifications
29642         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29643         that it's a performance win.
29644         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29645         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29647 2011-09-24  Jim Meyering  <meyering@redhat.com>
29649         test-futimens: avoid a warning from gcc -Wshadow
29650         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29651         to avoid a shadowing warning.
29653 2011-09-24  Bruno Haible  <bruno@clisp.org>
29655         fdopen: Support for MSVC 9.
29656         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29657         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29658         * lib/fdopen.c: Include msvc-inval.h.
29659         (fdopen_nothrow): New function.
29660         (rpl_fdopen): Use it.
29661         * modules/fdopen (Depends-on): Add msvc-inval.
29662         * modules/fclose-tests (Depends-on): Add fdopen.
29663         * modules/fflush-tests (Depends-on): Likewise.
29664         * modules/fgetc-tests (Depends-on): Likewise.
29665         * modules/fputc-tests (Depends-on): Likewise.
29666         * modules/fread-tests (Depends-on): Likewise.
29667         * modules/freopen-tests (Depends-on): Likewise.
29668         * modules/fseeko-tests (Depends-on): Likewise.
29669         * modules/ftello-tests (Depends-on): Likewise.
29670         * modules/fwrite-tests  (Depends-on): Likewise.
29671         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29673 2011-09-24  Bruno Haible  <bruno@clisp.org>
29675         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29676         * modules/fgetc-tests (Depends-on): Add unistd.
29677         * modules/fputc-tests (Depends-on): Likewise.
29678         * modules/fread-tests (Depends-on): Likewise.
29679         * modules/fwrite-tests (Depends-on): Likewise.
29681 2011-09-24  Bruno Haible  <bruno@clisp.org>
29683         dup: Simplify autoconf test.
29684         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29685         on gl_MSVC_INVAL's result.
29687 2011-09-24  Bruno Haible  <bruno@clisp.org>
29689         Tests for function fwrite().
29690         * modules/fwrite-tests: New file.
29691         * tests/test-fwrite.c: New file.
29692         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29694         Tests for function fread().
29695         * modules/fread-tests: New file.
29696         * tests/test-fread.c: New file.
29697         * modules/stdio-tests (Depends-on): Add fread-tests.
29699         Activate fputc tests.
29700         * modules/stdio-tests (Depends-on): Add fputc-tests.
29702         Enhance fgetc, fputc tests.
29703         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29704         * tests/test-fputc.c (main): Likewise.
29706 2011-09-24  Bruno Haible  <bruno@clisp.org>
29708         write: Support for MSVC 9.
29709         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29710         is not 1.
29711         * lib/write.c (write_nothrow): New function.
29712         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29713         not 1. Use write_nothrow.
29714         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29715         invalid parameter handler.
29716         (gl_PREREQ_WRITE): New macro.
29717         * modules/write (Depends-on): Add msvc-inval.
29718         (configure.ac): Invoke gl_PREREQ_WRITE.
29719         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29721 2011-09-24  Bruno Haible  <bruno@clisp.org>
29723         read: Fix last commit.
29724         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29726 2011-09-24  Bruno Haible  <bruno@clisp.org>
29728         dup2: Fix last commit.
29729         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29730         (rpl_dup2): Disable fcntl workaround on native Windows.
29732         sigprocmask: Make code safer.
29733         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29734         section that changes macro definitions for this compilation unit.
29736 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29738         dup2: clarify by coalescing Windows-specific material
29739         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29740         "msvc-nothrow.h"' to the Windows-specific section, so that the
29741         Emacs source need not contain these include files.
29742         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29743         Windows-specific fixes into this function rather than just the
29744         nothrow fix, as this shortens and clarifies the code.  Always
29745         define as a function, as that's a bit cleaner than having it be
29746         sometimes a function and sometimes a macro.
29747         (rpl_dup2): Move the Windows-specific stuff out of here and into
29748         ms_windows_dup2.  Don't protect the Haiku-related fix with
29749         "#if !defined __linux__", as the same code also works around
29750         a Linux kernel bug, and it doesn't add any system calls on any
29751         platform.  Add comment about FreeBSD 6.1.
29753         sigprocmask: move #include directive
29754         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
29755         Windows-specific section, so that the Emacs source need not
29756         contain msvc-inval.h.
29758 2011-09-23  Bruno Haible  <bruno@clisp.org>
29760         read: Support for MSVC 9.
29761         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29762         is not 1.
29763         * lib/read.c (read_nothrow): New function.
29764         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
29765         read_nothrow.
29766         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
29767         invalid parameter handler.
29768         (gl_PREREQ_READ): New macro.
29769         * modules/read (Depends-on): Add msvc-inval.
29770         (configure.ac): Invoke gl_PREREQ_READ.
29771         * doc/posix-functions/read.texi: Mention the problem on MSVC.
29773 2011-09-23  Bruno Haible  <bruno@clisp.org>
29775         close: Support for MSVC 9.
29776         * lib/close.c: Include <errno.h>, msvc-inval.h.
29777         (close_nothrow): New function.
29778         (rpl_close): Use it.
29779         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
29780         invalid parameter handler.
29781         * modules/close (Depends-on): Add msvc-inval.
29782         * modules/dup2-tests (Depends-on): Add close.
29783         * modules/dup3-tests (Depends-on): Likewise.
29784         * modules/fcntl-tests (Depends-on): Likewise.
29785         * modules/spawn-pipe-tests (Depends-on): Likewise.
29786         * modules/unistd-safer-tests (Depends-on): Likewise.
29787         * doc/posix-functions/close.texi: Mention the problem on MSVC.
29789 2011-09-23  Bruno Haible  <bruno@clisp.org>
29791         New module 'dup'.
29792         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
29793         Allow replacement.
29794         * lib/dup.c: New file.
29795         * lib/fchdir.c (rpl_dup): Remove function.
29796         * m4/dup.m4: New file.
29797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
29798         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
29799         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
29800         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29801         * modules/dup: New file.
29802         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
29803         'dup' module is in use.
29804         * modules/fdopendir (Depends-on): Add dup.
29805         * modules/fdutimensat-tests (Depends-on): Likewise.
29806         * modules/fts (Depends-on): Likewise.
29807         * modules/futimens-tests (Depends-on): Likewise.
29808         * modules/posix_spawnp-tests (Depends-on): Likewise.
29809         * modules/unistd-safer-tests (Depends-on): Likewise.
29810         * modules/utimens-tests (Depends-on): Likewise.
29811         * doc/posix-functions/dup.texi: Mention the new module and the problem
29812         on MSVC.
29814 2011-09-23  Bruno Haible  <bruno@clisp.org>
29816         getdtablesize: Support for MSVC 9.
29817         * lib/getdtablesize.c: Include msvc-inval.h.
29818         (_setmaxstdio_nothrow): New function.
29819         (_setmaxstdio): Redefine it.
29820         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
29821         * modules/getdtablesize (Depends-on): Add msvc-inval.
29822         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
29824 2011-09-23  Bruno Haible  <bruno@clisp.org>
29826         signal-h: Rename from signal.
29827         * modules/signal-h: Renamed from modules/signal.
29828         * modules/pthread_sigmask (Depends-on): Update.
29829         * modules/raise (Depends-on): Likewise.
29830         * modules/sigaction (Depends-on): Likewise.
29831         * modules/sigpipe (Depends-on): Likewise.
29832         * modules/sigprocmask (Depends-on): Likewise.
29833         * modules/sys_select (Depends-on): Likewise.
29834         * modules/signal-h-tests: Renamed from modules/signal-tests.
29835         (Files, Depends-on, Makefile.am): Update.
29836         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
29837         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
29838         (Files, Makefile.am): Update.
29839         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
29840         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
29841         * modules/signal: New placeholder file.
29842         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
29843         * doc/posix-headers/signal.texi: Update.
29844         * NEWS: Mention the change.
29846 2011-09-23  Bruno Haible  <bruno@clisp.org>
29848         sigprocmask: Avoid crashes through signal() on MSVC 9.
29849         * lib/sigprocmask.c: Include msvc-inval.h.
29850         (signal_nothrow): New function.
29851         (signal): Redefine it.
29852         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
29853         * modules/sigprocmask (Depends-on): Add msvc-inval.
29854         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
29856 2011-09-23  Bruno Haible  <bruno@clisp.org>
29858         Tests for module 'raise'.
29859         * modules/raise-tests: New file.
29860         * tests/test-raise.c: New file.
29862         raise: Support for MSVC.
29863         * lib/signal.in.h (raise): New declaration.
29864         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29865         for native Windows platforms.
29866         * m4/raise.m4: New file.
29867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29868         HAVE_RAISE, REPLACE_RAISE.
29869         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29870         REPLACE_RAISE.
29871         * modules/raise (Status, Notice): Remove fields.
29872         (Files): Add m4/raise.m4.
29873         (Depends-on): Add signal, msvc-inval.
29874         (configure.ac): Use the common idioms.
29875         (Maintainer): Add me.
29876         * tests/test-signal-c++.cc: Check the signature of raise.
29877         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29879 2011-09-23  Bruno Haible  <bruno@clisp.org>
29881         pipe2: Fix compilation on pre-C99 compilers.
29882         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29884 2011-09-23  Bruno Haible  <bruno@clisp.org>
29886         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29887         * lib/msvc-nothrow.h: New file.
29888         * lib/msvc-nothrow.c: New file.
29889         * m4/msvc-nothrow.m4: New file.
29890         * modules/msvc-nothrow: New file.
29891         * lib/dup2.c: Include msvc-nothrow.h.
29892         (rpl_dup2): No need to protect _get_osfhandle call here.
29893         * lib/accept4.c: Include msvc-nothrow.h.
29894         * lib/error.c: Likewise.
29895         * lib/fcntl.c: Likewise.
29896         * lib/lseek.c: Likewise.
29897         * lib/nonblocking.c: Likewise.
29898         * lib/poll.c: Likewise.
29899         * lib/read.c: Likewise.
29900         * lib/select.c: Likewise.
29901         * lib/sockets.h: Likewise.
29902         * lib/sockets.c: Likewise.
29903         * lib/stdio-read.c: Likewise.
29904         * lib/stdio-write.c: Likewise.
29905         * lib/write.c: Likewise.
29906         * lib/w32sock.h: Likewise.
29907         * lib/w32spawn.h: Likewise.
29908         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29909         * lib/fsync.c: Likewise.
29910         * lib/isapipe.c: Likewise.
29911         * modules/dup2 (Depends-on): Add msvc-nothrow.
29912         * modules/accept4 (Depends-on): Likewise.
29913         * modules/error (Depends-on): Likewise.
29914         * modules/fcntl (Depends-on): Likewise.
29915         * modules/lseek (Depends-on): Likewise.
29916         * modules/nonblocking (Depends-on): Likewise.
29917         * modules/poll (Depends-on): Likewise.
29918         * modules/read (Depends-on): Likewise.
29919         * modules/select (Depends-on): Likewise.
29920         * modules/sockets (Depends-on): Likewise.
29921         * modules/sigpipe (Depends-on): Likewise.
29922         * modules/write (Depends-on): Likewise.
29923         * modules/accept (Depends-on): Likewise.
29924         * modules/bind (Depends-on): Likewise.
29925         * modules/connect (Depends-on): Likewise.
29926         * modules/gethostname (Depends-on): Likewise.
29927         * modules/getpeername (Depends-on): Likewise.
29928         * modules/getsockname (Depends-on): Likewise.
29929         * modules/getsockopt (Depends-on): Likewise.
29930         * modules/ioctl (Depends-on): Likewise.
29931         * modules/listen (Depends-on): Likewise.
29932         * modules/recv (Depends-on): Likewise.
29933         * modules/recvfrom (Depends-on): Likewise.
29934         * modules/send (Depends-on): Likewise.
29935         * modules/sendto (Depends-on): Likewise.
29936         * modules/setsockopt (Depends-on): Likewise.
29937         * modules/shutdown (Depends-on): Likewise.
29938         * modules/socket (Depends-on): Likewise.
29939         * modules/execute (Depends-on): Likewise.
29940         * modules/spawn-pipe (Depends-on): Likewise.
29941         * modules/flock (Depends-on): Likewise.
29942         * modules/fsync (Depends-on): Likewise.
29943         * modules/isapipe (Depends-on): Likewise.
29944         * tests/test-cloexec.c: Include msvc-nothrow.h.
29945         * tests/test-dup-safer.c: Likewise.
29946         * tests/test-dup2.c: Likewise.
29947         * tests/test-dup3.c: Likewise.
29948         * tests/test-fcntl.c: Likewise.
29949         * tests/test-pipe.c: Likewise.
29950         * tests/test-pipe2.c: Likewise.
29951         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
29952         * modules/unistd-safer-tests (Depends-on): Likewise.
29953         * modules/dup2-tests (Depends-on): Likewise.
29954         * modules/dup3-tests (Depends-on): Likewise.
29955         * modules/fcntl-tests (Depends-on): Likewise.
29956         * modules/pipe-posix-tests (Depends-on): Likewise.
29957         * modules/pipe2-tests (Depends-on): Likewise.
29959 2011-09-23  Bruno Haible  <bruno@clisp.org>
29961         dup2: Make code more maintainable.
29962         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
29963         (rpl_dup2): Use it.
29964         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
29965         * modules/dup2 (configure.ac): Invoke it.
29966         Reported by Paul Eggert.
29968 2011-09-23  Bruno Haible  <bruno@clisp.org>
29970         msvc-inval: Fix compilation error.
29971         * lib/msvc-inval.h: Include <excpt.h>.
29973 2011-09-23  Bruno Haible  <bruno@clisp.org>
29975         mkdir: Tweak for MSVC 9.
29976         * lib/sys_stat.in.h: Update comments.
29977         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
29979         Tests for module 'chdir'.
29980         * modules/chdir-tests: New file.
29981         * tests/test-chdir.c: New file.
29983         New module 'chdir'.
29984         * modules/chdir: New file.
29985         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
29986         (chdir): New declaration.
29987         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
29988         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
29989         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
29990         * tests/test-unistd-c++.cc: Check signature of chdir.
29991         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
29992         * modules/chdir-long (Depends-on): Add chdir.
29993         * modules/fchdir (Depends-on): Likewise.
29994         * modules/rename (Depends-on): Likewise.
29995         * modules/savewd (Depends-on): Likewise.
29997         rmdir: Support for mingw, MSVC 9.
29998         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
29999         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
30001         getcwd: Tweak for MSVC 9.
30002         * lib/unistd.in.h: Update comments.
30003         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
30005 2011-09-22  Bruno Haible  <bruno@clisp.org>
30007         strerror_r-posix: Avoid a link error on MSVC.
30008         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
30009         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
30011 2011-09-22  Bruno Haible  <bruno@clisp.org>
30013         select: Avoid link errors on MSVC.
30014         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
30015         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
30016         * modules/pselect (Link): Likewise.
30017         * NEWS: Mention the change.
30018         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
30019         test-select-stdin against $(LIB_SELECT).
30020         * modules/pselect-tests (Makefile.am): Link test-pselect against
30021         $(LIB_SELECT).
30023 2011-09-22  Bruno Haible  <bruno@clisp.org>
30025         select: Avoid compilation error on MSVC.
30026         * lib/select.c: Don't include <stdbool.h>.
30028 2011-09-21  Bruno Haible  <bruno@clisp.org>
30030         Consolidate all uses of PATH_MAX in *.m4 files.
30031         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
30032         macros.
30033         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
30034         and gl_PATHMAX_SNIPPET.
30035         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30036         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30037         * modules/chdir-long (Files): Add m4/pathmax.m4.
30038         * modules/getcwd (Files): Likewise.
30040 2011-09-21  Bruno Haible  <bruno@clisp.org>
30042         ftruncate: Un-deprecate, concentrate on Win32 support.
30043         * modules/ftruncate (Status, Notice): Remove sections.
30044         (Depends-on): Add largefile.
30045         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
30046         non-mingw platforms.
30047         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
30048         include <io.h>.
30049         * modules/perror-tests (Depends-on): Add ftruncate.
30050         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
30051         'ftruncate' module.
30053 2011-09-21  Bruno Haible  <bruno@clisp.org>
30055         Add dependencies to new dirent related modules.
30056         * modules/opendir (Depends-on): Add closedir.
30057         * modules/getcwd (Depends-on): Add opendir, closedir.
30058         * modules/dirent-safer-tests (Depends-on): Likewise.
30059         * modules/fdopendir-tests (Depends-on): Likewise.
30060         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
30061         * modules/renameat-tests (Depends-on): Likewise.
30063 2011-09-21  Bruno Haible  <bruno@clisp.org>
30065         opendir: Avoid compilation error on mingw.
30066         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
30067         * modules/opendir (Depends-on): Add unistd.
30069 2011-09-21  Bruno Haible  <bruno@clisp.org>
30071         ftruncate tests: Avoid a test failure on mingw.
30072         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
30074 2011-09-21  Bruno Haible  <bruno@clisp.org>
30076         select tests: Avoid test failures on OSF/1 5.1 and mingw.
30077         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
30078         native Windows.
30080 2011-09-21  Bruno Haible  <bruno@clisp.org>
30082         New module 'fdopen'.
30083         * lib/stdio.in.h (fdopen): New declaration.
30084         * lib/fdopen.c: New file.
30085         * m4/fdopen.m4: New file.
30086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
30087         REPLACE_FDOPEN.
30088         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
30089         REPLACE_FDOPEN.
30090         * modules/fdopen: New file.
30091         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
30092         * tests/test-stdio-c++.cc: Check signature of fdopen.
30093         * doc/posix-functions/fdopen.texi: Mention the new module.
30095 2011-09-21  Bruno Haible  <bruno@clisp.org>
30097         unlockpt tests: Avoid test failure on NetBSD 5.1.
30098         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
30099         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
30101 2011-09-21  Bruno Haible  <bruno@clisp.org>
30103         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
30104         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
30105         * tests/test-getlogin_r.c (main): Likewise.
30107 2011-09-20  Bruno Haible  <bruno@clisp.org>
30109         time tests: Don't require pid_t.
30110         * doc/posix-headers/time.texi: Revert last change.
30111         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
30112         * tests/test-time.c: Comment out the check for pid_t.
30114 2011-09-20  Bruno Haible  <bruno@clisp.org>
30116         fsync tests: Avoid a test failure on mingw.
30117         * tests/test-fsync.c (main): Allow a failure with EIO.
30119 2011-09-20  Bruno Haible  <bruno@clisp.org>
30121         euidaccess: Update comments.
30122         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
30124 2011-09-20  Bruno Haible  <bruno@clisp.org>
30126         Ensure EBADF returns for socket functions on mingw.
30127         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
30128         descriptor is invalid.
30129         * lib/bind.c (rpl_bind): Likewise.
30130         * lib/connect.c (rpl_connect): Likewise.
30131         * lib/getpeername.c (rpl_getpeername): Likewise.
30132         * lib/getsockname.c (rpl_getsockname): Likewise.
30133         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30134         * lib/listen.c (rpl_listen): Likewise.
30135         * lib/recv.c (rpl_recv): Likewise.
30136         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30137         * lib/send.c (rpl_send): Likewise.
30138         * lib/sendto.c (rpl_sendto): Likewise.
30139         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30140         * lib/shutdown.c (rpl_shutdown): Likewise.
30142 2011-09-20  Bruno Haible  <bruno@clisp.org>
30144         select tests: EBADF tests.
30145         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
30146         test_bad_fd): New functions.
30147         (test_function): Invoke also test_bad_fd.
30149 2011-09-20  Bruno Haible  <bruno@clisp.org>
30151         Tests for module 'posix_spawn_file_actions_addopen.
30152         * modules/posix_spawn_file_actions_addopen-tests: New file.
30153         * tests/test-posix_spawn_file_actions_addopen.c: New file.
30155         Tests for module 'posix_spawn_file_actions_adddup2'.
30156         * modules/posix_spawn_file_actions_adddup2-tests: New file.
30157         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
30159         Tests for module 'posix_spawn_file_actions_addclose'.
30160         * modules/posix_spawn_file_actions_addclose-tests: New file.
30161         * tests/test-posix_spawn_file_actions_addclose.c: New file.
30163 2011-09-20  Bruno Haible  <bruno@clisp.org>
30165         Tests for module 'unlockpt'.
30166         * modules/unlockpt-tests: New file.
30167         * tests/test-unlockpt.c: New file.
30168         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
30170         Tests for module 'grantpt'.
30171         * modules/grantpt-tests: New file.
30172         * tests/test-grantpt.c: New file.
30173         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
30175 2011-09-20  Bruno Haible  <bruno@clisp.org>
30177         freopen tests: EBADF tests.
30178         * tests/test-freopen.c: Include errno.h, unistd.h.
30179         (main): Add tests for EBADF, commented out for the moment.
30181         fclose tests: EBADF tests.
30182         * tests/test-fclose.c (main): Add tests for EBADF.
30184         fflush tests: EBADF tests.
30185         * tests/test-fflush.c: Include errno.h, macros.h.
30186         (main): Add tests for EBADF.
30188         ftello tests: EBADF tests.
30189         * tests/test-ftello4.sh: New file.
30190         * tests/test-ftello4.c: New file.
30191         * modules/ftello-tests (Files): Add them.
30192         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
30194         fseeko tests: EBADF tests.
30195         * tests/test-fseeko4.sh: New file.
30196         * tests/test-fseeko4.c: New file.
30197         * modules/fseeko-tests (Files): Add them.
30198         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
30200         Tests for function fputc().
30201         * modules/fputc-tests: New file.
30202         * tests/test-fputc.c: New file.
30203         * modules/stdio-tests (Depends-on): Add fputc-tests.
30205         Tests for function fgetc().
30206         * modules/fgetc-tests: New file.
30207         * tests/test-fgetc.c: New file.
30208         * modules/stdio-tests (Depends-on): Add fgetc-tests.
30210         Tests for function fdopen().
30211         * modules/fdopen-tests: New file.
30212         * tests/test-fdopen.c: New file.
30213         * modules/stdio-tests (Depends-on): Add fdopen-tests.
30215         Tests for module 'vdprintf'.
30216         * modules/vdprintf-tests: New file.
30217         * tests/test-vdprintf.c: New file.
30219         Tests for module 'dprintf'.
30220         * modules/dprintf-tests: New file.
30221         * tests/test-dprintf.c: New file.
30223 2011-09-20  Bruno Haible  <bruno@clisp.org>
30225         Tests for module 'ioctl'.
30226         * modules/ioctl-tests: New file.
30227         * tests/test-ioctl.c: New file.
30229 2011-09-20  Bruno Haible  <bruno@clisp.org>
30231         fcntl tests: EBADF tests.
30232         * tests/test-fcntl.c (main): Add more tests for EBADF.
30234 2011-09-20  Bruno Haible  <bruno@clisp.org>
30236         utimensat tests: EBADF tests.
30237         * tests/test-utimensat.c (main): Add tests for EBADF.
30239         renameat tests: EBADF tests.
30240         * tests/test-renameat.c (main): Add tests for EBADF.
30242         mkfifoat tests: EBADF tests.
30243         * tests/test-mkfifoat.c (main): Add tests for EBADF.
30245         readlinkat tests: EBADF tests.
30246         * tests/test-readlinkat.c (main): Add tests for EBADF.
30248         symlinkat tests: EBADF tests.
30249         * tests/test-symlinkat.c (main): Add tests for EBADF.
30251         linkat tests: EBADF tests.
30252         * tests/test-linkat.c (main): Add tests for EBADF.
30254         Tests for module 'faccessat'.
30255         * modules/faccessat-tests: New file.
30256         * tests/test-faccessat.c: New file.
30258         fdopendir tests: EBADF tests.
30259         * tests/test-fdopendir.c (main): Add more tests for EBADF.
30261         openat tests: EBADF tests.
30262         * tests/test-fchownat.c (main): Add tests for EBADF.
30263         * tests/test-fstatat.c (main): Likewise.
30264         * tests/test-mkdirat.c (main): Likewise.
30265         * tests/test-openat.c (main): Likewise.
30266         * tests/test-unlinkat.c (main): Likewise.
30267         * tests/test-fchmodat.c: New file.
30268         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
30269         (Makefile.am): Also run 'test-fchmodat'.
30271 2011-09-20  Bruno Haible  <bruno@clisp.org>
30273         utimens, futimens, fdutimensat tests: EBADF tests.
30274         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
30276         Tests for function fstat().
30277         * modules/fstat-tests: New file.
30278         * tests/test-fstat.c: New file.
30279         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
30281 2011-09-20  Bruno Haible  <bruno@clisp.org>
30283         test-ttyname_r tests: EBADF tests.
30284         * tests/test-ttyname_r.c (main): Add tests for EBADF.
30286         Tests for module 'isatty'.
30287         * modules/isatty-tests: New file.
30288         * tests/test-isatty.c: New file.
30290         Tests for module 'write'.
30291         * modules/write-tests: New file.
30292         * tests/test-write.c: New file.
30294         Tests for module 'read'.
30295         * modules/read-tests: New file.
30296         * tests/test-read.c: New file.
30298         pwrite tests: EBADF tests.
30299         * tests/test-pwrite.c (main): Add tests for EBADF.
30301         pread tests: EBADF tests.
30302         * tests/test-pread.c (main): Add tests for EBADF.
30304         lseek tests: EBADF tests.
30305         * tests/test-lseek.c (main): Add more tests for EBADF.
30307         Tests for module 'ftruncate'.
30308         * modules/ftruncate-tests: New file.
30309         * tests/test-ftruncate.sh: New file.
30310         * tests/test-ftruncate.c: New file.
30312         fsync tests: EBADF tests.
30313         * tests/test-fsync.c (main): Add more tests for EBADF.
30315         fdatasync tests: EBADF tests.
30316         * tests/test-fdatasync.c (main): Add more tests for EBADF.
30318         Tests for module 'fchown'.
30319         * modules/fchown-tests: New file.
30320         * tests/test-fchown.c: New file.
30322         Tests for module 'fchmod'.
30323         * modules/fchmod-tests: New file.
30324         * tests/test-fchmod.c: New file.
30326         fchdir tests: EBADF tests.
30327         * tests/test-fchdir.c (main): Add more tests for EBADF.
30329         dup2 tests: EBADF tests.
30330         * tests/test-dup2.c (main): Add more tests for EBADF.
30332         Tests for module 'dup'.
30333         * modules/dup-tests: New file.
30334         * tests/test-dup.c: New file.
30336         Tests for module 'close'.
30337         * modules/close-tests: New file.
30338         * tests/test-close.c: New file.
30340 2011-09-20  Bruno Haible  <bruno@clisp.org>
30342         Tests for module 'shutdown'.
30343         * modules/shutdown-tests: New file.
30344         * tests/test-shutdown.c: New file.
30346         Tests for module 'setsockopt'.
30347         * modules/setsockopt-tests: New file.
30348         * tests/test-setsockopt.c: New file.
30350         Tests for module 'sendto'.
30351         * modules/sendto-tests: New file.
30352         * tests/test-sendto.c: New file.
30354         Tests for module 'send'.
30355         * modules/send-tests: New file.
30356         * tests/test-send.c: New file.
30358         Tests for module 'recvfrom'.
30359         * modules/recvfrom-tests: New file.
30360         * tests/test-recvfrom.c: New file.
30362         Tests for module 'recv'.
30363         * modules/recv-tests: New file.
30364         * tests/test-recv.c: New file.
30366         Tests for module 'listen'.
30367         * modules/listen-tests: New file.
30368         * tests/test-listen.c: New file.
30370         Tests for module 'getsockopt'.
30371         * modules/getsockopt-tests: New file.
30372         * tests/test-getsockopt.c: New file.
30374         Tests for module 'getsockname'.
30375         * modules/getsockname-tests: New file.
30376         * tests/test-getsockname.c: New file.
30378         Tests for module 'getpeername'.
30379         * modules/getpeername-tests: New file.
30380         * tests/test-getpeername.c: New file.
30382         Tests for module 'connect'.
30383         * modules/connect-tests: New file.
30384         * tests/test-connect.c: New file.
30386         Tests for module 'bind'.
30387         * modules/bind-tests: New file.
30388         * tests/test-bind.c: New file.
30390         accept4 tests: Fix for native Windows.
30391         * tests/test-accept4.c: Include sockets.h.
30392         (main): Invoke gl_sockets_startup.
30393         * modules/accept4-tests (Depends-on): Add sockets.
30395         accept tests: Fix for native Windows.
30396         * tests/test-accept.c: Include sockets.h.
30397         (main): Invoke gl_sockets_startup.
30398         * modules/accept-tests (Depends-on): Add sockets.
30400 2011-09-19  Bruno Haible  <bruno@clisp.org>
30402         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
30403         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
30404         do...while(0).
30405         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
30406         Suggested by Paul Eggert.
30408 2011-09-19  Bruno Haible  <bruno@clisp.org>
30410         sched: Ensure pid_t is defined.
30411         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
30412         not define pid_t.
30413         * lib/sched.in.h: Include <sys/types.h>.
30414         * doc/posix-headers/sched.texi: Mention the pid_t problem.
30415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30417 2011-09-19  Bruno Haible  <bruno@clisp.org>
30419         msvc-inval: Ensure the entire expansion is a single statement.
30420         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
30421         of braces.
30423 2011-09-19  Jim Meyering  <meyering@redhat.com>
30425         tests: use printf, not echo in init.sh's warn_ function
30426         * tests/init.sh (warn_): Use printf, not echo.  The latter would
30427         misbehave when given strings containing a backslash or starting
30428         with e.g., -n.  James Youngman suggested setting IFS.
30430 2011-09-19  Eric Blake  <eblake@redhat.com>
30432         futimens: enhance test
30433         * tests/test-futimens.h (test_futimens): Also check for EBADF on
30434         closed non-negative fd.
30436         date: accept 'hence' as opposite of 'ago'
30437         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
30438         * tests/test-parse-datetime.c (main): Enhance test.
30439         Suggested by Jesse Wilson.
30441 2011-09-19  Jim Meyering  <meyering@redhat.com>
30443         getcwd: don't fail in a deep directory on a system without openat
30444         Before this change, getcwd would fail when called from a directory
30445         of depth PATH_MAX / 3 or greater.  That was due to the fact that
30446         the non-openat implementation used "..", "../..", "../../..", etc.
30447         to access ancestor directories.  With too many, that string would
30448         be longer than PATH_MAX.
30449         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
30450         using gnulib's openat replacement.
30451         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
30452         we're using the replacement function.
30454 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
30456         maint.mk: avoid warnings from perl about missing files
30457         * top/maint.mk (def_sym_regex): Ignore files listed in
30458         $(gl_other_headers_) that do not exist, say because a project
30459         does not use a corresponding module.
30461 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30463         stat: use pathmax.h only if needed
30464         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
30465         This is better for Emacs, which does not have a mingw port and
30466         therefore can avoid the pathmax module.
30468         utimens: remove dependency on dup2
30469         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
30470         to work around the Linux kernel bug.
30471         * modules/utimens (Depends-on): Remove dup2.
30473 2011-09-18  Bruno Haible  <bruno@clisp.org>
30475         inet_ntop, inet_pton: Look for it also in libresolv.
30476         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
30477         libnsl, search for it in libresolv.
30478         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30479         Needed on Solaris 7.
30481 2011-09-18  Bruno Haible  <bruno@clisp.org>
30483         accept, accept4 tests: Avoid link error on Solaris.
30484         * modules/accept-tests (Makefile.am): Link test-accept against
30485         $(LIBSOCKET).
30486         * modules/accept4-tests (Makefile.am): Link test-accept4 against
30487         $(LIBSOCKET).
30489         accept4: Avoid link error on Solaris.
30490         * modules/accept4 (Link): New section.
30492         socket functions: Avoid link errors on Solaris.
30493         * modules/accept (Depends-on): Add socketlib.
30494         (Link): New section.
30495         * modules/bind (Depends-on): Add socketlib.
30496         (Link): New section.
30497         * modules/connect (Depends-on): Add socketlib.
30498         (Link): New section.
30499         * modules/getpeername (Depends-on): Add socketlib.
30500         (Link): New section.
30501         * modules/getsockname (Depends-on): Add socketlib.
30502         (Link): New section.
30503         * modules/getsockopt (Depends-on): Add socketlib.
30504         (Link): New section.
30505         * modules/listen (Depends-on): Add socketlib.
30506         (Link): New section.
30507         * modules/recv (Depends-on): Add socketlib.
30508         (Link): New section.
30509         * modules/recvfrom (Depends-on): Add socketlib.
30510         (Link): New section.
30511         * modules/send (Depends-on): Add socketlib.
30512         (Link): New section.
30513         * modules/sendto (Depends-on): Add socketlib.
30514         (Link): New section.
30515         * modules/setsockopt (Depends-on): Add socketlib.
30516         (Link): New section.
30517         * modules/shutdown (Depends-on): Add socketlib.
30518         (Link): New section.
30519         * modules/socket (Depends-on): Add socketlib.
30520         (Link): New section.
30522 2011-09-18  Bruno Haible  <bruno@clisp.org>
30524         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
30525         * tests/test-ptsname.c (main): Terminate the test if it takes longer
30526         than 5 seconds.
30527         * modules/ptsname-tests (configure.ac): Test for alarm.
30529 2011-09-18  Bruno Haible  <bruno@clisp.org>
30531         posix_spawn_file_actions_add*: Fix module dependencies.
30532         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
30533         posix_spawn_file_actions_init.
30534         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
30535         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
30537 2011-09-18  Bruno Haible  <bruno@clisp.org>
30539         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
30540         * tests/test-rename.h (test_rename): Allow error code EEXIST.
30541         * tests/test-renameat.c (main): Likewise.
30543 2011-09-18  Bruno Haible  <bruno@clisp.org>
30545         Tests for module 'accept4'.
30546         * modules/accept4-tests: New file.
30547         * tests/test-accept4.c: New file.
30549 2011-09-18  Bruno Haible  <bruno@clisp.org>
30551         Tests for module 'accept'.
30552         * modules/accept-tests: New file.
30553         * tests/test-accept.c: New file.
30555 2011-09-18  Bruno Haible  <bruno@clisp.org>
30557         dup2: Support for MSVC.
30558         * lib/dup2.c: Include msvc-inval.h.
30559         (rpl_dup2): Handle invalid parameter notifications during dup2 and
30560         _get_osfhandle calls.
30561         * modules/dup2 (Depends-on): Add msvc-inval.
30562         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
30564         New module 'msvc-inval'.
30565         * lib/msvc-inval.h: New file.
30566         * lib/msvc-inval.c: New file.
30567         * m4/msvc-inval.m4: New file.
30568         * modules/msvc-inval: New file.
30570 2011-09-17  Bruno Haible  <bruno@clisp.org>
30572         Tests for module 'pclose'.
30573         * modules/pclose-tests: New file.
30575         New module 'pclose'.
30576         * lib/stdio.in.h (pclose): New declaration.
30577         * lib/pclose.c: New file.
30578         * m4/pclose.m4: New file.
30579         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
30580         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
30581         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
30582         * modules/pclose: New file.
30583         * modules/popen-tests (Depends-on): Add pclose.
30584         * modules/popen-safer-tests (Depends-on): Likewise.
30585         * doc/posix-functions/pclose.texi: Mention the new module.
30587 2011-09-17  Bruno Haible  <bruno@clisp.org>
30589         popen: Support for MSVC.
30590         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
30591         * lib/popen.c (popen): Provide alternate definition for native Windows.
30592         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
30593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30594         * modules/popen (Depends-on, configure.ac): Update condition.
30595         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30596         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30597         fixed.
30599 2011-09-17  Bruno Haible  <bruno@clisp.org>
30601         isnanl, isnand, isnanf: Work around MSVC bug.
30602         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30604 2011-09-17  Bruno Haible  <bruno@clisp.org>
30606         sys_socket tests: Fix recent mistake.
30607         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30609 2011-09-17  Bruno Haible  <bruno@clisp.org>
30611         putenv: Support for MSVC.
30612         * modules/putenv (Depends-on): Add environ.
30613         * lib/putenv.c (environ): Disable declaration.
30614         * lib/unistd.in.h: Update comment.
30616 2011-09-17  Bruno Haible  <bruno@clisp.org>
30618         math: Avoid macro redefinition warnings on MSVC.
30619         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30620         Undefine before redefining.
30622 2011-09-17  Bruno Haible  <bruno@clisp.org>
30624         doc: Mention functions which are declared as macros.
30625         * doc/posix-functions/*[fl].texi: Mention that some functions are
30626         defined as macros with arguments only.
30628 2011-09-17  Bruno Haible  <bruno@clisp.org>
30630         Add dependencies to new dirent related modules.
30631         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30632         * modules/fts (Depends-on): Likewise.
30633         * modules/glob (Depends-on): Likewise.
30634         * modules/savedir (Depends-on): Likewise.
30635         * modules/scandir (Depends-on): Likewise.
30636         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30637         * modules/fdopendir (Depends-on): Add opendir.
30639 2011-09-17  Bruno Haible  <bruno@clisp.org>
30641         inet_pton: Support for MSVC on Windows Vista or newer.
30642         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30643         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30644         HAVE_DECL_INET_PTON is defined.
30645         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30646         On platforms with <winsock2.h>, test whether inet_pton is declared in
30647         <ws2tcpip.h>. If so, arrange to replace it.
30648         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30649         REPLACE_INET_PTON.
30650         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30651         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30652         (Depends-on, configure.ac): Update condition.
30653         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30655 2011-09-17  Bruno Haible  <bruno@clisp.org>
30657         inet_ntop: Support for MSVC on Windows Vista or newer.
30658         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30659         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30660         HAVE_DECL_INET_NTOP is defined.
30661         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30662         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30663         <ws2tcpip.h>. If so, arrange to replace it.
30664         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30665         REPLACE_INET_NTOP.
30666         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30667         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30668         (Depends-on, configure.ac): Update condition.
30669         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30671 2011-09-16  Eric Blake  <eblake@redhat.com>
30673         test-fsync: yet another enhancement
30674         * tests/test-fsync.c (main): Also test behavior on read-only text
30675         file.
30677 2011-09-16  Bruno Haible  <bruno@clisp.org>
30679         Enhance fsync, fdatasync tests.
30680         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30681         * tests/test-fdatasync.c (main): Likewise.
30683 2011-09-16  Bruno Haible  <bruno@clisp.org>
30685         Support for MSVC compiler: Ensure mode_t gets defined.
30686         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30687         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30689         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30690         * tests/test-fcntl-h.c: Check that mode_t is defined.
30691         * tests/test-sys_stat.c: Likewise.
30692         * tests/test-sys_types.c: Likewise.
30693         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30694         * doc/posix-headers/sys_stat.texi: Likewise.
30695         * doc/posix-headers/sys_types.texi: Likewise.
30697 2011-09-16  Bruno Haible  <bruno@clisp.org>
30699         sys_stat: Support for MSVC.
30700         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30701         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30702         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30703         MSVC.
30705 2011-09-16  Bruno Haible  <bruno@clisp.org>
30707         Support for MSVC compiler: Ensure off_t gets defined.
30708         * lib/unistd.in.h: Include <sys/types.h>.
30709         * tests/test-fcntl-h.c: Check that off_t is defined.
30710         * tests/test-sys_stat.c: Likewise.
30711         * tests/test-sys_types.c: Likewise.
30713 2011-09-16  Eric Blake  <eblake@redhat.com>
30715         fdatasync: port to Solaris
30716         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30717         * modules/fdatasync (Link): Document it.
30718         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30720         fdatasync: port to MacOS X 10.7
30721         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30722         declared.
30723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30724         * modules/unistd (Makefile.am): Substitute it.
30725         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30726         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30728         fdatasync: minor improvements
30729         * modules/fdatasync (Depends-on): Add condition for fsync.
30730         * lib/fdatasync.c (fdatasync): Add comment.
30731         * tests/test-unistd-c++.cc: Test fdatasync.
30733         unistd: update refs to newer POSIX
30734         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30735         Suggested by Bruno Haible.
30737         fdatasync: new module
30738         * modules/fsync (Description): Document difference to fdatasync.
30739         * modules/fdatasync: New module.
30740         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30741         * lib/fdatasync.c (fdatasync): Likewise.
30742         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30743         defaults.
30744         * modules/unistd (Makefile.am): Set witnesses.
30745         * lib/unistd.in.h (fdatasync): Declare.
30746         * MODULES.html.sh: Document it.
30747         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
30748         * modules/fdatasync-tests: New test.
30749         * tests/test-fdatasync.c: Likewise.
30751 2011-09-16  Eric Blake  <eblake@redhat.com>
30753         test-fsync: enhance tests
30754         * modules/fsync-tests (Depends-on): Add errno, for mingw.
30755         * tests/test-fsync.c (main): Enhance test.
30757 2011-09-15  Bruno Haible  <bruno@clisp.org>
30759         Support for MSVC compiler: Ensure ssize_t gets defined.
30760         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
30761         * doc/posix-headers/stdio.texi: Likewise.
30762         * modules/stdio (Depends-on): Add ssize_t.
30763         * modules/sys_socket (Depends-on): Likewise.
30764         * modules/sys_types (Depends-on): Likewise.
30765         * modules/sys_uio (Depends-on): Likewise.
30766         * modules/unistd (Depends-on): Likewise.
30767         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
30768         * tests/test-sys_types.c: Check that ssize_t is defined.
30770 2011-09-14  Bruno Haible  <bruno@clisp.org>
30772         Avoid using #, the m4 comment starter character, near brackets.
30773         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
30774         delimiter character in sed expressions.
30775         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30776         Suggested by Eric Blake.
30778         Properly quote AC_CHECK_DECLS' 4th argument.
30779         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30780         argument.
30781         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30782         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30783         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30784         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30785         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30786         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
30787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
30788         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
30789         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
30790         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
30791         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
30792         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30793         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30794         * m4/isinf.m4 (gl_ISINF): Likewise.
30795         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30796         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30797         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30798         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30800         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30801         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30802         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
30803         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
30804         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30805         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
30808         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30810         Reported by Eric Blake.
30812         Properly quote AC_CHECK_DECL's 4th argument.
30813         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
30814         argument.
30815         * m4/argp.m4 (gl_ARGP): Likewise.
30816         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30817         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30818         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30819         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30820         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
30821         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
30822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30823         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30825         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30826         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30827         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30828         Reported by Eric Blake.
30830 2011-09-14  Eric Blake  <eblake@redhat.com>
30832         opendir: avoid compile warning
30833         * lib/opendir.c (includes): Always include errno.h.
30834         Reported by Tatsuro MATSUOKA.
30836 2011-09-14  Jim Meyering  <meyering@redhat.com>
30838         maint.mk: sc_tight_scope: propagate failure from sub-make
30839         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
30840         Reported by Martin von Gagern.
30842 2011-09-13  Bruno Haible  <bruno@clisp.org>
30844         tempname: Support for MSVC.
30845         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
30846         MSVC.
30847         * modules/tempname (Depends-on): Add fcntl-h.
30849 2011-09-13  Bruno Haible  <bruno@clisp.org>
30851         sys_time: Support for MSVC.
30852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
30853         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
30854         include <winsock2.h>.
30855         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
30856         function declarations that collide with POSIX.
30857         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30858         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30860 2011-09-13  Bruno Haible  <bruno@clisp.org>
30862         stat: Support for MSVC.
30863         * lib/stat.c: Include pathmax.h.
30864         * modules/stat (Depends-on): Add pathmax.
30866         pathmax: Support for native Windows.
30867         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30869 2011-09-12  Bruno Haible  <bruno@clisp.org>
30871         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30872         * lib/dirent.in.h (struct dirent): New type.
30873         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30874         DT_WHT): New macros.
30875         (DIR): New type.
30876         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30877         (readdir, rewinddir): New declarations.
30878         * lib/dirent-private.h: New file.
30879         * lib/opendir.c: New file.
30880         * lib/readdir.c: New file.
30881         * lib/rewinddir.c: New file.
30882         * lib/closedir.c: New file.
30883         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30884         * m4/opendir.m4: New file.
30885         * m4/readdir.m4: New file.
30886         * m4/rewinddir.m4: New file.
30887         * m4/closedir.m4: New file.
30888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30889         REPLACE_CLOSEDIR here.
30890         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30891         readdir, rewinddir are declared.
30892         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30893         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30894         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30895         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30896         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30897         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30898         * modules/opendir: New file.
30899         * modules/readdir: New file.
30900         * modules/rewinddir: New file.
30901         * modules/closedir: New file.
30902         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30903         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30904         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30905         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30906         * NEWS: Mention the 'fchdir' change.
30908 2011-09-11  Bruno Haible  <bruno@clisp.org>
30910         asm-underscore.m4: Support for MSVC.
30911         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30912         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30914 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30916         Doc about crypt functions.
30917         * doc/posix-functions/crypt.texi: Expand range of glibc versions
30918         needing for _GNU_SOURCE to get crypt.
30919         * doc/posix-functions/encrypt.texi: Likewise.
30920         * doc/posix-functions/setkey.texi: Likewise.
30922 2011-09-11  Bruno Haible  <bruno@clisp.org>
30924         doc: Update regarding MSVC 9.
30925         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
30926         tested".
30927         * doc/posix-functions/*.texi: Update with info about MSVC 9.
30928         * doc/posix-headers/*.texi: Likewise.
30929         * doc/pastposix-functions/*.texi: Likewise.
30930         * doc/glibc-functions/*.texi: Likewise.
30931         * doc/glibc-headers/*.texi: Likewise.
30933 2011-09-11  Bruno Haible  <bruno@clisp.org>
30935         unistd et al.: Don't assume <unistd.h> exists.
30936         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
30937         does not exist.
30938         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
30939         exist. But include <stdlib.h>.
30940         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
30941         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
30942         symlink() does not exist.
30943         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
30944         include <io.h> instead.
30945         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
30946         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
30947         include <direct.h> instead.
30948         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30949         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30950         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
30951         <io.h> instead.
30952         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
30953         correctly if the system does not have hard links.
30954         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
30955         <direct.h> instead.
30956         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
30957         it when looking for function declarations.
30958         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
30959         <direct.h> and <io.h> instead.
30960         * doc/posix-headers/unistd.texi: More details about MSVC problem.
30962 2011-09-11  Bruno Haible  <bruno@clisp.org>
30964         strcase: Support for MSVC.
30965         * modules/strcase (Status, Notice): Remove obsoletion mark.
30966         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
30967         * doc/posix-functions/strncasecmp.texi: Likewise.
30969         strings: Don't assume <strings.h> exists.
30970         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
30971         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
30972         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
30973         * doc/posix-headers/strings.texi: Mention the MSVC problem.
30975 2011-09-11  Bruno Haible  <bruno@clisp.org>
30977         dirent: Don't assume <dirent.h> exists.
30978         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
30979         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
30980         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
30981         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
30983 2011-09-11  Bruno Haible  <bruno@clisp.org>
30985         Fix wint_t on MSVC.
30986         * lib/wchar.in.h (wint_t): On MSVC, override it.
30987         * lib/wctype.in.h (wint_t): Likewise.
30988         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
30989         MSVC.
30990         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
30991         * doc/posix-headers/wctype.texi: Likewise.
30993 2011-09-11  Bruno Haible  <bruno@clisp.org>
30995         sys_types: Fix typo.
30996         * lib/sys_types.in.h: Fix typo in comment.
30997         Reported by Paul Eggert.
30999         Support for MSVC compiler: Ensure size_t gets defined.
31000         * modules/strings (Depends-on): Add 'sys_types'.
31001         * modules/sys_uio (Depends-on): Likewise.
31002         * lib/sys_uio.in.h: Update comment.
31004         C++ tests for module 'sys_types'.
31005         * modules/sys_types-c++-tests: New file.
31006         * tests/test-sys_types-c++.cc: New file.
31008         Tests for module 'sys_types'.
31009         * modules/sys_types-tests: New file.
31010         * tests/test-sys_types.c: New file.
31012         New module 'sys_types'.
31013         * lib/sys_types.in.h: New file.
31014         * m4/sys_types_h.m4: New file.
31015         * modules/sys_types: New file.
31016         * doc/posix-headers/sys_types.texi: Mention the new module and the
31017         size_t problem on MSVC 9.
31019 2011-09-11  Bruno Haible  <bruno@clisp.org>
31021         Support for MSVC compiler: Avoid division by a literal 0.
31022         * lib/math.in.h (NAN): Define through a function call also on MSVC.
31023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
31024         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
31025         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
31026         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
31027         * tests/infinity.h: New file.
31028         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
31029         on MSVC.
31030         * tests/test-ceilf1.c: Include infinity.h.
31031         (main): Use Infinityf.
31032         * tests/test-ceil1.c: Include infinity.h.
31033         (main): Use Infinityd.
31034         * tests/test-ceill.c: Include infinity.h.
31035         (main): Use Infinityl.
31036         * tests/test-dprintf-posix.c: Include infinity.h.
31037         (test_function): Use Infinityd.
31038         * tests/test-floorf1.c: Include infinity.h.
31039         (main): Use Infinityf.
31040         * tests/test-floor1.c: Include infinity.h.
31041         (main): Use Infinityd.
31042         * tests/test-floorl.c: Include infinity.h.
31043         (main): Use Infinityl.
31044         * tests/test-fprintf-posix.c: Include infinity.h.
31045         (test_function): Use Infinityd.
31046         * tests/test-frexp.c: Include infinity.h.
31047         (main): Use Infinityd.
31048         * tests/test-frexpl.c: Include infinity.h.
31049         (main): Use Infinityl.
31050         * tests/test-isfinite.c: Include infinity.h.
31051         (test_isfinitef): Use Infinityf.
31052         (test_isfinited): Use Infinityd.
31053         (test_isfinitel): Use Infinityl.
31054         * tests/test-isinf.c: Include infinity.h.
31055         (test_isinff): Use Infinityf.
31056         (test_isinfd): Use Infinityd.
31057         (test_isinfl): Use Infinityl.
31058         * tests/test-isnan.c: Include infinity.h.
31059         (test_float): Use Infinityf.
31060         (test_double): Use Infinityd.
31061         (test_long_double): Use Infinityl.
31062         * tests/test-isnanf.h: Include infinity.h.
31063         (main): Use Infinityf.
31064         * tests/test-isnand.h: Include infinity.h.
31065         (main): Use Infinityd.
31066         * tests/test-isnanl.h: Include infinity.h.
31067         (main): Use Infinityl.
31068         * tests/test-ldexpl.c: Include infinity.h.
31069         (main): Use Infinityl.
31070         * tests/test-printf-posix.h: Include infinity.h.
31071         (test_function): Use Infinityd.
31072         * tests/test-roundf1.c: Include infinity.h.
31073         (main): Use Infinityf.
31074         * tests/test-round1.c: Include infinity.h.
31075         (main): Use Infinityd.
31076         * tests/test-roundl.c: Include infinity.h.
31077         (main): Use Infinityl.
31078         * tests/test-signbit.c: Include infinity.h.
31079         (test_signbitf): Use Infinityf.
31080         (test_signbitd): Use Infinityd.
31081         (test_signbitl): Use Infinityl.
31082         * tests/test-snprintf-posix.h: Include infinity.h.
31083         (test_function): Use Infinityd, Infinityl.
31084         * tests/test-sprintf-posix.h: Include infinity.h.
31085         (test_function): Use Infinityd, Infinityl.
31086         * tests/test-truncf1.c: Include infinity.h.
31087         (main): Use Infinityf.
31088         * tests/test-trunc1.c: Include infinity.h.
31089         (main): Use Infinityd.
31090         * tests/test-truncl.c: Include infinity.h.
31091         (main): Use Infinityl.
31092         * tests/test-vasnprintf-posix.c: Include infinity.h.
31093         (test_function): Use Infinityd, Infinityl.
31094         * tests/test-vasprintf-posix.c: Include infinity.h.
31095         (test_function): Use Infinityd, Infinityl.
31096         * modules/ceilf-tests (Files): Add tests/infinity.h.
31097         * modules/ceil-tests (Files): Likewise.
31098         * modules/ceill-tests (Files): Likewise.
31099         * modules/dprintf-posix-tests (Files): Likewise.
31100         * modules/floorf-tests (Files): Likewise.
31101         * modules/floor-tests (Files): Likewise.
31102         * modules/floorl-tests (Files): Likewise.
31103         * modules/fprintf-posix-tests (Files): Likewise.
31104         * modules/frexp-tests (Files): Likewise.
31105         * modules/frexp-nolibm-tests (Files): Likewise.
31106         * modules/frexpl-tests (Files): Likewise.
31107         * modules/frexpl-nolibm-tests (Files): Likewise.
31108         * modules/isfinite-tests (Files): Likewise.
31109         * modules/isinf-tests (Files): Likewise.
31110         * modules/isnan-tests (Files): Likewise.
31111         * modules/isnanf-tests (Files): Likewise.
31112         * modules/isnanf-nolibm-tests (Files): Likewise.
31113         * modules/isnand-tests (Files): Likewise.
31114         * modules/isnand-nolibm-tests (Files): Likewise.
31115         * modules/isnanl-tests (Files): Likewise.
31116         * modules/isnanl-nolibm-tests (Files): Likewise.
31117         * modules/ldexpl-tests (Files): Likewise.
31118         * modules/printf-posix-tests (Files): Likewise.
31119         * modules/roundf-tests (Files): Likewise.
31120         * modules/round-tests (Files): Likewise.
31121         * modules/roundl-tests (Files): Likewise.
31122         * modules/signbit-tests (Files): Likewise.
31123         * modules/snprintf-posix-tests (Files): Likewise.
31124         * modules/sprintf-posix-tests (Files): Likewise.
31125         * modules/truncf-tests (Files): Likewise.
31126         * modules/trunc-tests (Files): Likewise.
31127         * modules/truncl-tests (Files): Likewise.
31128         * modules/vasnprintf-posix-tests (Files): Likewise.
31129         * modules/vasprintf-posix-tests (Files): Likewise.
31130         * modules/vdprintf-posix-tests (Files): Likewise.
31131         * modules/vfprintf-posix-tests (Files): Likewise.
31132         * modules/vprintf-posix-tests (Files): Likewise.
31133         * modules/vsnprintf-posix-tests (Files): Likewise.
31134         * modules/vsprintf-posix-tests (Files): Likewise.
31135         * modules/xprintf-posix-tests (Files): Likewise.
31137 2011-09-11  Bruno Haible  <bruno@clisp.org>
31139         Ensure pid_t gets defined.
31140         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
31141         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
31142         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31143         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31144         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31145         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
31146         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31147         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31148         * tests/test-fcntl-h.c: Check that pid_t is defined.
31149         * tests/test-sched.c: Likewise.
31150         * tests/test-termios.c: Likewise.
31151         * tests/test-time.c: Likewise.
31152         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
31153         * doc/posix-headers/signal.texi: Likewise.
31154         * doc/posix-headers/sys_types.texi: Likewise.
31155         * doc/posix-headers/time.texi: Likewise.
31157 2011-09-11  Bruno Haible  <bruno@clisp.org>
31159         acl: Fix compilation on Solaris 10 (older version).
31160         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
31161         of ACE_EVERYONE.
31162         * lib/set-mode-acl.c (qset_acl): Likewise.
31163         Reported by Christian Jullien <eligis@orange.fr>.
31165 2011-09-10  Bruno Haible  <bruno@clisp.org>
31167         iconv, unsetenv: Add support for MSVC compiler.
31168         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
31169         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
31171 2011-09-10  Bruno Haible  <bruno@clisp.org>
31173         *printf: Add support for MSVC compiler.
31174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
31175         handles the exception caused by the %n directive. When cross-compiling,
31176         guess no on native Windows.
31177         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31178         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
31179         emulate it through vsnprintf.
31180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
31181         * doc/posix-functions/dprintf.texi: Update documentation regarding
31182         MSVC 9.
31183         * doc/posix-functions/fprintf.texi: Likewise.
31184         * doc/posix-functions/printf.texi: Likewise.
31185         * doc/posix-functions/snprintf.texi: Likewise.
31186         * doc/posix-functions/sprintf.texi: Likewise.
31187         * doc/posix-functions/swprintf.texi: Likewise.
31188         * doc/posix-functions/vdprintf.texi: Likewise.
31189         * doc/posix-functions/vfprintf.texi: Likewise.
31190         * doc/posix-functions/vprintf.texi: Likewise.
31191         * doc/posix-functions/vsnprintf.texi: Likewise.
31192         * doc/posix-functions/vsprintf.texi: Likewise.
31193         * doc/glibc-functions/asprintf.texi: Likewise.
31194         * doc/glibc-functions/obstack_printf.texi: Likewise.
31195         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31196         * doc/glibc-functions/vasprintf.texi: Likewise.
31198 2011-09-10  Bruno Haible  <bruno@clisp.org>
31200         nocrash: Add support for native Windows.
31201         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
31203 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
31204             Bruno Haible  <bruno@clisp.org>
31206         absolute-header, include-next: Add support for MSVC compiler.
31207         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
31208         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
31209         directory separator in #line directives.
31210         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
31211         recognize also backslash as directory separator in #line directives.
31213 2011-09-08  Jim Meyering  <meyering@redhat.com>
31215         maint.mk: mark the post-release commit log with "maint: " prefix
31216         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
31217         one-line commit-log summary.
31219 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
31220             Bruno Haible  <bruno@clisp.org>
31222         Doc about crypt functions.
31223         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
31224         systems.
31225         * doc/posix-functions/encrypt.texi: Likewise.
31226         * doc/posix-functions/setkey.texi: Likewise.
31228 2011-09-08  Simon Josefsson  <simon@josefsson.org>
31230         * lib/gc.h: Fix copyright header.
31232 2011-09-07  Bruno Haible  <bruno@clisp.org>
31234         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
31235         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
31236         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
31238 2011-09-07  Bruno Haible  <bruno@clisp.org>
31240         openat: Work around compilation error with OSF/1 5.1 DTK cc.
31241         * lib/fopen.c: Use different syntax for include of <stdio.h>.
31242         * lib/freopen.c: Likewise.
31243         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
31244         * lib/lstat.c: Likewise.
31245         * lib/stat.c: Likewise.
31246         * lib/open.c: Use different syntax for include of <fcntl.h>.
31247         * lib/openat.c: Include fcntl.h again, explicitly.
31249 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
31251         parse-datetime: document the newly accepted format
31252         * doc/parse-datetime.texi (Combined date and time of day items):
31253         New section.
31255 2011-09-06  Bruno Haible  <bruno@clisp.org>
31257         acl: Fix a test failure on newer Solaris 10 with ZFS.
31258         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
31259         ENOSYS as no ACL.
31260         Reported by Jim Meyering.
31262 2011-09-06  Bruno Haible  <bruno@clisp.org>
31264         acl: Update for AIX >= 5.3 with NFS.
31265         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
31266         ENOSYS as no ACL.
31268         acl: Fix a test failure on AIX >= 5.3 with NFS.
31269         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
31270         as no ACL.
31272 2011-09-06  Bruno Haible  <bruno@clisp.org>
31274         acl: Fix a test failure on IRIX 6.5 with NFS.
31275         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
31276         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
31277         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
31278         * lib/copy-acl.c (qcopy_acl): Likewise.
31280 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
31282         openat: port to AIX 7.1 with large files
31283         AIX 7.1 does a "#define openat open64at" if large files are in use,
31284         so we can't simply #undef openat.  Use the orig_openat trick (similar
31285         to orig_open in lib/open.c) to work around the problem.  Problem
31286         reported by Kevin Brott for GNU tar, in the thread containing
31287         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
31288         * lib/openat.c (__need_system_fcntl_h): Define first.
31289         Include <fcntl.h> and <sys/types.h> before undefining.
31290         (orig_openat) [HAVE_OPENAT]: New inline function.
31291         (openat) [HAVE_OPENAT]: Do not undef.
31292         (rpl_openat): Use orig_openat, not openat.
31294 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
31295             Bruno Haible  <bruno@clisp.org>
31297         acl: Avoid errors on NonStop Kernel.
31298         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
31299         ENOTSUP errors.
31301 2011-09-05  Bruno Haible  <bruno@clisp.org>
31303         acl: Clean up Solaris code.
31304         * lib/acl-internal.h: Remove no-op #if.
31305         * lib/file-has-acl.c: Likewise.
31306         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
31307         * lib/copy-acl.c (qcopy_acl): Likewise.
31309 2011-09-05  Bruno Haible  <bruno@clisp.org>
31311         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
31312         binaries built on the original Solaris 10.
31313         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
31314         trivial.
31316 2011-09-05  Bruno Haible  <bruno@clisp.org>
31318         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31319         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
31320         10.
31321         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
31322         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
31323         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
31324         instead of acl_get, facl_get, acl_set, facl_set.
31326 2011-09-05  Bruno Haible  <bruno@clisp.org>
31328         copy-file: Try unit tests on more file systems.
31329         * tests/test-copy-file-1.sh: New file.
31330         * tests/test-copy-file-2.sh: New file.
31331         * modules/copy-file-tests (Files): Add them.
31332         (Makefile.am): Add them to TESTS.
31334         acl: Try unit tests on more file systems.
31335         * tests/test-file-has-acl-1.sh: New file.
31336         * tests/test-file-has-acl-2.sh: New file.
31337         * tests/test-set-mode-acl-1.sh: New file.
31338         * tests/test-set-mode-acl-2.sh: New file.
31339         * tests/test-copy-acl-1.sh: New file.
31340         * tests/test-copy-acl-2.sh: New file.
31341         * modules/acl-tests (Files): Add them.
31342         (Makefile.am): Add them to TESTS.
31344 2011-09-04  Bruno Haible  <bruno@clisp.org>
31346         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31347         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
31348         10.
31349         (OLD_ALLOW, OLD_DENY): New macros.
31350         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
31351         ACE_ACCESS_ALLOWED_ACE_TYPE.
31352         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
31353         ACE_ACCESS_DENIED_ACE_TYPE.
31354         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
31355         (NEW_ACE_EXECUTE): Fix value.
31356         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
31357         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
31358         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
31359         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
31360         NEW_ACE_SYNCHRONIZE): New macros.
31361         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
31362         instead of acl_fromtext, acl_set, facl_set.
31363         Fixes a coreutils/tests/cp/perm failure.
31365 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
31367         openat: test for fstatat (..., 0) bug
31368         Further testing with tar suggests that fstatat (..., 0)
31369         does not work in general, on AIX 7.1; see
31370         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
31371         So, give up entirely on AIX 7.1's fstatat, and fall back on our
31372         replacement fstatat (which is what older AIX releases were using
31373         anyway).
31374         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
31375         use is now changed to orig_fstatat.  This was probably the right
31376         thing to do anyway.
31377         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
31378         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
31379         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
31380         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
31381         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
31382         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
31383         if the bug is found.
31385         openat: test for fstatat (AT_FDCWD, ..., 0) bug
31386         This tests for another fstatat bug on AIX 7.1:
31387         fstatat (AT_FDCWD, ..., 0) does not work.  See
31388         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
31389         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
31390         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
31391         (rpl_fstatat): Adjust so that it works around either (or both)
31392         bugs if present.
31393         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
31395 2011-09-03  Karl Berry  <karl@gnu.org>
31397         * doc/regex.texi (Character Class Operators): Avoid literal ":"
31398         in index entries.
31400 2011-09-02  Bruno Haible  <bruno@clisp.org>
31402         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
31403         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
31404         values of AR, ARFLAGS, RANLIB.
31405         Reported by John W. Eaton <jwe@gnu.org> for Octave.
31407 2011-09-02  Bruno Haible  <bruno@clisp.org>
31409         Find 'ar' program that fits with --host argument.
31410         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
31412 2011-09-02  Bruno Haible  <bruno@clisp.org>
31414         tests: init.sh: Support any non-GNU diff.
31415         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
31416         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
31417         Solaris 8.
31419 2011-09-02  Bruno Haible  <bruno@clisp.org>
31421         tests: init.sh: work also with any non-GNU diff that supports -u
31422         * tests/init.sh: Relax check for diff -u support.
31423         Rather than checking for GNU diff via --version, simply check
31424         for support for -u itself.  Useful at least on OpenBSD 4.9,
31425         AIX 7.1, IRIX 6.5, and Solaris 10.
31427 2011-09-01  Bruno Haible  <bruno@clisp.org>
31429         strtoimax, strtoumax: Document problem on HP-UX 11.
31430         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
31431         * doc/posix-functions/strtoumax.texi: Likewise.
31433 2011-09-01  Bruno Haible  <bruno@clisp.org>
31435         strtoumax: Avoid link error on OSF/1 with DTK cc.
31436         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
31437         defined as a function.
31438         * modules/strtoumax (Depends-on, configure.ac): Test only whether
31439         strtoumax is defined, not whether it is declared.
31441 2011-09-01  Bruno Haible  <bruno@clisp.org>
31443         strtoimax: Avoid link error on OSF/1 with DTK cc.
31444         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
31445         defined as a function.
31446         * modules/strtoimax (Depends-on, configure.ac): Test only whether
31447         strtoimax is defined, not whether it is declared.
31449 2011-09-01  Bruno Haible  <bruno@clisp.org>
31451         imaxdiv: Avoid link error on OSF/1 with DTK cc.
31452         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
31453         as a function.
31454         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
31455         whether it is declared.
31457 2011-09-01  Bruno Haible  <bruno@clisp.org>
31459         imaxabs: Avoid link error on OSF/1 with DTK cc.
31460         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
31461         as a function.
31462         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
31463         whether it is declared.
31465 2011-09-01  Bruno Haible  <bruno@clisp.org>
31467         Tests for module 'strtoumax'.
31468         * modules/strtoumax-tests: New file.
31469         * tests/test-strtoumax.c: New file.
31471         Tests for module 'strtoimax'.
31472         * modules/strtoimax-tests: New file.
31473         * tests/test-strtoimax.c: New file.
31475         Tests for module 'imaxdiv'.
31476         * modules/imaxdiv-tests: New file.
31477         * tests/test-imaxdiv.c: New file.
31479         Tests for module 'imaxabs'.
31480         * modules/imaxabs-tests: New file.
31481         * tests/test-imaxabs.c: New file.
31483 2011-09-01  Bruno Haible  <bruno@clisp.org>
31485         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
31486         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
31487         pthread_create.
31489 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31491         openat: work around AIX 7.1 fstatat issue
31492         This should fix the problem that was not properly fixed
31493         in the previous change, dated 2011-08-30.
31494         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
31495         __need_system_stat_h defined.
31496         (orig_fstatat) [HAVE_FSTATAT]: New function.
31497         (rpl_fstatat): Go back to the old way of doing things,
31498         except call orig_fstatat instead of fstatat.
31499         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
31500         Remove unnecessary check whether fstatat fills in st_size etc.
31502 2011-09-01  Bruno Haible  <bruno@clisp.org>
31504         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
31505         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
31506         just include the system's header.
31508 2011-08-31  Jim Meyering  <meyering@redhat.com>
31510         tests: avoid spurious assertion failure in test-float.c on ppc64
31511         * tests/test-float.c (test_long_double): Comment out an assertion,
31512         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
31513         with gcc-4.4.4.
31515         maint: indent with spaces, not TABs
31516         I need to get in the habit of running gnulib's "make check".
31517         Both of these would have been caught.
31518         * m4/largefile.m4: Indent with spaces, not TABs.
31519         * lib/parse-datetime.y (iso_8601_time): Likewise.
31520         Spotted by Pádraig Brady.
31522         test-parse-datetime.c: accommodate a relatively strict gcc warning
31523         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
31524         to avoid a warning from gcc's -Werror=missing-declarations.
31525         Insert a few spaces-before-funcall-parenthesis.
31527 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
31529         parse-datetime: accept ISO 8601 date and time rep with "T" separator
31530         The parser now accepts ISO 8601 date-time strings with "T" as the
31531         separator.  It has long parsed dates like "2004-02-29 16:21:42"
31532         with a space between the date and time strings.  Now it also parses
31533         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
31534         variants like "2004-02-29T16:21:42.333-07:00"
31535         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
31536         of day representation using the 'T' separator character.
31537         * doc/parse-datetime.texi (General date syntax): replace use of
31538         deprecated --iso-8601 option with --rfc-3339 in example of date
31539         command output formats that can be parsed.
31540         * tests/test-parse-datetime.c (tm_diff): New function, taken from
31541         lib/parse-datetime.y.
31542         (gmt_offset): New function.
31543         (main): Add additional test cases to validate ISO8601 extended
31544         date and time of day parsing.
31546 2011-08-31  Bruno Haible  <bruno@clisp.org>
31548         freopen: Documentation.
31549         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
31550         name.
31551         Reported by Claudio Bley <claudio.bley@gmail.com>.
31553 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
31555         freopen: Don't crash if the filename argument is NULL.
31556         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
31557         NULL.
31559 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31561         openat: work around AIX 7.1 fstatat bug
31562         Problem reported by Kevin Brott for GNU tar, in the thread containing
31563         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
31564         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
31565         FSTATAT_ST_SIZE_ETC_BROKEN.
31566         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
31567         rpl_fstatat.
31568         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
31569         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
31570         AC_CHECK_FUNCS_ONCE for fstatat.
31571         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
31572         fchmodat, mkdirat, openat and unlinkat.
31574 2011-08-30  Bruno Haible  <bruno@clisp.org>
31576         Avoid endless recursions if config.h includes some header files.
31577         * lib/fopen.c (__need_FILE): Define already before including config.h.
31578         * lib/freopen.c (__need_FILE): Likewise.
31579         * lib/open.c (__need_system_fcntl_h): Likewise.
31580         * lib/stat.c (__need_system_sys_stat_h): Likewise.
31581         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
31582         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31584 2011-08-25  Karl Berry  <karl@gnu.org>
31586         * config/srclist.txt (ylwrap): new try.
31587         * build-aux/ylwrap: new file.
31589 2011-08-23  Bruno Haible  <bruno@clisp.org>
31591         tmpdir: Use a good default directory on native Windows.
31592         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
31593         (P_tmpdir): Default to _P_tmpdir on native Windows.
31594         (path_search): On native Windows, try the value returned by GetTempPath
31595         before trying P_tmpdir.
31596         * modules/tmpdir (Depends-on): Add pathmax.
31597         Suggested by John Darrington <john@darrington.wattle.id.au>.
31599 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31601         doc: fix typo in README-release
31602         * top/README-release: Capitalize first word of a sentence.
31604 2011-08-19  Jim Meyering  <meyering@redhat.com>
31606         fts: do not exhaust memory when processing million-entry directories
31607         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31608         directory would require about 256*N bytes of memory.  Thus, it was
31609         easy to construct a directory too large to be processed by any of
31610         those tools.  With this change, fts' maximum memory utilization is
31611         now limited to around 30MB.
31612         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31613         (fts_read): When we've processed the final entry (i.e., when
31614         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31615         using the parent entry to read any remaining entries.  Dispatch
31616         depending on what fts_build returns:
31617         - NULL+stop, aka failure: stop
31618         - NULL otherwise: move up in the dir hierarchy
31619         - non-NULL: handle this new entry
31620         (fts_build): Declare and use new local, continue_readdir.
31621         Prepare to be called from fts_read, when the entries
31622         from a partially-read directory have just been exhausted.
31623         In that case, we'll skip the opendir and instead use the parent's
31624         fts_dirp and derive dir_fd from that.
31625         Finally, in the readdir loop, if we read max_entries entries,
31626         exit the loop ensuring *not* to call closedir.  This is required
31627         so that fts_dirp can be reused on a subsequent call.
31628         Prompted by Ben England's report of memory exhaustion in find
31629         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31631         maint: fts: move decl of `dp' down into while loop; split a long line
31632         * lib/fts.c (fts_build): No semantic change.
31634         fts: add/use new struct member, fts_dirp
31635         We are about to use this to manage any directory with
31636         too many entries to read all of them into memory at once.
31637         To do that, we'll need to save the DIR* pointer in each
31638         affected FTSENT struct.
31639         * lib/fts_.h: Include <dirent.h>.
31640         (struct FTSENT) [fts_dirp]: New member.
31641         * lib/fts.c (closedir_and_clear): Define.
31642         Use it in place of closedir so that we are sure to
31643         clear the new fts_dirp member when done with it.
31644         (fts_alloc): Initialize the new member.
31645         (fts_lfree): Free, if needed.
31647         maint: fts: give __opendir2 a new parameter and rename
31648         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31649         than surreptitiously using sole caller's "dir_fd".
31650         (fts_opendir): Rename from __opendir2.
31652         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31653         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31655         maint: fts.c: correct off-by-one indentation
31656         * lib/fts.c (fts_build): Correct indentation, change style
31657         of a couple of block comments, and bracing style.
31659         maint: fts.c: move __opendir2 #define "up" out of function body
31660         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31662         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31663         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31664         out for a long time and besides was useful only on BSD systems.
31666 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31668         regex: port to Stratus OpenVOS
31669         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31670         define to empty, rather than attempting nonportable optimizations.
31671         Problem reported by Paul Green in:
31672         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31673         and fix suggested by Eric Blake in:
31674         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31676 2011-08-17  Eric Blake  <eblake@redhat.com>
31678         getcwd: fix test failures on mingw
31679         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31680         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31681         test if long directory cannot be created, and allow mingw errno.
31683         getcwd-lgpl: fix m4 to match relaxed test for BSD
31684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31685         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31686         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31687         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31688         signature problem.
31690         getcwd: fix compilation on mingw64
31691         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31692         getcwd.
31693         Reported by Marc-André Lureau.
31695         pipe2: silence compiler warning
31696         * lib/pipe2.c (pipe2): Hide label if it is not used.
31698 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31700         relocatable-prog: fix link error
31701         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31702         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31703         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31704         into modules/relocatable-lib without noticing that
31705         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31706         also needs to build relocatable.c.
31708 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31710         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31712         shell code: it contained a 'break' that was not in a loop.
31713         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31714         via a shell-language loop; this may have been true in old Autoconf
31715         versions, but it's not true in Autoconf 2.68.  I found this bug
31716         when testing coreutils git on Solaris 8, whose shell complains
31717         about the syntax error.
31719 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31721         * lib/base64.c: Fix comment to reference RFC 4648.
31722         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31723         <gvtulder@gmail.com>.
31725 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31727         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31729         po/Makefile.in.in: fix make -q problem
31730         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31731         rule, since there's no file named 'check-macro-version' and its
31732         use as a file breaks make -q.
31733         (all): Don't depend on check-macro-version.
31734         (CHECK_MACRO_VERSION): New macro.
31735         (stamp-po): Use it.
31737         configmake: fix make -q problem
31738         * modules/configmake (configmake.h): Update configmake.h's time stamp
31739         even if the file does not change.  Otherwise, 'make -q' fails.
31740         Problem reported by Simon Josefsson in
31741         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31743 2011-08-11  Jim Meyering  <meyering@redhat.com>
31745         git-version-gen: correct the advice in a comment
31746         * build-aux/git-version-gen: Correct comment.
31747         Don't recommend to list .tarball-version in .gitignore.
31749 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31751         base64: fix off-by-one buffer size bug
31752         Problem and (trivial) fix reported by Gijs van Tulder in
31753         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
31754         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
31755         * tests/test-base64.c (main): Catch the bug.
31757 2011-08-10  Eric Blake  <eblake@redhat.com>
31759         closein: correct comments
31760         * lib/closein.c (close_stdin): Improve comments.
31762 2011-08-09  Bruno Haible  <bruno@clisp.org>
31764         More tests for 'fseeko'.
31765         * tests/test-fseeko3.c: New file, from Eric Blake.
31766         * tests/test-fseeko3.sh: New file.
31767         * modules/fseeko-tests (Files): Add them.
31768         (TESTS): Add test-fseeko3.sh.
31769         (check_PROGRAMS): Add test-fseeko3.
31771 2011-08-09  Eric Blake  <eblake@redhat.com>
31773         fseeko: remove unneeded hack
31774         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
31776         fseeko: fix bug on glibc
31777         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
31778         Reported by John W. Eaton.
31780 2011-08-08  Bruno Haible  <bruno@clisp.org>
31782         unictype/base: Fix interoperability with preinstalled libunistring.
31783         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
31784         Reported by Simon Josefsson.
31786 2011-08-08  Bruno Haible  <bruno@clisp.org>
31788         iswblank: Detect declaration correctly.
31789         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
31790         AC_CHECK_DECLS invocation.
31792 2011-08-08  Bruno Haible  <bruno@clisp.org>
31794         tcgetsid: Detect declaration correctly.
31795         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
31796         AC_CHECK_DECLS invocation.
31797         Reported by Simon Josefsson.
31799 2011-08-08  Eric Blake  <eblake@redhat.com>
31801         largefile: fix typo that regressed large file support
31802         * modules/largefile (configure.ac-early): Fix section name.
31804 2011-08-06  Karl Berry  <karl@gnu.org>
31806         * MODULES.html.sh (func_all_files): _Noreturn is no longer
31807         a separate module.
31809 2011-08-05  Simon Josefsson  <simon@josefsson.org>
31811         openat: Fix warnings and commens when building unlinkat.c on Hurd.
31812         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
31813         get prototype for free.
31815 2011-08-04  Bruno Haible  <bruno@clisp.org>
31817         Tests for module 'pathmax'.
31818         * modules/pathmax-tests: New file.
31819         * tests/test-pathmax.c: New file.
31821         canonicalize-lgpl: Support larger filenames on the Hurd.
31822         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
31823         Reported by Paul Eggert.
31825         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
31826         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
31827         * lib/chdir-long.h: Include pathmax.h.
31828         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
31829         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
31830         (PATH_MAX): Remove code that is done by pathmax.h.
31831         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
31832         * lib/tmpfile.c: Add a comment.
31833         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
31834         * modules/chdir-long (Depends-on): Add pathmax.
31835         * modules/getcwd (Depends-on): Add pathmax.
31836         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
31837         is not defined.
31838         * doc/posix-headers/limits.texi: Mention the pathmax module.
31839         * NEWS: Mention the change.
31841 2011-08-02  Bruno Haible  <bruno@clisp.org>
31843         pthread_sigmask: Actually use results of gl_THREADLIB.
31844         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
31845         gl_THREADLIB, not gl_[]THREADLIB.
31846         Reported by Eric Blake.
31848 2011-08-02  Jim Meyering  <meyering@redhat.com>
31850         maint.mk: relax the default _gl_TS_function_match regexp
31851         * top/maint.mk (_gl_TS_function_match): Don't require at least one
31852         space between function name and "(" in an "extern" declaration.
31853         That would fail to match a decl with no space there: extern void foo();
31855 2011-07-31  Iain Nicol  <iain@thenicols.net>
31857         git-version-gen: document that EXTRA_DIST must include .version
31858         * build-aux/git-version-gen: In the how-to-use comment, document
31859         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31860         will fail when run from an unpacked distribution tarball.
31862 2011-08-01  Bruno Haible  <bruno@clisp.org>
31864         wctype-h: Fix last change.
31865         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31866         REPLACE_TOWLOWER to 0.
31867         Reported by Sam Steingold <sds@gnu.org>.
31869 2011-07-31  Bruno Haible  <bruno@clisp.org>
31871         frexpl: Update autoconf test.
31872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31873         according to changes of 2011-06-20.
31875 2011-07-31  Bruno Haible  <bruno@clisp.org>
31877         sys_utsname: Add support for Minix.
31878         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31879         <sys/utsname.h>.
31880         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31881         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31883 2011-07-31  Bruno Haible  <bruno@clisp.org>
31885         strings: Add support for Minix.
31886         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31887         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31888         * doc/posix-headers/strings.texi: Document the Minix problem.
31890 2011-07-31  Bruno Haible  <bruno@clisp.org>
31892         wctype-h: Add support for Minix.
31893         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31894         REPLACE_TOWLOWER.
31895         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31896         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31897         REPLACE_ISWCNTRL.
31899 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31901         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31902         This is a performance improvement for 64-bit hosts: it causes the
31903         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31905 2011-07-31  Bruno Haible  <bruno@clisp.org>
31907         stdioext: Add support for Minix.
31908         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31909         * lib/fpurge.c (fpurge): Likewise.
31910         * lib/freadahead.c (freadahead): Likewise.
31911         * lib/freadable.c (freadable): Likewise.
31912         * lib/freading.c (freading): Likewise.
31913         * lib/freadptr.c (freadptr): Likewise.
31914         * lib/freadseek.c (freadptrinc): Likewise.
31915         * lib/fseeko.c (rpl_fseeko): Likewise.
31916         * lib/fseterr.c (fseterr): Likewise.
31917         * lib/fwritable.c (fwritable): Likewise.
31918         * lib/fwriting.c (fwriting): Likewise.
31919         * lib/fflush.c (clear_ungetc_buffer): Update comment.
31920         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
31922 2011-07-31  Bruno Haible  <bruno@clisp.org>
31924         errno: Port to Minix.
31925         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
31926         ECONNABORTED are defined.
31927         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
31928         GNULIB_defined_ECONNABORTED): New macros.
31929         * lib/strerror-override.h (strerror_override): Test also
31930         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
31931         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
31932         ECONNABORTED.
31933         * doc/posix-headers/errno.texi: Mention the Minix problem.
31935 2011-07-31  Bruno Haible  <bruno@clisp.org>
31937         Work around declaration collisions on Minix.
31938         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
31939         defined, set REPLACE_MBSINIT.
31940         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
31941         defined, set REPLACE_MBRTOWC.
31942         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
31943         set REPLACE_MBRLEN.
31944         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
31945         defined, set REPLACE_MBSRTOWCS.
31946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
31947         defined, set REPLACE_WCRTOMB.
31948         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
31949         defined, set REPLACE_WCSRTOMBS.
31951 2011-07-31  Bruno Haible  <bruno@clisp.org>
31953         Add support for Minix with ACK compiler.
31954         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
31955         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
31956         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
31958 2011-07-31  Bruno Haible  <bruno@clisp.org>
31960         Documentation about Minix.
31961         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
31962         * doc/glibc-headers/*.texi: Likewise.
31963         * doc/posix-functions/*.texi: Likewise.
31964         * doc/glibc-functions/*.texi: Likewise.
31966 2011-07-31  Bruno Haible  <bruno@clisp.org>
31968         snippet/warn-on-use: Fix indentation.
31969         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
31971 2011-07-25  Jim Meyering  <meyering@redhat.com>
31973         tests: test-update-copyright.sh: remove unnecessary "rm" commands
31974         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
31975         commands.
31977 2011-07-27  Jim Meyering  <meyering@redhat.com>
31979         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
31980         * top/maint.mk (gl_extract_significant_defines_): Now that
31981         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
31982         gnulib/lib/signal.in.h, and now that we recommend to
31983         define-if-undefined those two symbols in application code,
31984         we must filter them out of the "significant" list.
31985         This avoids a "make syntax-check" failure in coreutils.
31987 2011-07-26  Eric Blake  <eblake@redhat.com>
31989         warnings: add comments about previous patch
31990         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
31991         * m4/include_next.m4: Likewise.
31992         * m4/warn-on-use.m4: Likewise.
31993         * m4/warnings.m4: Likewise, and simplify use.
31994         Suggested by Stefano Lattarini.
31996         include-next, warnings: support older autoconf
31997         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
31998         AS_VAR_PUSHDEF in a way that works with older autoconf.
31999         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
32000         Reported by Daniel P. Berrange.
32002 2011-07-25  Bruno Haible  <bruno@clisp.org>
32004         fseek, ftell: Fix doc.
32005         * doc/posix-functions/fseek.texi: Reword statement about
32006         AC_SYS_LARGEFILE.
32007         * doc/posix-functions/ftell.texi: Likewise.
32009 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32010             Bruno Haible  <bruno@clisp.org>
32012         Add dependencies to the 'largefile' module.
32013         * modules/fopen (Depends-on): Add 'largefile'.
32014         * modules/freopen (Depends-on): Likewise.
32015         * modules/fseeko (Depends-on): Likewise.
32016         * modules/ftello (Depends-on): Likewise.
32017         * modules/glob (Depends-on): Likewise.
32018         * modules/lseek (Depends-on): Likewise.
32019         * modules/lstat (Depends-on): Likewise.
32020         * modules/mkostemp (Depends-on): Likewise.
32021         * modules/mkostemps (Depends-on): Likewise.
32022         * modules/mkstemp (Depends-on): Likewise.
32023         * modules/mkstemps (Depends-on): Likewise.
32024         * modules/open (Depends-on): Likewise.
32025         * modules/openat (Depends-on): Likewise.
32026         * modules/pread (Depends-on): Likewise.
32027         * modules/pwrite (Depends-on): Likewise.
32028         * modules/scandir (Depends-on): Likewise.
32029         * modules/stat (Depends-on): Likewise.
32030         * modules/tmpfile (Depends-on): Likewise.
32031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
32032         since the containing module now depends on the largefile module.
32033         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
32034         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
32035         off_t is fixed by gnulib.
32036         * doc/posix-functions/freopen.texi: Likewise.
32037         * doc/posix-functions/fseeko.texi: Likewise.
32038         * doc/posix-functions/fstatat.texi: Likewise.
32039         * doc/posix-functions/ftello.texi: Likewise.
32040         * doc/posix-functions/glob.texi: Likewise.
32041         * doc/posix-functions/lseek.texi: Likewise.
32042         * doc/posix-functions/lstat.texi: Likewise.
32043         * doc/posix-functions/mkstemp.texi: Likewise.
32044         * doc/posix-functions/open.texi: Likewise.
32045         * doc/posix-functions/openat.texi: Likewise.
32046         * doc/posix-functions/pread.texi: Likewise.
32047         * doc/posix-functions/pwrite.texi: Likewise.
32048         * doc/posix-functions/scandir.texi: Likewise.
32049         * doc/posix-functions/stat.texi: Likewise.
32050         * doc/posix-functions/tmpfile.texi: Likewise.
32051         * doc/glibc-functions/mkostemp.texi: Likewise.
32052         * doc/glibc-functions/mkostemps.texi: Likewise.
32053         * doc/glibc-functions/mkstemps.texi: Likewise.
32055 2011-07-25  Bruno Haible  <bruno@clisp.org>
32057         fcntl: Move AC_LIBOBJ invocation to module description.
32058         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
32059         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
32061         fcntl: Remove call-in from fchdir.m4.
32062         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
32063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
32065         dup3: Remove potential call-in from fchdir.m4.
32066         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
32067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
32069         dup2: Move AC_LIBOBJ invocation to module description.
32070         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
32071         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
32072         Don't invoke AC_LIBOBJ.
32073         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
32075         dup2: Remove call-in from fchdir.m4.
32076         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
32077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
32079         fclose: Move AC_LIBOBJ invocation to module description.
32080         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
32081         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
32082         to 1.
32083         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
32085         fclose: Remove call-in from close.m4.
32086         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
32087         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
32089         close: Move AC_LIBOBJ invocation to module description.
32090         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
32091         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
32092         1.
32093         * modules/close (configure.ac): Invoke AC_LIBOBJ.
32095         close: Remove call-in from fchdir.m4.
32096         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
32097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
32099         open: Move AC_LIBOBJ invocation to module description.
32100         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
32101         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
32102         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
32104         open: Remove call-in from fchdir.m4.
32105         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
32106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
32108         fchdir: Start to remove gl_REPLACE_* idiom.
32109         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
32110         (gl_FUNC_FCHDIR): Invoke it.
32112 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32114         * lib/ftell.c (ftell): Comment out cast.
32116         close: use gl_REPLACE_FCLOSE only if defined
32117         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
32118         is defined.  The close module doesn't depend on the fclose module
32119         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
32120         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
32121         I reproduced the problem with "./gnulib-tool --test close sys_socket".
32123 2011-07-24  Jim Meyering  <meyering@redhat.com>
32125         test-select.h: avoid warning when using gcc's -Wmissing-declarations
32126         * tests/test-select.h (test_function): Declare as "static".
32128 2011-07-24  Bruno Haible  <bruno@clisp.org>
32130         doc: Mention the effects of AC_SYS_LARGEFILE.
32131         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
32132         on this function.
32133         * doc/posix-functions/aio_error.texi: Likewise.
32134         * doc/posix-functions/aio_fsync.texi: Likewise.
32135         * doc/posix-functions/aio_read.texi: Likewise.
32136         * doc/posix-functions/aio_return.texi: Likewise.
32137         * doc/posix-functions/aio_suspend.texi: Likewise.
32138         * doc/posix-functions/aio_write.texi: Likewise.
32139         * doc/posix-functions/fgetpos.texi: Likewise.
32140         * doc/posix-functions/fopen.texi: Likewise.
32141         * doc/posix-functions/freopen.texi: Likewise.
32142         * doc/posix-functions/fsetpos.texi: Likewise.
32143         * doc/posix-functions/fstatvfs.texi: Likewise.
32144         * doc/posix-functions/ftruncate.texi: Likewise.
32145         * doc/posix-functions/ftw.texi: Likewise.
32146         * doc/posix-functions/getrlimit.texi: Likewise.
32147         * doc/posix-functions/glob.texi: Likewise.
32148         * doc/posix-functions/lio_listio.texi: Likewise.
32149         * doc/posix-functions/lockf.texi: Likewise.
32150         * doc/posix-functions/mkstemp.texi: Likewise.
32151         * doc/posix-functions/mmap.texi: Likewise.
32152         * doc/posix-functions/nftw.texi: Likewise.
32153         * doc/posix-functions/openat.texi: Likewise.
32154         * doc/posix-functions/opendir.texi: Likewise.
32155         * doc/posix-functions/posix_fadvise.texi: Likewise.
32156         * doc/posix-functions/posix_fallocate.texi: Likewise.
32157         * doc/posix-functions/pread.texi: Likewise.
32158         * doc/posix-functions/pwrite.texi: Likewise.
32159         * doc/posix-functions/readdir.texi: Likewise.
32160         * doc/posix-functions/readdir_r.texi: Likewise.
32161         * doc/posix-functions/rewinddir.texi: Likewise.
32162         * doc/posix-functions/scandir.texi: Likewise.
32163         * doc/posix-functions/seekdir.texi: Likewise.
32164         * doc/posix-functions/setrlimit.texi: Likewise.
32165         * doc/posix-functions/statvfs.texi: Likewise.
32166         * doc/posix-functions/telldir.texi: Likewise.
32167         * doc/posix-functions/tmpfile.texi: Likewise.
32168         * doc/posix-functions/truncate.texi: Likewise.
32169         * doc/glibc-functions/fallocate.texi: Likewise.
32170         * doc/glibc-functions/fstatfs.texi: Likewise.
32171         * doc/glibc-functions/fts_children.texi: Likewise.
32172         * doc/glibc-functions/fts_read.texi: Likewise.
32173         * doc/glibc-functions/getdirentries.texi: Likewise.
32174         * doc/glibc-functions/mkostemp.texi: Likewise.
32175         * doc/glibc-functions/mkostemps.texi: Likewise.
32176         * doc/glibc-functions/mkstemps.texi: Likewise.
32177         * doc/glibc-functions/preadv.texi: Likewise.
32178         * doc/glibc-functions/pwritev.texi: Likewise.
32179         * doc/glibc-functions/sendfile.texi: Likewise.
32180         * doc/glibc-functions/statfs.texi: Likewise.
32182 2011-07-24  Bruno Haible  <bruno@clisp.org>
32184         doc: Fix typo.
32185         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
32187 2011-07-24  Bruno Haible  <bruno@clisp.org>
32189         doc: Mention fsusage.
32190         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
32192 2011-07-24  Bruno Haible  <bruno@clisp.org>
32194         doc: Mention new glibc headers and functions.
32195         * doc/glibc-headers/gshadow.texi: New file.
32196         * doc/glibc-functions/endsgent.texi: New file.
32197         * doc/glibc-functions/fgetsgent.texi: New file.
32198         * doc/glibc-functions/fgetsgent_r.texi: New file.
32199         * doc/glibc-functions/getsgent.texi: New file.
32200         * doc/glibc-functions/getsgent_r.texi: New file.
32201         * doc/glibc-functions/getsgnam.texi: New file.
32202         * doc/glibc-functions/getsgnam_r.texi: New file.
32203         * doc/glibc-functions/putsgent.texi: New file.
32204         * doc/glibc-functions/setsgent.texi: New file.
32205         * doc/glibc-functions/sgetsgent.texi: New file.
32206         * doc/glibc-functions/sgetsgent_r.texi: New file.
32207         * doc/glibc-functions/malloc_info.texi: New file.
32208         * doc/glibc-functions/preadv.texi: New file.
32209         * doc/glibc-functions/pwritev.texi: New file.
32210         * doc/glibc-functions/register_printf_modifier.texi: New file.
32211         * doc/glibc-functions/register_printf_specifier.texi: New file.
32212         * doc/glibc-functions/register_printf_type.texi: New file.
32213         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
32214         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
32215         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
32216         * doc/glibc-functions/pthread_getname_np.texi: New file.
32217         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
32218         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
32219         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
32220         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
32221         * doc/glibc-functions/pthread_setname_np.texi: New file.
32222         * doc/glibc-functions/pthread_sigqueue.texi: New file.
32223         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
32224         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
32225         * doc/glibc-functions/qsort_r.texi: New file.
32226         * doc/glibc-functions/quick_exit.texi: New file.
32227         * doc/glibc-functions/syncfs.texi: New file.
32228         * doc/gnulib.texi: Include them.
32229         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
32230         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
32231         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
32232         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
32233         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
32234         * doc/glibc-functions/execvpe.texi: Likewise.
32236 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32238         ftell: don't include <unistd.h>
32239         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
32240         guaranteed to define off_t, and the ftell module depends on the
32241         stdio module.
32243         ftell: do not assume wraparound signed arithmetic
32244         * lib/ftell.c: Include <limits.h>.
32245         (ftell): Don't assume wraparound signed arithmetic.
32247 2011-07-24  Bruno Haible  <bruno@clisp.org>
32249         close: No longer depend on module 'fclose'.
32250         * modules/close (Depends-on): Remove fclose.
32251         * NEWS: Mention the change.
32252         Suggested by Sam Steingold <sds@gnu.org>.
32254 2011-07-24  Bruno Haible  <bruno@clisp.org>
32256         fsusage: Enable large volume support on AIX >= 5.2.
32257         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
32258         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
32259         instead of STAT_STATVFS.
32260         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
32262         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
32263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
32264         f_blocks field only on MacOS X.
32266         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
32267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
32268         * modules/fsusage (Depends-on): Add largefile.
32270 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32272         * README: Modernize discussion of signed integers.
32273         Assuming overflow wraparound is no longer safe.
32274         Mention ones' complement and signed magnitude.
32276 2011-07-22  Bruno Haible  <bruno@clisp.org>
32278         select tests, pselect tests: Refactor.
32279         * tests/test-select.h: New file, extracted from tests/test-select.c.
32280         (select_fn): New type.
32281         (test, do_select, do_select_nowait, do_select_wait, test_tty,
32282         test_connect_first, test_accept_first, test_pair, test_socket_pair,
32283         test_pipe): Add my_select argument.
32284         (test_function): Renamed from main. Add my_select argument.
32285         * tests/test-select.c: Move most code to tests/test-select.h. Include
32286         test-select.h.
32287         * modules/select-tests (Files): Add tests/test-select.h.
32288         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
32289         (my_select, main): New functions.
32290         * modules/pselect-tests (Files): Add tests/test-select.h,
32291         tests/macros.h, tests/signature.h.
32292         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
32293         (configure.ac): Check for <sys/wait.h>.
32295 2011-07-22  Bruno Haible  <bruno@clisp.org>
32297         sys_select tests: Check the signature of FD_*.
32298         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
32299         signature tests from here...
32300         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
32301         here.
32302         * modules/sys_select-tests (Files): Add tests/signature.h.
32304 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32306         largefile: new module, replacing large-inode
32307         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
32308         * MODULES.html.sh: Add largefile, remove large-inode.
32309         * modules/largefile, m4/largefile.m4: New files.
32310         * modules/large-inode, m4/large-inode.m4: Remove.
32312         fsusage: port to MacOS X 10.7 with 4 TiB file systems
32313         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
32314         implementations that use only 32 bits to count blocks.
32315         On typical hosts with 1024-byte blocks, this fails with file
32316         systems as small as 4 TiB.  Problem reported by Herb Wartens
32317         <http://debbugs.gnu.org/9140> and this should also fix a similar
32318         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
32320         large-inode: New module
32321         * MODULES.html.sh: Add it.
32322         * modules/large-inode, m4/large-inode.m4: New files.
32324         extensions: Enable extensions on MacOS X 10.5 and later.
32325         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
32327 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
32329         file-has-acl: use acl_extended_file_nofollow if available
32330         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
32331         (acl_extended_file): New macro.
32332         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
32333         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
32335 2011-07-21  Bruno Haible  <bruno@clisp.org>
32337         Declare system functions in a way that works with C++.
32338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
32339         declare fdopendir as extern "C".
32340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
32341         declare frexpl as extern "C".
32342         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
32343         declare gai_strerror as extern "C".
32344         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
32345         programs, declare gai_strerror as extern "C".
32346         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
32347         declare getlogin_r as extern "C".
32348         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
32349         as extern "C".
32350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
32351         declare ldexpl as extern "C".
32352         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
32353         as extern "C".
32354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
32355         program, declare getmntinfo as extern "C".
32356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
32357         stpncpy as extern "C".
32358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
32359         program, declare __xpg_strerror_r as extern "C".
32360         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
32361         strndup as extern "C".
32362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
32363         declare memset and bzero as extern "C".
32364         Reported by Sam Steingold <sds@gnu.org>.
32366 2011-07-12  Jim Meyering  <meyering@redhat.com>
32368         maint.mk: prohibit inclusion of "verify.h" without use
32369         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
32371 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32373         timer-time: A new module to check for timer_settime()
32374         * m4/timer_time.m4: Check for the posix function.
32375         * modules/timer-time: Add the new module.
32376         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
32377         Mention it.
32379 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
32380             Bruno Haible  <bruno@clisp.org>
32382         pthread_sigmask: assume POSIX threads if --avoid=threadlib
32383         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
32384         not defined, assume POSIX threads and look for pthread_sigmask in
32385         $LIBS, without changing $CPPFLAGS.
32387 2011-07-19  Bruno Haible  <bruno@clisp.org>
32389         strstr: Update cross-compilation guess.
32390         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
32391         CPUs, guess no, in view of glibc
32392         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
32393         Suggested by Eric Blake. Reported by Reuben Thomas.
32395 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32397         getopt-gnu: suppress core dumps from detection code
32398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
32399         to suppress core dumps that may well occur on glibc systems.
32400         * modules/getopt-gnu: Depend on nocrash.
32402 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32404         pthread_sigmask: ensure usleep is declared
32405         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
32406         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
32408 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32410         doc: Document NonStop portability issues.
32411         * doc/posix-functions/sigaction.texi (sigaction):
32412         * doc/posix-headers/signal.texi (signal.h):
32413         Document NonStop.  See Joachim Schmitz in
32414         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
32416 2011-07-15  Bruno Haible  <bruno@clisp.org>
32418         ffsl, ffsll: Avoid unportable behaviour.
32419         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
32421 2011-07-15  Bruno Haible  <bruno@clisp.org>
32423         ffs: More tests.
32424         * tests/test-ffs.c (NBITS): New macro.
32425         (main): Add more tests.
32426         * tests/test-ffsl.c (NBITS): New macro.
32427         (main): Add more tests.
32428         * tests/test-ffsll.c (NBITS): New macro.
32429         (main): Add more tests.
32431 2011-07-15  Eric Blake  <eblake@redhat.com>
32433         ffsl, ffsll: new modules
32434         * modules/ffsl: New file.
32435         * modules/ffsll: Likewise.
32436         * m4/ffsl.m4: Likewise.
32437         * m4/ffsll.m4: Likewise.
32438         * lib/ffsl.c: Likewise.
32439         * lib/ffsl.h: Likewise.
32440         * lib/ffsll.c: Likewise.
32441         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
32442         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
32443         * modules/string (Makefile.am): Substitute witnesses.
32444         * lib/strings.in.h (ffsl, ffsll): Declare.
32445         * modules/ffsl-tests: New test file.
32446         * modules/ffsll-tests: Likewise.
32447         * tests/test-ffsl.c: Likewise.
32448         * tests/test-ffsll.c: Likewise.
32449         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32450         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
32451         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
32453         ffs: fix m4 prerequisite
32454         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
32456         ffs: avoid undefined behavior
32457         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
32458         * tests/test-ffs.c (naive, main): Avoid signed shifts.
32459         Reported by Bruno Haible.
32461 2011-07-12  Bruno Haible  <bruno@clisp.org>
32463         pthread_sigmask: Rely on module 'threadlib'.
32464         * modules/pthread_sigmask (Depends-on): Add threadlib.
32465         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
32466         is defined.
32468 2011-07-12  Bruno Haible  <bruno@clisp.org>
32470         regex: Depend on module 'strcase'.
32471         * modules/regex (Depends-on): Add strcase, for strcasecmp().
32473 2011-07-12  Jim Meyering  <meyering@redhat.com>
32475         warn-on-use: fix typo in file name
32476         * modules/snippet/warn-on-use (Files): Correct file name:
32477         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
32479 2011-07-12  Bruno Haible  <bruno@clisp.org>
32481         strings: Document module.
32482         * doc/posix-headers/strings.texi: Mention module 'strings'.
32484 2011-07-12  Bruno Haible  <bruno@clisp.org>
32486         Rename module '_Noreturn' to 'snippet/_Noreturn'.
32487         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
32488         (Files, Makefile.am): Update.
32489         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
32490         * modules/stdlib (Depends-on): Update.
32492 2011-07-12  Bruno Haible  <bruno@clisp.org>
32494         * NEWS: Mention the changes.
32496         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
32497         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
32498         (Files, Makefile.am): Update.
32499         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
32500         * modules/arpa_inet (Depends-on): Update.
32501         * modules/ctype (Depends-on): Update.
32502         * modules/dirent (Depends-on): Update.
32503         * modules/fcntl-h (Depends-on): Update.
32504         * modules/glob (Depends-on): Update.
32505         * modules/iconv-h (Depends-on): Update.
32506         * modules/inttypes-incomplete (Depends-on): Update.
32507         * modules/langinfo (Depends-on): Update.
32508         * modules/locale (Depends-on): Update.
32509         * modules/math (Depends-on): Update.
32510         * modules/netdb (Depends-on): Update.
32511         * modules/poll-h (Depends-on): Update.
32512         * modules/pty (Depends-on): Update.
32513         * modules/search (Depends-on): Update.
32514         * modules/signal (Depends-on): Update.
32515         * modules/spawn (Depends-on): Update.
32516         * modules/stdio (Depends-on): Update.
32517         * modules/stdlib (Depends-on): Update.
32518         * modules/string (Depends-on): Update.
32519         * modules/strings (Depends-on): Update.
32520         * modules/sys_file (Depends-on): Update.
32521         * modules/sys_ioctl (Depends-on): Update.
32522         * modules/sys_select (Depends-on): Update.
32523         * modules/sys_socket (Depends-on): Update.
32524         * modules/sys_stat (Depends-on): Update.
32525         * modules/sys_time (Depends-on): Update.
32526         * modules/sys_times (Depends-on): Update.
32527         * modules/sys_utsname (Depends-on): Update.
32528         * modules/sys_wait (Depends-on): Update.
32529         * modules/termios (Depends-on): Update.
32530         * modules/time (Depends-on): Update.
32531         * modules/unistd (Depends-on): Update.
32532         * modules/wchar (Depends-on): Update.
32533         * modules/wctype-h (Depends-on): Update.
32534         * MODULES.html.sh (Support for building libraries and executables):
32535         Update.
32537         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
32538         * modules/snippet/unused-parameter: Renamed from
32539         modules/unused-parameter.
32540         (Files, Makefile.am): Update.
32541         * build-aux/snippet/unused-parameter.h: Renamed from
32542         build-aux/unused-parameter.h.
32543         * modules/selinux-h (Depends-on): Update.
32544         * modules/unistr/base (Depends-on): Update.
32545         * MODULES.html.sh (Core language properties): Update.
32547         Rename module 'link-warning' to 'snippet/link-warning'.
32548         * modules/snippet/link-warning: Renamed from modules/link-warning.
32549         (Files, Makefile.am): Update.
32550         * build-aux/snippet/link-warning.h: Renamed from
32551         build-aux/link-warning.h.
32552         * MODULES.html.sh (Support for building libraries and executables):
32553         Update.
32555         Rename module 'c++defs' to 'snippet/c++defs'.
32556         * modules/snippet/c++defs: Renamed from modules/c++defs.
32557         (Files, Makefile.am): Update.
32558         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
32559         * modules/arpa_inet (Depends-on): Update.
32560         * modules/ctype (Depends-on): Update.
32561         * modules/dirent (Depends-on): Update.
32562         * modules/fcntl-h (Depends-on): Update.
32563         * modules/glob (Depends-on): Update.
32564         * modules/iconv-h (Depends-on): Update.
32565         * modules/langinfo (Depends-on): Update.
32566         * modules/locale (Depends-on): Update.
32567         * modules/math (Depends-on): Update.
32568         * modules/netdb (Depends-on): Update.
32569         * modules/poll-h (Depends-on): Update.
32570         * modules/pty (Depends-on): Update.
32571         * modules/search (Depends-on): Update.
32572         * modules/signal (Depends-on): Update.
32573         * modules/spawn (Depends-on): Update.
32574         * modules/stdio (Depends-on): Update.
32575         * modules/stdlib (Depends-on): Update.
32576         * modules/string (Depends-on): Update.
32577         * modules/strings (Depends-on): Update.
32578         * modules/sys_ioctl (Depends-on): Update.
32579         * modules/sys_select (Depends-on): Update.
32580         * modules/sys_socket (Depends-on): Update.
32581         * modules/sys_stat (Depends-on): Update.
32582         * modules/sys_time (Depends-on): Update.
32583         * modules/sys_wait (Depends-on): Update.
32584         * modules/termios (Depends-on): Update.
32585         * modules/time (Depends-on): Update.
32586         * modules/unistd (Depends-on): Update.
32587         * modules/wchar (Depends-on): Update.
32588         * modules/wctype-h (Depends-on): Update.
32590         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
32591         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
32592         (Files, Makefile.am): Update.
32593         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32594         * modules/argv-iter (Depends-on): Update.
32595         * modules/arpa_inet (Depends-on): Update.
32596         * modules/dirent (Depends-on): Update.
32597         * modules/fcntl-h (Depends-on): Update.
32598         * modules/fnmatch (Depends-on): Update.
32599         * modules/getopt-posix (Depends-on): Update.
32600         * modules/glob (Depends-on): Update.
32601         * modules/iconv-h (Depends-on): Update.
32602         * modules/inttypes-incomplete (Depends-on): Update.
32603         * modules/locale (Depends-on): Update.
32604         * modules/math (Depends-on): Update.
32605         * modules/netdb (Depends-on): Update.
32606         * modules/search (Depends-on): Update.
32607         * modules/signal (Depends-on): Update.
32608         * modules/spawn (Depends-on): Update.
32609         * modules/stdio (Depends-on): Update.
32610         * modules/stdlib (Depends-on): Update.
32611         * modules/string (Depends-on): Update.
32612         * modules/strings (Depends-on): Update.
32613         * modules/sys_socket (Depends-on): Update.
32614         * modules/sys_stat (Depends-on): Update.
32615         * modules/sys_time (Depends-on): Update.
32616         * modules/sys_times (Depends-on): Update.
32617         * modules/sys_utsname (Depends-on): Update.
32618         * modules/time (Depends-on): Update.
32619         * modules/unistd (Depends-on): Update.
32620         * modules/wchar (Depends-on): Update.
32621         * MODULES.html.sh (Support for building libraries and executables):
32622         Update.
32624 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32626         Improvements on _Noreturn and related modules.
32628         modules/_Exit-tests: test _Noreturn too
32629         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32630         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32631         (main): Use them.
32633         stdnoreturn, stdnoreturn-tests: remove modules
32634         They're not needed here and a bit premature for use elsewhere.  See
32635         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32636         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32637         * tests/test-stdnoreturn.c: Remove files.
32638         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32639         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32640         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32641         and using noreturn.
32642         * modules/openat, modules/sigpipe-die, modules/xalloc:
32643         * modules/xmemdup0, modules/xstrtol:
32644         Remove dependency on stdnoreturn.
32646         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32647         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32648         Reparenthesize to avoid GCC warning.
32649         Support Microsoft's syntax.
32650         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32652         _Noreturn-tests: remove module
32653         * modules/_Noreturn-tests: Remove.
32654         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32655         * tests/test-_Noreturn.c: Remove.
32656         * tests/test-stdnoreturn.c: Merge from the old
32657         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32659 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32661         _Noreturn, stdnoreturn, and related modules.
32663         * top/maint.mk: Adjust to new noreturn support.
32664         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32665         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32667         xalloc: use stdnoreturn.h
32668         * lib/xalloc.h: Include <stdnoreturn.h>.
32669         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32670         * modules/xalloc (Depends-on): Add stdnoreturn.
32672         xstrtol: use stdnoreturn.h
32673         * lib/xstrtol.h: Include <stdnoreturn.h>.
32674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32675         * modules/xstrtol (Depends-on): Add stdnoreturn.
32677         xmemdup0: use stdnoreturn.h
32678         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32680         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32682         sigpipe-die: use stdnoreturn.h
32683         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32684         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32685         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32687         openat: use stdnoreturn.h
32688         * lib/openat.h: Include <stdnoreturn.h>.
32689         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32690         * modules/openat (Depends-on): Add stdnoreturn.
32692         * lib/openat-die.c (openat_save_fail): Modernize comment.
32694         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32696         * lib/glthread/thread.h: Modernize comment.
32698         obstack: use _Noreturn
32699         * lib/obstack.c (__attribute__): Remove macro.
32700         (print_and_abort): Use _Noreturn.
32702         c-stack: use _Noreturn
32703         * lib/c-stack.c (die, overflow_handler, segv_handler):
32704         Use _Noreturn rather than __attribute__((noreturn)).
32706         argmatch-tests, exclude_tests: use _Noreturn
32707         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32708         Remove.
32709         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32711         stdlib: use _Noreturn
32712         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32713         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32714         * modules/stdlib (Depends-on): Add _Noreturn.
32715         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32717         stdnoreturn-tests: new module
32718         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32720         stdnoreturn: new module
32721         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32722         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32724         _Noreturn-tests: new module
32725         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32727         _Noreturn: new module
32728         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32729         New section, mentioning it.
32730         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32732         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32734 2011-07-11  Eric Blake  <eblake@redhat.com>
32736         ffs: new module
32737         * modules/ffs: New file.
32738         * m4/ffs.m4: Likewise.
32739         * lib/ffs.c: Likewise.
32740         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32741         * modules/strings (Makefile.am): Substitute witness.
32742         (Depends-on): Add c++defs.
32743         * lib/strings.in.h (ffs): Declare.
32744         * modules/ffs-tests: New test file.
32745         * tests/test-ffs.c: Test new module.
32746         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32747         * doc/posix-functions/ffs.texi (ffs): Likewise.
32749         regex: avoid compiler warning
32750         * lib/regex.c (includes): Include <strings.h>, for use of
32751         strcasecmp in regcomp.c.
32752         Reported by Joachim Schmitz.
32754 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32756         stdint: respect system's intmax_t if INTMAX_MAX
32757         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
32758         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
32759         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
32760         long but int64_t is long long, and where we will clash with the
32761         system intmax_t if we override it.  See
32762         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
32763         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
32764         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
32765         similarly for UINTMAX_C.
32767 2011-07-08  Bruno Haible  <bruno@clisp.org>
32769         pthread_sigmask tests: Avoid a compiler warning.
32770         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
32771         non-zero.
32773         sigprocmask tests: A better way to avoid a compiler warning.
32774         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
32775         (main): Complain if system() returns non-zero.
32776         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
32778 2011-07-08  Bruno Haible  <bruno@clisp.org>
32780         pthread_sigmask: Work around IRIX bug.
32781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
32782         bug.
32783         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
32784         there may be unblocked pending signals.
32785         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
32787 2011-07-08  Bruno Haible  <bruno@clisp.org>
32789         pthread_sigmask: Work around Cygwin bug.
32790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
32791         bug.
32792         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
32793         the system's pthread_sigmask function.
32794         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
32796 2011-07-08  Bruno Haible  <bruno@clisp.org>
32798         pthread_sigmask: Work around bug in single-threaded implementation.
32799         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
32800         FreeBSD, HP-UX, Solaris bug.
32801         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
32802         * lib/pthread_sigmask.c: Include <stddef.h>.
32803         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
32804         the system's pthread_sigmask function.
32805         * modules/pthread_sigmask (configure.ac): Invoke
32806         gl_PREREQ_PTHREAD_SIGMASK.
32807         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
32808         HP-UX, Solaris.
32810 2011-07-08  Eric Blake  <eblake@redhat.com>
32812         test-sigprocmask: avoid compiler warning
32813         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
32814         * tests/test-sigprocmask.c (main): Use it to silence warning.
32815         Reported by Jim Meyering.
32817         test-snprintf: avoid compiler warning
32818         * tests/test-snprintf.c (main): Avoid shadowed declaration.
32819         * tests/test-vsnprintf.c (main): Likewise.
32820         Reported by Jim Meyering.
32822 2011-07-08  Bruno Haible  <bruno@clisp.org>
32824         Tests for module 'pthread_sigmask'.
32825         * modules/pthread_sigmask-tests: New file.
32826         * tests/test-pthread_sigmask1.c: New file, based on
32827         tests/test-sigprocmask.c.
32828         * tests/test-pthread_sigmask2.c: New file.
32830 2011-07-08  Jim Meyering  <meyering@redhat.com>
32832         test-getopt.h: avoid warning about an unused variable
32833         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
32835 2011-07-07  Jim Meyering  <meyering@redhat.com>
32837         maint: reduce list of files exempt from sc_prohibit_leading_TABs
32838         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
32839         now that it no longer contains leading TABs.
32840         Remove unused "url=FIXME" statement.
32842 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32844         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
32845         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32846         When gl_THREADLIB is not in use, assume that the POSIX sematics
32847         are desired.  This is better for Emacs, which uses POSIX semantics
32848         on GNUish and/or POSIXish platforms, and does not use threads at
32849         all otherwise.
32851         pthread_sigmask: fix typo when testing for libraries
32852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32853         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
32855 2011-07-08  Eric Blake  <eblake@redhat.com>
32857         fts: introduce FTS_NOATIME
32858         * lib/fts_.h (FTS_NOATIME): New bit flag.
32859         (FTS_OPTIONMASK): Adjust.
32860         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32861         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32863 2011-07-08  Bruno Haible  <bruno@clisp.org>
32865         Tests for module 'thread'.
32866         * modules/thread-tests: New file.
32867         * tests/test-thread_self.c: New file.
32868         * tests/test-thread_create.cc: New file.
32870 2011-07-08  Bruno Haible  <bruno@clisp.org>
32872         thread: Avoid gcc warnings when using gl_thread_self().
32873         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32874         'void *'.
32875         (gl_thread_self_pointer): Update.
32877 2011-07-07  Bruno Haible  <bruno@clisp.org>
32879         signal-c++-tests: Check declaration of pthread_sigmask.
32880         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32881         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32882         $(LIB_PTHREAD_SIGMASK).
32884 2011-07-07  Bruno Haible  <bruno@clisp.org>
32886         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32887         * lib/signal.in.h (pthread_sigmask): Override if
32888         REPLACE_PTHREAD_SIGMASK is 1.
32889         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32890         REPLACE_PTHREAD_SIGMASK.
32891         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32892         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32893         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32894         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32895         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32897 2011-07-07  Bruno Haible  <bruno@clisp.org>
32899         pthread_sigmask: Ensure declaration in <signal.h>.
32900         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32901         include <pthread.h>.
32902         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32903         problem.
32905 2011-07-07  Bruno Haible  <bruno@clisp.org>
32907         pthread_sigmask: Document the module.
32908         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32910 2011-07-07  Bruno Haible  <bruno@clisp.org>
32912         pthread_sigmask: Follow gnulib conventions.
32913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32914         gl_PTHREAD_SIGMASK.
32915         * modules/pthread_sigmask (configure.ac): Update.
32917 2011-07-07  Bruno Haible  <bruno@clisp.org>
32919         pthread_sigmask: Make declaration C++ safe.
32920         * lib/signal.in.h: In two special conditions, just do an #include_next.
32921         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32922         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
32923         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32924         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32925         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
32926         not REPLACE_PTHREAD_MASK.
32927         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
32928         not REPLACE_PTHREAD_MASK.
32929         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32931 2011-07-07  Bruno Haible  <bruno@clisp.org>
32933         pthread_sigmask: Fix return value.
32934         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
32935         * lib/pthread_sigmask.c: New file.
32936         * modules/pthread_sigmask (Files): Add it.
32937         (configure.ac): Invoke AC_LIBOBJ.
32939 2011-07-07  Eric Blake  <eblake@redhat.com>
32941         getopt: more portable argv creation
32942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
32943         const, use char arrays rather than strings.
32944         Suggested by Paul Eggert.
32946 2011-07-07  Bruno Haible  <bruno@clisp.org>
32948         Tests for module 'sigprocmask'.
32949         * modules/sigprocmask-tests: New file.
32950         * tests/test-sigprocmask.c: New file.
32952 2011-07-07  Bruno Haible  <bruno@clisp.org>
32954         float tests: Tweak.
32955         * tests/test-float.c (main): Tweak skip message.
32957 2011-07-07  Eric Blake  <eblake@redhat.com>
32959         getopt: avoid compiler warning during configure
32960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
32961         assigning string literals to non-const pointer.
32963         getopt-gnu: avoid crash in glibc getopt
32964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
32965         * tests/test-getopt.h (test_getopt): Enhance test.
32966         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32967         * doc/posix-functions/getopt.texi (getopt): Document it.
32968         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32969         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32970         Likewise.
32972 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32974         getopt: handle W; without long options in getopt [BZ #12922]
32975         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
32976         but no long options are defined, just return 'W'.
32978 2011-07-07  Bruno Haible  <bruno@clisp.org>
32980         Avoid literal tabs.
32981         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
32982         variable containing a tab instead of a literal tab.
32983         Reported by Jim Meyering.
32985 2011-07-07  Bruno Haible  <bruno@clisp.org>
32987         Comments.
32988         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
32990 2011-07-06  Bruno Haible  <bruno@clisp.org>
32992         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
32993         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
32994         <winsock2.h>.
32995         (rpl_fd_isset, FD_ISSET): New definitions, copied from
32996         lib/sys_socket.in.h.
32997         (close, gethostname): Hide declarations from <winsock2.h>.
32998         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32999         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
33000         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
33001         (select): Don't override if gnulib's <sys/select.h> was already
33002         included.
33003         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33004         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33005         setsockopt, shutdown, select): Tweak indentation.
33007 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33009         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
33010         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
33011         in an application that does not use the sys_select module.
33013 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
33015         poll: do not return 0 on timeout=-1
33016         * lib/poll.c: Loop with yield if no events occurred.
33018 2011-07-06  Eric Blake  <eblake@redhat.com>
33020         pthread_sigmask: always replace when not using pthread
33021         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
33022         replacement when using some threading other than pthread.  Fix
33023         logic bug.
33025 2011-07-06  Bruno Haible  <bruno@clisp.org>
33027         Comments.
33028         * m4/printf.m4: Update comments about mingw.
33030 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33032         sys_select: define sigset_t more portably
33033         * lib/sys_select.in.h: Always include <sys/types.h>, since
33034         we now need sigset_t and mingw defines it there.
33035         Include <signal.h> before split inclusion guard, to avoid
33036         mishaps on Solaris, whose <signal.h> eventually includes us.
33037         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
33038         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
33039         which come from ...
33040         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33041         gl_CHECK_TYPE_SIGSET_T.
33042         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
33043         does the real work.
33044         * modules/sys_select (Depends-on): Add 'signal'.
33046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
33047         Suggested by Bruno Haible.
33049         pselect: Use pthread_sigmask, not sigprocmask.
33050         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
33051         multithreaded apps better than sigprocmask does.
33052         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
33053         sigprocmask directly.
33055 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33057         * lib/pselect.c (pselect): Use plain name, without "rpl_".
33058         Don't #undef,  since we don't need any underlying pselect.
33059         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
33060         (Depends-on): Add select.
33061         (Link): Add $(LIBSOCKET).
33062         These changes suggested by Bruno Haible.
33064         pselect: document better
33065         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33066         * doc/posix-functions/pselect.texi (pselect): Document new module.
33068         pthread_sigmask: new module
33069         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33070         * doc/posix-functions/pthread_sigmask.texi: Document new module.
33071         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
33072         This is done only as a macro; I don't know how well that'll
33073         work for C++.  Move <sys/types.h> include before the include_next,
33074         to avoid mishap on Solaris.
33075         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
33076         * modules/signal (Makefile.am): Substitute the check's results.
33077         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
33079         test-pselect: new module
33080         * modules/pselect-tests, tests/test-pselect.c: New files.
33081         * tests/test-select.c, tests/test-sys_select-c++.cc:
33082         If TEST_PSELECT is defined, test pselect instead of testing select.
33084         * tests/test-sys_select.c (sigset_t): Test for it, too.
33085         Suggested by Bruno Haible.
33087 2011-07-05  Eric Blake  <eblake@redhat.com>
33089         snprintf: guarantee %1$d, for libintl
33090         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
33091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33092         * doc/posix-functions/snprintf.texi (snprintf): Update.
33093         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33094         * tests/test-snprintf.c (main): Enhance test.
33095         * tests/test-vsnprintf.c (main): Likewise.
33097 2011-07-05  Jim Meyering  <meyering@redhat.com>
33099         maint: exempt stdio-read.c and stdio-write.c from the cppi check
33100         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
33101         per Bruno's request, to accommodate this idiom (no space after "#")
33102         even when the function is inside an #if block:
33103         char *
33104         gets (char *s)
33105         #undef gets
33106         {
33107           ...
33108         }
33110 2011-07-04  Jim Meyering  <meyering@redhat.com>
33112         maint: indent with spaces, not TABs, and add a rule to check this
33113         * tests/test-userspec.c: Indent with spaces, not TABs.
33114         * tests/test-argp.c: Likewise.
33115         * tests/test-c-stack2.sh: Likewise.
33116         * tests/test-parse-duration.sh: Likewise
33117         * m4/strtod.m4: Likewise.
33118         * m4/alloca.m4: Likewise.
33119         * m4/pselect.m4: Likewise.
33120         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
33122 2011-07-03  Jim Meyering  <meyering@redhat.com>
33124         maint.mk: correct omissions in prohibit_argmatch_without_use check
33125         This rule would mistakenly report that argmatch.h is included without
33126         use even when both the argmatch and invalid_arg macro were used.
33127         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
33128         of argmatch and invalid_arg.
33130 2011-07-03  Bruno Haible  <bruno@clisp.org>
33132         Comments about EINTR.
33133         * lib/safe-read.h: Explain the purpose of this module.
33134         * lib/safe-write.h: Likewise.
33135         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
33136         module.
33137         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
33138         module.
33139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33141 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33143         xnanosleep: Rewrite to use new dtotimespec module.
33144         It has the conversion code that used to be in xnanosleep.
33145         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
33146         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
33147         (TIME_T_MAX): Remove.
33148         (xnanosleep): Rewrite in terms of dtotimespec.
33149         * modules/xnanosleep (Depends-on): Add dtotimespec.
33150         Remove intprops, stdbool.
33152         timespec-add, timespec-sub: new modules
33153         * lib/timespec.h (timespec_add, timespec_sub): New decls.
33154         * lib/timespec-add.c, lib/timespec-sub.c:
33155         * modules/timespec-add, modules/timespec-sub: New files.
33157         dtotimespec: new module
33158         * lib/timespec.h (dtotimespec): New decl.
33159         * lib/dtotimespec.c, modules/dtotimespec: New files.
33161         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
33163         pselect: new module
33164         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
33165         (pselect): New decls.
33166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
33167         since the standard pselect decl uses 'restrict'.
33168         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
33169         HAVE_PSELECT, REPLACE_PSELECT.
33170         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
33171         HAVE_PSELECT, REPLACE_PSELECT.
33172         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
33174         sys_select: don't depend on sys_socket
33175         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
33176         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
33177         This fix works on GNU and GNU-like platforms, but has not been tested
33178         on native Windows.
33179         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
33180         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
33181         gl_HEADER_SYS_SOCKET.
33182         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
33183         gl_PREREQ_SYS_H_WINSOCK2.
33185 2011-06-29  Eric Blake  <eblake@redhat.com>
33187         pipe2: fix C89 compile problem
33188         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
33189         Reported by Bruno Haible.
33191         pipe, pipe2: don't corrupt fd on error
33192         * lib/pipe.c (pipe): Leave fd unchanged on error.
33193         * lib/pipe2.c (pipe2): Likewise.
33194         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
33195         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33197 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
33199         mmap-anon: do not use regular expressions inadvertently
33200         * m4/mmap-anon.m4: Remove trailing period from strings sought
33201         in the output.
33203 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
33205         nanosleep: fix integer overflow problem
33206         * lib/nanosleep.c (my_usleep): Don't assume signed integer
33207         arithmetic wraps around on overflow.
33209         nanosleep: simplify carrying
33210         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
33211         first call to the underyling nanosleep, not for the last one.
33212         This doesn't fix any bugs, but it simplifies the computation of
33213         the remaining delay.  Found while auditing integer overflow issues.
33215         dup2: remove test for existence of fcntl
33216         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
33217         "#if HAVE_FCNTL", in the configure-time test program.
33218         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
33219         and therefore speeds up "configure" a bit.  Found while
33220         adding the dup2 module to Emacs.
33222 2011-06-24  Eric Blake  <eblake@redhat.com>
33224         maint.mk: enhance useless header checks
33225         * top/maint.mk (_sc_header_without_use): Check both include
33226         styles.
33227         (sc_prohibit_assert_without_use)
33228         (sc_prohibit_close_stream_without_use)
33229         (sc_prohibit_getopt_without_use)
33230         (sc_prohibit_quotearg_without_use)
33231         (sc_prohibit_quote_without_use)
33232         (sc_prohibit_long_options_without_use)
33233         (sc_prohibit_inttostr_without_use)
33234         (sc_prohibit_ignore_value_without_use)
33235         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
33236         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
33237         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
33238         (sc_prohibit_hash_pjw_without_use)
33239         (sc_prohibit_safe_read_without_use)
33240         (sc_prohibit_argmatch_without_use)
33241         (sc_prohibit_canonicalize_without_use)
33242         (sc_prohibit_root_dev_ino_without_use)
33243         (sc_prohibit_openat_without_use)
33244         (sc_prohibit_c_ctype_without_use)
33245         (sc_prohibit_signal_without_use)
33246         (sc_prohibit_stdio--_without_use)
33247         (sc_prohibit_stdio-safer_without_use)
33248         (sc_prohibit_strings_without_use)
33249         (sc_prohibit_intprops_without_use)
33250         (sc_prohibit_stddef_without_use)
33251         (sc_prohibit_xfreopen_without_use): Update clients.
33253 2011-06-24  Jim Meyering  <meyering@redhat.com>
33255         syntax-check: keep one maint.mk rule in sync with its header
33256         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
33257         of the bug Eric has just fixed, with today's commit 25e4c2ec.
33258         I prefer to avoid temporary files here, so use <(...), but that
33259         is not supported by /bin/sh, so...
33260         (SHELL): Define to /bin/bash.
33262 2011-06-24  Eric Blake  <eblake@redhat.com>
33264         maint.mk: update sc_prohibit_intprops_without_use
33265         * top/maint.mk (_intprops_names): Match recent changes.
33267 2011-06-24  Bruno Haible  <bruno@clisp.org>
33269         strerror-override: No-op tweak.
33270         * lib/strerror-override.h (strerror_override): Reorder conditions,
33271         for consistency with lib/strerror-override.c.
33273 2011-06-23  Eric Blake  <eblake@redhat.com>
33275         maint.mk: test further PATH_MAX issues
33276         * top/maint.mk (sc_prohibit_path_max_array): Rename...
33277         (sc_prohibit_path_max_allocation): ...and also test alloca.
33278         Suggested by Jim Meyering.
33280 2011-06-22  Eric Blake  <eblake@redhat.com>
33282         maint.mk: add syntax-check to avoid char[PATH_MAX]
33283         * top/maint.mk (sc_prohibit_path_max_array): New rule.
33285         stat: be robust to PATH_MAX definition
33286         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
33287         * modules/stat (Depends-on): Add verify.
33289         link: work around IRIX bug
33290         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
33291         * lib/link.c (rpl_link): Work around it.
33292         * tests/test-link.h (test_link): Enhance test.
33293         * doc/posix-functions/link.texi (link): Document the bug.
33295         getopt: silence clang warning
33296         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
33297         dereference.
33298         Reported by Gustavo Martin Domato.
33300 2011-06-22  Jim Meyering  <meyering@redhat.com>
33302         bootstrap: do not insert a blank line into each .gitignore file
33303         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
33305 2011-06-21  Eric Blake  <eblake@redhat.com>
33307         perror: test for output mismatch
33308         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
33309         perror on IRIX.
33311         strerror_r: fix OpenBSD behavior on out-of-range
33312         * lib/strerror_r.c (strerror_r): Always use maximal string.
33313         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33315         strerror_r: fix OpenBSD behavior on 0
33316         * lib/strerror-override.c (strerror_override): Also override 0
33317         when needed.
33318         * lib/strerror-override.h (strerror_override): Likewise.
33319         * lib/strerror.c (strerror): Simplify, now that 0 override is done
33320         earlier.
33321         * lib/strerror_r.c (strerror_r): Likewise.
33322         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
33323         behavior...
33324         (gl_FUNC_STRERROR_0): ...into new macro.
33325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
33326         is overridden.
33327         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
33328         * modules/strerror-override (Files): Add strerror.m4.
33329         (configure.ac): Also provide override for 0 when needed.
33330         * doc/posix-functions/strerror.texi (strerror): Document this.
33331         * doc/posix-functions/perror.texi (perror): Likewise.
33333         perror: adjust array size
33334         * modules/perror (Depends-on): Add strerror-override.
33335         * lib/perror.c (perror): Use it to avoid magic number.
33337         strerror-override: reduce size
33338         * lib/strerror-override.c (strerror_override): Use fewer lines.
33340 2011-06-20  Bruno Haible  <bruno@clisp.org>
33342         pathmax: Ensure correct value for PATH_MAX on HP-UX.
33343         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
33345 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33347         alloca: port to compilers that can optimize like GCC 4.6.0
33348         * lib/alloca.c (find_stack_direction): New signature, taken from
33349         Autoconf git.  This works with GCC 4.6.0.  This code should never
33350         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
33351         be used with other compilers that optimize as well as GCC 4.6.0 does.
33352         (alloca): Adjust to new signature.
33353         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
33354         New macro, which patches Autoconf in a similar way.
33356         c-stack: stop worrying about stack direction
33357         * lib/c-stack.c (find_stack_direction): Remove.
33358         (segv_handler): Don't worry about stack direction growth, as it's
33359         too much of a pain to configure this correctly, given how compilers
33360         are optimizing-away our stack-growth detection code.  Instead, assume
33361         that any access to just before or just after the stack is OK.
33362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33363         Don't require AC_FUNC_ALLOCA; no longer needed.
33365 2011-06-20  Eric Blake  <eblake@redhat.com>
33367         test-stat: don't allocate PATH_MAX bytes
33368         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
33369         PATH_MAX-sized buffer.
33370         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
33371         * modules/stat-tests (Depends-on): Likewise.
33372         * tests/test-fstatat.c (includes): Drop pathmax.h.
33373         * tests/test-stat.c (includes): Likewise.
33374         Reported by Bruno Haible.
33376 2011-06-20  Bruno Haible  <bruno@clisp.org>
33378         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
33379         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
33380         * lib/float.c: New file.
33381         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
33382         REPLACE_FLOAT_LDBL.
33383         * modules/float (Files): Add lib/float.c.
33384         (configure.ac): Invoke AC_LIBOBJ.
33385         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
33387 2011-06-20  Bruno Haible  <bruno@clisp.org>
33389         Tests for module 'float'.
33390         * modules/float-tests: New file.
33391         * tests/test-float.c: New file.
33393 2011-06-19  Bruno Haible  <bruno@clisp.org>
33395         isinf: Coding style.
33396         * lib/isinf.c: Use GNU coding style.
33398 2011-06-19  Bruno Haible  <bruno@clisp.org>
33400         linkat test: Avoid test failure on AIX 7.1.
33401         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
33402         * tests/test-link.h (test_link): Likewise.
33404 2011-06-19  Bruno Haible  <bruno@clisp.org>
33406         pread test: Avoid test failure on OpenBSD 4.9.
33407         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
33409 2011-06-19  Bruno Haible  <bruno@clisp.org>
33411         sprintf-posix: Fix test failure on AIX 7.1.
33412         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
33413         * doc/posix-functions/dprintf.texi: Mention limited precision problem
33414         on AIX.
33415         * doc/posix-functions/fprintf.texi: Likewise.
33416         * doc/posix-functions/printf.texi: Likewise.
33417         * doc/posix-functions/snprintf.texi: Likewise.
33418         * doc/posix-functions/sprintf.texi: Likewise.
33419         * doc/posix-functions/vdprintf.texi: Likewise.
33420         * doc/posix-functions/vfprintf.texi: Likewise.
33421         * doc/posix-functions/vprintf.texi: Likewise.
33422         * doc/posix-functions/vsnprintf.texi: Likewise.
33423         * doc/posix-functions/vsprintf.texi: Likewise.
33425 2011-06-19  Bruno Haible  <bruno@clisp.org>
33427         roundl-ieee: Fix test failure on AIX 7.1.
33428         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
33429         * doc/posix-functions/roundl.texi: Mention problem with negative
33430         arguments.
33432 2011-06-19  Bruno Haible  <bruno@clisp.org>
33434         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33435         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
33436         * doc/posix-functions/round.texi: Mention problem with negative
33437         arguments.
33438         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
33440 2011-06-19  Bruno Haible  <bruno@clisp.org>
33442         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
33444         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
33445         * doc/posix-functions/roundf.texi: Mention problem with negative
33446         arguments.
33447         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
33449 2011-06-19  Bruno Haible  <bruno@clisp.org>
33451         ceilf-ieee: Work around bug on MacOS X 10.5.
33452         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
33454         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
33455         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
33456         IEEE compliant, avoid compiler optimizations.
33457         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
33458         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33459         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
33460         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33461         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33462         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33463         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33464         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33465         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33468 2011-06-19  Bruno Haible  <bruno@clisp.org>
33470         ceilf-ieee: Work around bug on AIX 7.1.
33471         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
33472         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
33474 2011-06-19  Bruno Haible  <bruno@clisp.org>
33476         ceil-ieee: Work around bug on AIX 7.1.
33477         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
33478         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
33480 2011-06-18  Bruno Haible  <bruno@clisp.org>
33482         fsync test: Avoid test failure on MacOS X and AIX.
33483         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
33484         EINVAL.
33486 2011-06-18  Bruno Haible  <bruno@clisp.org>
33488         openat, fdopendir tests: Fix link errors.
33489         * modules/openat-tests (Depends-on): Add progname.
33490         * modules/fdopendir-tests (Depends-on): Likewise.
33491         * tests/test-fchownat.c: Include progname.h.
33492         (main): Call set_program_name.
33493         * tests/test-fstatat.c: Include progname.h.
33494         (main): Call set_program_name.
33495         * tests/test-mkdirat.c: Include progname.h.
33496         (main): Call set_program_name.
33497         * tests/test-openat.c: Include progname.h.
33498         (main): Call set_program_name.
33499         * tests/test-unlinkat.c: Include progname.h.
33500         (main): Call set_program_name.
33501         * tests/test-fdopendir.c: Include progname.h.
33502         (main): Call set_program_name.
33504 2011-06-18  Bruno Haible  <bruno@clisp.org>
33506         Doc update.
33507         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
33508         HP-UX.
33509         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
33511 2011-06-18  Bruno Haible  <bruno@clisp.org>
33513         getcwd tests: Avoid compilation error on HP-UX 11.31.
33514         * modules/getcwd-tests (Depends-on): Add pathmax.
33515         * tests/test-getcwd.c: Include pathmax.h.
33517 2011-06-18  Bruno Haible  <bruno@clisp.org>
33519         isfinite, isinf: Fix link error on AIX 6 and 7.
33520         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
33521         needed, also test the macro with a 'float' argument.
33522         * m4/isinf.m4 (gl_ISINF): Likewise.
33524 2011-06-18  Bruno Haible  <bruno@clisp.org>
33526         getloadavg: Don't clobber LIBS. Regression from previous commit.
33527         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
33528         AC_CHECK_LIB from here...
33529         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
33530         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
33531         gl_func_getloadavg_done.
33532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33534 2011-06-18  Bruno Haible  <bruno@clisp.org>
33536         clean-temp: Improve documentation.
33537         * lib/clean-temp.h: Explain better how to use this module.
33538         Reported by John Darrington <john@darrington.wattle.id.au>.
33540 2011-06-17  Bruno Haible  <bruno@clisp.org>
33542         pread, pwrite: Avoid cc warning on AIX.
33543         * lib/unistd.in.h (pread): Undefine before defining as a macro.
33544         (pwrite): Likewise.
33546 2011-06-17  Bruno Haible  <bruno@clisp.org>
33548         spawn-pipe tests: Fix link error.
33549         * tests/test-spawn-pipe-child.c: Undefine fprintf.
33550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33552 2011-06-17  Bruno Haible  <bruno@clisp.org>
33554         Tests: Remove unnecessary dependency.
33555         * modules/canonicalize-tests (Depends-on): Remove progname.
33556         * modules/chown-tests (Depends-on): Likewise.
33557         * modules/dirname-tests (Depends-on): Likewise.
33558         * modules/fdopendir-tests (Depends-on): Likewise.
33559         * modules/fdutimensat-tests (Depends-on): Likewise.
33560         * modules/hash-tests (Depends-on): Likewise.
33561         * modules/lchown-tests (Depends-on): Likewise.
33562         * modules/linkat-tests (Depends-on): Likewise.
33563         * modules/renameat-tests (Depends-on): Likewise.
33564         * modules/spawn-pipe-tests (Depends-on): Likewise.
33565         * modules/utimensat-tests (Depends-on): Likewise.
33567 2011-06-17  Bruno Haible  <bruno@clisp.org>
33569         spawn-pipe tests: Fix link error.
33570         * tests/test-spawn-pipe-child.c: Undefine fflush.
33572 2011-06-17  Bruno Haible  <bruno@clisp.org>
33574         Fix tests link errors.
33575         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
33576         * modules/chown-tests (Makefile.am): Don't link test-chown with
33577         LIBINTL.
33578         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
33579         LIBINTL.
33580         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
33581         LIBINTL.
33582         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
33583         LIBINTL.
33585 2011-06-16  Bruno Haible  <bruno@clisp.org>
33587         crypto/gc-sha1: Fix recent regression.
33588         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
33589         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
33591         crypto/gc-md5: Fix recent regression.
33592         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33594         crypto/gc-md4: Fix recent regression.
33595         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33596         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33598         crypto/gc-arctwo: Fix recent regression.
33599         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33600         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33602         crypto/gc-rijndael: Fix recent regression.
33603         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33604         (configure.ac): Invoke AC_LIBOBJ here.
33605         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33608         crypto/gc-hmac-sha1: Fix recent regression.
33609         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33610         (configure.ac): Invoke AC_LIBOBJ here.
33611         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33614         crypto/gc-hmac-md5: Fix recent regression.
33615         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33616         (configure.ac): Invoke AC_LIBOBJ here.
33617         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33620         crypto/gc-des: Fix recent regression.
33621         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33622         (configure.ac): Invoke AC_LIBOBJ here.
33623         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33626         crypto/gc-arcfour: Fix recent regression.
33627         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33628         (configure.ac): Invoke AC_LIBOBJ here.
33629         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33632 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33634         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33635         After the 2011-05-21 change, this macro requires
33636         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33639 2011-06-16  Bruno Haible  <bruno@clisp.org>
33641         fprintftime: Move AC_LIBOBJ invocations to module description.
33642         * m4/fprintftime.m4: Remove file.
33643         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33644         (configure.ac): Remove gl_FPRINTFTIME call.
33645         (Makefile.am): Augment lib_SOURCES.
33646         Reported by Jim Meyering.
33648 2011-06-16  Bruno Haible  <bruno@clisp.org>
33650         tmpfile-safer: Finish 2011-05-23 commit.
33651         * m4/stdio-safer.m4: Really remove file.
33652         Reported by Jim Meyering.
33654 2011-06-16  Bruno Haible  <bruno@clisp.org>
33656         syntax-check: Fix typo.
33657         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33658         printf-posix.m4.
33659         Reported by Jim Meyering.
33661 2011-06-13  Jim Meyering  <meyering@redhat.com>
33663         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33664         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33666 2011-05-23  Bruno Haible  <bruno@clisp.org>
33668         yesno: Move AC_LIBOBJ invocations to module description.
33669         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33670         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33672 2011-05-23  Bruno Haible  <bruno@clisp.org>
33674         xstrtol: Move AC_LIBOBJ invocations to module description.
33675         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33676         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33678 2011-05-23  Bruno Haible  <bruno@clisp.org>
33680         xstrtold: Move AC_LIBOBJ invocations to module description.
33681         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33682         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33684 2011-05-23  Bruno Haible  <bruno@clisp.org>
33686         xstrtod: Move AC_LIBOBJ invocations to module description.
33687         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33688         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33690 2011-05-23  Bruno Haible  <bruno@clisp.org>
33692         xnanosleep: Move AC_LIBOBJ invocations to module description.
33693         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33694         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33696 2011-05-23  Bruno Haible  <bruno@clisp.org>
33698         xgetcwd: Move AC_LIBOBJ invocations to module description.
33699         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33700         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33702 2011-05-23  Bruno Haible  <bruno@clisp.org>
33704         xalloc: Move AC_LIBOBJ invocations to module description.
33705         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33706         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33708 2011-05-23  Bruno Haible  <bruno@clisp.org>
33710         write-any-file: Move AC_LIBOBJ invocations to module description.
33711         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33712         invocation.
33713         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33715 2011-05-23  Bruno Haible  <bruno@clisp.org>
33717         utimens: Move AC_LIBOBJ invocations to module description.
33718         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33719         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33721 2011-05-23  Bruno Haible  <bruno@clisp.org>
33723         utimecmp: Move AC_LIBOBJ invocations to module description.
33724         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33725         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33727 2011-05-23  Bruno Haible  <bruno@clisp.org>
33729         userspec: Move AC_LIBOBJ invocations to module description.
33730         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33731         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33733 2011-05-23  Bruno Haible  <bruno@clisp.org>
33735         unlinkdir: Move AC_LIBOBJ invocations to module description.
33736         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33737         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33739 2011-05-23  Bruno Haible  <bruno@clisp.org>
33741         unistd-safer: Move AC_LIBOBJ invocations to module description.
33742         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33743         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
33745 2011-05-23  Bruno Haible  <bruno@clisp.org>
33747         tempname: Move AC_LIBOBJ invocations to module description.
33748         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
33749         * modules/tempname (Makefile.am): Augment lib_SOURCES.
33751 2011-05-23  Bruno Haible  <bruno@clisp.org>
33753         strftime: Move AC_LIBOBJ invocations to module description.
33754         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
33755         * modules/strftime (Makefile.am): Augment lib_SOURCES.
33757 2011-05-23  Bruno Haible  <bruno@clisp.org>
33759         stdlib-safer: Move AC_LIBOBJ invocations to module description.
33760         * m4/stdlib-safer.m4: Remove file.
33761         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
33762         (configure.ac): Remove gl_STDLIB_SAFER call.
33763         (Makefile.am): Augment lib_SOURCES.
33765 2011-05-23  Bruno Haible  <bruno@clisp.org>
33767         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
33768         * m4/stdio-safer.m4: Remove file.
33769         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
33770         (configure.ac): Remove gl_TMPFILE_SAFER call.
33771         (Makefile.am): Augment lib_SOURCES.
33773 2011-05-23  Bruno Haible  <bruno@clisp.org>
33775         popen-safer: Move AC_LIBOBJ invocations to module description.
33776         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
33777         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
33778         (configure.ac): Remove gl_POPEN_SAFER call.
33779         (Makefile.am): Augment lib_SOURCES.
33781 2011-05-23  Bruno Haible  <bruno@clisp.org>
33783         freopen-safer: Move AC_LIBOBJ invocations to module description.
33784         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
33785         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
33786         (configure.ac): Remove gl_FREOPEN_SAFER call.
33787         (Makefile.am): Augment lib_SOURCES.
33789 2011-05-23  Bruno Haible  <bruno@clisp.org>
33791         fopen-safer: Move AC_LIBOBJ invocations to module description.
33792         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
33793         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
33794         (configure.ac): Remove gl_FOPEN_SAFER call.
33795         (Makefile.am): Augment lib_SOURCES.
33797 2011-05-23  Bruno Haible  <bruno@clisp.org>
33799         crypto/sha512: Move AC_LIBOBJ invocations to module description.
33800         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
33801         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
33803 2011-05-23  Bruno Haible  <bruno@clisp.org>
33805         crypto/sha256: Move AC_LIBOBJ invocations to module description.
33806         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
33807         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
33809 2011-05-23  Bruno Haible  <bruno@clisp.org>
33811         crypto/sha1: Move AC_LIBOBJ invocations to module description.
33812         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
33813         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
33815 2011-05-23  Bruno Haible  <bruno@clisp.org>
33817         settime: Move AC_LIBOBJ invocations to module description.
33818         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
33819         * modules/settime (Makefile.am): Augment lib_SOURCES.
33821 2011-05-23  Bruno Haible  <bruno@clisp.org>
33823         savedir: Move AC_LIBOBJ invocations to module description.
33824         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
33825         * modules/savedir (Makefile.am): Augment lib_SOURCES.
33827 2011-05-23  Bruno Haible  <bruno@clisp.org>
33829         save-cwd: Move AC_LIBOBJ invocations to module description.
33830         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
33831         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
33833 2011-05-23  Bruno Haible  <bruno@clisp.org>
33835         same: Move AC_LIBOBJ invocations to module description.
33836         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
33837         * modules/same (Makefile.am): Augment lib_SOURCES.
33839 2011-05-23  Bruno Haible  <bruno@clisp.org>
33841         safe-write: Move AC_LIBOBJ invocations to module description.
33842         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
33843         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
33844         instead of gl_SAFE_WRITE.
33845         (Makefile.am): Augment lib_SOURCES.
33847 2011-05-23  Bruno Haible  <bruno@clisp.org>
33849         safe-read: Move AC_LIBOBJ invocations to module description.
33850         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
33851         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
33852         of gl_SAFE_READ.
33853         (Makefile.am): Augment lib_SOURCES.
33855 2011-05-23  Bruno Haible  <bruno@clisp.org>
33857         safe-alloc: Move AC_LIBOBJ invocations to module description.
33858         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33859         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33861 2011-05-23  Bruno Haible  <bruno@clisp.org>
33863         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33864         * m4/rijndael.m4: Remove file.
33865         * modules/crypto/rijndael (Files): Remove it.
33866         (configure.ac): Remove gl_RIJNDAEL call.
33867         (Makefile.am): Augment lib_SOURCES.
33869 2011-05-23  Bruno Haible  <bruno@clisp.org>
33871         readtokens: Move AC_LIBOBJ invocations to module description.
33872         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33873         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33875 2011-05-23  Bruno Haible  <bruno@clisp.org>
33877         read-file: Move AC_LIBOBJ invocations to module description.
33878         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33879         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33880         of gl_FUNC_READ_FILE.
33881         (Makefile.am): Augment lib_SOURCES.
33883 2011-05-23  Bruno Haible  <bruno@clisp.org>
33885         quotearg: Move AC_LIBOBJ invocations to module description.
33886         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33887         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33889 2011-05-23  Bruno Haible  <bruno@clisp.org>
33891         quote: Move AC_LIBOBJ invocations to module description.
33892         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33893         * modules/quote (Makefile.am): Augment lib_SOURCES.
33895 2011-05-23  Bruno Haible  <bruno@clisp.org>
33897         posixver: Move AC_LIBOBJ invocations to module description.
33898         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33899         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33901 2011-05-23  Bruno Haible  <bruno@clisp.org>
33903         posixtm: Move AC_LIBOBJ invocations to module description.
33904         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33905         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33907 2011-05-23  Bruno Haible  <bruno@clisp.org>
33909         physmem: Move AC_LIBOBJ invocations to module description.
33910         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33911         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33913 2011-05-23  Bruno Haible  <bruno@clisp.org>
33915         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33916         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33917         invocation.
33918         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
33920 2011-05-23  Bruno Haible  <bruno@clisp.org>
33922         mpsort: Move AC_LIBOBJ invocations to module description.
33923         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
33924         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
33926 2011-05-23  Bruno Haible  <bruno@clisp.org>
33928         modechange: Move AC_LIBOBJ invocations to module description.
33929         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
33930         * modules/modechange (Makefile.am): Augment lib_SOURCES.
33932 2011-05-23  Bruno Haible  <bruno@clisp.org>
33934         mkdir-p: Move AC_LIBOBJ invocations to module description.
33935         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
33936         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
33938 2011-05-23  Bruno Haible  <bruno@clisp.org>
33940         mkancesdirs: Move AC_LIBOBJ invocations to module description.
33941         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
33942         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
33944 2011-05-23  Bruno Haible  <bruno@clisp.org>
33946         mgetgroups: Move AC_LIBOBJ invocations to module description.
33947         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
33948         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
33950 2011-05-23  Bruno Haible  <bruno@clisp.org>
33952         memxor: Move AC_LIBOBJ invocations to module description.
33953         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
33954         * modules/memxor (Makefile.am): Augment lib_SOURCES.
33956 2011-05-23  Bruno Haible  <bruno@clisp.org>
33958         memcoll: Move AC_LIBOBJ invocations to module description.
33959         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
33960         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
33962 2011-05-23  Bruno Haible  <bruno@clisp.org>
33964         memcasecmp: Move AC_LIBOBJ invocations to module description.
33965         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
33966         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
33968 2011-05-23  Bruno Haible  <bruno@clisp.org>
33970         crypto/md5: Move AC_LIBOBJ invocations to module description.
33971         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
33972         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
33974 2011-05-23  Bruno Haible  <bruno@clisp.org>
33976         crypto/md4: Move AC_LIBOBJ invocations to module description.
33977         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
33978         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
33980 2011-05-23  Bruno Haible  <bruno@clisp.org>
33982         crypto/md2: Move AC_LIBOBJ invocations to module description.
33983         * m4/md2.m4: Remove file.
33984         * modules/crypto/md2 (Files): Remove it.
33985         (configure.ac): Remove gl_MD2 call.
33986         (Makefile.am): Augment lib_SOURCES.
33988 2011-05-23  Bruno Haible  <bruno@clisp.org>
33990         long-options: Move AC_LIBOBJ invocations to module description.
33991         * m4/long-options.m4: Remove file.
33992         * modules/long-options (Files): Remove it.
33993         (configure.ac): Remove gl_LONG_OPTIONS call.
33994         (Makefile.am): Augment lib_SOURCES.
33996 2011-05-23  Bruno Haible  <bruno@clisp.org>
33998         i-ring: Move AC_LIBOBJ invocations to module description.
33999         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
34000         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
34002 2011-05-23  Bruno Haible  <bruno@clisp.org>
34004         idcache: Move AC_LIBOBJ invocations to module description.
34005         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
34006         * modules/idcache (Makefile.am): Augment lib_SOURCES.
34008 2011-05-23  Bruno Haible  <bruno@clisp.org>
34010         human: Move AC_LIBOBJ invocations to module description.
34011         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
34012         * modules/human (Makefile.am): Augment lib_SOURCES.
34014 2011-05-23  Bruno Haible  <bruno@clisp.org>
34016         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
34017         * m4/hmac-sha1.m4: Remove file.
34018         * modules/crypto/hmac-sha1 (Files): Remove it.
34019         (configure.ac): Remove gl_HMAC_SHA1 call.
34020         (Makefile.am): Augment lib_SOURCES.
34022 2011-05-23  Bruno Haible  <bruno@clisp.org>
34024         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
34025         * m4/hmac-md5.m4: Remove file.
34026         * modules/crypto/hmac-md5 (Files): Remove it.
34027         (configure.ac): Remove gl_HMAC_MD5 call.
34028         (Makefile.am): Augment lib_SOURCES.
34030 2011-05-23  Bruno Haible  <bruno@clisp.org>
34032         hash: Move AC_LIBOBJ invocations to module description.
34033         * m4/hash.m4: Remove file.
34034         * modules/hash (Files): Remove it.
34035         (configure.ac): Remove gl_HASH call.
34036         (Makefile.am): Augment lib_SOURCES.
34038 2011-05-23  Bruno Haible  <bruno@clisp.org>
34040         hard-locale: Move AC_LIBOBJ invocations to module description.
34041         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
34042         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
34044 2011-05-23  Bruno Haible  <bruno@clisp.org>
34046         getugroups: Move AC_LIBOBJ invocations to module description.
34047         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
34048         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
34050 2011-05-23  Bruno Haible  <bruno@clisp.org>
34052         gettime: Move AC_LIBOBJ invocations to module description.
34053         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
34054         * modules/gettime (Makefile.am): Augment lib_SOURCES.
34056 2011-05-23  Bruno Haible  <bruno@clisp.org>
34058         getndelim2: Move AC_LIBOBJ invocations to module description.
34059         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
34060         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
34062 2011-05-23  Bruno Haible  <bruno@clisp.org>
34064         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
34065         * m4/gc-pbkdf2-sha1.m4: Remove file.
34066         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
34067         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
34068         (Makefile.am): Augment lib_SOURCES.
34070 2011-05-23  Bruno Haible  <bruno@clisp.org>
34072         fts: Move AC_LIBOBJ invocations to module description.
34073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
34074         * modules/fts (configure.ac): ... to here.
34076 2011-05-23  Bruno Haible  <bruno@clisp.org>
34078         file-type: Move AC_LIBOBJ invocations to module description.
34079         * m4/file-type.m4: Remove file.
34080         * modules/file-type (Files): Remove it.
34081         (configure.ac): Remove gl_FILE_TYPE call.
34082         (Makefile.am): Augment lib_SOURCES.
34084 2011-05-23  Bruno Haible  <bruno@clisp.org>
34086         filenamecat*: Respect rules for use of AC_LIBOBJ.
34087         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
34088         Remove AC_LIBOBJ invocation.
34089         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
34090         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
34092 2011-05-23  Bruno Haible  <bruno@clisp.org>
34094         filemode: Move AC_LIBOBJ invocations to module description.
34095         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
34096         * modules/filemode (Makefile.am): Augment lib_SOURCES.
34098 2011-05-23  Bruno Haible  <bruno@clisp.org>
34100         openat-safer: Move AC_LIBOBJ invocations to module description.
34101         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
34102         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
34104 2011-05-23  Bruno Haible  <bruno@clisp.org>
34106         fcntl-safer: Move AC_LIBOBJ invocations to module description.
34107         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
34108         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
34110 2011-05-23  Bruno Haible  <bruno@clisp.org>
34112         exclude: Move AC_LIBOBJ invocations to module description.
34113         * m4/exclude.m4: Remove file.
34114         * modules/exclude (Files): Remove it.
34115         (configure.ac): Remove gl_EXCLUDE call.
34116         (Makefile.am): Augment lib_SOURCES.
34118 2011-05-23  Bruno Haible  <bruno@clisp.org>
34120         dirname*: Respect rules for use of AC_LIBOBJ.
34121         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
34122         invocations.
34123         * modules/dirname (Makefile.am): Augment lib_SOURCES.
34124         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
34126 2011-05-23  Bruno Haible  <bruno@clisp.org>
34128         dirent-safer: Move AC_LIBOBJ invocations to module description.
34129         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
34130         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
34132 2011-05-23  Bruno Haible  <bruno@clisp.org>
34134         crypto/des: Move AC_LIBOBJ invocations to module description.
34135         * m4/des.m4: Remove file.
34136         * modules/crypto/des (Files): Remove it.
34137         (configure.ac): Remove gl_DES call.
34138         (Makefile.am): Augment lib_SOURCES.
34140 2011-05-23  Bruno Haible  <bruno@clisp.org>
34142         cycle-check: Move AC_LIBOBJ invocations to module description.
34143         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
34144         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
34146 2011-05-23  Bruno Haible  <bruno@clisp.org>
34148         c-strtold: Move AC_LIBOBJ invocations to module description.
34149         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
34150         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
34152 2011-05-23  Bruno Haible  <bruno@clisp.org>
34154         c-strtod: Move AC_LIBOBJ invocations to module description.
34155         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
34156         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
34158 2011-05-23  Bruno Haible  <bruno@clisp.org>
34160         crc: Move AC_LIBOBJ invocations to module description.
34161         * m4/crc.m4: Remove file.
34162         * modules/crc (Files): Remove it.
34163         (configure.ac): Remove gl_CRC call.
34164         (Makefile.am): Augment lib_SOURCES.
34166 2011-05-23  Bruno Haible  <bruno@clisp.org>
34168         close-stream: Move AC_LIBOBJ invocations to module description.
34169         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
34170         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
34172 2011-05-23  Bruno Haible  <bruno@clisp.org>
34174         closeout: Move AC_LIBOBJ invocations to module description.
34175         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
34176         * modules/closeout (Makefile.am): Augment lib_SOURCES.
34178 2011-05-23  Bruno Haible  <bruno@clisp.org>
34180         closein: Move AC_LIBOBJ invocations to module description.
34181         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
34182         * modules/closein (Makefile.am): Augment lib_SOURCES.
34184 2011-05-23  Bruno Haible  <bruno@clisp.org>
34186         cloexec: Move AC_LIBOBJ invocations to module description.
34187         * m4/cloexec.m4: Remove file.
34188         * modules/cloexec (Files): Remove it.
34189         (configure.ac): Remove gl_CLOEXEC call.
34190         (Makefile.am): Augment lib_SOURCES.
34192 2011-05-23  Bruno Haible  <bruno@clisp.org>
34194         check-version: Move AC_LIBOBJ invocations to module description.
34195         * m4/check-version.m4: Remove file.
34196         * modules/check-version (Files): Remove it.
34197         (configure.ac): Remove gl_CHECK_VERSION call.
34198         (Makefile.am): Augment lib_SOURCES.
34200 2011-05-23  Bruno Haible  <bruno@clisp.org>
34202         chdir-safer: Move AC_LIBOBJ invocations to module description.
34203         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
34204         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
34206 2011-05-23  Bruno Haible  <bruno@clisp.org>
34208         canonicalize: Move AC_LIBOBJ invocations to module description.
34209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
34210         AC_LIBOBJ invocation.
34211         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
34213 2011-05-23  Bruno Haible  <bruno@clisp.org>
34215         canon-host: Move AC_LIBOBJ invocations to module description.
34216         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
34217         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
34218         instead of gl_CANON_HOST.
34219         (Makefile.am): Augment lib_SOURCES.
34221 2011-05-23  Bruno Haible  <bruno@clisp.org>
34223         backupfile: Move AC_LIBOBJ invocations to module description.
34224         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
34225         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
34227 2011-05-23  Bruno Haible  <bruno@clisp.org>
34229         argmatch: Move AC_LIBOBJ invocations to module description.
34230         * m4/argmatch.m4: Remove file.
34231         * modules/argmatch (Files): Remove it.
34232         (configure.ac): Remove gl_ARGMATCH call.
34233         (Makefile.am): Augment lib_SOURCES.
34235 2011-05-23  Bruno Haible  <bruno@clisp.org>
34237         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
34238         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
34239         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
34241 2011-05-23  Bruno Haible  <bruno@clisp.org>
34243         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
34244         * m4/arcfour.m4: Remove file.
34245         * modules/crypto/arcfour (Files): Remove it.
34246         (configure.ac): Remove gl_ARCFOUR call.
34247         (Makefile.am): Augment lib_SOURCES.
34249 2011-05-22  Bruno Haible  <bruno@clisp.org>
34251         write: Move AC_LIBOBJ invocations to module description.
34252         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
34253         * modules/write (configure.ac): ... to here.
34255 2011-05-22  Bruno Haible  <bruno@clisp.org>
34257         wmemset: Move AC_LIBOBJ invocations to module description.
34258         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
34259         here...
34260         * modules/wmemset (configure.ac): ... to here.
34262 2011-05-22  Bruno Haible  <bruno@clisp.org>
34264         wmemmove: Move AC_LIBOBJ invocations to module description.
34265         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
34266         here...
34267         * modules/wmemmove (configure.ac): ... to here.
34269 2011-05-22  Bruno Haible  <bruno@clisp.org>
34271         wmemcpy: Move AC_LIBOBJ invocations to module description.
34272         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
34273         here...
34274         * modules/wmemcpy (configure.ac): ... to here.
34276 2011-05-22  Bruno Haible  <bruno@clisp.org>
34278         wmemcmp: Move AC_LIBOBJ invocations to module description.
34279         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
34280         here...
34281         * modules/wmemcmp (configure.ac): ... to here.
34283 2011-05-22  Bruno Haible  <bruno@clisp.org>
34285         wmemchr: Move AC_LIBOBJ invocations to module description.
34286         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
34287         here...
34288         * modules/wmemchr (configure.ac): ... to here.
34290 2011-05-22  Bruno Haible  <bruno@clisp.org>
34292         wcswidth: Move AC_LIBOBJ invocations to module description.
34293         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
34294         here...
34295         * modules/wcswidth (configure.ac): ... to here.
34297 2011-05-22  Bruno Haible  <bruno@clisp.org>
34299         wcwidth: Respect rules for use of AC_LIBOBJ.
34300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
34301         invocation from here...
34302         * modules/wcwidth (configure.ac): ... to here.
34303         (Depends-on): Update conditions.
34305 2011-05-22  Bruno Haible  <bruno@clisp.org>
34307         wctype: Move AC_LIBOBJ invocations to module description.
34308         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
34309         invocation from here...
34310         * modules/wctype (configure.ac): ... to here.
34311         (Depends-on): Update conditions.
34313 2011-05-22  Bruno Haible  <bruno@clisp.org>
34315         wctrans: Move AC_LIBOBJ invocations to module description.
34316         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
34317         invocation from here...
34318         * modules/wctrans (configure.ac): ... to here.
34320 2011-05-22  Bruno Haible  <bruno@clisp.org>
34322         wctomb: Move AC_LIBOBJ invocations to module description.
34323         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
34324         invocations from here...
34325         * modules/wctomb (configure.ac): ... to here.
34327 2011-05-22  Bruno Haible  <bruno@clisp.org>
34329         wctob: Move AC_LIBOBJ invocations to module description.
34330         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
34331         gl_PREREQ_WCTOB invocations from here...
34332         * modules/wctob (configure.ac): ... to here.
34333         (Depends-on): Update conditions.
34335 2011-05-22  Bruno Haible  <bruno@clisp.org>
34337         wcsxfrm: Move AC_LIBOBJ invocations to module description.
34338         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
34339         here...
34340         * modules/wcsxfrm (configure.ac): ... to here.
34342 2011-05-22  Bruno Haible  <bruno@clisp.org>
34344         wcstok: Move AC_LIBOBJ invocations to module description.
34345         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
34346         * modules/wcstok (configure.ac): ... to here.
34348 2011-05-22  Bruno Haible  <bruno@clisp.org>
34350         wcsstr: Move AC_LIBOBJ invocations to module description.
34351         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
34352         * modules/wcsstr (configure.ac): ... to here.
34354 2011-05-22  Bruno Haible  <bruno@clisp.org>
34356         wcsspn: Move AC_LIBOBJ invocations to module description.
34357         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
34358         * modules/wcsspn (configure.ac): ... to here.
34360 2011-05-22  Bruno Haible  <bruno@clisp.org>
34362         wcsrtombs: Move AC_LIBOBJ invocations to module description.
34363         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
34364         gl_PREREQ_WCSRTOMBS invocations from here...
34365         * modules/wcsrtombs (configure.ac): ... to here.
34367 2011-05-22  Bruno Haible  <bruno@clisp.org>
34369         wcsrchr: Move AC_LIBOBJ invocations to module description.
34370         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
34371         here...
34372         * modules/wcsrchr (configure.ac): ... to here.
34374 2011-05-22  Bruno Haible  <bruno@clisp.org>
34376         wcspbrk: Move AC_LIBOBJ invocations to module description.
34377         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
34378         here...
34379         * modules/wcspbrk (configure.ac): ... to here.
34381 2011-05-22  Bruno Haible  <bruno@clisp.org>
34383         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
34384         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
34385         gl_PREREQ_WCSNRTOMBS invocations from here...
34386         * modules/wcsnrtombs (configure.ac): ... to here.
34388 2011-05-22  Bruno Haible  <bruno@clisp.org>
34390         wcsnlen: Move AC_LIBOBJ invocations to module description.
34391         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
34392         here...
34393         * modules/wcsnlen (configure.ac): ... to here.
34395 2011-05-22  Bruno Haible  <bruno@clisp.org>
34397         wcsncpy: Move AC_LIBOBJ invocations to module description.
34398         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
34399         here...
34400         * modules/wcsncpy (configure.ac): ... to here.
34402 2011-05-22  Bruno Haible  <bruno@clisp.org>
34404         wcsncmp: Move AC_LIBOBJ invocations to module description.
34405         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
34406         here...
34407         * modules/wcsncmp (configure.ac): ... to here.
34409 2011-05-22  Bruno Haible  <bruno@clisp.org>
34411         wcsncat: Move AC_LIBOBJ invocations to module description.
34412         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
34413         here...
34414         * modules/wcsncat (configure.ac): ... to here.
34416 2011-05-22  Bruno Haible  <bruno@clisp.org>
34418         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
34419         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
34420         from here...
34421         * modules/wcsncasecmp (configure.ac): ... to here.
34423 2011-05-22  Bruno Haible  <bruno@clisp.org>
34425         wcslen: Move AC_LIBOBJ invocations to module description.
34426         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
34427         * modules/wcslen (configure.ac): ... to here.
34429 2011-05-22  Bruno Haible  <bruno@clisp.org>
34431         wcsdup: Move AC_LIBOBJ invocations to module description.
34432         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
34433         * modules/wcsdup (configure.ac): ... to here.
34435 2011-05-22  Bruno Haible  <bruno@clisp.org>
34437         wcscspn: Move AC_LIBOBJ invocations to module description.
34438         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
34439         here...
34440         * modules/wcscspn (configure.ac): ... to here.
34442 2011-05-22  Bruno Haible  <bruno@clisp.org>
34444         wcscpy: Move AC_LIBOBJ invocations to module description.
34445         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
34446         * modules/wcscpy (configure.ac): ... to here.
34448 2011-05-22  Bruno Haible  <bruno@clisp.org>
34450         wcscoll: Move AC_LIBOBJ invocations to module description.
34451         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
34452         here...
34453         * modules/wcscoll (configure.ac): ... to here.
34455 2011-05-22  Bruno Haible  <bruno@clisp.org>
34457         wcscmp: Move AC_LIBOBJ invocations to module description.
34458         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
34459         * modules/wcscmp (configure.ac): ... to here.
34461 2011-05-22  Bruno Haible  <bruno@clisp.org>
34463         wcschr: Move AC_LIBOBJ invocations to module description.
34464         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
34465         * modules/wcschr (configure.ac): ... to here.
34467 2011-05-22  Bruno Haible  <bruno@clisp.org>
34469         wcscat: Move AC_LIBOBJ invocations to module description.
34470         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
34471         * modules/wcscat (configure.ac): ... to here.
34473 2011-05-22  Bruno Haible  <bruno@clisp.org>
34475         wcscasecmp: Move AC_LIBOBJ invocations to module description.
34476         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
34477         here...
34478         * modules/wcscasecmp (configure.ac): ... to here.
34480 2011-05-22  Bruno Haible  <bruno@clisp.org>
34482         wcrtomb: Move AC_LIBOBJ invocations to module description.
34483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
34484         invocations from here...
34485         * modules/wcrtomb (configure.ac): ... to here.
34487 2011-05-22  Bruno Haible  <bruno@clisp.org>
34489         wcpncpy: Move AC_LIBOBJ invocations to module description.
34490         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
34491         here...
34492         * modules/wcpncpy (configure.ac): ... to here.
34494 2011-05-22  Bruno Haible  <bruno@clisp.org>
34496         wcpcpy: Move AC_LIBOBJ invocations to module description.
34497         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
34498         * modules/wcpcpy (configure.ac): ... to here.
34500 2011-05-22  Bruno Haible  <bruno@clisp.org>
34502         waitpid: Move AC_LIBOBJ invocations to module description.
34503         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
34504         invocation from here...
34505         * modules/waitpid (configure.ac): ... to here.
34507 2011-05-22  Bruno Haible  <bruno@clisp.org>
34509         utimensat: Move AC_LIBOBJ invocations to module description.
34510         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
34511         here...
34512         * modules/utimensat (configure.ac): ... to here.
34514 2011-05-22  Bruno Haible  <bruno@clisp.org>
34516         usleep: Move AC_LIBOBJ invocations to module description.
34517         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
34518         here...
34519         * modules/usleep (configure.ac): ... to here.
34521 2011-05-22  Bruno Haible  <bruno@clisp.org>
34523         unlockpt: Move AC_LIBOBJ invocations to module description.
34524         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
34525         gl_PREREQ_UNLOCKPT invocations from here...
34526         * modules/unlockpt (configure.ac): ... to here.
34528 2011-05-22  Bruno Haible  <bruno@clisp.org>
34530         unlink: Respect rules for use of AC_LIBOBJ.
34531         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
34532         * modules/unlink (configure.ac): ... to here.
34534 2011-05-22  Bruno Haible  <bruno@clisp.org>
34536         uname: Move AC_LIBOBJ invocations to module description.
34537         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
34538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
34539         here...
34540         * modules/uname (configure.ac): ... to here.
34542 2011-05-22  Bruno Haible  <bruno@clisp.org>
34544         ttyname_r: Move AC_LIBOBJ invocations to module description.
34545         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
34546         gl_PREREQ_TTYNAME_R invocations from here...
34547         * modules/ttyname_r (configure.ac): ... to here.
34549 2011-05-22  Bruno Haible  <bruno@clisp.org>
34551         tsearch: Move AC_LIBOBJ invocations to module description.
34552         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
34553         invocations from here...
34554         * modules/tsearch (configure.ac): ... to here.
34556 2011-05-22  Bruno Haible  <bruno@clisp.org>
34558         towctrans: Move AC_LIBOBJ invocations to module description.
34559         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
34560         AC_LIBOBJ invocation from here...
34561         * modules/towctrans (configure.ac): ... to here.
34563 2011-05-22  Bruno Haible  <bruno@clisp.org>
34565         tmpfile: Move AC_LIBOBJ invocations to module description.
34566         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
34567         invocations from here...
34568         * modules/tmpfile (configure.ac): ... to here.
34570 2011-05-22  Bruno Haible  <bruno@clisp.org>
34572         times: Move AC_LIBOBJ invocations to module description.
34573         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
34574         * modules/times (configure.ac): ... to here.
34576 2011-05-22  Bruno Haible  <bruno@clisp.org>
34578         time_r: Move AC_LIBOBJ invocations to module description.
34579         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
34580         invocations from here...
34581         * modules/time_r (configure.ac): ... to here.
34583 2011-05-22  Bruno Haible  <bruno@clisp.org>
34585         timegm: Move AC_LIBOBJ invocations to module description.
34586         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
34587         invocations from here...
34588         * modules/timegm (configure.ac): ... to here.
34590 2011-05-22  Bruno Haible  <bruno@clisp.org>
34592         tcgetsid: Move AC_LIBOBJ invocations to module description.
34593         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34594         and gl_PREREQ_TCGETSID invocations from here...
34595         * modules/tcgetsid (configure.ac): ... to here.
34596         (Depends-on): Update conditions.
34598 2011-05-22  Bruno Haible  <bruno@clisp.org>
34600         symlinkat: Move AC_LIBOBJ invocations to module description.
34601         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34602         here...
34603         * modules/symlinkat (configure.ac): ... to here.
34605 2011-05-22  Bruno Haible  <bruno@clisp.org>
34607         symlink: Move AC_LIBOBJ invocations to module description.
34608         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34609         here...
34610         * modules/symlink (configure.ac): ... to here.
34612 2011-05-22  Bruno Haible  <bruno@clisp.org>
34614         strverscmp: Move AC_LIBOBJ invocations to module description.
34615         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34617         from here...
34618         * modules/strverscmp (configure.ac): ... to here.
34620 2011-05-22  Bruno Haible  <bruno@clisp.org>
34622         strtok_r: Move AC_LIBOBJ invocations to module description.
34623         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34624         and gl_PREREQ_STRTOK_R invocations from here...
34625         * modules/strtok_r (configure.ac): ... to here.
34626         (Depends-on): Update conditions.
34628 2011-05-22  Bruno Haible  <bruno@clisp.org>
34630         strtoumax: Move AC_LIBOBJ invocations to module description.
34631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34632         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34633         from here...
34634         * modules/strtoumax (configure.ac): ... to here.
34636 2011-05-22  Bruno Haible  <bruno@clisp.org>
34638         strtoimax: Move AC_LIBOBJ invocations to module description.
34639         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34640         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34641         from here...
34642         * modules/strtoimax (configure.ac): ... to here.
34644 2011-05-22  Bruno Haible  <bruno@clisp.org>
34646         strtoull: Move AC_LIBOBJ invocations to module description.
34647         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34648         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34649         from here...
34650         * modules/strtoull (configure.ac): ... to here.
34652 2011-05-22  Bruno Haible  <bruno@clisp.org>
34654         strtoll: Move AC_LIBOBJ invocations to module description.
34655         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34656         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34657         here...
34658         * modules/strtoll (configure.ac): ... to here.
34660 2011-05-22  Bruno Haible  <bruno@clisp.org>
34662         strtoul: Move AC_LIBOBJ invocations to module description.
34663         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34664         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34665         * modules/strtoul (configure.ac): ... to here.
34667 2011-05-22  Bruno Haible  <bruno@clisp.org>
34669         strtol: Move AC_LIBOBJ invocations to module description.
34670         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34671         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34672         * modules/strtol (configure.ac): ... to here.
34674 2011-05-22  Bruno Haible  <bruno@clisp.org>
34676         strtod: Move AC_LIBOBJ invocations to module description.
34677         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34678         invocations from here...
34679         * modules/strtod (configure.ac): ... to here.
34681 2011-05-22  Bruno Haible  <bruno@clisp.org>
34683         strstr*: Move AC_LIBOBJ invocations to module description.
34684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34685         invocations from here...
34686         * modules/strstr-simple (configure.ac): ... to here.
34687         * modules/strstr (configure.ac): ... and here.
34689 2011-05-22  Bruno Haible  <bruno@clisp.org>
34691         strsignal: Move AC_LIBOBJ invocations to module description.
34692         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34693         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34694         * modules/strsignal (configure.ac): ... to here.
34695         (Depends-on): Update conditions.
34697 2011-05-22  Bruno Haible  <bruno@clisp.org>
34699         strsep: Move AC_LIBOBJ invocations to module description.
34700         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34702         here...
34703         * modules/strsep (configure.ac): ... to here.
34705 2011-05-22  Bruno Haible  <bruno@clisp.org>
34707         strptime: Move AC_LIBOBJ invocations to module description.
34708         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34709         gl_PREREQ_STRPTIME invocations from here...
34710         * modules/strptime (configure.ac): ... to here.
34712 2011-05-22  Bruno Haible  <bruno@clisp.org>
34714         strpbrk: Move AC_LIBOBJ invocations to module description.
34715         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34717         here...
34718         * modules/strpbrk (configure.ac): ... to here.
34720 2011-05-22  Bruno Haible  <bruno@clisp.org>
34722         strnlen: Move AC_LIBOBJ invocations to module description.
34723         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34724         invocations from here...
34725         * modules/strnlen (configure.ac): ... to here.
34727 2011-05-22  Bruno Haible  <bruno@clisp.org>
34729         strndup: Move AC_LIBOBJ invocations to module description.
34730         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34731         invocations from here...
34732         * modules/strndup (configure.ac): ... to here.
34733         (Depends-on): Update conditions.
34735 2011-05-22  Bruno Haible  <bruno@clisp.org>
34737         strncat: Move AC_LIBOBJ invocations to module description.
34738         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34739         invocations from here...
34740         * modules/strncat (configure.ac): ... to here.
34742 2011-05-22  Bruno Haible  <bruno@clisp.org>
34744         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
34745         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
34746         invocations from here...
34747         * modules/strdup (configure.ac): ... to here.
34748         * modules/strdup-posix (configure.ac): ... and here.
34750 2011-05-22  Bruno Haible  <bruno@clisp.org>
34752         strcspn: Move AC_LIBOBJ invocations to module description.
34753         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
34754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
34755         here...
34756         * modules/strcspn (configure.ac): ... to here.
34758 2011-05-22  Bruno Haible  <bruno@clisp.org>
34760         strchrnul: Move AC_LIBOBJ invocations to module description.
34761         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
34762         gl_PREREQ_STRCHRNUL invocations from here...
34763         * modules/strchrnul (configure.ac): ... to here.
34765 2011-05-22  Bruno Haible  <bruno@clisp.org>
34767         strcasestr*: Move AC_LIBOBJ invocations to module description.
34768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
34769         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
34770         * modules/strcasestr-simple (configure.ac): ... to here.
34771         * modules/strcasestr (configure.ac): ... and here.
34773 2011-05-22  Bruno Haible  <bruno@clisp.org>
34775         strcase: Move AC_LIBOBJ invocations to module description.
34776         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
34777         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
34778         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
34779         gl_PREREQ_STRNCASECMP invocations from here...
34780         * modules/strcase (configure.ac): ... to here.
34782 2011-05-22  Bruno Haible  <bruno@clisp.org>
34784         stpncpy: Move AC_LIBOBJ invocations to module description.
34785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
34786         here...
34787         * modules/stpncpy (configure.ac): ... to here.
34789 2011-05-22  Bruno Haible  <bruno@clisp.org>
34791         stpcpy: Move AC_LIBOBJ invocations to module description.
34792         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
34793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
34794         here...
34795         * modules/stpcpy (configure.ac): ... to here.
34797 2011-05-21  Bruno Haible  <bruno@clisp.org>
34799         stat: Move AC_LIBOBJ invocations to module description.
34800         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
34801         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
34802         here...
34803         * modules/stat (configure.ac): ... to here.
34805 2011-05-21  Bruno Haible  <bruno@clisp.org>
34807         sleep: Move AC_LIBOBJ invocations to module description.
34808         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
34809         * modules/sleep (configure.ac): ... to here.
34811 2011-05-21  Bruno Haible  <bruno@clisp.org>
34813         signbit: Move AC_LIBOBJ invocations to module description.
34814         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
34815         * modules/signbit (configure.ac): ... to here.
34817 2011-05-21  Bruno Haible  <bruno@clisp.org>
34819         sigprocmask: Move AC_LIBOBJ invocations to module description.
34820         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
34821         gl_PREREQ_SIGPROMASK invocations from here...
34822         * modules/sigprocmask (configure.ac): ... to here.
34824 2011-05-21  Bruno Haible  <bruno@clisp.org>
34826         sigaction: Move AC_LIBOBJ invocations to module description.
34827         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
34828         gl_PREREQ_SIGACTION invocations from here...
34829         * modules/sigaction (configure.ac): ... to here.
34831 2011-05-21  Bruno Haible  <bruno@clisp.org>
34833         sig2str: Move AC_LIBOBJ invocations to module description.
34834         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
34835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
34836         here...
34837         * modules/sig2str (configure.ac): ... to here.
34839 2011-05-21  Bruno Haible  <bruno@clisp.org>
34841         setlocale: Move AC_LIBOBJ invocations to module description.
34842         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
34843         gl_PREREQ_SETLOCALE invocations from here...
34844         * modules/setlocale (configure.ac): ... to here.
34846 2011-05-21  Bruno Haible  <bruno@clisp.org>
34848         unsetenv: Move AC_LIBOBJ invocations to module description.
34849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
34850         and gl_PREREQ_UNSETENV invocations from here...
34851         * modules/unsetenv (configure.ac): ... to here.
34852         (Depends-on): Update.
34854 2011-05-21  Bruno Haible  <bruno@clisp.org>
34856         setenv: Move AC_LIBOBJ invocations to module description.
34857         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34858         here...
34859         * modules/setenv (configure.ac): ... to here.
34861 2011-05-21  Bruno Haible  <bruno@clisp.org>
34863         selinux-h: Move AC_LIBOBJ invocations to module description.
34864         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34865         AC_LIBOBJ invocation from here...
34866         * modules/selinux-h (configure.ac): ... to here.
34868 2011-05-21  Bruno Haible  <bruno@clisp.org>
34870         select: Respect rules for use of AC_LIBOBJ.
34871         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34872         here...
34873         * modules/select (configure.ac): ... to here.
34875 2011-05-21  Bruno Haible  <bruno@clisp.org>
34877         scandir: Move AC_LIBOBJ invocations to module description.
34878         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34879         invocations from here...
34880         * modules/scandir (configure.ac): ... to here.
34882 2011-05-21  Bruno Haible  <bruno@clisp.org>
34884         rpmatch: Move AC_LIBOBJ invocations to module description.
34885         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34887         here...
34888         * modules/rpmatch (configure.ac): ... to here.
34890 2011-05-21  Bruno Haible  <bruno@clisp.org>
34892         rmdir: Respect rules for use of AC_LIBOBJ.
34893         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34894         * modules/rmdir (configure.ac): ... to here.
34896 2011-05-21  Bruno Haible  <bruno@clisp.org>
34898         renameat: Move AC_LIBOBJ invocations to module description.
34899         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34900         here...
34901         * modules/renameat (configure.ac): ... to here.
34903 2011-05-21  Bruno Haible  <bruno@clisp.org>
34905         rename: Respect rules for use of AC_LIBOBJ.
34906         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34907         here...
34908         * modules/rename (configure.ac): ... to here.
34910 2011-05-21  Bruno Haible  <bruno@clisp.org>
34912         remove: Move AC_LIBOBJ invocations to module description.
34913         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34914         here...
34915         * modules/remove (configure.ac): ... to here.
34917 2011-05-21  Bruno Haible  <bruno@clisp.org>
34919         relocatable-lib: Move AC_LIBOBJ invocations to module description.
34920         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
34921         macro.
34922         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
34923         * modules/relocatable-lib (configure.ac): ... to here.
34924         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34925         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
34927 2011-05-21  Bruno Haible  <bruno@clisp.org>
34929         relocatable-prog: Move AC_LIBOBJ invocations to module description.
34930         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
34931         here...
34932         * modules/relocatable-prog (configure.ac): ... to here.
34934 2011-05-21  Bruno Haible  <bruno@clisp.org>
34936         regex: Move AC_LIBOBJ invocations to module description.
34937         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
34938         invocations from here...
34939         * modules/regex (configure.ac): ... to here.
34941 2011-05-21  Bruno Haible  <bruno@clisp.org>
34943         realloc-*: Move AC_LIBOBJ invocations to module description.
34944         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
34945         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
34946         AC_LIBOBJ invocations from here...
34947         * modules/realloc-gnu (configure.ac): ... to here.
34948         * modules/realloc-posix (configure.ac): ... and here.
34950 2011-05-21  Bruno Haible  <bruno@clisp.org>
34952         readutmp: Move AC_LIBOBJ invocations to module description.
34953         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
34954         * modules/readutmp (configure.ac): ... to here.
34956 2011-05-21  Bruno Haible  <bruno@clisp.org>
34958         readlinkat: Move AC_LIBOBJ invocations to module description.
34959         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
34960         here...
34961         * modules/readlinkat (configure.ac): ... to here.
34963 2011-05-21  Bruno Haible  <bruno@clisp.org>
34965         readlink: Move AC_LIBOBJ invocations to module description.
34966         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
34967         gl_PREREQ_READLINK invocations from here...
34968         * modules/readlink (configure.ac): ... to here.
34970 2011-05-21  Bruno Haible  <bruno@clisp.org>
34972         readline: Move AC_LIBOBJ invocations to module description.
34973         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
34974         gl_PREREQ_READLINE invocations from here...
34975         * modules/readline (configure.ac): ... to here.
34977 2011-05-21  Bruno Haible  <bruno@clisp.org>
34979         read: Move AC_LIBOBJ invocations to module description.
34980         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
34981         * modules/read (configure.ac): ... to here.
34983 2011-05-21  Bruno Haible  <bruno@clisp.org>
34985         rawmemchr: Move AC_LIBOBJ invocations to module description.
34986         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
34987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
34988         from here...
34989         * modules/rawmemchr (configure.ac): ... to here.
34991 2011-05-21  Bruno Haible  <bruno@clisp.org>
34993         random_r: Move AC_LIBOBJ invocations to module description.
34994         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
34995         gl_PREREQ_RANDOM_R invocations from here...
34996         * modules/random_r (configure.ac): ... to here.
34998 2011-05-21  Bruno Haible  <bruno@clisp.org>
35000         pwrite: Move AC_LIBOBJ invocations to module description.
35001         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
35002         * modules/pwrite (configure.ac): ... to here.
35004 2011-05-21  Bruno Haible  <bruno@clisp.org>
35006         putenv: Move AC_LIBOBJ invocations to module description.
35007         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
35008         * modules/putenv (configure.ac): ... to here.
35010 2011-05-21  Bruno Haible  <bruno@clisp.org>
35012         login_tty: Move AC_LIBOBJ invocations to module description.
35013         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
35014         * modules/login_tty (configure.ac): ... to here.
35016 2011-05-21  Bruno Haible  <bruno@clisp.org>
35018         openpty: Move AC_LIBOBJ invocations to module description.
35019         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
35020         * modules/openpty (configure.ac): ... to here.
35022 2011-05-21  Bruno Haible  <bruno@clisp.org>
35024         forkpty: Move AC_LIBOBJ invocations to module description.
35025         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
35026         * modules/forkpty (configure.ac): ... to here.
35028 2011-05-21  Bruno Haible  <bruno@clisp.org>
35030         ptsname: Move AC_LIBOBJ invocations to module description.
35031         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
35032         invocations from here...
35033         * modules/ptsname (configure.ac): ... to here.
35035 2011-05-21  Bruno Haible  <bruno@clisp.org>
35037         pread: Move AC_LIBOBJ invocations to module description.
35038         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
35039         * modules/pread (configure.ac): ... to here.
35041 2011-05-21  Bruno Haible  <bruno@clisp.org>
35043         posix_spawn*: Move AC_LIBOBJ invocations to module description.
35044         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
35045         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
35046         * modules/posix_spawn (configure.ac): ... to here.
35047         * modules/posix_spawnp (configure.ac): ... and here.
35049 2011-05-21  Bruno Haible  <bruno@clisp.org>
35051         popen: Move AC_LIBOBJ invocations to module description.
35052         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
35053         invocations from here...
35054         * modules/popen (configure.ac): ... to here.
35056 2011-05-21  Bruno Haible  <bruno@clisp.org>
35058         poll: Move AC_LIBOBJ invocations to module description.
35059         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
35060         invocations from here...
35061         * modules/poll (configure.ac): ... to here.
35063 2011-05-21  Bruno Haible  <bruno@clisp.org>
35065         pipe-posix: Move AC_LIBOBJ invocations to module description.
35066         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
35067         * modules/pipe-posix (configure.ac): ... to here.
35069 2011-05-21  Bruno Haible  <bruno@clisp.org>
35071         openat: Respect rules for use of AC_LIBOBJ.
35072         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
35073         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35074         * modules/openat (configure.ac): ... to here.
35076 2011-05-21  Bruno Haible  <bruno@clisp.org>
35078         obstack-printf*: Move AC_LIBOBJ invocations to module description.
35079         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
35080         invocation from here...
35081         * modules/obstack-printf (configure.ac): ... to here.
35082         * modules/obstack-printf-posix (configure.ac): ... and here.
35084 2011-05-21  Bruno Haible  <bruno@clisp.org>
35086         nl_langinfo: Move AC_LIBOBJ invocations to module description.
35087         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
35088         from here...
35089         * modules/nl_langinfo (configure.ac): ... to here.
35091 2011-05-21  Bruno Haible  <bruno@clisp.org>
35093         nanosleep: Move AC_LIBOBJ invocations to module description.
35094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
35095         gl_PREREQ_NANOSLEEP invocations from here...
35096         * modules/nanosleep (configure.ac): ... to here.
35098 2011-05-21  Bruno Haible  <bruno@clisp.org>
35100         mountlist: Move AC_LIBOBJ invocations to module description.
35101         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
35102         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
35103         * modules/mountlist (configure.ac): ... to here.
35105 2011-05-21  Bruno Haible  <bruno@clisp.org>
35107         mktime: Respect rules for use of AC_LIBOBJ.
35108         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
35109         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
35110         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
35111         (gl_FUNC_MKTIME_INTERNAL): ... and here...
35112         * modules/mktime (configure.ac): ... to here.
35113         * modules/mktime-internal (configure.ac): ... and here.
35114         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
35116 2011-05-21  Bruno Haible  <bruno@clisp.org>
35118         mkstemps: Move AC_LIBOBJ invocations to module description.
35119         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
35120         here...
35121         * modules/mkstemps (configure.ac): ... to here.
35123 2011-05-21  Bruno Haible  <bruno@clisp.org>
35125         mkstemp: Move AC_LIBOBJ invocations to module description.
35126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
35127         gl_PREREQ_MKSTEMP invocations from here...
35128         * modules/mkstemp (configure.ac): ... to here.
35130 2011-05-21  Bruno Haible  <bruno@clisp.org>
35132         mkostemps: Move AC_LIBOBJ invocations to module description.
35133         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
35134         here...
35135         * modules/mkostemps (configure.ac): ... to here.
35137 2011-05-21  Bruno Haible  <bruno@clisp.org>
35139         mkostemp: Move AC_LIBOBJ invocations to module description.
35140         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
35141         gl_PREREQ_MKOSTEMP invocations from here...
35142         * modules/mkostemp (configure.ac): ... to here.
35144 2011-05-21  Bruno Haible  <bruno@clisp.org>
35146         mknod: Move AC_LIBOBJ invocations to module description.
35147         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
35148         * modules/mknod (configure.ac): ... to here.
35150 2011-05-21  Bruno Haible  <bruno@clisp.org>
35152         mkfifoat: Move AC_LIBOBJ invocations to module description.
35153         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
35154         here...
35155         * modules/mkfifoat (configure.ac): ... to here.
35157 2011-05-21  Bruno Haible  <bruno@clisp.org>
35159         mkfifo: Respect rules for use of AC_LIBOBJ.
35160         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
35161         here...
35162         * modules/mkfifo (configure.ac): ... to here.
35164 2011-05-21  Bruno Haible  <bruno@clisp.org>
35166         mkdtemp: Move AC_LIBOBJ invocations to module description.
35167         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
35168         invocations from here...
35169         * modules/mkdtemp (configure.ac): ... to here.
35171 2011-05-21  Bruno Haible  <bruno@clisp.org>
35173         mkdir: Move AC_LIBOBJ invocations to module description.
35174         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
35175         * modules/mkdir (configure.ac): ... to here.
35177 2011-05-21  Bruno Haible  <bruno@clisp.org>
35179         memset: Move AC_LIBOBJ invocations to module description.
35180         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
35181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
35182         here...
35183         * modules/memset (configure.ac): ... to here.
35185 2011-05-21  Bruno Haible  <bruno@clisp.org>
35187         memrchr: Move AC_LIBOBJ invocations to module description.
35188         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
35189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
35190         here...
35191         * modules/memrchr (configure.ac): ... to here.
35193 2011-05-21  Bruno Haible  <bruno@clisp.org>
35195         mempcpy: Move AC_LIBOBJ invocations to module description.
35196         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
35197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
35198         here...
35199         * modules/mempcpy (configure.ac): ... to here.
35201 2011-05-21  Bruno Haible  <bruno@clisp.org>
35203         memmove: Move AC_LIBOBJ invocations to module description.
35204         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
35205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
35206         here...
35207         * modules/memmove (configure.ac): ... to here.
35209 2011-05-21  Bruno Haible  <bruno@clisp.org>
35211         memmem*: Move AC_LIBOBJ invocations to module description.
35212         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
35213         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
35214         here...
35215         (gl_FUNC_MEMMEM): ... and here...
35216         * modules/memmem-simple (configure.ac): ... to here.
35217         * modules/memmem (configure.ac): ... and here.
35219 2011-05-21  Bruno Haible  <bruno@clisp.org>
35221         memcpy: Move AC_LIBOBJ invocations to module description.
35222         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
35223         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
35224         here...
35225         * modules/memcpy (configure.ac): ... to here.
35227 2011-05-21  Bruno Haible  <bruno@clisp.org>
35229         memcmp: Simplify autoconf macro.
35230         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
35231         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
35232         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
35234 2011-05-21  Bruno Haible  <bruno@clisp.org>
35236         memcmp: Move AC_LIBOBJ invocations to module description.
35237         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
35238         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
35239         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
35240         * modules/memcmp (configure.ac): ... to here.
35241         (Depends-on): Update conditions.
35243 2011-05-21  Bruno Haible  <bruno@clisp.org>
35245         memchr: Respect rules for use of AC_LIBOBJ.
35246         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
35247         invocations from here...
35248         * modules/memchr (configure.ac): ... to here.
35250 2011-05-21  Bruno Haible  <bruno@clisp.org>
35252         mbtowc: Move AC_LIBOBJ invocations to module description.
35253         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
35254         invocations from here...
35255         * modules/mbtowc (configure.ac): ... to here.
35257 2011-05-21  Bruno Haible  <bruno@clisp.org>
35259         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
35260         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
35261         gl_PREREQ_MBSRTOWCS invocations from here...
35262         * modules/mbsrtowcs (configure.ac): ... to here.
35264 2011-05-21  Bruno Haible  <bruno@clisp.org>
35266         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
35267         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
35268         gl_PREREQ_MBSNRTOWCS invocations from here...
35269         * modules/mbsnrtowcs (configure.ac): ... to here.
35271 2011-05-21  Bruno Haible  <bruno@clisp.org>
35273         mbsinit: Move AC_LIBOBJ invocations to module description.
35274         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
35275         invocations from here...
35276         * modules/mbsinit (configure.ac): ... to here.
35278 2011-05-21  Bruno Haible  <bruno@clisp.org>
35280         mbrlen: Move AC_LIBOBJ invocations to module description.
35281         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
35282         invocations from here...
35283         * modules/mbrlen (configure.ac): ... to here.
35285 2011-05-21  Bruno Haible  <bruno@clisp.org>
35287         mbrtowc: Respect rules for use of AC_LIBOBJ.
35288         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
35289         invocations from here...
35290         * modules/mbrtowc (configure.ac): ... to here.
35292 2011-05-21  Bruno Haible  <bruno@clisp.org>
35294         malloc-*: Move AC_LIBOBJ invocations to module description.
35295         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
35296         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
35297         AC_LIBOBJ invocations from here...
35298         * modules/malloc-gnu (configure.ac): ... to here.
35299         * modules/malloc-posix (configure.ac): ... and here.
35301 2011-05-21  Bruno Haible  <bruno@clisp.org>
35303         lstat, openat: Respect rules for use of AC_LIBOBJ.
35304         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
35305         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
35306         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
35307         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
35308         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
35309         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
35310         here.
35311         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35313 2011-05-21  Bruno Haible  <bruno@clisp.org>
35315         lseek: Move AC_LIBOBJ invocations to module description.
35316         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
35317         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35318         * modules/lseek (configure.ac): ... to here.
35320 2011-05-21  Bruno Haible  <bruno@clisp.org>
35322         linkat: Move AC_LIBOBJ invocations to module description.
35323         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
35324         here...
35325         * modules/linkat (configure.ac): ... to here.
35327 2011-05-21  Bruno Haible  <bruno@clisp.org>
35329         link: Respect rules for use of AC_LIBOBJ.
35330         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
35331         * modules/link (configure.ac): ... to here.
35333 2011-05-21  Bruno Haible  <bruno@clisp.org>
35335         lchown: Move AC_LIBOBJ invocations to module description.
35336         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35337         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35338         * modules/lchown (configure.ac): ... to here.
35340 2011-05-21  Bruno Haible  <bruno@clisp.org>
35342         iswctype: Move AC_LIBOBJ invocations to module description.
35343         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
35344         here...
35345         * modules/iswctype (configure.ac): ... to here.
35347 2011-05-21  Bruno Haible  <bruno@clisp.org>
35349         iswblank: Move AC_LIBOBJ invocations to module description.
35350         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
35351         here...
35352         * modules/iswblank (configure.ac): ... to here.
35354 2011-05-21  Bruno Haible  <bruno@clisp.org>
35356         atanl: Move AC_LIBOBJ invocations to module description.
35357         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
35358         * modules/atanl (configure.ac): ... to here.
35360 2011-05-21  Bruno Haible  <bruno@clisp.org>
35362         acosl: Move AC_LIBOBJ invocations to module description.
35363         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
35364         * modules/acosl (configure.ac): ... to here.
35366 2011-05-21  Bruno Haible  <bruno@clisp.org>
35368         asinl: Respect rules for use of AC_LIBOBJ.
35369         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
35370         * modules/asinl (configure.ac): ... to here.
35372 2011-05-21  Bruno Haible  <bruno@clisp.org>
35374         tanl: Move AC_LIBOBJ invocations to module description.
35375         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
35376         * modules/tanl (configure.ac): ... to here.
35378 2011-05-21  Bruno Haible  <bruno@clisp.org>
35380         cosl: Move AC_LIBOBJ invocations to module description.
35381         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
35382         * modules/cosl (configure.ac): ... to here.
35384 2011-05-21  Bruno Haible  <bruno@clisp.org>
35386         sinl: Move AC_LIBOBJ invocations to module description.
35387         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
35388         * modules/sinl (configure.ac): ... to here.
35390 2011-05-21  Bruno Haible  <bruno@clisp.org>
35392         logl: Move AC_LIBOBJ invocations to module description.
35393         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
35394         * modules/logl (configure.ac): ... to here.
35396 2011-05-21  Bruno Haible  <bruno@clisp.org>
35398         expl: Move AC_LIBOBJ invocations to module description.
35399         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
35400         * modules/expl (configure.ac): ... to here.
35402 2011-05-21  Bruno Haible  <bruno@clisp.org>
35404         roundl: Move AC_LIBOBJ invocations to module description.
35405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
35406         * modules/roundl (configure.ac): ... to here.
35408 2011-05-21  Bruno Haible  <bruno@clisp.org>
35410         round: Move AC_LIBOBJ invocations to module description.
35411         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
35412         * modules/round (configure.ac): ... to here.
35414 2011-05-21  Bruno Haible  <bruno@clisp.org>
35416         roundf: Move AC_LIBOBJ invocations to module description.
35417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
35418         * modules/roundf (configure.ac): ... to here.
35420 2011-05-21  Bruno Haible  <bruno@clisp.org>
35422         truncl: Move AC_LIBOBJ invocations to module description.
35423         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
35424         * modules/truncl (configure.ac): ... to here.
35426 2011-05-21  Bruno Haible  <bruno@clisp.org>
35428         trunc: Move AC_LIBOBJ invocations to module description.
35429         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
35430         * modules/trunc (configure.ac): ... to here.
35432 2011-05-21  Bruno Haible  <bruno@clisp.org>
35434         truncf: Move AC_LIBOBJ invocations to module description.
35435         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
35436         * modules/truncf (configure.ac): ... to here.
35438 2011-05-21  Bruno Haible  <bruno@clisp.org>
35440         ceill: Move AC_LIBOBJ invocations to module description.
35441         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
35442         * modules/ceill (configure.ac): ... to here.
35444 2011-05-21  Bruno Haible  <bruno@clisp.org>
35446         ceil: Move AC_LIBOBJ invocations to module description.
35447         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
35448         * modules/ceil (configure.ac): ... to here.
35450 2011-05-21  Bruno Haible  <bruno@clisp.org>
35452         ceilf: Move AC_LIBOBJ invocations to module description.
35453         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
35454         * modules/ceilf (configure.ac): ... to here.
35456 2011-05-21  Bruno Haible  <bruno@clisp.org>
35458         floorl: Respect rules for use of AC_LIBOBJ.
35459         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
35460         * modules/floorl (configure.ac): ... to here.
35462 2011-05-21  Bruno Haible  <bruno@clisp.org>
35464         floor: Respect rules for use of AC_LIBOBJ.
35465         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
35466         * modules/floor (configure.ac): ... to here.
35468 2011-05-21  Bruno Haible  <bruno@clisp.org>
35470         floorf: Move AC_LIBOBJ invocations to module description.
35471         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
35472         * modules/floorf (configure.ac): ... to here.
35474 2011-05-20  Bruno Haible  <bruno@clisp.org>
35476         sqrtl: Respect rules for use of AC_LIBOBJ.
35477         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
35478         * modules/sqrtl (configure.ac): ... to here.
35480 2011-05-20  Bruno Haible  <bruno@clisp.org>
35482         ldexpl: Respect rules for use of AC_LIBOBJ.
35483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
35484         * modules/ldexpl (configure.ac): ... to here.
35486 2011-05-20  Bruno Haible  <bruno@clisp.org>
35488         frexpl*: Respect rules for use of AC_LIBOBJ.
35489         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
35490         invocation from here...
35491         * modules/frexpl (configure.ac): ... to here.
35492         * modules/frexpl-nolibm (configure.ac): ... and here.
35494 2011-05-20  Bruno Haible  <bruno@clisp.org>
35496         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
35497         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
35498         invocation from here...
35499         * modules/frexp (configure.ac): ... to here.
35500         * modules/frexp-nolibm (configure.ac): ... and here.
35502 2011-05-20  Bruno Haible  <bruno@clisp.org>
35504         isnan: Respect rules for use of AC_LIBOBJ.
35505         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
35506         invocations here.
35507         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
35508         REPLACE_ISNAN.
35509         * modules/isnand (configure.ac): Likewise.
35510         * modules/isnanl (configure.ac): Likewise.
35512 2011-05-20  Bruno Haible  <bruno@clisp.org>
35514         isnanl*: Respect rules for use of AC_LIBOBJ.
35515         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
35516         invocation from here...
35517         * modules/isnanl (configure.ac): ... to here.
35518         * modules/isnanl-nolibm (configure.ac): ... and here.
35520 2011-05-20  Bruno Haible  <bruno@clisp.org>
35522         isnand*: Move AC_LIBOBJ invocations to module description.
35523         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
35524         invocation from here...
35525         * modules/isnand (configure.ac): ... to here.
35526         * modules/isnand-nolibm (configure.ac): ... and here.
35528 2011-05-20  Bruno Haible  <bruno@clisp.org>
35530         isnanf*: Move AC_LIBOBJ invocations to module description.
35531         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
35532         invocation from here...
35533         * modules/isnanf (configure.ac): ... to here.
35534         * modules/isnanf-nolibm (configure.ac): ... and here.
35536 2011-05-20  Bruno Haible  <bruno@clisp.org>
35538         isnan*: Separate the AC_LIBOBJ invocations.
35539         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
35540         AC_LIBOBJ invocation.
35541         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
35542         here.
35543         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
35544         AC_LIBOBJ invocation.
35545         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35546         here.
35547         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
35548         AC_LIBOBJ invocation.
35549         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
35550         here.
35551         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
35553 2011-05-08  Bruno Haible  <bruno@clisp.org>
35555         isinf: Move AC_LIBOBJ invocations to module description.
35556         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
35557         * modules/isinf (configure.ac): ... to here.
35559 2011-05-08  Bruno Haible  <bruno@clisp.org>
35561         isfinite: Move AC_LIBOBJ invocations to module description.
35562         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
35563         * modules/isfinite (configure.ac): ... to here.
35565 2011-05-08  Bruno Haible  <bruno@clisp.org>
35567         isblank: Move AC_LIBOBJ invocations to module description.
35568         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
35569         here...
35570         * modules/isblank (configure.ac): ... to here.
35572 2011-05-08  Bruno Haible  <bruno@clisp.org>
35574         isapipe: Move AC_LIBOBJ invocations to module description.
35575         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
35576         gl_PREREQ_ISAPIPE invocations from here...
35577         * modules/isapipe (configure.ac): ... to here.
35578         (Depends-on): Update condition.
35580 2011-05-08  Bruno Haible  <bruno@clisp.org>
35582         ioctl: Move AC_LIBOBJ invocations to module description.
35583         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
35584         invocations from here...
35585         * modules/ioctl (configure.ac): ... to here.
35586         (Depends-on): Update condition.
35588 2011-05-08  Bruno Haible  <bruno@clisp.org>
35590         imaxdiv: Move AC_LIBOBJ invocations to module description.
35591         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
35592         invocations from here...
35593         * modules/imaxdiv (configure.ac): ... to here.
35595 2011-05-08  Bruno Haible  <bruno@clisp.org>
35597         imaxabs: Move AC_LIBOBJ invocations to module description.
35598         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35599         invocations from here...
35600         * modules/imaxabs (configure.ac): ... to here.
35602 2011-05-08  Bruno Haible  <bruno@clisp.org>
35604         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35606         AC_LIBOBJ invocations from here...
35607         * modules/getaddrinfo (configure.ac): ... to here.
35608         (Depends-on): Add conditions.
35610 2011-05-08  Bruno Haible  <bruno@clisp.org>
35612         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35613         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35614         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35615         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35616         (gl_PREREQ_INET_PTON): ... from here.
35617         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35618         gl_PREREQ_INET_PTON here.
35619         (Depends-on): Update condition.
35621 2011-05-08  Bruno Haible  <bruno@clisp.org>
35623         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35624         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35625         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35626         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35627         (gl_PREREQ_INET_NTOP): ... from here.
35628         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35629         gl_PREREQ_INET_NTOP here.
35630         (Depends-on): Update condition.
35632 2011-05-08  Bruno Haible  <bruno@clisp.org>
35634         iconv_open: Move AC_LIBOBJ invocations to module description.
35635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35636         AC_LIBOBJ invocations from here...
35637         * modules/iconv_open (configure.ac): ... to here.
35639 2011-05-08  Bruno Haible  <bruno@clisp.org>
35641         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35642         If module 'iconv_open' is among the main modules and module
35643         'iconv_open-utf' is among the tests dependencies, then
35644         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35645         return the special iconv_t values. Therefore iconv() and iconv_close()
35646         must support these special iconv_t values, already in lib, not only in
35647         tests.
35648         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35649         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35650         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35651         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35652         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35653         (Depends-on): Add the dependencies of iconv_open-utf.
35654         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35655         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35656         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35658 2011-05-08  Bruno Haible  <bruno@clisp.org>
35660         group-member: Move AC_LIBOBJ invocations to module description.
35661         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35662         gl_PREREQ_GROUP_MEMBER invocations from here...
35663         * modules/group-member (configure.ac): ... to here.
35665 2011-05-08  Bruno Haible  <bruno@clisp.org>
35667         grantpt: Move AC_LIBOBJ invocations to module description.
35668         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35669         invocations from here...
35670         * modules/grantpt (configure.ac): ... to here.
35672 2011-05-08  Bruno Haible  <bruno@clisp.org>
35674         glob: Move AC_LIBOBJ invocations to module description.
35675         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35676         from here...
35677         * modules/glob (configure.ac): ... to here.
35679 2011-05-08  Bruno Haible  <bruno@clisp.org>
35681         getusershell: Move AC_LIBOBJ invocations to module description.
35682         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35683         Move AC_LIBOBJ invocation from here...
35684         * modules/getusershell (configure.ac): ... to here.
35685         (Depends-on): Update condition.
35687 2011-05-08  Bruno Haible  <bruno@clisp.org>
35689         gettimeofday: Move AC_LIBOBJ invocations to module description.
35690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35691         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35692         gl_PREREQ_GETTIMEOFDAY invocations from here...
35693         * modules/gettimeofday (configure.ac): ... to here.
35695 2011-05-08  Bruno Haible  <bruno@clisp.org>
35697         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35698         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35699         just gl_FUNC_TZSET.
35700         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35701         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35703         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35705 2011-05-08  Bruno Haible  <bruno@clisp.org>
35707         getsubopt: Move AC_LIBOBJ invocations to module description.
35708         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35709         gl_PREREQ_GETSUBOPT invocations from here...
35710         * modules/getsubopt (configure.ac): ... to here.
35712 2011-05-08  Bruno Haible  <bruno@clisp.org>
35714         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35715         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35716         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35717         * modules/getpass-gnu (configure.ac): ... to here.
35719 2011-05-08  Bruno Haible  <bruno@clisp.org>
35721         getpass: Move AC_LIBOBJ invocations to module description.
35722         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35723         gl_PREREQ_GETPASS invocations from here...
35724         * modules/getpass (configure.ac): ... to here.
35726 2011-05-08  Bruno Haible  <bruno@clisp.org>
35728         getpagesize: Move AC_LIBOBJ invocations to module description.
35729         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35730         from here...
35731         * modules/getpagesize (configure.ac): ... to here.
35733 2011-05-08  Bruno Haible  <bruno@clisp.org>
35735         getopt: Move AC_LIBOBJ invocations to module description.
35736         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35737         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35738         invocations from here...
35739         * modules/getopt-gnu (configure.ac): ... to here.
35740         * modules/getopt-posix (configure.ac): ... and here.
35741         (Depends-on): Update condition.
35743 2011-05-08  Bruno Haible  <bruno@clisp.org>
35745         getopt, argp: Respect rules for use of AC_LIBOBJ.
35746         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
35747         (gl_REPLACE_GETOPT_ALWAYS): New macro.
35748         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
35749         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
35751 2011-05-08  Bruno Haible  <bruno@clisp.org>
35753         getlogin_r: Move AC_LIBOBJ invocations to module description.
35754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
35755         gl_PREREQ_GETLOGIN_R invocations from here...
35756         * modules/getlogin_r (configure.ac): ... to here.
35758 2011-05-08  Bruno Haible  <bruno@clisp.org>
35760         getlogin: Move AC_LIBOBJ invocations to module description.
35761         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
35762         here...
35763         * modules/getlogin (configure.ac): ... to here.
35765 2011-05-08  Bruno Haible  <bruno@clisp.org>
35767         getloadavg: Move AC_LIBOBJ invocations to module description.
35768         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
35769         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
35770         * modules/getloadavg (configure.ac): ... to here.
35772 2011-05-08  Bruno Haible  <bruno@clisp.org>
35774         gethrxtime: Move AC_LIBOBJ invocations to module description.
35775         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
35776         LIB_GETHRXTIME from here...
35777         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
35778         invocations from here...
35779         * modules/gethrxtime (configure.ac): ... to here.
35781 2011-05-08  Bruno Haible  <bruno@clisp.org>
35783         gethostname: Move AC_LIBOBJ invocations to module description.
35784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
35785         gl_PREREQ_GETHOSTNAME invocations from here...
35786         * modules/gethostname (configure.ac): ... to here.
35788 2011-05-08  Bruno Haible  <bruno@clisp.org>
35790         getgroups: Move AC_LIBOBJ invocations to module description.
35791         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
35792         here...
35793         * modules/getgroups (configure.ac): ... to here.
35795 2011-05-08  Bruno Haible  <bruno@clisp.org>
35797         getdtablesize: Move AC_LIBOBJ invocations to module description.
35798         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
35799         invocation from here...
35800         * modules/getdtablesize (configure.ac): ... to here.
35802 2011-05-08  Bruno Haible  <bruno@clisp.org>
35804         getdomainname: Move AC_LIBOBJ invocations to module description.
35805         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
35806         gl_PREREQ_GETDOMAINNAME invocations from here...
35807         * modules/getdomainname (configure.ac): ... to here.
35809 2011-05-08  Bruno Haible  <bruno@clisp.org>
35811         getline: Move AC_LIBOBJ invocations to module description.
35812         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
35813         invocations from here...
35814         * modules/getline (configure.ac): ... to here.
35816 2011-05-08  Bruno Haible  <bruno@clisp.org>
35818         getline: Simplify.
35819         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
35820         It's already handled through the module dependency.
35822 2011-05-08  Bruno Haible  <bruno@clisp.org>
35824         getdelim: Move AC_LIBOBJ invocations to module description.
35825         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
35826         and gl_PREREQ_GETDELIM invocations from here...
35827         * modules/getdelim (configure.ac): ... to here.
35828         (Depends-on): Fix condition.
35830 2011-05-08  Bruno Haible  <bruno@clisp.org>
35832         getcwd: Move AC_LIBOBJ invocations to module description.
35833         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
35834         invocations from here...
35835         * modules/getcwd (configure.ac): ... to here.
35837 2011-05-08  Bruno Haible  <bruno@clisp.org>
35839         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
35840         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
35841         here...
35842         * modules/getcwd-lgpl (configure.ac): ... to here.
35844 2011-05-07  Bruno Haible  <bruno@clisp.org>
35846         crypto/gc: Move AC_LIBOBJ invocations to module description.
35847         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
35848         * modules/crypto/gc (configure.ac): ... to here.
35850 2011-05-07  Bruno Haible  <bruno@clisp.org>
35852         fwriting: Move AC_LIBOBJ invocations to module description.
35853         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
35854         here...
35855         * modules/fwriting (configure.ac): ... to here.
35857 2011-05-07  Bruno Haible  <bruno@clisp.org>
35859         fwritable: Move AC_LIBOBJ invocations to module description.
35860         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35861         here...
35862         * modules/fwritable (configure.ac): ... to here.
35864 2011-05-07  Bruno Haible  <bruno@clisp.org>
35866         futimens: Move AC_LIBOBJ invocations to module description.
35867         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35868         here...
35869         * modules/futimens (configure.ac): ... to here.
35871 2011-05-07  Bruno Haible  <bruno@clisp.org>
35873         ftruncate: Move AC_LIBOBJ invocations to module description.
35874         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35875         gl_PREREQ_FTRUNCATE invocations from here...
35876         * modules/ftruncate (configure.ac): ... to here.
35878 2011-05-07  Bruno Haible  <bruno@clisp.org>
35880         fsync: Move AC_LIBOBJ invocations to module description.
35881         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35882         invocations from here...
35883         * modules/fsync (configure.ac): ... to here.
35885 2011-05-07  Bruno Haible  <bruno@clisp.org>
35887         fsusage: Move AC_LIBOBJ invocations to module description.
35888         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35889         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35890         * modules/fsusage (configure.ac): ... to here.
35892 2011-05-07  Bruno Haible  <bruno@clisp.org>
35894         freopen: Move AC_LIBOBJ invocations to module description.
35895         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35896         invocations from here...
35897         * modules/freopen (configure.ac): ... to here.
35899 2011-05-07  Bruno Haible  <bruno@clisp.org>
35901         free: Move AC_LIBOBJ invocations to module description.
35902         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35903         invocations from here...
35904         * modules/free (configure.ac): ... to here.
35906 2011-05-07  Bruno Haible  <bruno@clisp.org>
35908         freadable: Move AC_LIBOBJ invocations to module description.
35909         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35910         here...
35911         * modules/freadable (configure.ac): ... to here.
35913 2011-05-07  Bruno Haible  <bruno@clisp.org>
35915         fpurge: Move AC_LIBOBJ invocations to module description.
35916         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35917         invocations from here...
35918         * modules/fpurge (configure.ac): ... to here.
35920 2011-05-07  Bruno Haible  <bruno@clisp.org>
35922         fpending: Move AC_LIBOBJ invocations to module description.
35923         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
35924         gl_FUNC_FPENDING.
35925         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
35926         invocations from here...
35927         * modules/fpending (configure.ac): ... to here.
35929 2011-05-07  Bruno Haible  <bruno@clisp.org>
35931         fopen: Move AC_LIBOBJ invocations to module description.
35932         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
35933         invocations from here...
35934         * modules/fopen (configure.ac): ... to here.
35936 2011-05-07  Bruno Haible  <bruno@clisp.org>
35938         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
35939         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
35940         gl_FUNC_FNMATCH_POSIX.
35941         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
35942         invocations from here...
35943         * modules/fnmatch (configure.ac): ... to here.
35944         * modules/fnmatch-gnu (configure.ac): ... and here.
35946 2011-05-07  Bruno Haible  <bruno@clisp.org>
35948         flock: Move AC_LIBOBJ invocations to module description.
35949         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
35950         invocations from here...
35951         * modules/flock (configure.ac): ... to here.
35953 2011-05-07  Bruno Haible  <bruno@clisp.org>
35955         fileblocks: Move AC_LIBOBJ invocations to module description.
35956         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
35957         gl_PREREQ_FILEBLOCKS invocations from here...
35958         * modules/fileblocks (configure.ac): ... to here.
35960 2011-05-06  Bruno Haible  <bruno@clisp.org>
35962         fflush: Move AC_LIBOBJ invocations to module description.
35963         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
35964         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
35965         invocations from here...
35966         * modules/fflush (configure.ac): ... to here.
35968 2011-05-06  Bruno Haible  <bruno@clisp.org>
35970         fdopendir: Move AC_LIBOBJ invocations to module description.
35971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
35972         here...
35973         * modules/fdopendir (configure.ac): ... to here.
35974         (Depends-on): Improve conditions.
35976 2011-05-06  Bruno Haible  <bruno@clisp.org>
35978         _Exit: Move AC_LIBOBJ invocations to module description.
35979         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35980         invocations from here...
35981         * modules/_Exit (configure.ac): ... to here.
35983 2011-05-21  Bruno Haible  <bruno@clisp.org>
35985         euidaccess: Respect rules for use of AC_LIBOBJ.
35986         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
35988         from here...
35989         * modules/euidaccess (configure.ac): ... to here.
35991 2011-05-06  Bruno Haible  <bruno@clisp.org>
35993         error: Move AC_LIBOBJ invocations to module description.
35994         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
35995         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
35996         invocations from here...
35997         * modules/error (configure.ac): ... to here.
35999 2011-05-06  Bruno Haible  <bruno@clisp.org>
36001         duplocale: Move AC_LIBOBJ invocations to module description.
36002         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
36003         gl_PREREQ_DUPLOCALE invocations from here...
36004         * modules/duplocale (configure.ac): ... to here.
36006 2011-05-05  Bruno Haible  <bruno@clisp.org>
36008         dirfd: Move AC_LIBOBJ invocations to module description.
36009         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
36010         gl_FUNC_DIRFD.
36011         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
36012         here...
36013         * modules/dirfd (configure.ac): ... to here.
36014         (Depends-on): Fix condition.
36016 2011-05-05  Bruno Haible  <bruno@clisp.org>
36018         chown: Respect rules for use of AC_LIBOBJ.
36019         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
36020         * modules/chown (configure.ac): ... to here.
36022 2011-05-05  Bruno Haible  <bruno@clisp.org>
36024         chdir-long: Move AC_LIBOBJ invocations to module description.
36025         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
36026         gl_PREREQ_CHDIR_LONG invocations from here...
36027         * modules/chdir-long (configure.ac): ... to here.
36029 2011-05-05  Bruno Haible  <bruno@clisp.org>
36031         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
36032         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
36033         from here...
36034         * modules/canonicalize-lgpl (configure.ac): ... to here.
36036 2011-05-05  Bruno Haible  <bruno@clisp.org>
36038         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
36039         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
36040         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
36041         REPLACE_CALLOC.
36042         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
36043         * modules/calloc-gnu (configure.ac): Likewise.
36045 2011-05-05  Bruno Haible  <bruno@clisp.org>
36047         btowc: Move AC_LIBOBJ invocations to module description.
36048         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
36049         invocations from here...
36050         * modules/btowc (configure.ac): ... to here.
36052 2011-05-21  Bruno Haible  <bruno@clisp.org>
36054         atexit: Move AC_LIBOBJ invocations to module description.
36055         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
36056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
36057         here...
36058         * modules/atexit (configure.ac): ... to here.
36060 2011-05-05  Bruno Haible  <bruno@clisp.org>
36062         atoll: Move AC_LIBOBJ invocations to module description.
36063         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
36064         invocations from here...
36065         * modules/atoll (configure.ac): ... to here.
36067 2011-05-05  Bruno Haible  <bruno@clisp.org>
36069         argz: Move AC_LIBOBJ invocations to module description.
36070         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
36071         * modules/argz (configure.ac): ... to here.
36073 2011-05-05  Bruno Haible  <bruno@clisp.org>
36075         alphasort: Move AC_LIBOBJ invocations to module description.
36076         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
36077         gl_PREREQ_ALPHASORT invocations from here...
36078         * modules/alphasort (configure.ac): ... to here.
36080 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36082         verify: new macro verify_expr; verify_true deprecated
36083         * NEWS: Mention this.
36084         * doc/verify.texi (Compile-time Assertions): Document this.
36085         * lib/verify.h (verify_true): Deprecate.
36086         (verify_expr): New macro.
36087         * tests/test-verify.c (function): Test verify_expr.
36089 2011-06-14  Jim Meyering  <meyering@redhat.com>
36091         init.sh: give more portable redirection-related advice in a comment
36092         * tests/init.sh (stderr_fileno_): Update the advice in comments.
36093         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
36094         for lots of discussion.  Stefano Lattarini suggested the solution
36095         of putting "9>&2" after the command.  Reported by Bruno Haible.
36097 2011-06-13  Bruno Haible  <bruno@clisp.org>
36099         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
36100         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
36101         'none'.
36103 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
36105         ftoastr: use strtof only if HAVE_STRTOF
36106         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
36107         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
36108         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
36109         * modules/ftoastr (configure.ac): Check for strtof.
36111 2011-06-13  Bruno Haible  <bruno@clisp.org>
36113         gnulib-tool: Addendum to 2011-06-08 commit.
36114         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
36115         and --witness-c-macro have been given, augment AM_CPPFLAGS.
36117 2011-06-13  Bruno Haible  <bruno@clisp.org>
36119         fseeko: Provide a non-inline replacement of fseek().
36120         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
36121         * modules/fseeko (Depends-on): Add fseek.
36122         * modules/fseek (License): Change to LGPLv2+.
36124 2011-06-13  Bruno Haible  <bruno@clisp.org>
36126         ftello: Provide a non-inline replacement of ftell().
36127         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
36128         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
36129         not have ftello() (such as on mingw).
36130         * modules/ftello (Depends-on): Add ftell.
36131         * modules/ftell (License): Change to LGPLv2+.
36133 2011-05-07  Bruno Haible  <bruno@clisp.org>
36135         ftell: Move AC_LIBOBJ invocations to module description.
36136         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
36137         * modules/ftell (configure.ac): ... to here.
36139 2011-05-07  Bruno Haible  <bruno@clisp.org>
36141         ftello: Respect rules for use of AC_LIBOBJ.
36142         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
36143         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
36144         here...
36145         * modules/ftello (configure.ac): ... to here.
36147 2011-05-07  Bruno Haible  <bruno@clisp.org>
36149         fseeko: Simplify.
36150         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
36151         (gl_FUNC_FSEEKO): Inline it here.
36153 2011-05-07  Bruno Haible  <bruno@clisp.org>
36155         fseek: Move AC_LIBOBJ invocations to module description.
36156         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
36157         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
36158         * modules/fseek (configure.ac): ... to here.
36160 2011-05-07  Bruno Haible  <bruno@clisp.org>
36162         fseek: Respect rules for use of AC_LIBOBJ.
36163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
36164         here...
36165         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
36167 2011-05-07  Bruno Haible  <bruno@clisp.org>
36169         fseeko: Respect rules for use of AC_LIBOBJ.
36170         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
36171         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
36172         here...
36173         * modules/fseeko (configure.ac): ... to here.
36175 2011-06-13  Bruno Haible  <bruno@clisp.org>
36177         gnulib-tool: Allow comments in the 'Depends-on' section.
36178         * doc/gnulib.texi (Module description): Mention comment syntax in the
36179         Depends-on section.
36180         * gnulib-tool (func_get_dependencies): Filter out comment lines.
36182 2011-06-13  Bruno Haible  <bruno@clisp.org>
36184         file-set.h: guard __attibute__ use, now that it's not always defined
36185         * lib/file-set.h (record_file): Use __attribute__ only with compiler
36186         versions that support it.  This fixes a coreutils build failure with
36187         the vendor cc on HP-UX 11.31.
36189 2011-06-12  Bruno Haible  <bruno@clisp.org>
36191         acl: Add support for HP-UX >= 11.11 JFS ACLs.
36192         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
36193         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
36194         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
36195         (acl, aclsort): New declarations.
36196         (aclv_nontrivial): New declaration.
36197         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
36198         (file_has_acl): Read also the second kind of HP-UX ACLs.
36199         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
36200         kind of HP-UX ACLs if the first kind fails.
36201         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
36202         second kind of HP-UX ACLs.
36203         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
36204         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
36205         agree.
36206         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36207         hpuxjfs.
36208         Handle hpuxjfs.
36209         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36210         hpuxjfs.
36211         Handle hpuxjfs.
36212         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36213         (func_test_same_acls): Use both lsacl and getacl.
36214         Handle hpuxjfs.
36215         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36216         (func_test_same_acls): Use both lsacl and getacl.
36217         Handle hpuxjfs.
36219 2011-06-12  Bruno Haible  <bruno@clisp.org>
36221         acl: Complete the 2010-08-10 fix.
36222         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
36223         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
36224         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
36225         explicitly.
36226         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
36227         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
36229 2011-06-12  Bruno Haible  <bruno@clisp.org>
36231         spawn-pipe tests: Comments.
36232         * tests/test-spawn-pipe-child.c (main): Update comment.
36233         Reported by James Youngman <jay@gnu.org>.
36235 2011-06-11  James Youngman  <jay@gnu.org>
36237         New module 'stat-size'.
36238         * modules/stat-size: New module.  Provides macros for accessing
36239         file size information in instances of struct stat.  Depends on the
36240         fileblocks module because it calls st_blocks.
36241         * lib/stat-size.h: New file, adapted from coreutils' system.h.
36242         * doc/gnulib.texi: Include stat-size.texi.
36243         * doc/stat-size.texi: Documentation for this module.
36244         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
36245         * m4/fileblocks.m4: Mention that stat-size depends on the call to
36246         AC_STRUCT_ST_BLOCKS.
36248 2011-06-09  Bruno Haible  <bruno@clisp.org>
36250         thread: Support pthreads-win32.
36251         * lib/glthread/thread.h (gl_thread_self): Define differently on
36252         pthreads-win32.
36253         (gl_null_thread): New declaration.
36254         (gl_thread_self_pointer): New macro.
36255         * lib/glthread/thread.c (gl_null_thread): New constant.
36256         * tests/test-lock.c: Use gl_thread_self_pointer instead of
36257         gl_thread_self.
36258         * tests/test-tls.c: Likewise.
36259         Suggested by Paul Eggert. Reported by Eric Blake.
36261 2011-06-09  Bruno Haible  <bruno@clisp.org>
36263         thread: Fix confusion between NULL and 0.
36264         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
36265         Reported by Paul Eggert.
36267 2011-06-09  Bruno Haible  <bruno@clisp.org>
36269         spawn-pipe tests: Avoid test failure on HP-UX 11.
36270         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
36271         is closed.
36273 2011-06-09  Bruno Haible  <bruno@clisp.org>
36275         acl tests: Fix compilation error on HP-UX 11.
36276         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
36278 2011-06-09  Bruno Haible  <bruno@clisp.org>
36280         rmdir: Avoid test failure on HP-UX 10.20.
36281         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
36282         EEXIST.
36284 2011-06-08  Eric Blake  <eblake@redhat.com>
36286         perror: fix test on mingw
36287         * modules/perror-tests (Depends-on): Add dup2.
36289         strerror_r-posix: fix on MacOS
36290         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
36291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
36292         logic bug.
36293         * lib/strerror_r.c (strerror_r): Fix the bug.
36294         * lib/strerror.c (strerror): Likewise.
36295         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36296         problem.
36297         * doc/posix-functions/strerror.texi (strerror): Likewise.
36298         * doc/posix-functions/perror.texi (perror): Likewise.
36299         * tests/test-strerror.c (main): Enhance test.
36300         * tests/test-strerror_r.c (main): Likewise.
36302 2011-06-08  Bruno Haible  <bruno@clisp.org>
36304         gnulib-tool: Better isolation between different gnulib-tool invocations.
36305         * gnulib-tool: New option --witness-c-macro.
36306         (witness_c_macro): New variable.
36307         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
36308         AM_CPPFLAGS define it as a C macro.
36309         (func_emit_tests_Makefile_am): Likewise.
36310         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
36311         read it from there.
36312         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
36313         m4_define, not AC_DEFUN.
36314         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
36315         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
36316         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
36317         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
36318         s|...|...|, to substitute the values of the GNULIB_* module indicator
36319         variables.
36320         * modules/dirent (Makefile.am): Likewise.
36321         * modules/fcntl-h (Makefile.am): Likewise.
36322         * modules/iconv-h (Makefile.am): Likewise.
36323         * modules/langinfo (Makefile.am): Likewise.
36324         * modules/locale (Makefile.am): Likewise.
36325         * modules/math (Makefile.am): Likewise.
36326         * modules/netdb (Makefile.am): Likewise.
36327         * modules/poll-h (Makefile.am): Likewise.
36328         * modules/pty (Makefile.am): Likewise.
36329         * modules/search (Makefile.am): Likewise.
36330         * modules/signal (Makefile.am): Likewise.
36331         * modules/spawn (Makefile.am): Likewise.
36332         * modules/stdio (Makefile.am): Likewise.
36333         * modules/stdlib (Makefile.am): Likewise.
36334         * modules/string (Makefile.am): Likewise.
36335         * modules/sys_ioctl (Makefile.am): Likewise.
36336         * modules/sys_select (Makefile.am): Likewise.
36337         * modules/sys_socket (Makefile.am): Likewise.
36338         * modules/sys_stat (Makefile.am): Likewise.
36339         * modules/sys_times (Makefile.am): Likewise.
36340         * modules/sys_utsname (Makefile.am): Likewise.
36341         * modules/sys_wait (Makefile.am): Likewise.
36342         * modules/termios (Makefile.am): Likewise.
36343         * modules/time (Makefile.am): Likewise.
36344         * modules/unistd (Makefile.am): Likewise.
36345         * modules/wchar (Makefile.am): Likewise.
36347 2011-06-08  Eric Blake  <eblake@redhat.com>
36349         strerror: simplify replacement
36350         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
36351         * modules/strerror (configure.ac): No prereqs needed here...
36352         * modules/strerror-override (configure.ac): ...but this needs it.
36353         (Files): Add file for needed prereq macro.
36355 2011-06-08  Bruno Haible  <bruno@clisp.org>
36357         strerror_r-posix: Tweaks.
36358         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
36359         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
36360         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
36361         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
36362         (gl_FUNC_STRERROR_R): ... to here.
36363         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
36365 2011-06-07  Eric Blake  <eblake@redhat.com>
36367         perror: document fixed bugs
36368         * doc/posix-functions/perror.texi (perror): Document recent
36369         patches.
36371 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
36373         stat-time: get_stat_birthtime failure is better-defined
36374         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
36375         return a timestamp whose tv_sec and tv_nsec values are both -1.
36376         Previously, the spec said only that the tv_nsec value was negative.
36377         This upward-compatible change simplifies GNU tar a bit.
36379 2011-06-07  Eric Blake  <eblake@redhat.com>
36381         strerror_r-posix: work around cygwin 1.7.9
36382         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
36383         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
36384         bug without replacing strerror_r.
36385         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
36386         strerror_r is buggy, but without requiring strerror_r compilation.
36387         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
36389         test-perror: relax test to ignore cygwin bug
36390         * tests/test-perror2.c (main): Relax test on requiring detection
36391         of stream errors, and use unbuffered stream.
36392         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
36393         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
36394         * doc/posix-functions/fputc.texi (fputc): Likewise.
36395         * doc/posix-functions/fputs.texi (fputs): Likewise.
36396         * doc/posix-functions/fputws.texi (fputws): Likewise.
36397         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
36398         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
36399         * doc/posix-functions/getopt.texi (getopt): Likewise.
36400         * doc/posix-functions/perror.texi (perror): Likewise.
36401         * doc/posix-functions/printf.texi (printf): Likewise.
36402         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
36403         * doc/posix-functions/psignal.texi (psignal): Likewise.
36404         * doc/posix-functions/putc.texi (putc): Likewise.
36405         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
36406         Likewise.
36407         * doc/posix-functions/putchar.texi (putchar): Likewise.
36408         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
36409         Likewise.
36410         * doc/posix-functions/puts.texi (puts): Likewise.
36411         * doc/posix-functions/putwc.texi (putwc): Likewise.
36412         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36413         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36414         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36415         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
36416         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36417         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36418         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36419         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
36421 2011-05-22  Bruno Haible  <bruno@clisp.org>
36423         strerror: Move AC_LIBOBJ invocations to module description.
36424         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
36425         gl_PREREQ_STRERROR invocations from here...
36426         * modules/strerror (configure.ac): ... to here.
36428 2011-05-21  Bruno Haible  <bruno@clisp.org>
36430         perror: Use common idiom.
36431         * modules/perror (configure.ac): Reorder statements.
36433 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36435         tests: fix usage message in 'mktempd_'
36436         * tests/init.sh (mktempd_): In the usage message, use literal
36437         'mktempd_', not '$ME' (which is even undefined), as the name of
36438         the subroutine.
36440 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36442         tests init: new function 'fatal_', for hard errors
36443         Before this patch, the only way offered by tests/init.sh to
36444         properly signal a hard error was the `framework_failure_'
36445         function.  But the error message issued by that function,
36446         as its name would suggest, refers to a set-up failure in the
36447         testsuite, while hard errors can obviously also be due to
36448         other reasons.  The best way to fix this inconsistency is to
36449         introduce a new function with a more general error message.
36450         * tests/init.sh (fatal_): New function.
36452 2011-06-06  Eric Blake  <eblake@redhat.com>
36454         canonicalize-lgpl: use common idiom
36455         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
36456         over newer POSIX -Rf.
36457         Reported by Bruno Haible.
36459         canonicalize-lgpl: work around AIX realpath bug
36460         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
36461         * doc/posix-functions/realpath.texi (realpath): Document it.
36462         Reported by Bruno Haible.
36464         strerror: work around FreeBSD bug
36465         * lib/strerror.c (strerror): Special case 0.
36466         Reported by Bruno Haible.
36468         strerror-override: avoid bloating errno module
36469         * modules/errno (Files, configure.ac): Move replacement strings...
36470         * modules/strerror-override: ...to new module.
36471         * modules/strerror (Depends-on): Add strerror-override.
36472         * modules/strerror_r-posix (Depends-on): Likewise.
36473         * MODULES.html.sh: Document new module.
36474         Reported by Bruno Haible.
36476 2011-06-06  Bruno Haible  <bruno@clisp.org>
36478         spawn-pipe tests: Rename program.
36479         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
36480         * tests/test-spawn-pipe-child.c: Update comment.
36481         * tests/test-spawn-pipe.sh: Update.
36482         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
36484         spawn-pipe tests: Link the child program only against libc.
36485         * tests/test-spawn-pipe-child.c: New file, extracted from
36486         tests/test-spawn-pipe.c.
36487         (main): Expect only one argument.
36488         (is_open): New function, copied from tests/test-pipe.c.
36489         * tests/test-spawn-pipe.c: Don't include <errno.h>.
36490         (child_main): Remove function.
36491         (test_pipe): Pass only one argument to the child program.
36492         (main): Remove child process code. Expect the child program's name as
36493         first argument.
36494         * tests/test-spawn-pipe.sh: Pass the child program's name as first
36495         argument.
36496         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
36497         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
36498         test-spawn-pipe-child against no libraries.
36500 2011-06-06  Bruno Haible  <bruno@clisp.org>
36502         careadlinkat: Avoid mismatch between ssize_t and int.
36503         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
36504         * lib/careadlinkat.c (careadlinkatcwd): Define always.
36506 2011-06-06  Jim Meyering  <meyering@redhat.com>
36508         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
36509         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
36510         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
36512 2011-06-05  Bruno Haible  <bruno@clisp.org>
36514         ansi-c++-opt: Interoperability with libtool.
36515         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
36516         set the variable to "no", not to ":".
36517         * NEWS: Mention the change.
36519 2011-06-05  Bruno Haible  <bruno@clisp.org>
36521         acl: Fix test failure on AIX 7.
36522         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
36523         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
36525 2011-06-05  Bruno Haible  <bruno@clisp.org>
36527         pipe-filter-ii: Fix test failure on AIX and IRIX.
36528         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
36529         with EAGAIN, retry with a smaller buffer size.
36531 2011-06-05  Bruno Haible  <bruno@clisp.org>
36533         localename: Fix link dependencies.
36534         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
36535         * modules/localename-tests (Makefile.am): Link test-localename with
36536         $(LIBTHREAD).
36538 2011-06-05  Bruno Haible  <bruno@clisp.org>
36540         error: Avoid gcc warning.
36541         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
36543 2011-06-05  Bruno Haible  <bruno@clisp.org>
36545         unsetenv: Avoid gcc warning.
36546         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
36548 2011-06-05  Bruno Haible  <bruno@clisp.org>
36550         setenv: Avoid gcc warning.
36551         * lib/setenv.c (setenv): Provide declaration if system lacks it.
36553 2011-06-05  Bruno Haible  <bruno@clisp.org>
36555         sys_select: Ensure memset is declared also on AIX 7.
36556         * lib/sys_select.in.h: Include <string.h> also on AIX.
36557         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
36558         self-contained also on AIX 7.1.
36560 2011-06-04  Jim Meyering  <meyering@redhat.com>
36562         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
36563         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
36564         function name, "error".
36565         (_gl_translatable_diag_func_re): New configurable variable.
36567 2011-06-04  Bruno Haible  <bruno@clisp.org>
36569         getopt: Avoid gcc warning.
36570         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
36572 2011-06-04  Bruno Haible  <bruno@clisp.org>
36574         strerror_r: Fix comments.
36575         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
36576         commit.
36578 2011-06-04  Bruno Haible  <bruno@clisp.org>
36580         perror: Fix compilation error.
36581         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
36582         Undefine fprintf, not sprintf.
36583         * modules/perror (Depends-on): Remove intprops, verify.
36585 2011-06-04  Bruno Haible  <bruno@clisp.org>
36587         setlocale: Enable replacement on Cygwin 1.5.
36588         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
36589         Cygwin 1.5.x.
36590         * doc/posix-functions/setlocale.texi: Mention that the problem with the
36591         LC_CTYPE category also exists on Cygwin 1.5.x.
36593 2011-06-04  Bruno Haible  <bruno@clisp.org>
36595         strerror-override: Don't disable symbol renamings.
36596         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36597         * lib/strerror-override.c: Include config.h.
36598         (strerror_override): Don't undefine.
36600 2011-06-03  Bruno Haible  <bruno@clisp.org>
36602         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36603         * lib/localename.h: Update copyright header.
36604         * lib/localename.c: Likewise.
36605         * lib/relocatable.h: Likewise.
36606         * lib/relocatable.c: Likewise.
36608 2011-06-02  Bruno Haible  <bruno@clisp.org>
36610         doc: Fix a module name.
36611         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36613 2011-06-02  Bruno Haible  <bruno@clisp.org>
36615         pipe2: Remove dependency on 'nonblocking' module.
36616         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36617         O_NONBLOCK is defined by gnulib.
36618         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36619         is zero.
36620         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36621         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36622         defined by gnulib.
36623         (get_nonblocking_flag): New function.
36624         (main): Test O_NONBLOCK flag only if it is nonzero.
36625         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36627 2011-06-03  Jim Meyering  <meyering@redhat.com>
36629         maint: three new prohibit-header-without-use rules
36630         Prohibit use of cloexec.h, posixver.h, same.h without use.
36631         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36632         (sc_prohibit_posixver_without_use): Likewise.
36633         (sc_prohibit_same_without_use): Likewise.
36635 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36637         allocator: 'die' routine is now given requested size
36638         * lib/allocator.h (struct allocator.die): New size arg.
36639         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36640         If the actual problem is an ssize_t limitation, not a size_t or
36641         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36643 2011-06-01  Eric Blake  <eblake@redhat.com>
36645         strerror: drop strerror_r dependency
36646         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36647         * lib/strerror-override.c (strerror_override): ...to new file.
36648         * lib/strerror-override.h: Add prototype.
36649         * lib/strerror-impl.h: Delete.
36650         * lib/strerror.c (strerror): New implementation.
36651         * modules/errno (Files): Add new files.
36652         (configure.ac): Compile new file as appropriate.
36653         * modules/strerror (Files): Drop unused file.
36654         (Depends-on): Drop strerror_r-posix.
36655         * MODULES.html.sh: Document strerror_r-posix.
36656         Requested by Sam Steingold.
36658         perror: call strerror_r directly
36659         * modules/perror (Files): Drop strerror-impl.h.
36660         * lib/perror.c (perror): Use our own stack buffer, rather than
36661         calling a wrapper that uses static storage.
36662         * doc/posix-functions/perror.texi (perror): Document a limitation
36663         of our replacement.
36665         strerror_r: fix includes for FreeBSD
36666         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36667         since we use abort on some platforms.
36668         Reported by Matthias Bolte.
36670 2011-05-31  Bruno Haible  <bruno@clisp.org>
36672         Fix link errors in tests: openat-die uses gettext-h.
36673         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36674         against $(LIBINTL).
36675         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36676         against $(LIBINTL).
36677         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36678         $(LIBINTL).
36679         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36680         against $(LIBINTL).
36681         * modules/linkat-tests (Makefile.am): Link test-linkat against
36682         $(LIBINTL).
36683         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36684         $(LIBINTL).
36685         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36686         against $(LIBINTL).
36687         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36688         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36689         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36690         $(LIBINTL).
36691         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36692         $(LIBINTL).
36693         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36694         $(LIBINTL).
36695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36697 2011-05-31  Bruno Haible  <bruno@clisp.org>
36699         Fix link errors in tests: wait-process uses gettext-h.
36700         * modules/nonblocking-pipe-tests (Makefile.am): Set
36701         test_nonblocking_pipe_main_LDADD.
36702         * modules/nonblocking-socket-tests (Makefile.am): Link
36703         test-nonblocking-socket-main against $(LIBINTL).
36704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36706 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36708         assert-h: work around 'verify' incompatibility
36709         * lib/verify.h: Use @...@ directives, not ifdef.
36710         * modules/assert-h (assert.h): Implement the directives.
36711         (assert.h): Substitute the symbol-prefix more consistently.
36713 2011-05-29  Jim Meyering  <meyering@redhat.com>
36715         trim: remove three superfluous assignments
36716         * lib/trim.c (trim2): Remove three superfluous assignments
36717         and correct brace positioning.
36719 2011-05-29  Bruno Haible  <bruno@clisp.org>
36721         wctype-h: Avoid namespace pollution on Solaris 2.6.
36722         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36723         identifiers.
36724         * doc/posix-headers/wctype.texi: Mention the problem.
36725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36727 2011-05-28  Jim Meyering  <meyering@redhat.com>
36729         parse-datetime.y: accommodate -Wstrict-overflow
36730         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36731         placate -Wstrict-overflow.
36733         trim: avoid a warning from -O2 -Wstrict-overflow
36734         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36736 2011-05-29  Bruno Haible  <bruno@clisp.org>
36738         gnulib-tool: Fix bug in yesterday's commit.
36739         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36740         twice.
36742 2011-05-29  Bruno Haible  <bruno@clisp.org>
36744         Allow multiple gnulib generated include files to be combined.
36745         * gnulib-tool (func_compute_include_guard_prefix): New function.
36746         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
36747         ${gl_include_guard_prefix} references.
36748         (func_import, func_create_testdir): Invoke
36749         func_compute_include_guard_prefix.
36750         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
36751         * lib/ctype.in.h: Likewise.
36752         * lib/dirent.in.h: Likewise.
36753         * lib/errno.in.h: Likewise.
36754         * lib/fcntl.in.h: Likewise.
36755         * lib/float.in.h: Likewise.
36756         * lib/getopt.in.h: Likewise.
36757         * lib/iconv.in.h: Likewise.
36758         * lib/langinfo.in.h: Likewise.
36759         * lib/locale.in.h: Likewise.
36760         * lib/math.in.h: Likewise.
36761         * lib/netdb.in.h: Likewise.
36762         * lib/netinet_in.in.h: Likewise.
36763         * lib/poll.in.h: Likewise.
36764         * lib/pthread.in.h: Likewise.
36765         * lib/pty.in.h: Likewise.
36766         * lib/sched.in.h: Likewise.
36767         * lib/se-selinux.in.h: Likewise.
36768         * lib/search.in.h: Likewise.
36769         * lib/signal.in.h: Likewise.
36770         * lib/spawn.in.h: Likewise.
36771         * lib/stdarg.in.h: Likewise.
36772         * lib/stddef.in.h: Likewise.
36773         * lib/stdint.in.h: Likewise.
36774         * lib/stdio.in.h: Likewise.
36775         * lib/stdlib.in.h: Likewise.
36776         * lib/string.in.h: Likewise.
36777         * lib/strings.in.h: Likewise.
36778         * lib/sys_file.in.h: Likewise.
36779         * lib/sys_ioctl.in.h: Likewise.
36780         * lib/sys_select.in.h: Likewise.
36781         * lib/sys_socket.in.h: Likewise.
36782         * lib/sys_stat.in.h: Likewise.
36783         * lib/sys_time.in.h: Likewise.
36784         * lib/sys_times.in.h: Likewise.
36785         * lib/sys_uio.in.h: Likewise.
36786         * lib/sys_utsname.in.h: Likewise.
36787         * lib/sys_wait.in.h: Likewise.
36788         * lib/sysexits.in.h: Likewise.
36789         * lib/termios.in.h: Likewise.
36790         * lib/time.in.h: Likewise.
36791         * lib/unistd.in.h: Likewise.
36792         * lib/wchar.in.h: Likewise.
36793         * lib/wctype.in.h: Likewise.
36794         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
36795         * modules/ctype (Makefile.am): Likewise.
36796         * modules/dirent (Makefile.am): Likewise.
36797         * modules/errno (Makefile.am): Likewise.
36798         * modules/fcntl-h (Makefile.am): Likewise.
36799         * modules/float (Makefile.am): Likewise.
36800         * modules/getopt-posix (Makefile.am): Likewise.
36801         * modules/iconv-h (Makefile.am): Likewise.
36802         * modules/langinfo (Makefile.am): Likewise.
36803         * modules/locale (Makefile.am): Likewise.
36804         * modules/math (Makefile.am): Likewise.
36805         * modules/netdb (Makefile.am): Likewise.
36806         * modules/netinet_in (Makefile.am): Likewise.
36807         * modules/poll-h (Makefile.am): Likewise.
36808         * modules/pthread (Makefile.am): Likewise.
36809         * modules/pty (Makefile.am): Likewise.
36810         * modules/sched (Makefile.am): Likewise.
36811         * modules/search (Makefile.am): Likewise.
36812         * modules/selinux-h (Makefile.am): Likewise.
36813         * modules/signal (Makefile.am): Likewise.
36814         * modules/spawn (Makefile.am): Likewise.
36815         * modules/stdarg (Makefile.am): Likewise.
36816         * modules/stddef (Makefile.am): Likewise.
36817         * modules/stdint (Makefile.am): Likewise.
36818         * modules/stdio (Makefile.am): Likewise.
36819         * modules/stdlib (Makefile.am): Likewise.
36820         * modules/string (Makefile.am): Likewise.
36821         * modules/strings (Makefile.am): Likewise.
36822         * modules/sys_file (Makefile.am): Likewise.
36823         * modules/sys_ioctl (Makefile.am): Likewise.
36824         * modules/sys_select (Makefile.am): Likewise.
36825         * modules/sys_socket (Makefile.am): Likewise.
36826         * modules/sys_stat (Makefile.am): Likewise.
36827         * modules/sys_time (Makefile.am): Likewise.
36828         * modules/sys_times (Makefile.am): Likewise.
36829         * modules/sys_uio (Makefile.am): Likewise.
36830         * modules/sys_utsname (Makefile.am): Likewise.
36831         * modules/sys_wait (Makefile.am): Likewise.
36832         * modules/sysexits (Makefile.am): Likewise.
36833         * modules/termios (Makefile.am): Likewise.
36834         * modules/time (Makefile.am): Likewise.
36835         * modules/unistd (Makefile.am): Likewise.
36836         * modules/wchar (Makefile.am): Likewise.
36837         * modules/wctype-h (Makefile.am): Likewise.
36838         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
36840 2011-05-29  Bruno Haible  <bruno@clisp.org>
36842         assert-h: Allow multiple gnulib generated replacements to coexist.
36843         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
36845 2011-05-29  Bruno Haible  <bruno@clisp.org>
36847         argp: Allow coexistence with strerror_r-posix module.
36848         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
36849         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
36850         by gnulib's <string.h> replacement), assume it has the POSIX signature,
36851         not the glibc signature.
36853 2011-05-28  Bruno Haible  <bruno@clisp.org>
36855         gnulib-tool: Alternative structure of testdirs, similar to --import.
36856         * gnulib-tool: New option --single-configure.
36857         (func_usage): Document it.
36858         (single_configure): New variable.
36859         (func_modules_transitive_closure_separately,
36860         func_modules_transitive_closure_separately,
36861         func_determine_use_libtests, func_modules_add_dummy_separately,
36862         func_modules_to_filelist_separately): New functions, extracted from
36863         func_import.
36864         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36865         (func_import): Use the new functions.
36866         (func_create_testdir): Set final_modules. Handle $single_configure =
36867         true case.
36869 2011-05-28  Bruno Haible  <bruno@clisp.org>
36871         getloadavg: Remove an unreliable safety check.
36872         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36873         getloadavg.c is in place.
36874         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36875         Reported by Sam Steingold <sds@gnu.org>.
36877 2011-05-28  Bruno Haible  <bruno@clisp.org>
36879         doc: Cleanup yet another file produced by texinfo.tex.
36880         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36882 2011-05-28  Bruno Haible  <bruno@clisp.org>
36884         Finish the conditional dependencies mechanism.
36885         * gnulib-tool: New option --no-conditional-dependencies.
36886         (func_usage): Document it. Don't mark --conditional-dependencies as
36887         experimental.
36888         (cond_dependencies): The possible values can now be true, false, empty.
36889         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36890         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36891         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36893 2011-05-28  Bruno Haible  <bruno@clisp.org>
36895         doc: Use a recent texinfo.tex.
36896         * doc/Makefile (tex_opts): New variable.
36897         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36899 2011-05-28  Jim Meyering  <meyering@redhat.com>
36901         intprops.h: adjust comment to match code change
36902         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36903         only once, it *may* have side effects.  Also fix an unrelated typo.
36904         (_GL_INT_SIGNED): Likewise.
36906 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36908         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36910 2011-05-26  Bruno Haible  <bruno@clisp.org>
36912         mbsrchr: Avoid collision with system function on Interix.
36913         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36914         Reported by Markus Duft <mduft@gentoo.org>.
36916 2011-05-15  James Youngman  <jay@gnu.org>
36918         getopt: for ambiguous options, enumerate the possibilities.
36919         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
36920         the ambiguous options when an ambiguous prefix is given. This was
36921         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
36922         glibc change was
36923         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
36925 2011-05-25  Eric Blake  <eblake@redhat.com>
36927         getcwd: work around mingw bug
36928         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
36929         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36930         Reported by Matthias Bolte.
36932 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
36934         test-intprops: disable -Wtype-limits diagnostics
36935         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
36936         diagnostics.  Otherwise, the integer overflow macros generate many
36937         diagnostics.  Reported by Jim Meyering in
36938         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36940         intprops: shorten, to pacify gcc -Woverlength-strings
36941         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
36942         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
36943         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
36944         likely to run afoul of C compiler limits for string constant lengths.
36945         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36947 2011-05-24  Eric Blake  <eblake@redhat.com>
36949         docs: document recently fixed glibc printf bug
36950         * doc/posix-functions/fprintf.texi (fprintf): Document it.
36951         * doc/posix-functions/printf.texi (printf): Likewise.
36952         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36953         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36955         closein-tests: convert to init.sh
36956         * modules/closein-tests (Files): Add init.sh
36957         * tests/test-closein.sh Use it.
36959         yesno-tests: convert to init.sh
36960         * modules/yesno-tests (Files): Add init.sh.
36961         * tests/test-yesno.sh: Use it.
36963         atexit-tests: ensure reliable exit status
36964         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
36965         Reported by Bruno Haible.
36967 2011-05-24  Bruno Haible  <bruno@clisp.org>
36969         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
36970         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
36971         gl_PREREQ_STRERROR_R invocations from here...
36972         * modules/strerror_r-posix (configure.ac): ... to here.
36974 2011-05-24  Eric Blake  <eblake@redhat.com>
36976         strerror_r: fix missing header
36977         * lib/strerror_r.c: Avoid compiler warning about snprintf.
36979         strerror_r: fix AIX test failures
36980         * lib/strerror_r.c (strerror_r): Convert silent truncation to
36981         ERANGE failure.
36983         strerror_r: fix Solaris test failures
36984         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
36985         failures.
36986         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36988         strerror_r: enforce POSIX recommendations
36989         * lib/strerror_r.c (safe_copy): New helper method.
36990         (strerror_r): Guarantee a non-empty string.
36991         * tests/test-strerror_r.c (main): Enhance tests to incorporate
36992         recent POSIX rulings and to match our strerror guarantees.
36993         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36995 2011-05-24  Jim Meyering  <meyering@redhat.com>
36997         test-perror2.c: avoid warning about unused variable
36998         * tests/test-perror2.c (main): Remove declaration of unused "fp".
37000 2011-05-24  Eric Blake  <eblake@redhat.com>
37002         perror: avoid spurious test failure on HP-UX
37003         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
37005         tests: fix logic bug in init.sh
37006         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
37007         shell.
37009 2011-05-24  Jim Meyering  <meyering@redhat.com>
37011         utimensat: do not reference an out-of-scope buffer
37012         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
37013         declared in an inner scope, yet "times" would be dereferenced outside
37014         the scope in which "ts" was valid.
37015         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
37016         of ts[2] "out/up", so that the use of aliased "times" (via
37017         "times = ts;") does not end up referencing an out-of-scope "ts"
37019         opendir-safer.c: don't clobber errno; don't close negative FD
37020         * lib/opendir-safer.c (opendir_safer):
37021         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
37022         file descriptor, and more importantly, don't clobber the
37023         offending errno value with EINVAL.  Before, upon failure
37024         of dup_safer, we would pass the negative file descriptor to
37025         fdopendir, which would clobber errno.
37027 2011-05-23  Bruno Haible  <bruno@clisp.org>
37029         idcache: Fix module description.
37030         * modules/idcache (Include): Set to "idcache.h".
37032 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37034         gnulib-tool: fix portability problem with MacOS sed
37035         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
37036         before the "}".  Problem reported by Leo in
37037         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
37038         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
37039         sed_extract_condition1, sed_extract_condition2.
37041 2011-05-23  Bruno Haible  <bruno@clisp.org>
37043         hash: Simplify autoconf macro.
37044         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
37046 2011-05-23  Bruno Haible  <bruno@clisp.org>
37048         getugroups: Fix module description.
37049         * modules/getugroups (Include): Set to "getugroups.h".
37051 2011-05-23  Bruno Haible  <bruno@clisp.org>
37053         linkat: Simplify autoconf macro.
37054         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
37056 2011-05-23  Bruno Haible  <bruno@clisp.org>
37057             Eric Blake  <eblake@redhat.com>
37059         linkat, renameat: Update dependencies.
37060         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
37061         * modules/linkat (Depends-on): Likewise. Remove also readlink,
37062         symlinkat.
37064 2011-05-23  Jim Meyering  <meyering@redhat.com>
37066         maint.mk: more tight_scope improvements
37067         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
37068         (_gl_TS_headers): Define only in if-0'd block.
37069         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
37070         sometimes we must *not* use it.  Adjust uses accordingly.
37071         (sc_tight_scope): Use much simpler grep-based test to determine
37072         whether we skip this rule.
37074         maint.mk: generalize/improve the tight-scope rule
37075         * top/maint.mk: Emit a warning when the test is skipped.
37076         (_gl_TS_dir): Add $(srcdir)/ prefix.
37077         (_gl_TS_function_match): Simplify, rather than trying
37078         to enumerate common types.  Otherwise, it would fail to match an
37079         "extern unsigned char const *" declaration in idutils.
37080         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
37081         a way to support use of that type of macro.
37082         (_gl_TS_var_match): Simplify regexp.
37083         (_gl_TS_obj_files): New configurable variable.
37084         (_gl_TS_headers): Likewise.
37086 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37088         verify: fix bug when gnulib <assert.h> is also included
37089         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
37090         is defined, not if _GL_STATIC_ASSERT_H is not defined.
37091         Perhaps there's a better way, but this fixes the immediate problem.
37092         Problem reported by Bruno Haible in
37093         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
37095 2011-05-22  Bruno Haible  <bruno@clisp.org>
37097         xgetcwd: Simplify autoconf macro.
37098         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
37100 2011-05-22  Bruno Haible  <bruno@clisp.org>
37102         New module 'mktime-internal'.
37103         * modules/mktime-internal: New file.
37104         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
37105         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
37106         mktime_internal as a C macro if libc has __mktime_internal.
37107         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
37108         conditions.
37109         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
37111 2011-05-22  Bruno Haible  <bruno@clisp.org>
37113         timegm: Correct mktime replacement statements.
37114         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
37115         defining mktime as a C macro. This completes a 2009-07-28 commit.
37117 2011-05-22  Bruno Haible  <bruno@clisp.org>
37119         timegm: Simplify autoconf macro.
37120         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
37122 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
37124         clock-time: change to LGPLv2+.
37125         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
37126         BSD-like but we have no mark for that; this is good enough for now.
37128 2011-05-21  Bruno Haible  <bruno@clisp.org>
37130         strerror_r: Fix comments.
37131         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
37133 2011-05-21  Bruno Haible  <bruno@clisp.org>
37135         relocatable-prog-wrapper: Fix possible link error.
37136         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
37137         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
37138         (gl_FUNC_SETENV): ... to here.
37139         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
37140         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
37142 2011-05-21  Bruno Haible  <bruno@clisp.org>
37144         relocatable-prog-wrapper: Assume strerror() exists.
37145         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
37146         m4/strerror.m4.
37147         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
37148         * lib/relocwrapper.c: Remove mention of strerror module.
37149         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
37150         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
37151         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
37152         C macro.
37154 2011-05-21  Bruno Haible  <bruno@clisp.org>
37156         select: Simplify replacement idiom.
37157         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
37158         Win32 platforms.
37159         * lib/sys_select.in.h (select): Simplify accordingly.
37160         * modules/select (Depends-on): Likewise.
37162 2011-05-21  Bruno Haible  <bruno@clisp.org>
37164         mkdir-p: Simplify autoconf macro.
37165         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
37166         gl_FUNC_LCHOWN.
37168 2011-05-21  Eric Blake  <eblake@redhat.com>
37170         strerror_r: avoid clobbering strerror on cygwin
37171         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
37172         fall back instead to sys_errlist.
37173         * modules/strerror (configure.ac): Add witness.
37174         * tests/test-strerror_r.c (main): Enhance test.
37175         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37176         * tests/test-perror2.c (main): Free memory before exit.
37178 2011-05-21  Bruno Haible  <bruno@clisp.org>
37180         mkdtemp: Use gnulib naming conventions.
37181         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
37182         * modules/mkdtemp (configure.ac): Update.
37184 2011-05-20  Eric Blake  <eblake@redhat.com>
37186         strerror_r: avoid corrupting errno on Solaris
37187         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
37188         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37190         strerror_r: avoid compiler warning
37191         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
37193         strerror_r: simplify AIX code
37194         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
37196         test-perror: avoid spurious failure on FreeBSD
37197         * modules/perror-tests (Depends-on): Add strerror, now that
37198         strerror_r no longer pulls it in.
37200 2011-05-20  Bruno Haible  <bruno@clisp.org>
37202         strerror_r-posix: Remove unused dependencies.
37203         * modules/strerror_r-posix (Depends-on): Remove strerror.
37204         Reported by Eric Blake.
37206 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37208         intprops: remove assumption about A|B representation
37209         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
37210         is a valid integer if both A and B are.  Although this is true for
37211         all known practical hosts, the C standard doesn't guarantee it,
37212         and the code need not assume it.  Also, this change may work around
37213         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
37214         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
37216 2011-05-20  Eric Blake  <eblake@redhat.com>
37218         perror: work around FreeBSD bug
37219         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
37220         is broken.  Move AC_LIBOBJ...
37221         * modules/perror (configure.ac): Here.
37222         * doc/posix-functions/perror.texi (perror): Document this.
37223         * tests/test-perror2.c (main): Enhance test.
37225         test-perror: check for strerror interactions
37226         * tests/macros.h (STREQ): Add macro.
37227         * modules/perror-tests (Files): Add second test.
37228         * tests/test-perror2.c (main): New file.
37229         * doc/posix-functions/perror.texi (perror): Document glibc bug.
37231         test-perror: rewrite to use init script
37232         * modules/perror-tests (Files): Add init.sh.
37233         * tests/test-perror.sh: Use temporary directory.
37235 2011-05-20  Jim Meyering  <meyering@redhat.com>
37237         maint: replace misused "a" with "an"
37238         * doc/intprops.texi: "a integer"
37239         * doc/regex.texi: "a explanation"
37240         * lib/alignof.h: "a object"
37241         * lib/argmatch.h: "a explanation"
37242         * lib/argp-help.c: "a option" and "a OPTION_DOC"
37243         * lib/stdint.in.h: "a integer"
37244         * lib/userspec.c: "a owner"
37245         * doc/gnulib.texi: Fix "a idea", and reword.
37247 2011-05-19  Jim Meyering  <meyering@redhat.com>
37249         maint: correct misuse of "a" and "an"
37250         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
37251         * lib/argp-help.c: "an docum...": s/an/a/
37252         * lib/argp-parse.c: "An vector": s/An/A/
37253         * lib/execute.c: "an native": s/an/a/
37254         * lib/spawn-pipe.c: Likewise.
37255         * lib/gc.h: "an Gc_rc": s/an/a/
37256         * lib/unigbrk.in.h: "an grapheme": s/an/a/
37257         * lib/fts.c: "an stat.st_dev": s/an/a/
37259 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37261         intprops-tests: work around HP-UX 11.23 cc bug with constants
37262         * tests/test-intprops.c (VERIFY): New macro.
37263         (main): Use it, instead of verify, to work around the compiler bug; see
37264         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37266         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
37267         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
37268         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
37269         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
37270         (_GL_REMAINDER_OVERFLOW): Use it.
37272         intprops-tests: revert unsigned part of previous change
37273         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
37274         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
37275         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
37276         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
37278 2011-05-19  Bruno Haible  <bruno@clisp.org>
37280         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
37281         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
37282         strerror_r() returned without filling the buffer.
37283         Reported by Eric Blake.
37285 2011-05-19  Eric Blake  <eblake@redhat.com>
37287         strerror_r: guarantee unchanged errno
37288         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
37289         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
37290         failure.
37291         * tests/test-strerror_r.c (main): Enhance test.
37293 2011-05-19  Bruno Haible  <bruno@clisp.org>
37295         strerror_r: Reorder #if blocks.
37296         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
37297         for consistency with the previous commit.
37299 2011-05-19  Bruno Haible  <bruno@clisp.org>
37301         perror: Avoid clobbering the strerror buffer when possible.
37302         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
37303         * lib/strerror.c: Include it.
37304         * modules/strerror (Files): Add lib/strerror-impl.h.
37305         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
37306         (my_strerror): New function, defined through lib/strerror-impl.h.
37307         (perror): Use it instead of strerror.
37308         * modules/perror (Files): Add lib/strerror-impl.h.
37309         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
37311 2011-05-19  Eric Blake  <eblake@redhat.com>
37313         strerror_r: fix on newer cygwin
37314         * lib/strerror_r.c (strerror_r): Cygwin now has
37315         __xpg_strerror_r, use it.
37317 2011-05-19  Bruno Haible  <bruno@clisp.org>
37319         strerror_r: Avoid clobbering the strerror buffer when possible.
37320         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
37321         (sys_nerr, sys_errlist): New declarations.
37322         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
37323         HP-UX, native Win32, IRIX, and 32-bit Solaris.
37324         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
37326 2011-05-19  Bruno Haible  <bruno@clisp.org>
37328         strerror_r: Fix test failure on mingw.
37329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
37330         EXTEND_STRERROR_R.
37331         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
37332         macros from errno.in.h instead.
37334 2011-05-19  Eric Blake  <eblake@redhat.com>
37336         strerror: relax test for Solaris
37337         * tests/test-strerror.c (main): Permit Solaris behavior.
37338         * tests/test-strerror_r.c (main): Likewise.
37340         strerror: enforce POSIX ruling on strerror(0)
37341         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
37342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
37343         * lib/strerror_r.c (rpl_strerror_r): Work around it.
37344         * doc/posix-functions/strerror.texi (strerror): Document it.
37345         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
37346         * tests/test-strerror.c (main): Strengthen test.
37347         * tests/test-strerror_r.c (main): Likewise.
37349 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37351         intprop-tests: port to older and more-pedantic compilers
37352         * modules/intprops-tests (Files): Add tests/macros.h.
37353         * tests/test-intprops.c: Include macros.h.
37354         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
37355         it's no longer documented to expand to an integer constant expression.
37356         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
37357         argument is floating point, as it's no longer documented to expand
37358         to an integer constant expression in that case.
37359         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
37360         compiler bugs reported by Bruno Haible.  See
37361         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37362         (U0, U1): New constants, to work around the same bugs.  Also,
37363         in tests, use e.g., "(unsigned int) 39" rather than "39u".
37365         intprops: work around C compiler bugs
37366         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
37367         bug in Sun C 5.11 2010/08/13 and other compilers; see
37368         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37370         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
37371         * doc/intprops.texi (Integer Type Determination): Fix
37372         documentation for TYPE_IS_INTEGER: it returns an constant
37373         expression, not an integer constant expression.  Fix doc for
37374         TYPE_SIGNED: it returns an integer constant expression only if its
37375         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
37376         hardly worth documented that way....)
37378 2011-05-18  Bruno Haible  <bruno@clisp.org>
37380         strerror_r: Avoid clobbering the strerror buffer when possible.
37381         * lib/strerror_r.c (strerror_r): Merge the three implementations.
37382         Handle gnulib defined errno values here. When strerror() returns NULL
37383         or an empty string, return EINVAL.
37384         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
37385         gnulib defined errno values here.
37386         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
37388 2011-05-18  Eric Blake  <eblake@redhat.com>
37390         fnmatch: avoid compiler warning
37391         * lib/fnmatch_loop.c (FCT): Use correct type.
37392         Reported by Matthias Bolte.
37394 2011-05-13  Jim Meyering  <meyering@redhat.com>
37396         maint.mk: three new prohibit_<HDR>_without_use rules
37397         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
37398         (sc_prohibit_stdio-safer_without_use): Likewise.
37399         (sc_prohibit_xfreopen_without_use): Likewise.
37401 2011-05-17  Jim Meyering  <meyering@redhat.com>
37403         announce-gen: fail if the NEWS delta is empty
37404         If there's nothing noteworthy in NEWS, then either you forgot
37405         or you shouldn't be releasing.
37406         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
37408 2011-05-17  Pádraig Brady  <P@draigBrady.com>
37410         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
37411         reserved symbols starting with double underscore from the check.
37413 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37415         intprops: add doc
37416         * doc/intprops.texi: New file, documenting intprops.
37417         * doc/gnulib.texi (Particular Modules): Include it.
37419         verify: add doc to gnulib manual and fix example
37420         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
37421         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
37422         (Compile-time Assertions): Fix example so it can't overflow.
37424 2011-05-17  Jim Meyering  <meyering@redhat.com>
37426         warnings.m4: don't usurp save_CPPFLAGS variable name
37427         * m4/warnings.m4: Prefix local temporary variable name with gl_.
37429         doc: fix typo
37430         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
37432 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37433             Bruno Haible  <bruno@clisp.org>
37435         doc: Tweak recent change.
37436         * README (Portability guidelines): Tweak new text.
37437         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
37438         Interix 6.1.
37440 2011-05-16  Eric Blake  <eblake@redhat.com>
37442         inttypes: avoid autoconf warning
37443         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
37444         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37446 2011-05-16  Sam Steingold  <sds@gnu.org>
37447         and Eric Blake  <eblake@redhat.com>
37449         vc-list-files: accept multiple directory operands
37450         * build-aux/vc-list-files: Iterate over all remaining operands.
37452 2011-05-16  Bruno Haible  <bruno@clisp.org>
37454         Fix confusion regarding deprecated modules.
37455         * modules/calloc (Status, Notice): Mark module as deprecated, not
37456         obsolete.
37457         * modules/fnmatch-posix (Status, Notice): Likewise.
37458         * modules/getdate (Status, Notice): Likewise.
37459         * modules/getopt (Status, Notice): Likewise.
37460         * modules/malloc (Status, Notice): Likewise.
37461         * modules/pipe (Status, Notice): Likewise.
37462         * modules/realloc (Status, Notice): Likewise.
37463         * modules/rename-dest-slash (Status, Notice): Likewise.
37464         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
37465         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
37466         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
37467         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
37468         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
37470 2011-05-16  Bruno Haible  <bruno@clisp.org>
37472         doc: List the target platforms.
37473         * doc/gnulib-intro.texi (Target Platforms): New section.
37474         * doc/gnulib.texi (Introduction): Update menu.
37475         * README (Portability guidelines): Refer to the new section. Update
37476         statement about oldest supported environment. Remove rationale why
37477         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
37478         unportable C89 function.
37479         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
37480         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
37482 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37484         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
37486 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37488         intprops-tests: new module
37489         * modules/intprops-tests, tests/test-intprops.c: New files.
37491         intprops: add safe, portable integer overflow checking
37492         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
37493         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
37494         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
37495         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
37496         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
37497         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
37498         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
37499         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
37500         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
37501         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
37502         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
37504 2011-05-12  James Youngman  <jay@gnu.org>
37506         Add a test for glibc's Bugzilla bug #12378.
37507         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
37508         doesn't allow the literal matching of a lone "[" (which is
37509         required by POSIX).
37510         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
37512 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
37514         Sync glibc change fixing Bugzilla bug #12378.
37515         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
37516         beginning and fall back to matching as normal character if the
37517         string ends before the matching ']' is found.  This is what POSIX
37518         requires.
37520 2011-05-13  Eric Blake  <eblake@redhat.com>
37522         getcwd-lgpl: relax test for FreeBSD
37523         * doc/posix-functions/getcwd.texi (getcwd): Document portability
37524         issue.
37525         * tests/test-getcwd-lgpl.c (main): Relax test.
37526         Reported by Matthias Bolte.
37528 2011-05-11  Eric Blake  <eblake@redhat.com>
37530         test-fflush: silence compiler warning
37531         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
37533 2011-05-11  Bruno Haible  <bruno@clisp.org>
37535         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
37536         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
37537         * modules/canonicalize (Depends-on): Add 'nocrash'.
37538         * modules/canonicalize-lgpl (Depends-on): Likewise.
37539         * doc/posix-functions/realpath.texi: Update platforms list.
37540         Reported by Ryan Schmidt <ryandesign@macports.org>.
37542 2011-05-11  Bruno Haible  <bruno@clisp.org>
37544         group-member: Declare function in <unistd.h>.
37545         * lib/unistd.in.h (group_member): New declaration.
37546         * lib/group-member.h: Remove file.
37547         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
37548         * tests/test-unistd-c++.cc: Check signature of group_member.
37549         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
37550         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
37551         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
37552         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
37553         HAVE_GROUP_MEMBER.
37554         * modules/group-member (Files): Remove lib/group-member.h.
37555         (Depends-on): Add unistd. Specify conditions.
37556         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37557         (Include): Change to <unistd.h>.
37558         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
37559         HAVE_GROUP_MEMBER.
37560         * NEWS: Mention the change.
37561         * lib/euidaccess.c: Don't include group-member.h.
37563 2011-05-11  Bruno Haible  <bruno@clisp.org>
37565         group-member: Document module.
37566         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
37567         module.
37569 2011-05-11  Bruno Haible  <bruno@clisp.org>
37571         fclose: Fix mistake earlier today.
37572         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
37574 2011-05-11  Eric Blake  <eblake@redhat.com>
37576         fclose: preserve fflush errors
37577         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
37578         Reported by Jim Meyering.
37580         bootstrap: support a prereq of 'rpcgen -' on RHEL5
37581         * build-aux/bootstrap (check_versions): When no specific version
37582         is required, merely check that the app produces an exit status
37583         that indicates its existence.
37585         maint.mk: drop redundant check
37586         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
37587         the same but better.
37589 2011-05-11  Bruno Haible  <bruno@clisp.org>
37591         fclose: Fix possible link error.
37592         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
37593         unregister_shadow_fd. Improve comments.
37594         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37595         Eric Blake.
37597 2011-05-11  Jim Meyering  <meyering@redhat.com>
37599         maint.mk: improve "can not" detection and generalize rule name
37600         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37601         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37602         Use the same technique as in sc_prohibit_doubled_word, so that
37603         we recognize "can not" also when the words are separated by a newline.
37604         Suggested by Eric Blake.
37605         (perl_filename_lineno_text_): Define.  Factored out of...
37606         (prohibit_doubled_word_): ...here.  Use the new definition.
37607         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37608         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37609         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37611 2011-05-10  Eric Blake  <eblake@redhat.com>
37613         fclose: avoid double close race when possible
37614         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37615         all but WINDOWS_SOCKETS.
37617 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37619         openat: correct new comment
37620         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37622 2011-05-10  Jim Meyering  <meyering@redhat.com>
37624         openat: add comments
37625         * lib/openat-proc.c (openat_proc_name): Add comments,
37626         mostly from Eric Blake.
37628 2011-05-09  Eric Blake  <eblake@redhat.com>
37630         openat: reduce syscalls in first probe of /proc
37631         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37632         be a directory.  Simplify the probe for .. bugs.
37633         * modules/openat (Depends-on): Drop same-inode.
37634         Reported by Bastien ROUCARIES.
37636 2011-05-09  Jim Meyering  <meyering@redhat.com>
37638         maint.mk: change semantics/name of tight_scope variables
37639         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37640         Rename variables to align with semantics that make them more useful.
37642         maint.mk: tweak new rule's name not to impinge
37643         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37644         (sc_tight_scope): Use new rule name rather than $@-0.
37646         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37647         * top/maint.mk (sc_tight_scope): New rule.
37648         (sc_tight_scope-0): New rule, ifdef'd out.
37649         (_gl_TS_dir): Default.
37650         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37651         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37653 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37655         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37656         Haible <bruno@clisp.org>.
37658 2011-05-08  Bruno Haible  <bruno@clisp.org>
37660         Comments.
37661         * m4/isnanf.m4: Add comment.
37662         * m4/isnanl.m4: Likewise.
37664 2011-05-08  Bruno Haible  <bruno@clisp.org>
37666         glob: Remove obsolete macro.
37667         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37669 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37671         intprops: Sun C 5.11 supports __typeof__
37672         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37673         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37674         which is new.
37675         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37677         intprops: switch to usual gnulib indenting and naming
37678         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37679         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37681         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37683 2011-05-08  Jim Meyering  <meyering@redhat.com>
37685         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37686         * top/maint.mk (release-prep): Use make's --no-print-directory
37687         option when generating the announcement.  This eliminates the
37688         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37689         generated announcement template.
37691 2011-05-08  Bruno Haible  <bruno@clisp.org>
37693         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37694         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37695         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37697 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37699         ignore-value, verify: Omit include files from lib_SOURCES.
37700         * modules/ignore-value, modules/verify (Makefile.am):
37701         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37702         that leads Automake to duplicate use of am__objects_... variables
37703         in Makefile.in.  See
37704         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37706 2011-05-07  Bruno Haible  <bruno@clisp.org>
37708         fclose: Simplify autoconf macro.
37709         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37710         defined.
37712 2011-05-07  Bruno Haible  <bruno@clisp.org>
37714         canonicalize-lgpl: Fix autoconf macro ordering bug.
37715         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37716         gl_STDLIB_H_DEFAULTS.
37718 2011-05-06  Eric Blake  <eblake@redhat.com>
37720         maintainer-makefile: make sc_po_check easier to tune
37721         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37722         to probe for strings, such as an alternate location for gnulib.
37724         fclose: guarantee behavior on seekable stdin
37725         * modules/fclose (Depends-on): Add fflush.
37726         * doc/posix-functions/fclose.texi (fclose): Document this.
37727         * tests/test-fclose.c (main): Make test for this unconditional.
37729 2011-05-06  Bruno Haible  <bruno@clisp.org>
37731         fflush, fpurge: Relicense under LGPLv2+.
37732         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37733         * modules/fpurge (License): Likewise.
37734         With permission from Eric Blake and Jim Meyering.
37735         Suggested by Eric Blake.
37737 2011-05-06  Karl Berry  <karl@gnu.org>
37739         * MODULES.html.sh (func_all_modules): remove exit.
37741 2011-05-06  Jim Meyering  <meyering@redhat.com>
37743         maint.mk: use info-gnu@ as the default only for a stable release
37744         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
37745         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
37746         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
37747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
37749 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37751         assert-h: new module, which supports C1X-style static_assert
37752         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
37753         * lib/verify.h: Revamp so that this can be copied into assert.h,
37754         while retaining the ability to use it standalone as before.
37755         Rename private identifiers so as not to encroach on the
37756         standard C namespace, since this is now used by assert.h.
37757         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
37758         the old verify_true.
37759         (_GL_VERIFY_TRUE): New macro, with much of the contents of
37760         the old verify_true.  Use _GL_VERIFY_TYPE.
37761         (_GL_VERIFY): New macro, with much of the contents of the old verify.
37762         (static_assert): New macro, if _GL_STATIC_ASSERT_H
37763         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
37764         defined when this file is copied into the replacement assert.h.
37765         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
37766         and _Static_assert is not built in.
37767         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
37768         defined, and use the new macros mentioned above.
37769         * doc/posix-headers/assert.texi: Document this.
37771 2011-05-05  Bruno Haible  <bruno@clisp.org>
37773         fclose, fflush: Respect rules for use of AC_LIBOBJ.
37774         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
37775         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
37776         gl_REPLACE_FCLOSE here.
37777         * modules/fflush (Depends-on): Remove fclose.
37778         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
37779         combination with module 'fclose'.
37781 2011-05-05  Bruno Haible  <bruno@clisp.org>
37783         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
37784         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37785         gl_FUNC_FFLUSH.
37786         (gl_FUNC_FFLUSH): Use it.
37787         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
37788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
37789         gl_REPLACE_FSEEKO here.
37791 2011-05-05  Bruno Haible  <bruno@clisp.org>
37793         tzset: Relicense under LGPL.
37794         * modules/tzset (License): Change to LGPL.
37795         No agreement needed; it's a no-op.
37797         strtoimax, strtoumax: Relicense under LGPL.
37798         * modules/strtoimax (License): Change to LGPL.
37799         * modules/strtoumax (License): Likewise.
37800         With permission from Jim Meyering, Paul Eggert:
37801         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
37802         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
37804         getgroups: Relicense under LGPL.
37805         * modules/getgroups (License): Change to LGPL.
37806         With permission from Jim Meyering, Paul Eggert, Eric Blake:
37807         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37808         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37809         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37811         nanosleep: Relicense under LGPL.
37812         * modules/nanosleep (License): Change to LGPL.
37813         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
37814         Haible:
37815         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37816         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37817         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37818         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37820         futimens: Relicense under LGPL.
37821         * modules/futimens (License): Change to LGPL.
37822         With permission from Eric Blake:
37823         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37825         fflush: Relicense under LGPL.
37826         * modules/fflush (License): Change to LGPL.
37827         With permission from Eric Blake, Bruno Haible, Jim Meyering:
37828         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37829         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37830         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
37832         tmpfile: Relicense under LGPL.
37833         * modules/tmpfile (License): Change to LGPL.
37834         With permission from Ben Pfaff:
37835         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37837         isfinite: Relicense under LGPL.
37838         * modules/isfinite (License): Change to LGPL.
37839         With permission from Ben Pfaff, Bruno Haible:
37840         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37841         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
37843         acosl..tanl: Relicense under LGPL.
37844         * modules/acosl (License): Change to LGPL.
37845         * modules/asinl (License): Likewise.
37846         * modules/atanl (License): Likewise.
37847         * modules/cosl (License): Likewise.
37848         * modules/expl (License): Likewise.
37849         * modules/logl (License): Likewise.
37850         * modules/sinl (License): Likewise.
37851         * modules/sqrtl (License): Likewise.
37852         * modules/tanl (License): Likewise.
37853         Source code originally from glibc and Paolo Bonzini. Agreements:
37854         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
37855         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
37857 2011-05-05  Bruno Haible  <bruno@clisp.org>
37859         signal: Define sighandler_t.
37860         * lib/signal.in.h (sighandler_t): New type.
37861         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37862         whether sighandler_t is defined.
37863         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37864         * modules/signal (Depends-on): Add extensions.
37865         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37866         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37867         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37869 2011-05-05  Eric Blake  <eblake@redhat.com>
37871         maint: remove useless REPLACE_*_H macros
37872         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37873         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37874         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37875         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37876         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37877         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37878         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37879         * m4/btowc.m4: Update callers.
37880         * m4/dirfd.m4: Likewise.
37881         * m4/duplocale.m4: Likewise.
37882         * m4/fchdir.m4: Likewise.
37883         * m4/fdopendir.m4: Likewise.
37884         * m4/inet_ntop.m4: Likewise.
37885         * m4/inet_pton.m4: Likewise.
37886         * m4/ioctl.m4: Likewise.
37887         * m4/mbrlen.m4: Likewise.
37888         * m4/mbrtowc.m4: Likewise.
37889         * m4/mbsinit.m4: Likewise.
37890         * m4/mbsnrtowcs.m4: Likewise.
37891         * m4/mbsrtowcs.m4: Likewise.
37892         * m4/poll.m4: Likewise.
37893         * m4/setlocale.m4: Likewise.
37894         * m4/wcrtomb.m4: Likewise.
37895         * m4/wcsnrtombs.m4: Likewise.
37896         * m4/wcsrtombs.m4: Likewise.
37897         * m4/wctob.m4: Likewise.
37898         * m4/wcwidth.m4: Likewise.
37899         * modules/posix_spawn: Likewise.
37900         * modules/posix_spawn_file_actions_addclose: Likewise.
37901         * modules/posix_spawn_file_actions_adddup2: Likewise.
37902         * modules/posix_spawn_file_actions_addopen: Likewise.
37903         * modules/posix_spawn_file_actions_destroy: Likewise.
37904         * modules/posix_spawn_file_actions_init: Likewise.
37905         * modules/posix_spawnattr_destroy: Likewise.
37906         * modules/posix_spawnattr_getflags: Likewise.
37907         * modules/posix_spawnattr_getpgroup: Likewise.
37908         * modules/posix_spawnattr_getschedparam: Likewise.
37909         * modules/posix_spawnattr_getschedpolicy: Likewise.
37910         * modules/posix_spawnattr_getsigdefault: Likewise.
37911         * modules/posix_spawnattr_getsigmask: Likewise.
37912         * modules/posix_spawnattr_init: Likewise.
37913         * modules/posix_spawnattr_setflags: Likewise.
37914         * modules/posix_spawnattr_setpgroup: Likewise.
37915         * modules/posix_spawnattr_setschedparam: Likewise.
37916         * modules/posix_spawnattr_setschedpolicy: Likewise.
37917         * modules/posix_spawnattr_setsigdefault: Likewise.
37918         * modules/posix_spawnattr_setsigmask: Likewise.
37919         * modules/posix_spawnp: Likewise.
37921 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
37923         Add option to do-release-commit-and-tag to specify branch.
37924         * build-aux/do-release-commit-and-tag: Add --branch.
37926 2011-05-03  Bruno Haible  <bruno@clisp.org>
37928         Avoid unnecessary compilation units, through conditional dependencies.
37929         * modules/accept (Depends-on): Add conditions to the dependencies.
37930         * modules/acosl (Depends-on): Likewise.
37931         * modules/argz (Depends-on): Likewise.
37932         * modules/asinl (Depends-on): Likewise.
37933         * modules/atanl (Depends-on): Likewise.
37934         * modules/atoll (Depends-on): Likewise.
37935         * modules/bind (Depends-on): Likewise.
37936         * modules/btowc (Depends-on): Likewise.
37937         * modules/canonicalize-lgpl (Depends-on): Likewise.
37938         * modules/ceil (Depends-on): Likewise.
37939         * modules/ceilf (Depends-on): Likewise.
37940         * modules/ceill (Depends-on): Likewise.
37941         * modules/chdir-long (Depends-on): Likewise.
37942         * modules/chown (Depends-on): Likewise.
37943         * modules/close (Depends-on): Likewise.
37944         * modules/connect (Depends-on): Likewise.
37945         * modules/cosl (Depends-on): Likewise.
37946         * modules/dirfd (Depends-on): Likewise.
37947         * modules/dprintf (Depends-on): Likewise.
37948         * modules/dprintf-posix (Depends-on): Likewise.
37949         * modules/error (Depends-on): Likewise.
37950         * modules/euidaccess (Depends-on): Likewise.
37951         * modules/expl (Depends-on): Likewise.
37952         * modules/faccessat (Depends-on): Likewise.
37953         * modules/fchdir (Depends-on): Likewise.
37954         * modules/fclose (Depends-on): Likewise.
37955         * modules/fcntl (Depends-on): Likewise.
37956         * modules/fdopendir (Depends-on): Likewise.
37957         * modules/fflush (Depends-on): Likewise.
37958         * modules/floor (Depends-on): Likewise.
37959         * modules/floorf (Depends-on): Likewise.
37960         * modules/floorl (Depends-on): Likewise.
37961         * modules/fnmatch (Depends-on): Likewise.
37962         * modules/fopen (Depends-on): Likewise.
37963         * modules/fprintf-posix (Depends-on): Likewise.
37964         * modules/frexp (Depends-on): Likewise.
37965         * modules/frexp-nolibm (Depends-on): Likewise.
37966         * modules/frexpl (Depends-on): Likewise.
37967         * modules/frexpl-nolibm (Depends-on): Likewise.
37968         * modules/fseek (Depends-on): Likewise.
37969         * modules/fsusage (Depends-on): Likewise.
37970         * modules/ftell (Depends-on): Likewise.
37971         * modules/ftello (Depends-on): Likewise.
37972         * modules/futimens (Depends-on): Likewise.
37973         * modules/getcwd (Depends-on): Likewise.
37974         * modules/getcwd-lgpl (Depends-on): Likewise.
37975         * modules/getdelim (Depends-on): Likewise.
37976         * modules/getdomainname (Depends-on): Likewise.
37977         * modules/getgroups (Depends-on): Likewise.
37978         * modules/gethostname (Depends-on): Likewise.
37979         * modules/getline (Depends-on): Likewise.
37980         * modules/getlogin_r (Depends-on): Likewise.
37981         * modules/getopt-posix (Depends-on): Likewise.
37982         * modules/getpeername (Depends-on): Likewise.
37983         * modules/getsockname (Depends-on): Likewise.
37984         * modules/getsockopt (Depends-on): Likewise.
37985         * modules/getsubopt (Depends-on): Likewise.
37986         * modules/getusershell (Depends-on): Likewise.
37987         * modules/glob (Depends-on): Likewise.
37988         * modules/grantpt (Depends-on): Likewise.
37989         * modules/iconv_open (Depends-on): Likewise.
37990         * modules/iconv_open-utf (Depends-on): Likewise.
37991         * modules/inet_ntop (Depends-on): Likewise.
37992         * modules/inet_pton (Depends-on): Likewise.
37993         * modules/ioctl (Depends-on): Likewise.
37994         * modules/isapipe (Depends-on): Likewise.
37995         * modules/isfinite (Depends-on): Likewise.
37996         * modules/isinf (Depends-on): Likewise.
37997         * modules/lchown (Depends-on): Likewise.
37998         * modules/ldexpl (Depends-on): Likewise.
37999         * modules/link (Depends-on): Likewise.
38000         * modules/linkat (Depends-on): Likewise.
38001         * modules/listen (Depends-on): Likewise.
38002         * modules/logl (Depends-on): Likewise.
38003         * modules/lstat (Depends-on): Likewise.
38004         * modules/mbrlen (Depends-on): Likewise.
38005         * modules/mbrtowc (Depends-on): Likewise.
38006         * modules/mbsinit (Depends-on): Likewise.
38007         * modules/mbsnrtowcs (Depends-on): Likewise.
38008         * modules/mbsrtowcs (Depends-on): Likewise.
38009         * modules/mbtowc (Depends-on): Likewise.
38010         * modules/memcmp (Depends-on): Likewise.
38011         * modules/mkdir (Depends-on): Likewise.
38012         * modules/mkdtemp (Depends-on): Likewise.
38013         * modules/mkfifo (Depends-on): Likewise.
38014         * modules/mkfifoat (Depends-on): Likewise.
38015         * modules/mknod (Depends-on): Likewise.
38016         * modules/mkostemp (Depends-on): Likewise.
38017         * modules/mkostemps (Depends-on): Likewise.
38018         * modules/mkstemp (Depends-on): Likewise.
38019         * modules/mkstemps (Depends-on): Likewise.
38020         * modules/mktime (Depends-on): Likewise.
38021         * modules/nanosleep (Depends-on): Likewise.
38022         * modules/open (Depends-on): Likewise.
38023         * modules/openat (Depends-on): Likewise.
38024         * modules/perror (Depends-on): Likewise.
38025         * modules/poll (Depends-on): Likewise.
38026         * modules/popen (Depends-on): Likewise.
38027         * modules/posix_spawn (Depends-on): Likewise.
38028         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
38029         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38030         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38031         * modules/posix_spawnp (Depends-on): Likewise.
38032         * modules/pread (Depends-on): Likewise.
38033         * modules/printf-posix (Depends-on): Likewise.
38034         * modules/ptsname (Depends-on): Likewise.
38035         * modules/putenv (Depends-on): Likewise.
38036         * modules/pwrite (Depends-on): Likewise.
38037         * modules/readline (Depends-on): Likewise.
38038         * modules/readlink (Depends-on): Likewise.
38039         * modules/readlinkat (Depends-on): Likewise.
38040         * modules/recv (Depends-on): Likewise.
38041         * modules/recvfrom (Depends-on): Likewise.
38042         * modules/regex (Depends-on): Likewise.
38043         * modules/remove (Depends-on): Likewise.
38044         * modules/rename (Depends-on): Likewise.
38045         * modules/renameat (Depends-on): Likewise.
38046         * modules/rmdir (Depends-on): Likewise.
38047         * modules/round (Depends-on): Likewise.
38048         * modules/roundf (Depends-on): Likewise.
38049         * modules/roundl (Depends-on): Likewise.
38050         * modules/rpmatch (Depends-on): Likewise.
38051         * modules/select (Depends-on): Likewise.
38052         * modules/send (Depends-on): Likewise.
38053         * modules/sendto (Depends-on): Likewise.
38054         * modules/setenv (Depends-on): Likewise.
38055         * modules/setlocale (Depends-on): Likewise.
38056         * modules/setsockopt (Depends-on): Likewise.
38057         * modules/shutdown (Depends-on): Likewise.
38058         * modules/sigaction (Depends-on): Likewise.
38059         * modules/signbit (Depends-on): Likewise.
38060         * modules/sigprocmask (Depends-on): Likewise.
38061         * modules/sinl (Depends-on): Likewise.
38062         * modules/sleep (Depends-on): Likewise.
38063         * modules/snprintf (Depends-on): Likewise.
38064         * modules/snprintf-posix (Depends-on): Likewise.
38065         * modules/socket (Depends-on): Likewise.
38066         * modules/sprintf-posix (Depends-on): Likewise.
38067         * modules/sqrtl (Depends-on): Likewise.
38068         * modules/stat (Depends-on): Likewise.
38069         * modules/strchrnul (Depends-on): Likewise.
38070         * modules/strdup-posix (Depends-on): Likewise.
38071         * modules/strerror (Depends-on): Likewise.
38072         * modules/strerror_r-posix (Depends-on): Likewise.
38073         * modules/strndup (Depends-on): Likewise.
38074         * modules/strnlen (Depends-on): Likewise.
38075         * modules/strptime (Depends-on): Likewise.
38076         * modules/strsep (Depends-on): Likewise.
38077         * modules/strsignal (Depends-on): Likewise.
38078         * modules/strstr-simple (Depends-on): Likewise.
38079         * modules/strtod (Depends-on): Likewise.
38080         * modules/strtoimax (Depends-on): Likewise.
38081         * modules/strtok_r (Depends-on): Likewise.
38082         * modules/strtoumax (Depends-on): Likewise.
38083         * modules/symlink (Depends-on): Likewise.
38084         * modules/symlinkat (Depends-on): Likewise.
38085         * modules/tanl (Depends-on): Likewise.
38086         * modules/tcgetsid (Depends-on): Likewise.
38087         * modules/tmpfile (Depends-on): Likewise.
38088         * modules/trunc (Depends-on): Likewise.
38089         * modules/truncf (Depends-on): Likewise.
38090         * modules/truncl (Depends-on): Likewise.
38091         * modules/uname (Depends-on): Likewise.
38092         * modules/unlink (Depends-on): Likewise.
38093         * modules/unlockpt (Depends-on): Likewise.
38094         * modules/unsetenv (Depends-on): Likewise.
38095         * modules/usleep (Depends-on): Likewise.
38096         * modules/utimensat (Depends-on): Likewise.
38097         * modules/vasprintf (Depends-on): Likewise.
38098         * modules/vdprintf (Depends-on): Likewise.
38099         * modules/vdprintf-posix (Depends-on): Likewise.
38100         * modules/vfprintf-posix (Depends-on): Likewise.
38101         * modules/vprintf-posix (Depends-on): Likewise.
38102         * modules/vsnprintf (Depends-on): Likewise.
38103         * modules/vsnprintf-posix (Depends-on): Likewise.
38104         * modules/vsprintf-posix (Depends-on): Likewise.
38105         * modules/wcrtomb (Depends-on): Likewise.
38106         * modules/wcscasecmp (Depends-on): Likewise.
38107         * modules/wcscspn (Depends-on): Likewise.
38108         * modules/wcsdup (Depends-on): Likewise.
38109         * modules/wcsncasecmp (Depends-on): Likewise.
38110         * modules/wcsnrtombs (Depends-on): Likewise.
38111         * modules/wcspbrk (Depends-on): Likewise.
38112         * modules/wcsrtombs (Depends-on): Likewise.
38113         * modules/wcsspn (Depends-on): Likewise.
38114         * modules/wcsstr (Depends-on): Likewise.
38115         * modules/wcstok (Depends-on): Likewise.
38116         * modules/wcswidth (Depends-on): Likewise.
38117         * modules/wctob (Depends-on): Likewise.
38118         * modules/wctomb (Depends-on): Likewise.
38119         * modules/wctype (Depends-on): Likewise.
38120         * modules/wcwidth (Depends-on): Likewise.
38121         * modules/write (Depends-on): Likewise.
38123 2011-05-03  Bruno Haible  <bruno@clisp.org>
38125         Support for conditional dependencies.
38126         * doc/gnulib.texi (Module description): Document the syntax of
38127         conditional dependencies.
38128         * gnulib-tool: New option --conditional-dependencies.
38129         (func_usage): Document it.
38130         (cond_dependencies): New variable.
38131         (func_get_automake_snippet_conditional,
38132         func_get_automake_snippet_unconditional): New functions, extracted from
38133         func_get_automake_snippet.
38134         (func_get_automake_snippet): Use them.
38135         (sed_first_32_chars): New variable.
38136         (func_module_shellfunc_name): New function.
38137         (func_module_shellvar_name): New function.
38138         (func_module_conditional_name): New function.
38139         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
38140         func_cond_module_condition): New functions.
38141         (func_modules_transitive_closure): Add support for conditional
38142         dependencies.
38143         (func_emit_lib_Makefile_am): For a conditional module, enclose the
38144         conditional automake snippet in an automake conditional.
38145         (func_emit_autoconf_snippets): Emit shell functions that contain the
38146         code for conditional modules.
38147         (func_import, func_create_testdir): Update specification.
38149 2011-05-03  Eric Blake  <eblake@redhat.com>
38151         test-getaddrinfo: report error information
38152         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
38154 2011-05-03  Jim Meyering  <meyering@redhat.com>
38156         bootstrap: avoid build failure when $GZIP is set
38157         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
38158         program name.  If defined at all, it is supposed to list gzip options.
38159         Reported by Alan Curry in http://debbugs.gnu.org/8609
38161 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
38163         readme-release: new module with release instructions
38164         * modules/readme-release: New module.
38165         * top/README-release: New file, from coreutils, grep, diffutils.
38166         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38168 2011-05-02  Eric Blake  <eblake@redhat.com>
38170         fflush: also replace fclose when fixing fflush
38171         * modules/fflush (Depends-on): Add fclose.
38172         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
38173         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
38174         memstreams with no backing fd.
38175         * doc/posix-functions/fclose.texi (fclose): Document the use of
38176         fflush module to fix the bug.
38177         * tests/test-fclose.c (main): Relax test when fclose is used in
38178         isolation.
38180         fclose: add some tests
38181         * modules/fclose-tests: New test module.
38182         * tests/test-fclose.c: New file.
38183         * doc/posix-functions/fclose.texi (fclose): Document the bug.
38185         fclose: reduced dependencies
38186         * modules/fclose (Depends-on): Switch from fflush/fseeko to
38187         simpler lseek.
38188         * lib/fclose.c (rpl_fclose): Likewise.
38189         Reported by Simon Josefsson.
38191         exit: drop remaining clients
38192         * modules/argmatch (Depends-on): Replace exit with stdlib.
38193         * modules/copy-file (Depends-on): Likewise.
38194         * modules/execute (Depends-on): Likewise.
38195         * modules/exitfail (Depends-on): Likewise.
38196         * modules/obstack (Depends-on): Likewise.
38197         * modules/pagealign_alloc (Depends-on): Likewise.
38198         * modules/pipe-filter-gi (Depends-on): Likewise.
38199         * modules/pipe-filter-ii (Depends-on): Likewise.
38200         * modules/savewd (Depends-on): Likewise.
38201         * modules/spawn-pipe (Depends-on): Likewise.
38202         * modules/wait-process (Depends-on): Likewise.
38203         * modules/xsetenv (Depends-on): Likewise.
38204         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
38205         * modules/git-merge-changelog (Depends-on): Likewise.
38206         * modules/long-options (Depends-on): Likewise.
38207         * modules/pt_chown (Depends-on): Likewise.
38208         * modules/sysexits (Depends-on): Likewise.
38210         freading: relax license from LGPLv3+ to LGPLv2+
38211         * modules/freading (License): Relax LGPL version.
38213 2011-05-02  Bruno Haible  <bruno@clisp.org>
38215         fchdir: Remove unused dependencies.
38216         * modules/fchdir (Depends-on): Remove include_next.
38218 2011-05-02  Bruno Haible  <bruno@clisp.org>
38220         gnulib-tool: Refactor.
38221         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
38222         from func_emit_autoconf_snippets.
38223         (func_emit_autoconf_snippets): Use it.
38225 2011-05-02  Simon Josefsson  <simon@josefsson.org>
38227         * NEWS: Document removal of 'exit'.
38228         * modules/exit: Remove file.
38230 2011-05-01  Bruno Haible  <bruno@clisp.org>
38232         Update DEPENDENCIES.
38233         * DEPENDENCIES (gettext): Recommend the newest release.
38234         Reported by Simon Josefsson.
38236 2011-05-01  Bruno Haible  <bruno@clisp.org>
38238         gnulib-tool: Reduce code duplication.
38239         * gnulib-tool (func_emit_autoconf_snippets): New function.
38240         (func_import, func_create_testdir): Use it.
38242 2011-04-30  Eric Blake  <eblake@redhat.com>
38244         fclose: don't fail on non-seekable input stream
38245         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
38246         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
38247         since fflush is allowed to fail in that case.
38249 2011-04-30  Bruno Haible  <bruno@clisp.org>
38251         dup3: cleanup
38252         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
38254 2011-04-30  Bruno Haible  <bruno@clisp.org>
38256         netdb: Make it work in C++ mode.
38257         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
38258         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
38259         module.
38260         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
38261         gl_MODULE_INDICATOR_FOR_TESTS.
38262         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
38263         * modules/netdb-c++-tests: New file.
38264         * tests/test-netdb-c++.cc: New file.
38266 2011-04-30  Bruno Haible  <bruno@clisp.org>
38268         New modules 'vfscanf', 'vscanf'.
38269         * modules/vfscanf: New file.
38270         * modules/vscanf: New file.
38271         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
38272         here.
38273         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
38274         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
38276 2011-04-30  Bruno Haible  <bruno@clisp.org>
38278         passfd: Add comments.
38279         * lib/passfd.c: Add comments about platforms.
38281 2011-04-30  Bruno Haible  <bruno@clisp.org>
38283         sys_uio: Make <sys/uio.h> self-contained.
38284         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
38285         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
38287 2011-04-30  Bruno Haible  <bruno@clisp.org>
38289         sys_socket: Ensure 'struct iovec' definition.
38290         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
38291         <sys/socket.h>.
38292         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
38294 2011-04-30  Bruno Haible  <bruno@clisp.org>
38296         sys_uio: Protect definition of 'struct iovec'.
38297         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
38298         it as a C struct.
38300 2011-04-30  Bruno Haible  <bruno@clisp.org>
38302         manywarnings: fix indentation
38303         * m4/manywarnings.m4: Indent by 2 spaces consistently.
38305 2011-04-30  Pádraig Brady  <P@draigBrady.com>
38307         manywarnings: add -Wno-missing-field-initializers if needed.
38308         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
38309         option if it's needed to allow initialization with { 0, }
38311 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
38313         announce-gen: cosmetic improvement
38314         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
38316 2011-04-29  Jim Meyering  <meyering@redhat.com>
38318         vc-list-files: indent with spaces, not TABs
38319         * build-aux/vc-list-files: Convert leading TABs to spaces,
38320         to match the style of most other files in gnulib.
38322         announce-gen: indent with spaces, not TABs
38323         * build-aux/announce-gen: Convert all TABs to spaces, to match
38324         the style of most other files in gnulib.
38326 2011-04-29  Eric Blake  <eblake@redhat.com>
38328         quotearg: avoid uninitialized variable use
38329         * lib/quotearg.c (quoting_options_from_style): Initialize
38330         remaining fields, and ensure that custom styles are only used via
38331         quoting_options rather than quoting_style.
38333 2011-04-29  Jim Meyering  <meyering@redhat.com>
38335         maint.mk: remove unused VC-tag variable
38336         * top/maint.mk (VC-tag): Remove unused variable.
38338 2011-04-29  Bruno Haible  <bruno@clisp.org>
38340         netdb: fix gai_strerror replacements
38341         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
38342         * modules/netdb: Substitute it.
38344 2011-04-29  Jim Meyering  <meyering@redhat.com>
38346         test-getcwd.c: avoid new set-but-not-used warning
38347         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
38348         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
38349         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
38350         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
38352         test-hash.c: avoid a new shadowing warning
38353         * tests/test-hash.c (main): Don't shadow "dup".
38355 2011-04-28  Eric Blake  <eblake@redhat.com>
38357         getaddrinfo: fix gai_strerror signature
38358         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
38359         and work around mingw with UNICODE defined.
38360         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
38361         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
38362         * modules/netdb (Makefile.am): Substitute it.
38363         * lib/netdb.in.h (gai_strerror): Declare replacement.
38364         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
38365         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
38366         the fix.
38368         getsockopt: avoid compiler warning
38369         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
38370         Reported by Matthias Bolte.
38372         tests: drop unused link dependency
38373         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
38374         * modules/dirent-safer-tests (Makefile.am): Likewise.
38375         * modules/fdopendir-tests (Makefile.am): Likewise.
38376         * modules/mkfifoat-tests (Makefile.am): Likewise.
38377         * modules/openat-safer-tests (Makefile.am): Likewise.
38378         * modules/openat-tests (Makefile.am): Likewise.
38379         * modules/readlinkat-tests (Makefile.am): Likewise.
38380         * modules/symlinkat-tests (Makefile.am): Likewise.
38381         * modules/linkat-tests (Makefile.am): Likewise.
38382         (Depends-on): Switch to filenamecat-lgpl.
38383         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
38384         LIBINTL.
38385         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
38386         * tests/test-linkat.c (main): Don't require xalloc.
38388         hash, mgetgroups: drop xalloc dependency
38389         * lib/hash.c (includes): Adjust includes.
38390         * lib/mgetgroups.c (includes): Likewise.
38391         (xgetgroups): Move...
38392         * lib/xgetgroups.c: ...to new file.
38393         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
38394         * modules/xgetgroups: New file, split from...
38395         * modules/mgetgroups: ...here.
38396         (Depends-on): Add xalloc-oversized.
38397         * modules/hash (Depends-on): Likewise.
38398         * modules/hash-tests (Depends-on): Drop xalloc.
38399         (test_hash_LDADD): Drop unused library.
38400         * tests/test-hash.c (main): Break xalloc dependency.
38401         (includes): Drop unused include.
38403         xalloc-oversized: new module
38404         * modules/xalloc-oversized: New module.
38405         * modules/xalloc (Depends-on): Add it.
38406         * lib/xalloc.h (xalloc_oversized): Move...
38407         * lib/xalloc-oversized.h: ...into new file.
38409         utimecmp: drop dependency on xmalloc
38410         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
38411         due to memory pressure.
38412         * modules/utimecmp (Depends-on): Drop xalloc.
38414 2011-04-27  Eric Blake  <eblake@redhat.com>
38416         getcwd: fix mingw bugs
38417         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
38418         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
38419         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
38421 2011-04-27  Bruno Haible  <bruno@clisp.org>
38423         mkstemps: Ensure declaration on MacOS X 10.5.
38424         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
38425         * doc/glibc-functions/mkstemps.texi: Document header file problem on
38426         MacOS X.
38428 2011-04-27  Bruno Haible  <bruno@clisp.org>
38430         mkstemp: More documentation.
38431         * doc/posix-functions/mkstemp.texi: Document header file problem on
38432         MacOS X.
38434 2011-04-27  Bruno Haible  <bruno@clisp.org>
38436         mkstemp: Tweak configure message when cross-compiling.
38437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
38438         result as a guess.
38440 2011-04-27  Bruno Haible  <bruno@clisp.org>
38442         clean-temp: Clarify what it does.
38443         * lib/clean-temp.h: Add more comments.
38444         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
38445         module.
38446         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
38447         * doc/glibc-functions/mkstemps.texi: Likewise.
38448         * doc/glibc-functions/mkostemps.texi: Likewise.
38450 2011-04-27  Eric Blake  <eblake@redhat.com>
38452         fchdir: avoid extra chdir and fix test
38453         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
38454         getcwd-lgpl.
38455         * lib/fchdir.c (get_name): Any absolute name will do; it does not
38456         have to be canonical.
38457         (canonicalize_file_name): Drop unused macro.
38458         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
38460         filenamecat-lgpl: fix licence
38461         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
38462         when it was first created.
38464         linkat, renameat: add missing dependency
38465         * modules/linkat (Depends-on): Require getcwd-lgpl.
38466         * modules/renameat (Depends-on): Likewise.
38468         tests: reduce dependencies
38469         * tests/test-linkat.c (main): Use lighter-weight getcwd.
38470         * tests/test-renameat.c (main): Likewise.
38471         * modules/linkat-tests (Depends-on): Relax dependency.
38472         * modules/renameat-tests (Depends-on): Likewise.
38473         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
38474         dependency explicit.
38476         save-cwd: reduce default dependency
38477         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
38478         * lib/save-cwd.c: Update comments.
38479         * NEWS: Document the semantic change.
38481         getcwd: enhance tests
38482         * tests/test-getcwd-lgpl.c: New file, taken from...
38483         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
38484         repeat long path stress tests from m4 probe.
38485         * modules/getcwd-lgpl-tests: New module.
38486         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
38487         * m4/getcwd-abort-bug.m4: Update comment.
38488         * m4/getcwd-path-max.m4: Likewise.
38490         getcwd-lgpl: new module
38491         * modules/getcwd-lgpl: New module.
38492         * lib/getcwd-lgpl.c: New file.
38493         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38494         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38495         * modules/getcwd (configure.ac): Set C witness.
38496         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
38498         getcwd: tweak comments
38499         * m4/getcwd-abort-bug.m4: Fix comments.
38500         * m4/getcwd-path-max.m4: Likewise.
38501         * m4/getcwd.m4: Likewise.
38503 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38504         and Eric Blake  <eblake@redhat.com>
38506         mkstemp: replace if system version uses wrong permissions
38507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
38508         read/write mode bits set in file created by mkstemp.
38509         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
38511 2011-04-27  Eric Blake  <eblake@redhat.com>
38513         passfd: avoid compiler warning
38514         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
38515         Reported by Laine Stump.
38517 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
38519         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
38520         required by the NetBSD (and perhaps other 4.4BSD derived) join.
38522 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38523         and Eric Blake  <eblake@redhat.com>
38525         mkstemp: mention clean-temp module
38526         * lib/mkstemp.c: Add comment.
38527         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
38529 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
38531         inttypes: also provide default values for 32-bit tests
38532         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
38533         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
38535 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38537         strtoumax: remove dependency on strtoimax
38538         This is like the strtoull change of yesterday.
38539         * modules/strtoumax (Files): Add lib/strtoimax.c.
38540         (Depends-on): Remove strtoimax and add verify.
38542         inttypes-incomplete: new module
38543         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
38544         all but the PRI* and SCN* parts of gl_INTTYPES_H.
38545         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
38546         of gl_INTTYPES_H.
38547         (gl_INTTYPES_H): Rewrite in terms of these new macros.
38548         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
38549         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
38550         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
38551         * modules/strtoumax, modules/xstrtol (Depends-on):
38552         Depend on inttypes-incomplete, not inttypes.
38553         * modules/inttypes-incomplete: New module, containing the contents
38554         of the old modules/inttypes module, except that the Files: section
38555         omits m4/inttypes-pri.m4, and the configure.ac section invokes
38556         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
38557         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
38558         (Depends-on): Depend only on inttypes-incomplete.
38559         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
38561         inttypes: omit now-redundant strtoimax and strtoumax work
38562         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
38563         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
38565         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38566         This supports apps that need pointers to strtoimax and strtoumax,
38567         and ports to HP-UX 11.00 64.bit, which has macros that expand to
38568         nonexistent functions.  See
38569         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
38570         et seq.
38571         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
38572         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
38573         a macro.
38574         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38576 2011-04-25  Simon Josefsson  <simon@josefsson.org>
38578         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
38580 2011-04-25  Bruno Haible  <bruno@clisp.org>
38582         strtol, strtoul: Mark modules as obsolete.
38583         * modules/strtol (Status, Notice): New sections.
38584         * modules/strtoul (Status, Notice): New sections.
38586 2011-04-25  Bruno Haible  <bruno@clisp.org>
38588         strtod: Remove check for strtod, unless supporting old platforms.
38589         * modules/strtod-obsolete: New file.
38590         * m4/strtod-obsolete.m4: New file.
38591         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
38592         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
38593         * modules/strtod (Depends-on): Add strtod-obsolete.
38594         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38596 2011-04-25  Bruno Haible  <bruno@clisp.org>
38598         strcase: Make module obsolete.
38599         * modules/strcase (Status, Notice): New sections.
38601 2011-04-25  Bruno Haible  <bruno@clisp.org>
38603         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38604         * modules/dup2-obsolete: New file.
38605         * m4/dup2-obsolete.m4: New file.
38606         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38607         gl_FUNC_DUP2_OBSOLETE is not also defined.
38608         * modules/dup2 (Depends-on): Add dup2-obsolete.
38609         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38611 2011-04-25  Bruno Haible  <bruno@clisp.org>
38613         strnlen: Avoid memchr related link error on old obsolete platforms.
38614         * modules/memchr-obsolete: New file.
38615         * m4/memchr-obsolete.m4: New file.
38616         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38617         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38618         * modules/memchr (Depends-on): Add memchr-obsolete.
38619         * modules/strnlen (Depends-on): Likewise.
38620         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38622 2011-04-25  Jim Meyering  <meyering@redhat.com>
38624         maint.mk: makefile_at_at_check extend and clean up
38625         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38626         in addition to */Makefile.am.
38627         Exempt legitimate uses of @VAR@ notation, e.g.,
38628         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38629         Remove obsolete coreutils-specific comment.
38630         Prompted by discussion here:
38631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38633 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38635         strtoul: remove dependency on strtol
38636         This is so that 'configure' need not check for strtol merely because
38637         the application needs strtoul.
38638         * modules/strtoul (Files): Add lib/strtol.c.
38639         (Depends-on): Remove strtol.
38641         strtoull: remove dependency on strtoul
38642         This is like the strtoll change.
38643         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38644         (Depends-on): Remove strtoul.
38646         strtoll: remove dependency on strtol
38647         This is so that 'configure' need not check for strtol merely because
38648         the application needs strtoll.
38649         * modules/strtoll (Files): Add lib/strtol.c.
38650         (Depends-on): Remove strtol.
38652 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38654         inttypes: Move some configure check to module 'imaxdiv'.
38655         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38656         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38657         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38659 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38661         inttypes: Move some configure check to module 'imaxabs'.
38662         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38663         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38664         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38666 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38668         inttypes: Remove configure tests that are not needed since 2009-12-31.
38669         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38670         gl_cv_header_working_inttypes_h.
38672 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38674         * modules/strnlen (Depends-on): Remove memchr.
38675         The strnlen implementation doesn't need the memchr module's fixes; see
38676         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38678         strtol: remove dependency on wchar
38679         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38680         * modules/strtol (Depends-on): Remove wchar.
38682 2011-04-21  Eric Blake  <eblake@redhat.com>
38684         passfd: fix test regression on Linux
38685         * modules/passfd-tests (configure.ac): Correct socketpair check.
38687         passfd: speed up configure and drop unused code
38688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38689         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38690         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38691         Instead of probing at configure for unix_scm_rights_bsd44_way,
38692         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38693         check to a struct member probe.
38694         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38695         (sendfd, recvfd): Update preprocessor checks.
38696         * modules/passfd (Files): Reflect rename, and drop unused file.
38697         (Depends-on): Drop unused dependency.
38699         passfd: allow compilation on mingw
38700         * modules/sys_socket (Depends-on): Add sys_uio.
38701         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38702         iovec and a minimal struct msghdr.
38703         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38704         * tests/test-sys_socket.c (main): Enhance test.
38705         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38706         guaranteed to provide what we need.
38707         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38708         * modules/passfd-tests (Depends-on): Add sys_wait.
38709         * tests/test-passfd.c (main): Skip test on mingw, for now.
38710         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38711         partial 'struct msghdr' implementation.
38713         sys_uio: new module
38714         * modules/sys_uio: New module.
38715         * modules/sys_uio-tests: Likewise.
38716         * lib/sys_uio.in.h: New file.
38717         * m4/sys_uio_h.m4: Likewise.
38718         * tests/test-sys_uio.c: Likewise.
38719         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38720         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38722 2011-04-20  Jim Meyering  <meyering@redhat.com>
38724         useless-if-before-free: avoid false-positive
38725         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38726         disjunct so that it too requires a terminating ";".  Without that,
38727         this script would identify as useless one statement from gcc that
38728         was not:
38729           if (aligned_ptr)
38730             free (((void **) aligned_ptr) [-1]);
38732 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38734         doc: update users.txt.
38735         * users.txt: Add barcode.
38737 2011-04-19  Bruno Haible  <bruno@clisp.org>
38739         ioctl: Remove link dependency on native Windows.
38740         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38741         (gl_close_fn, gl_ioctl_fn): New types.
38742         (struct fd_hook): Renamed from struct close_hook. Change type of
38743         private_close_fn field. Add private_ioctl_fn field.
38744         (close_hook_fn): Add parameter for primary close method.
38745         (execute_close_hooks, execute_all_close_hooks): Likewise.
38746         (ioctl_hook_fn): New type.
38747         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
38748         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38749         argument.
38750         (unregister_fd_hook): Renamed from unregister_close_hook.
38751         * lib/fd-hook.c: Renamed from lib/close-hook.c.
38752         Don't include <unistd.h>.
38753         (close): Remove undef.
38754         (anchor): Update.
38755         (execute_close_hooks): Add argument for primary close method.
38756         (execute_all_close_hooks): Likewise.
38757         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
38758         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38759         argument. Allow each argument to be NULL.
38760         (unregister_fd_hook): Renamed from unregister_close_hook.
38761         * lib/close.c (rpl_close): Pass 'close' function pointer to
38762         execute_all_close_hooks.
38763         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
38764         (primary_ioctl): New function.
38765         (ioctl): Don't call ioctlsocket here. Instead, call
38766         execute_all_ioctl_hooks.
38767         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
38768         close method.
38769         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
38770         (fd_sockets_hook): Renamed from close_sockets_hook.
38771         (gl_sockets_startup, gl_sockets_cleanup): Update.
38772         * modules/fd-hook: Renamed from modules/close-hook. Update.
38773         * modules/close (Depends-on): Add fd-hook, remove close-hook.
38774         * modules/sockets (Depends-on): Likewise.
38775         * modules/ioctl (Depends-on): Add fd-hook.
38776         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
38777         GNULIB_SOCKET.
38779 2011-04-19  Bruno Haible  <bruno@clisp.org>
38781         Move the support of O_NONBLOCK in open() to the 'open' module.
38782         * modules/nonblocking (Depends-on): Remove 'open'.
38783         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
38784         gl_cv_have_open_O_NONBLOCK.
38785         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
38786         O_NONBLOCK support.
38787         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
38789 2011-04-17  Bruno Haible  <bruno@clisp.org>
38791         pipe2: Simplify code.
38792         * lib/pipe2.c (pipe2): Reduce code duplication.
38794 2011-04-17  Bruno Haible  <bruno@clisp.org>
38796         nonblocking: Add comment.
38797         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
38799 2011-04-17  Bruno Haible  <bruno@clisp.org>
38801         nonblocking: Add tests for sockets.
38802         * tests/test-nonblocking-socket.sh: New file.
38803         * tests/test-nonblocking-socket-main.c: New file.
38804         * tests/test-nonblocking-socket-child.c: New file.
38805         * tests/test-nonblocking-socket.h: New file.
38806         * tests/socket-server.h: New file.
38807         * tests/socket-client.h: New file.
38808         * modules/nonblocking-socket-tests: New file.
38809         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
38811 2011-04-17  Bruno Haible  <bruno@clisp.org>
38813         nonblocking: Add tests for pipes.
38814         * tests/test-nonblocking-pipe.sh: New file.
38815         * tests/test-nonblocking-pipe-main.c: New file.
38816         * tests/test-nonblocking-pipe-child.c: New file.
38817         * tests/test-nonblocking-pipe.h: New file.
38818         * tests/test-nonblocking-writer.h: New file.
38819         * tests/test-nonblocking-reader.h: New file.
38820         * tests/test-nonblocking-misc.h: New file.
38821         * modules/nonblocking-pipe-tests: New file.
38822         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
38824 2011-04-16  Bruno Haible  <bruno@clisp.org>
38826         gettext: Clarify the needed programmer actions.
38827         * modules/gettext (Notice): New field.
38828         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38830 2011-04-16  Bruno Haible  <bruno@clisp.org>
38832         strchrnul: Tweak last commit.
38833         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
38834         bug.
38835         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
38836         as in _GL_FUNCDECL_SYS.
38837         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
38838         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
38840 2011-04-15  Eric Blake  <eblake@redhat.com>
38842         strchrnul: work around cygwin bug
38843         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
38844         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
38845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
38846         * modules/string (Makefile.am): Substitute it.
38847         * lib/string.in.h (strchrnul): Use it.
38849 2011-04-15  Bruno Haible  <bruno@clisp.org>
38851         Don't require lib/stdio-write.c when only module 'stdio' is used.
38852         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
38853         invocation.
38854         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
38856 2011-04-14  Bruno Haible  <bruno@clisp.org>
38858         Support non-blocking pipe I/O in read() on native Windows.
38859         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38860         (read): New declaration.
38861         * lib/read.c: New file.
38862         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38863         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38864         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38865         vscanf): New declarations.
38866         * lib/stdio-read.c: New file.
38867         * m4/read.m4: New file.
38868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38869         REPLACE_READ.
38870         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38871         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38872         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38873         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38874         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38875         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38876         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38877         * modules/read: New file.
38878         * modules/nonblocking (Files): Add lib/stdio-read.c.
38879         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38880         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38881         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38882         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38883         * modules/pread (Depends-on): Add read.
38884         * modules/safe-read (Depends-on): Likewise.
38885         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38886         gets, scanf, vfscanf, vscanf): Verify signatures.
38887         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38888         problem with non-blocking pipes.
38889         * doc/posix-functions/fgetc.texi: Likewise.
38890         * doc/posix-functions/fgets.texi: Likewise.
38891         * doc/posix-functions/fread.texi: Likewise.
38892         * doc/posix-functions/fscanf.texi: Likewise.
38893         * doc/posix-functions/getc.texi: Likewise.
38894         * doc/posix-functions/getchar.texi: Likewise.
38895         * doc/posix-functions/gets.texi: Likewise.
38896         * doc/posix-functions/scanf.texi: Likewise.
38897         * doc/posix-functions/vfscanf.texi: Likewise.
38898         * doc/posix-functions/vscanf.texi: Likewise.
38900 2011-04-14  Bruno Haible  <bruno@clisp.org>
38902         Support non-blocking pipe I/O in write() on native Windows.
38903         * lib/write.c (rpl_write): Split a write request that failed merely
38904         because the byte count was larger than the pipe buffer's size.
38905         * doc/posix-functions/write.texi: Mention the problem with large byte
38906         counts.
38908 2011-04-14  Bruno Haible  <bruno@clisp.org>
38910         wchar: Ensure that wchar_t gets defined on uClibc.
38911         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38912         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38914 2011-04-13  Bruno Haible  <bruno@clisp.org>
38916         safe-write, full-read: Avoid unnecessary compilation units.
38917         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
38918         (Depends-on): Remove safe-read. Add ssize_t.
38919         * modules/full-read (Files): Add lib/full-write.c.
38920         (Depends-on): Add full-write.
38922 2011-04-13  Bruno Haible  <bruno@clisp.org>
38924         Support non-blocking pipe I/O and SIGPIPE in pwrite().
38925         * modules/pwrite (Depends-on): Add 'write'.
38927 2011-04-13  Bruno Haible  <bruno@clisp.org>
38929         Support non-blocking pipe I/O in write() on native Windows.
38930         * lib/unistd.in.h (write): Enable replacement also if
38931         GNULIB_UNISTD_H_NONBLOCKING is 1.
38932         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
38933         (rpl_write): When failing to write on a non-blocking pipe, change
38934         errno from ENOSPC to EAGAIN.
38935         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
38936         putchar, puts, vfprintf, vprintf): Enable replacement also if
38937         GNULIB_STDIO_H_NONBLOCKING is 1.
38938         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
38939         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
38940         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
38941         CALL_WITH_SIGPIPE_EMULATION.
38942         (CALL_WITH_SIGPIPE_EMULATION): Use them.
38943         * m4/nonblocking.m4: New file.
38944         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
38945         for non-blocking I/O support.
38946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38947         GNULIB_UNISTD_H_NONBLOCKING.
38948         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
38949         required for non-blocking I/O support.
38950         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
38951         * modules/nonblocking (Files): Add m4/nonblocking.m4,
38952         lib/stdio-write.c, m4/asm-underscore.m4.
38953         (Depends-on): Add stdio, unistd.
38954         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
38955         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
38956         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
38957         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
38958         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
38959         problem with non-blocking pipes.
38960         * doc/posix-functions/fputc.texi: Likewise.
38961         * doc/posix-functions/fputs.texi: Likewise.
38962         * doc/posix-functions/fwrite.texi: Likewise.
38963         * doc/posix-functions/printf.texi: Likewise.
38964         * doc/posix-functions/putc.texi: Likewise.
38965         * doc/posix-functions/putchar.texi: Likewise.
38966         * doc/posix-functions/puts.texi: Likewise.
38967         * doc/posix-functions/vfprintf.texi: Likewise.
38968         * doc/posix-functions/vprintf.texi: Likewise.
38969         * doc/posix-functions/write.texi: Likewise.
38971 2011-04-10  Jim Meyering  <meyering@redhat.com>
38973         maint.mk: prohibit doubled words
38974         Detect them also when they're separated by a newline.
38975         There are 3 ways to customize it:
38976           - disable the test on a per file basis, as usual with rules using
38977             $(VC_LIST_EXCEPT)
38978           - replace the default doubled-word-selecting regexp (affects all files)
38979           - ignore a particular file-vs-doubled-word match
38980         I nearly used that last one to ignore the "is is" match in
38981         coreutils' NEWS file, since the text was "ls -is is ..."
38982         To do that, I would have added this line to cfg.mk:
38983           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
38984         but it would have ignored any "is is" match in NEWS.
38985         Low probability, but still...
38986         Instead, I changed the text, slightly:
38987           -  ls -is is now consistent with ls -lis in ignoring values returned
38988           +  "ls -is" is now consistent with ls -lis in ignoring values returned
38989         * top/maint.mk (prohibit_double_word_RE_): Provide default.
38990         (prohibit_doubled_word_): Define.
38991         (sc_prohibit_doubled_word): New rule.
38992         (sc_prohibit_the_the): Remove.  Subsumed by the above.
38994 2011-04-10  Jim Meyering  <meyering@redhat.com>
38996         maint: fix doubled-word typo in comment
38997         * m4/gethostname.m4: s/is is/it is/
38998         * m4/getdomainname.m4: Likewise.
39000 2011-04-10  Jim Meyering  <meyering@redhat.com>
39002         maint: remove doubled word: s/it it/it/
39003         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
39005 2011-04-10  Jim Meyering  <meyering@redhat.com>
39007         maint.mk: remove useless semicolon and backslash
39008         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
39009         semicolon and backslash.
39011 2011-04-10  Bruno Haible  <bruno@clisp.org>
39013         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
39014         * modules/stdint-tests (Depends-on): Add wchar.
39016 2011-04-10  Jim Meyering  <meyering@redhat.com>
39018         maint: remove doubled words in comments, e.g., s/a a/a/
39019         * lib/strptime.c (day_of_the_week): s/the the/the/
39020         * tests/test-chown.h (test_chown): s/a a/a/
39022         test-chown.h: correct a cast
39023         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
39024         when the destination is a stat.st_gid.
39026 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
39028         getaddrinfo: Fix test for sa_len member.
39029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
39030         include <sys/types.h> before <sys/socket.h>.
39032 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
39034         maint: change "can not" to "cannot"
39035         * doc/posix-functions/iconv.texi (iconv): This one crossed line
39036         boundaries.
39038 2011-04-09  Jim Meyering  <meyering@redhat.com>
39040         maint: change "a a" to "a"
39041         * tests/test-lchown.h (test_lchown): s/a a/a/
39043         maint.mk: prohibit \<the the\>
39044         * top/maint.mk (sc_prohibit_the_the): New rule.
39046         maint: fix "the the" in comment
39047         * lib/count-one-bits.h: s/the the/the/
39049         maint: change "can not" to "cannot"
39050         But do not change the occurrences in maintain.texi or in
39051         build-aux/po/Makefile.in.in, which I presume comes from gettext.
39052         * doc/gnulib-tool.texi: s/can not/cannot/
39053         * doc/posix-functions/accept.texi (accept): Likewise.
39054         * doc/posix-functions/socket.texi (socket): Likewise.
39055         * lib/mbrtowc.c: Likewise.
39057         maint.mk: prohibit use of "can not"
39058         * top/maint.mk (sc_prohibit_can_not): New rule.
39059         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
39061 2011-04-09  Bruno Haible  <bruno@clisp.org>
39063         careadlinkat: Guard against misuse of careadlinkatcwd.
39064         * lib/careadlinkat.c: Include <stdlib.h>.
39065         (careadlinkatcwd): Check that the fd argument is as expected.
39067 2011-04-09  Bruno Haible  <bruno@clisp.org>
39069         careadlinkat: Use common coding style.
39070         * lib/careadlinkat.c: Move gnulib includes after system includes.
39072 2011-04-09  Bruno Haible  <bruno@clisp.org>
39074         careadlinkat: Clarify specification.
39075         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
39076         (careadlinkatcwd): Add comment.
39077         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
39079 2011-04-09  Bruno Haible  <bruno@clisp.org>
39081         areadlinkat: Avoid link error on many platforms.
39082         * modules/areadlinkat (Depends-on): Add areadlink.
39084 2011-04-09  Bruno Haible  <bruno@clisp.org>
39086         allocator, careadlinkat: Fix double-inclusion guard.
39087         * lib/allocator.h: Fix double-inclusion guard.
39088         * lib/careadlinkat.h: Likewise.
39090 2011-04-09  Bruno Haible  <bruno@clisp.org>
39092         relocatable-prog-wrapper: Update after module 'areadlink' changed.
39093         * lib/relocwrapper.c: Update dependencies hierarchy.
39094         * build-aux/install-reloc: Update list of files to be compiled.
39095         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
39096         lib/allocator.[hc].
39098 2011-04-08  Eric Blake  <eblake@redhat.com>
39100         strftime: silence gnulib-tool warning
39101         * modules/strftime-tests (Depends-on): Drop automatic dependency.
39103 2011-04-08  Bruno Haible  <bruno@clisp.org>
39105         verify: Fix syntax error with GCC 4.6 in C++ mode.
39106         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
39107         (HAVE_STATIC_ASSERT): New macro.
39108         (verify_true, verify): Use 'static_assert' if it is supported and
39109         '_Static_assert' is not supported.
39111 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
39113         allocator: New module.
39114         * modules/allocator, lib/allocator.c: New files.
39115         * lib/allocator.h (stdlib_allocator): New decl.
39116         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
39117         Remove.  Do not include <stdlib.h>.
39118         (careadlinkat): Use stdlib_allocator instead of rolling our own.
39119         * modules/careadlinkat (Files): Remove lib/allocator.h.
39120         (Depends-on): Add allocator.
39122         stdlib: let modules use system malloc, realloc
39123         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
39124         if !_GL_USE_STDLIB_ALLOC.
39125         (malloc, realloc): Limit this change to a smaller scope.
39127         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
39128         (malloc, realloc): Don't #undef; no longer needed.
39129         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39130         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39131         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39132         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39133         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39134         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39135         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39136         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39138         careadlinkat: rename members to avoid problem
39139         * lib/allocator.h (struct allocator): Rename members from
39140         malloc/realloc to allocate/reallocate, to avoid problems if malloc
39141         and realloc are #define'd.  Reported by Eric Blake in
39142         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
39143         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
39145 2011-04-08  Eric Blake  <eblake@redhat.com>
39147         nonblocking: reduce dependency
39148         * tests/test-nonblocking.c: Only test sockets when in use.
39149         * modules/nonblocking-tests (Depends-on): Drop socket.
39150         (Makefile.am): Link even if sockets are not present.
39151         * modules/pipe2-tests (Makefile.am): Likewise.
39152         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
39154         pipe2: fix O_NONBLOCK support on mingw
39155         * modules/pipe2 (Depends-on): Add nonblocking.
39156         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
39157         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
39158         * tests/test-nonblocking.c (main): Likewise.
39159         * modules/pipe2-tests (Makefile.am): Avoid link failure.
39161         fcntl-h: fix O_ACCMODE on cygwin
39162         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
39163         * lib/fcntl.in.h (O_ACCMODE): Fix it.
39165         pipe-filter: drop O_NONBLOCK workarounds
39166         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
39167         * modules/pipe-filter-ii (Depends-on): Likewise.
39168         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
39170         nonblocking: provide O_NONBLOCK for mingw
39171         * modules/nonblocking (Depends-on): Add open.
39172         (configure.ac): Set new witness macro.
39173         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
39174         * modules/fcntl-h (Makefile.am): Substitute it.
39175         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
39176         nonblocking module is in use.
39177         * lib/nonblocking.c: Adjust portability test.
39178         * lib/open.c (open): Don't let native open see gnulib flag.
39179         * tests/test-fcntl-h.c (main): Enhance test.
39180         * tests/test-open.h (test_open): Likewise.
39181         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
39183         careadlinkat: fix compilation error on mingw
39184         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
39185         within struct allocator.
39187 2011-04-06  Eric Blake  <eblake@redhat.com>
39189         binary-io: relicense under LGPLv2+
39190         * modules/binary-io (License): Relax to LGPLv2+.
39191         Requested for libvirt, and required by pipe2.
39193 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
39195         verify: use _Static_assert if available
39196         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
39197         (verify_true, verify): Use it if available.  This generates better
39198         diagnostics with GCC 4.6.0 and later.
39200 2011-04-05  Bruno Haible  <bruno@clisp.org>
39202         Remove leftover generated .h files after config.status changed.
39204         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
39205         GL_GENERATE_ALLOCA_H.
39206         * modules/alloca-opt (Makefile.am): Remove alloca.h if
39207         GL_GENERATE_ALLOCA_H evaluates to false.
39209         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
39210         GL_GENERATE_ARGZ_H.
39211         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
39212         evaluates to false.
39214         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
39215         GL_GENERATE_BYTESWAP_H.
39216         * modules/byteswap (Makefile.am): Remove byteswap.h if
39217         GL_GENERATE_BYTESWAP_H evaluates to false.
39219         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
39220         GL_GENERATE_ERRNO_H.
39221         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
39222         evaluates to false.
39224         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
39225         GL_GENERATE_FLOAT_H.
39226         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
39227         evaluates to false.
39229         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
39230         GL_GENERATE_FNMATCH_H.
39231         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
39232         GL_GENERATE_FNMATCH_H evaluates to false.
39234         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
39235         GL_GENERATE_GLOB_H.
39236         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
39237         evaluates to false.
39239         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
39240         automake conditional GL_GENERATE_ICONV_H.
39241         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
39242         evaluates to false.
39244         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
39245         GL_GENERATE_NETINET_IN_H.
39246         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
39247         GL_GENERATE_NETINET_IN_H evaluates to false.
39249         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
39250         conditional GL_GENERATE_PTHREAD_H.
39251         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
39252         * modules/pthread (Makefile.am): Remove pthread.h if
39253         GL_GENERATE_PTHREAD_H evaluates to false.
39255         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
39256         GL_GENERATE_SCHED_H.
39257         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
39258         evaluates to false.
39260         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
39261         conditional GL_GENERATE_SELINUX_CONTEXT_H.
39262         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
39263         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
39265         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
39266         GL_GENERATE_STDARG_H.
39267         * modules/stdarg (Makefile.am): Remove stdarg.h if
39268         GL_GENERATE_STDARG_H evaluates to false.
39270         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
39271         GL_GENERATE_STDBOOL_H.
39272         * modules/stdbool (Makefile.am): Remove stdbool.h if
39273         GL_GENERATE_STDBOOL_H evaluates to false.
39275         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
39276         conditional GL_GENERATE_STDDEF_H.
39277         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
39278         * modules/stddef (Makefile.am): Remove stddef.h if
39279         GL_GENERATE_STDDEF_H evaluates to false.
39281         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
39282         GL_GENERATE_STDINT_H.
39283         * modules/stdint (Makefile.am): Remove stdint.h if
39284         GL_GENERATE_STDINT_H evaluates to false.
39286         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
39287         GL_GENERATE_SYSEXITS_H.
39288         * modules/sysexits (Makefile.am): Remove sysexits.h if
39289         GL_GENERATE_SYSEXITS_H evaluates to false.
39291         Reported by Karl Berry and Ralf Wildenhues.
39293 2011-04-05  Bruno Haible  <bruno@clisp.org>
39295         Ensure to rebuild generated .h files when config.status has changed.
39296         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
39297         config.status.
39298         * modules/ctype (Makefile.am): Likewise.
39299         * modules/dirent (Makefile.am): Likewise.
39300         * modules/errno (Makefile.am): Likewise.
39301         * modules/fcntl-h (Makefile.am): Likewise.
39302         * modules/float (Makefile.am): Likewise.
39303         * modules/getopt-posix (Makefile.am): Likewise.
39304         * modules/glob (Makefile.am): Likewise.
39305         * modules/iconv-h (Makefile.am): Likewise.
39306         * modules/inttypes (Makefile.am): Likewise.
39307         * modules/langinfo (Makefile.am): Likewise.
39308         * modules/locale (Makefile.am): Likewise.
39309         * modules/math (Makefile.am): Likewise.
39310         * modules/netdb (Makefile.am): Likewise.
39311         * modules/netinet_in (Makefile.am): Likewise.
39312         * modules/poll-h (Makefile.am): Likewise.
39313         * modules/pthread (Makefile.am): Likewise.
39314         * modules/pty (Makefile.am): Likewise.
39315         * modules/sched (Makefile.am): Likewise.
39316         * modules/search (Makefile.am): Likewise.
39317         * modules/selinux-h (Makefile.am): Likewise.
39318         * modules/signal (Makefile.am): Likewise.
39319         * modules/spawn (Makefile.am): Likewise.
39320         * modules/stdarg (Makefile.am): Likewise.
39321         * modules/stdbool (Makefile.am): Likewise.
39322         * modules/stddef (Makefile.am): Likewise.
39323         * modules/stdint (Makefile.am): Likewise.
39324         * modules/stdio (Makefile.am): Likewise.
39325         * modules/stdlib (Makefile.am): Likewise.
39326         * modules/string (Makefile.am): Likewise.
39327         * modules/strings (Makefile.am): Likewise.
39328         * modules/sys_file (Makefile.am): Likewise.
39329         * modules/sys_ioctl (Makefile.am): Likewise.
39330         * modules/sys_select (Makefile.am): Likewise.
39331         * modules/sys_socket (Makefile.am): Likewise.
39332         * modules/sys_stat (Makefile.am): Likewise.
39333         * modules/sys_time (Makefile.am): Likewise.
39334         * modules/sys_times (Makefile.am): Likewise.
39335         * modules/sys_utsname (Makefile.am): Likewise.
39336         * modules/sys_wait (Makefile.am): Likewise.
39337         * modules/sysexits (Makefile.am): Likewise.
39338         * modules/termios (Makefile.am): Likewise.
39339         * modules/time (Makefile.am): Likewise.
39340         * modules/unistd (Makefile.am): Likewise.
39341         * modules/wchar (Makefile.am): Likewise.
39342         * modules/wctype-h (Makefile.am): Likewise.
39343         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
39345 2011-04-05  Bruno Haible  <bruno@clisp.org>
39347         pipe2: Relicense under LGPLv2+.
39348         * modules/pipe2 (License): Change to LGPLv2+.
39349         Requested by Eric Blake, for libvirt.
39351 2011-04-05  Bruce Korb  <bkorb@gnu.org>
39353         bootstrap: compute gnulib_extra_files after updating build_aux
39354         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
39355         change build_aux or also supply gnulib_extra_files.  Handle correctly.
39357 2011-04-05  Eric Blake  <eblake@redhat.com>
39359         bootstrap: preserve git whitelist item sorting
39360         * build-aux/bootstrap (sort_patterns): New function.
39361         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
39363 2011-04-05  Simon Josefsson  <simon@josefsson.org>
39365         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
39366         sc_space_tab check.
39368 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
39370         areadlink, areadlinkat: rewrite in terms of careadlinkat
39371         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
39372         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
39373         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
39374         (malloc, realloc): Remove #undefs.
39375         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
39376         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
39377         readlink, ssize_t, stdint, unistd.
39378         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
39379         areadlink, stdint.
39381         careadlinkat: new module
39382         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
39383         * modules/careadlinkat: New files, written by me with
39384         a review and feedback from Ben Pfaff in
39385         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
39387 2011-04-01  Bruno Haible  <bruno@clisp.org>
39389         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
39390         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
39391         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
39392         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
39393         Reported by Bruce Korb <bruce.korb@gmail.com>.
39395 2011-04-01  Bruno Haible  <bruno@clisp.org>
39397         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
39398         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
39399         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
39400         * modules/wcpcpy (Depends-on): Add extensions.
39401         * modules/wcpncpy (Depends-on): Likewise.
39402         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
39403         systems.
39404         * doc/posix-functions/wcpncpy.texi: Likewise.
39405         * doc/posix-functions/wcwidth.texi: Likewise.
39407 2011-03-31  Eric Blake  <eblake@redhat.com>
39409         nonblocking: fix mingw test failures
39410         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
39411         non-blocking flag on regular file.
39412         (get_nonblocking_flag): Set errno on invalid fd.
39413         * tests/test-nonblocking.c (main): Avoid test failure on
39414         directories if fchdir is not active.
39415         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
39417 2011-03-31  Bruno Haible  <bruno@clisp.org>
39419         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
39420         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
39421         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
39422         Reported by Simon Josefsson <simon@josefsson.org>.
39424 2011-03-31  Bruno Haible  <bruno@clisp.org>
39425         and Eric Blake  <eblake@redhat.com>
39427         nonblocking: new module
39428         * modules/nonblocking: New module.
39429         * modules/nonblocking-tests: Likewise.
39430         * lib/nonblocking.h: New file.
39431         * lib/nonblocking.c: Likewise.
39432         * tests/test-nonblocking.c: New test.
39433         * lib/ioctl.c (ioctl) [mingw]: Update comment.
39435 2011-03-30  Bruno Haible  <bruno@clisp.org>
39437         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
39438         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
39439         instead of 'printf' format for GCC >= 4.4.
39440         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
39441         (fprintf, printf, vfprintf, vprintf): Declare with
39442         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
39443         the system's vfprintf() function.
39444         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
39446 2011-03-30  Eric Blake  <eblake@redhat.com>
39448         passfd: fix scoping bug
39449         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
39450         before sendmsg/recvmsg.
39452         passfd: standardize coding conventions
39453         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
39454         can be learned at compile time.
39455         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
39456         ifdefs.
39457         (sendfd, recvfd): Follow gnulib code conventions.
39459         passfd: fix incorrect sendmsg arguments
39460         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
39461         incorrect msg_controllen value.
39462         * modules/passfd-tests (Depends-on): Check for alarm.
39463         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
39464         Reported by Bastien ROUCARIES.
39466 2011-03-30  Bruno Haible  <bruno@clisp.org>
39468         c-strcasestr: Relicense under LGPLv2+.
39469         * modules/c-strcasestr (License): Change to LGPLv2+.
39470         Requested by Eric Blake, for libvirt.
39472 2011-03-30  Simon Josefsson  <simon@josefsson.org>
39474         * users.txt: Add libidn2.  Fix libtasn1 link.
39476 2011-03-30  Jim Meyering  <meyering@redhat.com>
39478         tests: readlink* ("",... fails with EINVAL on newer kernels
39479         readlink and readlinkat have typically failed with ENOENT for
39480         the invalid, empty file name,  "".  However, with the advent
39481         of linux-2.6.39, they fail with EINVAL.
39482         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
39483         when operating on the empty file name.
39484         * tests/test-readlink.h (test_readlink): Likewise.
39486 2011-03-29  Bruno Haible  <bruno@clisp.org>
39488         Relicense some modules under LGPLv2+, for libidn2.
39489         * modules/array-mergesort (License): Change to LGPLv2+.
39490         * modules/c-strcaseeq (License): Likewise.
39491         * modules/striconveh (License): Likewise.
39492         * modules/striconveha (License): Likewise.
39493         * modules/uniconv/base (License): Likewise.
39494         * modules/uniconv/u8-conv-from-enc (License): Likewise.
39495         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
39496         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
39497         * modules/unictype/base (License): Likewise.
39498         * modules/unictype/bidiclass-of (License): Likewise.
39499         * modules/unictype/category-M (License): Likewise.
39500         * modules/unictype/category-none (License): Likewise.
39501         * modules/unictype/category-of (License): Likewise.
39502         * modules/unictype/category-test (License): Likewise.
39503         * modules/unictype/category-test-withtable (License): Likewise.
39504         * modules/unictype/combining-class (License): Likewise.
39505         * modules/unictype/joiningtype-of (License): Likewise.
39506         * modules/unictype/scripts (License): Likewise.
39507         * modules/uninorm/base (License): Likewise.
39508         * modules/uninorm/canonical-decomposition (License): Likewise.
39509         * modules/uninorm/composition (License): Likewise.
39510         * modules/uninorm/decompose-internal (License): Likewise.
39511         * modules/uninorm/decomposition-table (License): Likewise.
39512         * modules/uninorm/nfc (License): Likewise.
39513         * modules/uninorm/nfd (License): Likewise.
39514         * modules/uninorm/u32-normalize (License): Likewise.
39515         * modules/unistr/base (License): Likewise.
39516         * modules/unistr/u32-cpy (License): Likewise.
39517         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
39518         * modules/unistr/u32-to-u8 (License): Likewise.
39519         * modules/unistr/u32-uctomb (License): Likewise.
39520         * modules/unistr/u8-check (License): Likewise.
39521         * modules/unistr/u8-mblen (License): Likewise.
39522         * modules/unistr/u8-mbtouc (License): Likewise.
39523         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
39524         * modules/unistr/u8-mbtoucr (License): Likewise.
39525         * modules/unistr/u8-prev (License): Likewise.
39526         * modules/unistr/u8-strlen (License): Likewise.
39527         * modules/unistr/u8-to-u32 (License): Likewise.
39528         * modules/unistr/u8-uctomb (License): Likewise.
39529         * modules/unitypes (License): Likewise.
39530         Requested by Simon Josefsson.
39532 2011-03-29  Simon Josefsson  <simon@josefsson.org>
39534         lib-symbol-visibility: Add a notice.
39535         * modules/lib-symbol-visibility (Notice): New field.
39537 2011-03-29  Bruno Haible  <bruno@clisp.org>
39539         getaddrinfo: Doc fix.
39540         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
39541         section "fixed in Gnulib".
39543 2011-03-28  Simon Josefsson  <simon@josefsson.org>
39545         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
39546         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
39548 2011-03-26  Bruno Haible  <bruno@clisp.org>
39550         unictype/property-byname: Reduce the number of load-time relocations.
39551         * lib/unictype/pr_byname.c: Include <stdlib.h>.
39552         (UC_PROPERTY_INDEX_*): New enumeration values.
39553         (uc_property_byname): Convert an index from the lookup table to an
39554         uc_property_t.
39555         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
39556         values.
39558 2011-03-26  Bruno Haible  <bruno@clisp.org>
39560         unictype/property-byname: Allow omitted word separators and aliases.
39561         * lib/unictype/pr_byname.gperf: Add property names without word
39562         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
39563         for 'space'.
39565 2011-03-26  Bruno Haible  <bruno@clisp.org>
39567         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
39568         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
39569         also hyphens to space.
39570         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
39571         without spaces.
39572         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
39574 2011-03-26  Bruno Haible  <bruno@clisp.org>
39576         unictype/joiningtype-byname: Recognize long names as well.
39577         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
39578         a long name.
39579         * lib/unictype/joiningtype_byname.c: Include <string.h>,
39580         unictype/joiningtype_byname.h.
39581         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
39582         * lib/unictype/joiningtype_byname.gperf: New file.
39583         * modules/unictype/joiningtype-byname (Files): Add
39584         lib/unictype/joiningtype_byname.gperf.
39585         (Depends-on): Add gperf.
39586         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
39587         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
39588         long names.
39590         Tests for module 'unictype/joiningtype-longname'.
39591         * modules/unictype/joiningtype-longname-tests: New file.
39592         * tests/unictype/test-joiningtype_longname.c: New file.
39594         New module 'unictype/joiningtype-longname'.
39595         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39596         * lib/unictype/joiningtype_longname.c: New file.
39597         * modules/unictype/joiningtype-longname: New file.
39598         * modules/unictype/joiningtype-all (Depends-on): Add
39599         unictype/joiningtype-longname.
39601 2011-03-26  Bruno Haible  <bruno@clisp.org>
39603         unictype/bidiclass-byname: Recognize long names as well.
39604         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39605         name.
39606         * lib/unictype/bidi_byname.c: Include <string.h>,
39607         unictype/bidi_byname.h.
39608         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39609         * lib/unictype/bidi_byname.gperf: New file.
39610         * modules/unictype/bidiclass-byname (Files): Add
39611         lib/unictype/bidi_byname.gperf.
39612         (Depends-on): Add gperf.
39613         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39614         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39615         long names.
39617         Tests for module 'unictype/bidiclass-longname'.
39618         * modules/unictype/bidiclass-longname-tests: New file.
39619         * tests/unictype/test-bidi_longname.c: New file.
39621         New module 'unictype/bidiclass-longname'.
39622         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39623         * lib/unictype/bidi_longname.c: New file.
39624         * modules/unictype/bidiclass-longname: New file.
39625         * modules/unictype/bidiclass-all (Depends-on): Add
39626         unictype/bidiclass-longname.
39628 2011-03-26  Bruno Haible  <bruno@clisp.org>
39630         unictype/bidi*: Rename modules.
39631         * modules/unictype/bidiclass-all: Renamed from
39632         modules/unictype/bidicategory-all.
39633         * modules/unictype/bidiclass-name: Renamed from
39634         modules/unictype/bidiclass-name.
39635         (Description): Update.
39636         * modules/unictype/bidiclass-name-tests: Renamed from
39637         modules/unictype/bidicategory-name-tests.
39638         * modules/unictype/bidiclass-byname: Renamed from
39639         modules/unictype/bidicategory-byname.
39640         (Description): Update.
39641         * modules/unictype/bidiclass-byname-tests: Renamed from
39642         modules/unictype/bidicategory-byname-tests.
39643         * modules/unictype/bidiclass-of: Renamed from
39644         modules/unictype/bidicategory-of.
39645         (Description): Update.
39646         * modules/unictype/bidiclass-of-tests: Renamed from
39647         modules/unictype/bidicategory-of-tests.
39648         * modules/unictype/bidiclass-test: Renamed from
39649         modules/unictype/bidicategory-test.
39650         (Description): Update.
39651         * modules/unictype/bidiclass-test-tests: Renamed from
39652         modules/unictype/bidicategory-test-tests.
39653         * modules/unictype/bidicategory-all: New file, a simple redirection.
39654         * modules/unictype/bidicategory-name: Likewise.
39655         * modules/unictype/bidicategory-byname: Likewise.
39656         * modules/unictype/bidicategory-of: Likewise.
39657         * modules/unictype/bidicategory-test: Likewise.
39658         * modules/unictype/property-bidi-* (Dependencies): Update.
39659         * lib/unictype/bidi_*.c: Update comment.
39661 2011-03-26  Bruno Haible  <bruno@clisp.org>
39663         unictype/bidi*: Rename functions, part 2.
39664         * modules/unictype/bidicategory-name (configure.ac): Update required
39665         libunistring version.
39666         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39668 2011-03-25  Bruno Haible  <bruno@clisp.org>
39670         New module 'unictype/combining-class-all'.
39671         * modules/unictype/combining-class-all: New file.
39673         Tests for module 'unictype/combining-class-byname'.
39674         * modules/unictype/combining-class-byname-tests: New file.
39675         * tests/unictype/test-combiningclass_byname.c: New file.
39677         New module 'unictype/combining-class-byname'.
39678         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39679         * lib/unictype/combiningclass_byname.c: New file.
39680         * lib/unictype/combiningclass_byname.gperf: New file.
39681         * modules/unictype/combining-class-byname: New file.
39683         Tests for module 'unictype/combining-class-longname'.
39684         * modules/unictype/combining-class-longname-tests: New file.
39685         * tests/unictype/test-combiningclass_longname.c: New file.
39687         New module 'unictype/combining-class-longname'.
39688         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39689         * lib/unictype/combiningclass_longname.c: New file.
39690         * modules/unictype/combining-class-longname: New file.
39692         Tests for module 'unictype/combining-class-name'.
39693         * modules/unictype/combining-class-name-tests: New file.
39694         * tests/unictype/test-combiningclass_name.c: New file.
39696         New module 'unictype/combining-class-name'.
39697         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39698         * lib/unictype/combiningclass_name.c: New file.
39699         * modules/unictype/combining-class-name: New file.
39701 2011-03-25  Bruno Haible  <bruno@clisp.org>
39703         unictype/combining-class: Rename source files.
39704         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39705         of unictype/combining.h.
39706         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39707         Update.
39708         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39709         * modules/unictype/combining-class (Description): Fix.
39710         (Files, Makefile.am): Update.
39711         * tests/unictype/test-combiningclass.c: Renamed from
39712         tests/unictype/test-combining.c.
39713         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39715 2011-03-25  Bruno Haible  <bruno@clisp.org>
39717         unictype: Update list of canonical combining classes.
39718         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39720 2011-03-25  Bruno Haible  <bruno@clisp.org>
39722         unictype/category-byname: Recognize long names as well.
39723         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39724         a long name.
39725         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39726         unictype/categ_byname.h.
39727         (UC_CATEGORY_INDEX_*): New enumeration values.
39728         (uc_general_category_byname): Use uc_general_category_lookup and
39729         convert from index to value.
39730         * lib/unictype/categ_byname.gperf: New file.
39731         * modules/unictype/category-byname (Files): Add
39732         lib/unictype/categ_byname.gperf.
39733         (Depends-on): Add gperf.
39734         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39735         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39736         long names.
39738         Tests for module 'unictype/category-longname'.
39739         * modules/unictype/category-longname-tests: New file.
39740         * tests/unictype/test-categ_longname.c: New file.
39742         New module 'unictype/category-longname'.
39743         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
39744         * lib/unictype/categ_longname.c: New file.
39745         * modules/unictype/category-longname: New file.
39746         * modules/unictype/category-all (Depends-on): Add it.
39748 2011-03-25  Bruno Haible  <bruno@clisp.org>
39750         Tests for module 'unictype/category-LC'.
39751         * modules/unictype/category-LC-tests: New file.
39752         * tests/unictype/test-categ_LC.c: New file, automatically generated.
39754         New module 'unictype/category-LC'.
39755         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
39756         (UC_CATEGORY_LC): New declaration.
39757         (UC_CASED_LETTER): New macro.
39758         * lib/gen-uni-tables.c (is_category_LC): New function.
39759         (output_categories): Also handle category LC.
39760         (UC_CATEGORY_MASK_LC): New enumeration value.
39761         (general_category_byname): Also handle category LC.
39762         * lib/unictype/categ_LC.c: New file.
39763         * lib/unictype/categ_LC.h: New file, automatically generated.
39764         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
39765         category LC.
39766         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
39767         * modules/unictype/category-LC: New file.
39768         * modules/unictype/category-byname (Depends-on): Add
39769         unictype/category-LC.
39770         * modules/unictype/category-all (Depends-on): Likewise.
39772 2011-03-25  Eric Blake  <eblake@redhat.com>
39774         xmalloc: revert yesterday's regression
39775         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
39776         realloc's underlying behavior (allowing allocation of zero-size
39777         objects, especially if malloc-gnu is also in use).
39779 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
39781         maint.mk: add missing version to VC-tag
39782         * top/maint.mk: git tag was missing actual tag name; add it.
39784         valgrind: do leak checking, and exit with code 1 on error (not 0)
39785         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
39786         to VALGRIND.
39788 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
39790         posix-modules: say what it does.
39791         * posix-modules: Add a line to the --help output saying what it does.
39793 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
39795         xmalloc: Do not leak if underlying realloc is C99 compatible.
39796         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
39797         This avoids a leak on C99-based systems.  See
39798         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
39800 2011-03-24  Eric Blake  <eblake@redhat.com>
39802         realloc: document portability problem
39803         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
39804         passing 0 size to realloc.
39806 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
39808         doc: update users.txt
39809         * users.txt: Add cvsps, tmpwatch
39811 2011-03-23  Matt Rice  <ratmice@gmail.com>
39813         doc: update users.txt
39814         * users.txt: Add gdb.
39816 2011-03-23  Jim Meyering  <meyering@redhat.com>
39818         doc: update users.txt
39819         Looking through matches up to the following URL (there are still
39820         several more pages), I found several projects that use gnulib:
39821         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
39822         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
39823         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
39825 2011-03-22  Bruno Haible  <bruno@clisp.org>
39827         unictype/bidi*: Rename functions.
39828         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
39829         uc_bidi_class, uc_is_bidi_class): New declarations.
39830         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
39831         uc_bidi_category_byname.
39832         (uc_bidi_category_byname): New function.
39833         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
39834         u_bidi_category_name.
39835         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
39836         (uc_bidi_category_name): New function.
39837         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
39838         uc_bidi_category.
39839         (uc_bidi_category): New function.
39840         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
39841         uc_is_bidi_category. Invoke uc_bidi_class.
39842         (uc_is_bidi_category): New function.
39843         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
39844         instead of uc_bidi_category_byname.
39845         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
39846         instead of uc_bidi_category_name.
39847         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
39848         uc_bidi_category.
39849         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
39850         instead of uc_is_bidi_category.
39852 2011-03-21  Bruno Haible  <bruno@clisp.org>
39854         New module 'unictype/joininggroup-all'.
39855         * modules/unictype/joininggroup-all: New file.
39857         Tests for module 'unictype/joininggroup-of'.
39858         * modules/unictype/joininggroup-of-tests: New file.
39859         * tests/unictype/test-joininggroup_of.c: New file.
39860         * tests/unictype/test-joininggroup_of.h: New file, automatically
39861         generated by gen-uni-tables.
39863         New module 'unictype/joininggroup-of'.
39864         * modules/unictype/joininggroup-of: New file.
39865         * lib/unictype/joininggroup_of.c: New file.
39866         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39867         gen-uni-tables.
39869         Tests for module 'unictype/joininggroup-byname'.
39870         * modules/unictype/joininggroup-byname-tests: New file.
39871         * tests/unictype/test-joininggroup_byname.c: New file.
39873         New module 'unictype/joininggroup-byname'.
39874         * modules/unictype/joininggroup-byname: New file.
39875         * lib/unictype/joininggroup_byname.c: New file.
39876         * lib/unictype/joininggroup_byname.gperf: New file.
39878         Tests for module 'unictype/joininggroup-name'.
39879         * modules/unictype/joininggroup-name-tests: New file.
39880         * tests/unictype/test-joininggroup_name.c: New file.
39882         New module 'unictype/joininggroup-name'.
39883         * modules/unictype/joininggroup-name: New file.
39884         * lib/unictype/joininggroup_name.c: New file.
39885         * lib/unictype/joininggroup_name.h: New file.
39887         New module 'unictype/joiningtype-all'.
39888         * modules/unictype/joiningtype-all: New file.
39890         Tests for module 'unictype/joiningtype-of'.
39891         * modules/unictype/joiningtype-of-tests: New file.
39892         * tests/unictype/test-joiningtype_of.c: New file.
39893         * tests/unictype/test-joiningtype_of.h: New file, automatically
39894         generated by gen-uni-tables.
39896         New module 'unictype/joiningtype-of'.
39897         * modules/unictype/joiningtype-of: New file.
39898         * lib/unictype/joiningtype_of.c: New file.
39899         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39900         gen-uni-tables.
39902         Tests for module 'unictype/joiningtype-byname'.
39903         * modules/unictype/joiningtype-byname-tests: New file.
39904         * tests/unictype/test-joiningtype_byname.c: New file.
39906         New module 'unictype/joiningtype-byname'.
39907         * modules/unictype/joiningtype-byname: New file.
39908         * lib/unictype/joiningtype_byname.c: New file.
39910         Tests for module 'unictype/joiningtype-name'.
39911         * modules/unictype/joiningtype-name-tests: New file.
39912         * tests/unictype/test-joiningtype_name.c: New file.
39914         New module 'unictype/joiningtype-name'.
39915         * modules/unictype/joiningtype-name: New file.
39916         * lib/unictype/joiningtype_name.c: New file.
39918         unictype: Add support for Arabic shaping properties.
39919         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
39920         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
39921         declarations.
39922         (UC_JOINING_GROUP_*): New enumeration values.
39923         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
39924         declarations.
39925         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
39926         (unicode_joining_type): New variable.
39927         (UC_JOINING_GROUP_*): New enumeration values.
39928         (unicode_joining_group): New variable.
39929         (fill_arabicshaping, joining_type_as_c_identifier,
39930         output_joining_type_test, output_joining_type,
39931         joining_group_as_c_identifier, output_joining_group_test,
39932         output_joining_group): New functions.
39933         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
39934         fill_arabicshaping and output_joining_type_test, output_joining_type,
39935         output_joining_group_test, output_joining_group.
39936         Reported by Simon Josefsson.
39938 2011-03-21  Jim Meyering  <meyering@redhat.com>
39940         strftime: fix a bug in yesterday's change
39941         * lib/strftime.c (add): Accommodate width's initial value of -1.
39942         Otherwise, nstrftime would copy uninitialized data into
39943         the result buffer.
39945 2011-03-21  Jim Meyering  <meyering@redhat.com>
39947         tests: add strftime-tests module
39948         * tests/test-strftime.c: New file.
39949         * modules/strftime-tests: New module.
39951 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39953         strftime: don't assume a byte count fits in 'int'
39954         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
39955         found this problem by static analysis, using gcc -Wstrict-overflow
39956         (GCC 4.5.2, x86-64).  This reported an optimization that depended
39957         on an integer overflow having undefined behavior, but it turns out
39958         that the argument is a size, which might not fit in 'int' anyway,
39960 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39962         stdio: don't require ignore_value around fwrite
39964         This patch works around libc bug 11959
39965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
39966         Without this patch, applications must often write
39967         ignore_value (fwrite (...)) even though the ignore_value is
39968         not helpful here.  It's common to write many objects, using
39969         fwrite/printf/etc., and then use ferror to detect output error.
39971         I considered making this patch optional, but decided against it,
39972         because libc is obviously being inconsistent here: there is no
39973         reason libc should insist that user code must inspect fwrite
39974         return's value without also insisting that it inspect printf's,
39975         putchar's, etc.  If user code wants to have a strict style where
39976         all these functions' values are checked (so that ferror need not
39977         be checked), we could add support for that style in a new gnulib
39978         module, but in the meantime it's better to be consistent and to
39979         support common usage.
39981         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
39982         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
39983         that we are compiling in checking mode, and if not C++, and
39984         if not already wrapping fwrite for some other reason.
39985         (fwrite): #define to rpl_fwrite if the latter is defined.
39987 2011-03-20  Bruno Haible  <bruno@clisp.org>
39989         verror: Fix compilation error introduced on 2011-02-13.
39990         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
39991         instead of __attribute__.
39992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39994 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39995             Bruno Haible  <bruno@clisp.org>
39997         socklen: do not depend on sys_socket
39998         While trying to modify Emacs to use gnulib's socklen module,
39999         I discovered a circular dependency: socklen depends on sys_socket
40000         and vice versa.  Emacs can use socklen, but it does not need
40001         sys_socket because it has its own substitute for sys/socket.h.
40002         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
40003         gl_TYPE_SOCKLEN_T.
40004         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
40005         gl_PREREQ_SYS_H_SOCKET.
40006         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
40007         gl_PREREQ_SYS_H_SOCKET.
40008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
40009         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
40010         * modules/socklen (Depends-on): Do not depend on sys_socket.
40011         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
40013 2011-03-20  Jim Meyering  <meyering@redhat.com>
40015         maint.mk: sort file names *after* new transformation
40016         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
40017         prefix would have led to an unwarranted failure in GNU parted.
40018         Sort after that transformation.
40020 2011-03-19  Jim Meyering  <meyering@redhat.com>
40022         maint.mk: fix po-file syntax-check rule
40023         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
40024         Patch by Bruno Haible.
40026 2011-03-19  Bruno Haible  <bruno@clisp.org>
40028         socklen: Update comment.
40029         * m4/socklen.m4: Update comment about platforms.
40031 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40032             Bruno Haible  <bruno@clisp.org>
40034         inet_ntop, inet_pton: Simplify.
40035         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
40036         documented to provide socklen_t and we already depend on sys_socket.
40037         * modules/inet_pton (Depends-on): Likewise.
40038         * lib/arpa_inet.in.h: Adjust comment.
40040 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40041             Bruno Haible  <bruno@clisp.org>
40043         netdb: Simplify.
40044         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
40045         documented to provide socklen_t and we already depend on sys_socket.
40046         * lib/netdb.in.h: Adjust comment.
40048 2011-03-19  Bruno Haible  <bruno@clisp.org>
40050         sys_socket, netdb: Document problem with socklen_t.
40051         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
40052         platforms.
40053         * doc/posix-headers/netdb.texi: Likewise.
40055 2011-03-18  Eric Blake  <eblake@redhat.com>
40057         maint.mk: let po check work in VPATH build
40058         * top/maint.mk (po_file): Allow cfg.mk override.
40059         (sc_po_check): Allow VPATH use.
40060         Reported by Jiri Denemark.
40062 2011-03-16  Jim Meyering  <meyering@redhat.com>
40064         maint.mk: allow fine-grained syntax-check exclusion via Make variables
40065         Before, you would have had to create one .x-sc_ file per rule in order
40066         to exempt offending files.  Now, you may instead use a Make variable --
40067         usually defined in cfg.mk -- whose name identifies the affected rule.
40068         * top/maint.mk (_sc_excl): Define.
40069         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
40070         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
40072 2011-03-13  Bruno Haible  <bruno@clisp.org>
40074         ignore-value tests: Avoid warnings.
40075         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
40076         empty for gcc < 3.4.
40078 2011-03-13  Bruno Haible  <bruno@clisp.org>
40080         passfd: Fix link error on Solaris.
40081         * modules/passfd (Description): Correct.
40082         (Depends-on): Add socketlib.
40083         (Link): New section.
40084         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
40086 2011-03-13  Bruno Haible  <bruno@clisp.org>
40088         passfd: Fix link error on AIX 5.2.
40089         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
40091 2011-03-13  Bruno Haible  <bruno@clisp.org>
40093         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
40094         * lib/sys_socket.in.h: Include <stddef.h>.
40095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
40096         CMSG_FIRSTHDR. Remove unused variable.
40098 2011-03-13  Bruno Haible  <bruno@clisp.org>
40100         passfd: Fix compilation error on OpenBSD.
40101         * lib/passfd.c: Include <sys/uio.h>.
40103 2011-03-13  Bruno Haible  <bruno@clisp.org>
40105         passfd test: Fix warnings.
40106         * tests/test-passfd.c: Include <sys/wait.h>.
40107         (main): Fix typo.
40109 2011-03-13  Bruno Haible  <bruno@clisp.org>
40111         passfd module, part 4, tweaks.
40112         * tests/test-passfd.c: Reorder includes.
40113         (main): Fix perror and printf calls.
40115 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40117         passfd module, part 4.
40118         * modules/passfd-tests: New file.
40119         * tests/test-passfd.c: New file.
40121 2011-03-13  Jim Meyering  <meyering@redhat.com>
40123         Makefile: rely on GNU make; derive syntax-check rule names
40124         Rather than requiring that each sc_ rule be listed as a dependent
40125         of "check", use features of GNU make to derive the list.
40126         * Makefile (syntax-check-rules): Define.
40127         (check): Depend on the new variable, not the hard-coded list.
40129 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
40130             Bruno Haible  <bruno@clisp.org>
40132         passfd module, part 3.
40133         * lib/passfd.h (recvfd): Add a flags argument.
40134         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
40135         (recvfd): Add a flags argument.
40136         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
40137         exists.
40138         * modules/passfd (Depends-on): Add cloexec.
40139         Suggested by Eric Blake.
40141 2011-03-13  Bruno Haible  <bruno@clisp.org>
40143         passfd module, part 2, tweaks.
40144         * modules/passfd (Files): Reorder.
40145         (Depends-on): Remove errno.
40146         (Include): Remove <sys/socket.h>, <sys/un.h>.
40147         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
40148         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
40149         specification header. Include <sys/socket.h> always. Don't include
40150         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
40151         (sendfd): Clarify that it sets errno when it fails.
40152         (recvfd): Fix specification.
40154 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40156         passfd module, part 2.
40157         * modules/passfd: New file.
40158         * lib/passfd.h: New file.
40159         * lib/passfd.c: New file.
40161 2011-03-12  Bruno Haible  <bruno@clisp.org>
40163         wcswidth, mbswidth: Avoid integer overflow.
40164         * lib/wcswidth.c: Include <limits.h>.
40165         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
40166         * lib/mbswidth.c: Include <limits.h>.
40167         (mbsnwidth): Avoid 'int' overflow.
40168         Reported by Jim Meyering.
40170 2011-03-12  Bruno Haible  <bruno@clisp.org>
40172         futimens, utimensat: Avoid endless recursion on Solaris 10.
40173         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
40174         Solaris.
40175         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
40176         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
40178 2011-03-11  Jim Meyering  <meyering@redhat.com>
40180         maint.mk: relax a regexp to accommodate other formatting styles
40181         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
40182         between "ngettext" and the following "(".
40184 2011-03-11  Pádraig Brady  <P@draigBrady.com>
40186         maint.mk: suppress a false positive warning
40187         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
40188         diagnostics are marked with ngettext.
40190 2011-03-10  Eric Blake  <eblake@redhat.com>
40192         wchar: add explicit dependencies, for Tru64
40193         * modules/mbmemcasecoll (Depends-on): Add wchar.
40194         * modules/mbtowc (Depends-on): Likewise.
40195         * modules/vasnprintf (Depends-on): Likewise.
40196         * modules/unistdio/u-printf-args (Depends-on): Likewise.
40197         * modules/wctomb (Depends-on): Likewise.
40198         Reported by Peter O'Gorman.
40200 2011-03-08  Bruno Haible  <bruno@clisp.org>
40202         passfd module, part 1, tweaks.
40203         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
40204         Improve indentation. Improve AC_MSG_CHECKING messages.
40205         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
40206         gl_SOCKET_FAMILIES.
40208 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40210         passfd module, part 1.
40211         * m4/afunix.m4: New file.
40212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
40213         sockets.
40215 2011-03-08  Bruno Haible  <bruno@clisp.org>
40217         regex-quote: New API.
40218         * lib/regex-quote.h: Include <stdbool.h>.
40219         (struct regex_quote_spec): New type.
40220         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40221         New declarations.
40222         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40223         'const struct regex_quote_spec *' argument.
40224         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
40225         (pcre_special): New constant.
40226         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40227         New functions.
40228         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40229         'const struct regex_quote_spec *' argument.
40230         * modules/regex-quote (Depends-on): Add stdbool.
40231         * tests/test-regex-quote.c (check): Update for new API. Add test for
40232         anchored results.
40233         * NEWS: Mention the API change.
40234         Reported by Reuben Thomas and Eric Blake.
40236 2011-03-06  Bruno Haible  <bruno@clisp.org>
40238         regex-quote: Fix creation of POSIX extended regular expressions.
40239         * lib/regex-quote.c (ere_special): Add grouping and alternation
40240         operators.
40242 2011-03-05  Bruno Haible  <bruno@clisp.org>
40244         doc: Improve doc regarding autopoint vs. gnulib.
40245         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
40246         disable autopoint while running autoreconf.
40247         Suggested by Ralf Wildenhues.
40249 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40251         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
40252         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
40254 2011-03-03  Bruce Korb  <bkorb@gnu.org>
40256         parse-duration: remove xalloc.h dependency
40257         * lib/parse-duration.c (parse_period): handle NULL return from
40258         strdup instead of calling xstrdup().
40259         * modules/parse-duration: remove "xalloc" dependency
40261 2011-03-03  Matthew Booth  <mbooth@redhat.com>
40263         bootstrap: honor m4_base when running aclocal
40264         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
40266 2011-03-02  Jim Meyering  <meyering@redhat.com>
40268         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
40269         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
40270         on request from Matt Booth.
40272 2011-03-01  Eric Blake  <eblake@redhat.com>
40274         test-link: work on Hurd
40275         * tests/test-link.h (test_link): Hurd rejects linking directories
40276         with EISDIR instead of the POSIX-mandated EPERM.
40278 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
40280         stdio: simplify by moving files to printf-posix, sigpipe
40281         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
40282         since this symbol is needed only if printf is replaced.
40283         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
40284         Require gl_ASM_SYMBOL_PREFIX.
40285         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
40286         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
40287         (Depends-on): Add 'raise'.
40288         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
40289         * modules/stdio (Files): Remove lib/stdio-write.c,
40290         m4/asm-underscore.m4.
40291         (Depends-on): Remove 'raise'.
40293         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
40294         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
40295         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
40296         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
40298 2011-02-28  Bruno Haible  <bruno@clisp.org>
40300         localcharset: Assume ANSI C behaviour of free().
40301         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
40302         calling free().
40303         Suggested by Simon Josefsson <simon@josefsson.org>.
40305 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
40306             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
40307             Bruno Haible  <bruno@clisp.org>  (tiny change)
40309         On Cygwin, use /proc file system instead of win32 API.
40310         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
40311         Win32 file names.
40312         (DllMain): Simplify by removing Cygwin specific code.
40313         (find_shared_library_fullname): Use Linux specific implementation also
40314         for Cygwin.
40315         (get_shared_library_fullname): Update accordingly.
40316         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
40317         Win32 file names.
40318         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
40319         Cygwin specific code.
40321 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
40322             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
40324         Fix OpenMP flag detection for various Fortran compilers.
40325         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
40326         OpenMP-conditional compilation construct, to force compile
40327         failure with missing OpenMP flag.
40328         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
40330 2011-02-25  Eric Blake  <eblake@redhat.com>
40332         strstr: expand test coverage
40333         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
40334         compilation.
40335         * tests/test-memmem.c (main): Duplicate tests.
40336         * tests/test-strcasestr.c (main): Likewise.
40337         * tests/test-c-strcasestr.c (main): Likewise.
40339 2011-02-25  Jim Meyering  <meyering@redhat.com>
40341         maint.mk: detect missing-NL-at-EOF, too
40342         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
40343         it also detects when a file lacks a newline at EOF.
40344         (require_exactly_one_NL_at_EOF_): Renamed from
40345         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
40346         since people may well have .x-sc_... file names tied to the
40347         existing name.  Suggested by Eric Blake.
40349 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40351         dirname: move m4/dos.m4 functionality into lib/dosname.h
40353         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
40354         extracts symbols from it, puts them into config.h; but it's much
40355         easier to use the symbols directly.  filename.h already does this,
40356         but it disagrees with dos.m4 in some respects.  This patch
40357         introduces a different include file dosname.h that packages up
40358         dos.m4, and then later we can work on merging filename.h and
40359         dosname.h.  Applications that need only the easy-to-configure
40360         symbols should consider including dosname.h rather than dirname.h.
40361         * NEWS: Mention incompatible changes.
40362         * m4/dos.m4: Remove.
40363         * lib/dosname.h, modules/dosname: New files.
40364         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
40365         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
40366         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
40367         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
40368         Include dosname.h, not dirname.h.
40369         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
40370         Include dosname.h, for definitions of symbols like ISSLASH
40371         that used to be in config.h.
40372         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
40373         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40374         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40375         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40376         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
40377         * modules/rmdir (Files): Likewise.
40378         * modules/stat (Files): Likewise.
40379         * modules/unlink (Files): Likewise.
40380         * modules/dirname-lgpl (Depends-on): Add dosname.
40381         * modules/lstat (Depends-on): Likewise.
40382         * modules/openat (Depends-on): Likewise.
40383         * modules/rmdir (Depends-on): Likewise.
40384         * modules/savewd (Depends-on): Likewise.
40385         * modules/stat (Depends-on): Likewise.
40386         * modules/unlink (Depends-on): Likewise.
40387         * modules/openat (Depends-on): Remove dirname-lgpl.
40388         * modules/savewd (Depends-on): Likewise.
40389         * tests/test-dirname.c: Do not use removed symbols like
40390         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
40391         the remaining symbols, e.g., ISSLASH ('\\').
40393 2011-02-25  Eric Blake  <eblake@redhat.com>
40395         strstr: revert patches that introduced bug and pessimization
40396         * lib/str-two-way.h: Add another reference.
40397         (two_way_short_needle, two_way_long_needle): Revert changes from
40398         2011-02-24; they pessimize search speed.
40399         (critical_factorization): Partially revert changes from
40400         2010-06-22; they violate the requirement that the left half of the
40401         needle be smaller than the period of the needle.
40403 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40405         filenamecat: remove unnecessary dependency on dirname-lgpl
40406         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
40407         is no direct dependency, just an indirect one via filenamecat-lgpl.
40409         remove: remove unnecessary use of m4/dos.m4
40410         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
40411         * modules/remove (FILES): Remove m4/dos.m4.
40413         * lib/openat-proc.c: Don't include dirname.h; not needed.
40415         backupfile: remove unnecessary use of m4/dos.m4
40416         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
40417         of its symbols are used by the backupfile code.  backupfile.c does
40418         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
40419         for the rare case of programs that want all their backup file
40420         names to live within 8+3 limits, and dos.m4 doesn't address that.
40421         * modules/backupfile (Files): Remove m4/dos.m4.
40423 2011-02-24  Jim Meyering  <meyering@redhat.com>
40425         strstr: fix a bug whereby strstr would mistakenly return NULL
40426         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
40427         in period calculation.
40428         (two_way_long_needle): Likewise.
40429         The original problem was reported by Mike Stump in
40430         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
40431         Ralf Wildenhues provided the short needle and haystack.
40432         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
40433         Add a more involved test to trigger the bug in two_way_long_needle.
40435 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40437         gnulib-tool: remove use of bold display in help screen
40438         * gnulib-tool (func_usage): Do not use bold display anymore in the
40439         help screen.  That was just meant to be a temporary emphasis for a
40440         backward-incompatible change.
40442 2011-02-23  Bruno Haible  <bruno@clisp.org>
40444         Fix misindentation of preprocessor directives.
40445         * lib/argp-namefrob.h: Reindent preprocessor directives.
40446         * lib/getopt_int.h (struct _getopt_data): Likewise.
40447         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
40448         * lib/vasnprintf.c (decode_long_double): Likewise.
40449         * tests/test-argmatch.c: Insert blank lines, for clarity.
40450         * tests/test-exclude.c: Likewise.
40452 2011-02-22  Bruno Haible  <bruno@clisp.org>
40454         ioctl: Fix for MacOS X in 64-bit mode.
40455         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
40456         value.
40457         Suggested by Eric Blake.
40458         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
40460 2011-02-22  Jim Meyering  <meyering@redhat.com>
40462         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
40463         * Makefile (sc_cpp_indent_check): Don't limit the check to files
40464         in lib/.
40466 2011-02-22  Eric Blake  <eblake@redhat.com>
40468         maint: avoid any CDPATH issue
40469         * Makefile (sc_cpp_indent_check): Anchor cd argument.
40471         maint: adjust cpp indentation for my modules, as well
40472         * Makefile (sc_cpp_indent_check): Add my name.
40473         * lib/fbufmode.c: Filter through cppi.
40474         * lib/fpurge.c: Likewise.
40475         * lib/freadable.c: Likewise.
40476         * lib/freading.c: Likewise.
40477         * lib/fwritable.c: Likewise.
40478         * lib/fwriting.c: Likewise.
40479         * lib/sigaction.c: Likewise.
40481 2011-02-22  Jim Meyering  <meyering@redhat.com>
40483         maint: adjust cpp indentation to reflect nesting depth
40484         I.e., in a block of code that begins with an unnested "#if",
40485         put one space between the "#" in column 1 and following token.
40486         For example,
40487         -#include <sys/vfs.h>
40488         +# include <sys/vfs.h>
40489         Do this only in .c files that are part of a module I maintain.
40490         * lib/linkat.c: Filter through cppi.
40491         * lib/nanosleep.c: Likewise.
40492         * lib/openat.c: Likewise.
40493         * lib/openat-die.c: Likewise.
40494         * lib/dup3.c: Likewise.
40495         * lib/fchownat.c: Likewise.
40496         * lib/flock.c: Likewise.
40497         * lib/fsync.c: Likewise.
40498         * lib/fts.c: Likewise.
40499         * lib/getpass.c: Likewise.
40500         * lib/gettimeofday.c: Likewise.
40501         * lib/userspec.c: Likewise.
40502         * Makefile (sc_cpp_indent_check): New rule, to check this.
40504 2011-02-22  Bruno Haible  <bruno@clisp.org>
40506         New module 'wctomb'.
40507         * lib/stdlib.in.h (wctomb): New declaration.
40508         * lib/wctomb.c: New file.
40509         * lib/wctomb-impl.h: New file.
40510         * m4/wctomb.m4: New file.
40511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
40512         REPLACE_WCTOMB.
40513         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
40514         REPLACE_WCTOMB.
40515         * modules/wctomb: New file.
40516         * tests/test-stdlib-c++.cc: Test signature of wctomb.
40517         * doc/posix-functions/wctomb.texi: Mention the new module.
40518         * modules/wctob (Depends-on): Add wctomb.
40520 2011-02-22  Bruno Haible  <bruno@clisp.org>
40522         New module 'mbtowc'.
40523         * lib/stdlib.in.h (mbtowc): New declaration.
40524         * lib/mbtowc.c: New file.
40525         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
40526         * m4/mbtowc.m4: New file.
40527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
40528         REPLACE_MBTOWC.
40529         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
40530         REPLACE_MBTOWC.
40531         * modules/mbtowc: New file.
40532         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
40533         * doc/posix-functions/mbtowc.texi: Mention the new module.
40534         * modules/btowc (Depends-on): Add mbtowc.
40536 2011-02-22  Bruno Haible  <bruno@clisp.org>
40538         wcrtomb: Add more tests for native Windows platforms.
40539         * tests/test-wcrtomb-w32-1.sh: New file.
40540         * tests/test-wcrtomb-w32-2.sh: New file.
40541         * tests/test-wcrtomb-w32-3.sh: New file.
40542         * tests/test-wcrtomb-w32-4.sh: New file.
40543         * tests/test-wcrtomb-w32-5.sh: New file.
40544         * tests/test-wcrtomb-w32.c: New file.
40545         * modules/wcrtomb-tests (Files): Add them.
40546         (Makefile.am): Arrange to run these tests.
40547         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
40548         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
40550 2011-02-20  Bruno Haible  <bruno@clisp.org>
40552         wcrtomb: Enhance test.
40553         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
40555 2011-02-20  Bruno Haible  <bruno@clisp.org>
40557         mbrtowc: Tiny optimization.
40558         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
40560 2011-02-20  Jim Meyering  <meyering@redhat.com>
40562         test-exclude.c: remove unmatched #endif
40563         * tests/test-exclude.c: Remove stray #endif, left over from
40564         the change of a week ago.
40566 2011-02-19  Jim Meyering  <meyering@redhat.com>
40568         git-version-gen: skip "-dirty" check when appropriate
40569         * build-aux/git-version-gen: Don't run any git commands when the
40570         version string comes from .tarball-version.  Prior to this, we
40571         would run git update-index --refresh even from a just-unpacked
40572         tarball directory, and that could affect a .git/ directory in a
40573         parent of the build directory.  Reported by Mike Frysinger.
40575 2011-02-19  Bruno Haible  <bruno@clisp.org>
40577         unictype/property-byname: Reduce the size of the 'data' segment.
40578         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
40580 2011-02-19  Bruno Haible  <bruno@clisp.org>
40582         unictype/scripts: Reduce the size of the 'data' segment.
40583         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
40584         '%pic'.
40585         * lib/unictype/scripts_byname.gperf: Regenerated.
40587 2011-02-19  Bruno Haible  <bruno@clisp.org>
40589         stdint: Update documentation.
40590         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
40592 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40594         stdint: omit redundant check for wchar.h
40595         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40596         always tests whether wchar.h exists, so remove the now-redundant test.
40598 2011-02-18  Bruno Haible  <bruno@clisp.org>
40600         stdint: Cut dependency to module 'wchar'.
40601         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40602         include the necessary prerequisites.
40603         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40604         * modules/stdint (Depends-on): Remove wchar.
40605         (Makefile.am): Substitute HAVE_WCHAR_H.
40606         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40608 2011-02-18  Eric Blake  <eblake@redhat.com>
40610         longlong: skip, rather than fail, on cross-compilation
40611         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40612         when cross-compiling; regression from 2011-02-16.
40614 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40616         * NEWS: Mention 2011-02-08 change to stdlib.
40618 2011-02-17  Bruno Haible  <bruno@clisp.org>
40620         getloadavg: Add comments about platforms.
40621         * m4/getloadavg.m4: Add comment.
40622         * lib/getloadavg.c: Likewise.
40624 2011-02-17  Bruno Haible  <bruno@clisp.org>
40626         getloadavg: Fix link error on Solaris 2.6.
40627         * modules/getloadavg (Link): New section.
40628         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40629         linking test-getloadavg.
40630         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40631         getloadavg.
40633 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40635         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40636         It was 'int', but this doesn't match the IRIX 6.5 manual.
40637         Suggested by Bruno Haible in
40638         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40640 2011-02-17  Bruno Haible  <bruno@clisp.org>
40642         havelib: Fix comments.
40643         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40644         change.
40646 2011-02-17  Bruno Haible  <bruno@clisp.org>
40648         havelib: Update config.rpath.
40649         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40651 2011-02-17  Bruno Haible  <bruno@clisp.org>
40653         getloadavg test: Add some plausibility checks.
40654         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40655         is improbable.
40657 2011-02-16  Eric Blake  <eblake@redhat.com>
40659         maintainer-makefile: make syntax-check a no-op from tarballs
40660         * top/maint.mk (no-vc-detected): New rule.
40661         (local-checks-available): Use it to avoid hanging if someone tries
40662         'make syntax-check' from a tarball.  Also append to any non-syntax
40663         checks already defined in cfg.mk.
40665 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40667         longlong: tune, particularly for common case of c99
40669         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40670         or running anything if c99, or if unsigned long long int does not
40671         work.  In either case, we know the answer without further tests.
40672         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40673         it at most once, and use its results for both long long int and
40674         unsigned long long int.  This is more likely to be efficient in
40675         the common case where the program wants to check for both long
40676         long int and unsigned long long int.
40677         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40678         since the answer is already known.
40680 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40682         getloadavg: set errno
40683         * lib/getloadavg.c: Set errno when returning -1.  If no other
40684         error number looks appropriate, set it to ENOSYS if the getloadavg
40685         looks like it can't possibly ever work, ENOTSUP otherwise.
40686         Suggested by Bruno Haible in
40687         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40689         getloadavg: trim unused parts and speed up 'configure'
40690         * NEWS: Document this.
40691         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40692         always compiled if getloadavg is absent.
40693         Move test code to ...
40694         * tests/test-getloadavg.c: New file, containing previous
40695         contents of test from lib/getloadavg.c.  It also contains
40696         suggestions by Bruno Haible in
40697         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40698         * modules/getloadavg-tests: New file.
40699         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40700         Do tests in the same order as they're needed for getloadavg.c.
40701         Omit setgid-related tests that generate symbols KMEM_GROUP,
40702         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40703         Do only the tests that are needed to see whether the system has
40704         getloadavg, moving the other tests into ...
40705         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40706         NLIST_NAME_UNION; nobody should be using it.  Do not define
40707         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40708         relevant, as the user of this module shouldn't care how getloadavg
40709         is implemented.
40711         getloadavg: omit unused var
40712         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40714 2011-02-15  Jim Meyering  <meyering@redhat.com>
40716         doc: update users.txt
40717         * users.txt: Update iwhd's URL.
40719 2011-02-13  Bruno Haible  <bruno@clisp.org>
40721         Consistent macro naming for macros that use GCC __attribute__.
40722         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40723         _ATTRIBUTE_NONNULL_.
40724         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40725         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40726         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40727         ATTRIBUTE_DEPRECATED.
40728         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40729         ATTRIBUTE_NORETURN.
40730         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40731         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40732         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40733         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40734         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40735         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40736         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40737         ATTRIBUTE_SENTINEL.
40738         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40739         ATTRIBUTE_RETURN_CHECK.
40740         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40741         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40742         ATTRIBUTE_NORETURN.
40743         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
40744         Reported by Paul Eggert.
40746 2011-02-13  Bruno Haible  <bruno@clisp.org>
40748         Don't interfere with a program's definition of __attribute__.
40749         * lib/argp.h (__attribute__): Remove definition.
40750         (_GL_ATTRIBUTE_FORMAT): New macro.
40751         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
40752         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40753         (_GL_ATTRIBUTE_FORMAT): New macro.
40754         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
40755         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
40756         GCC 3 or newer.
40757         * lib/error.h (__attribute__): Remove definition.
40758         (_GL_ATTRIBUTE_FORMAT): New macro.
40759         (error, error_at_line): Use it.
40760         * lib/hash.h (__attribute__): Remove definition.
40761         (ATTRIBUTE_WUR): Update definition. Define always.
40762         * lib/openat.h (__attribute__): Remove definition.
40763         (ATTRIBUTE_NORETURN): Update definition. Define always.
40764         * lib/sigpipe-die.h (__attribute__): Remove definition.
40765         (ATTRIBUTE_NORETURN): Update definition. Define always.
40766         * lib/vasnprintf.h (__attribute__): Remove definition.
40767         (_GL_ATTRIBUTE_FORMAT): New macro.
40768         (asnprintf, vasnprintf): Use it.
40769         * lib/xalloc.h (__attribute__): Remove definition.
40770         (ATTRIBUTE_NORETURN): Update definition. Define always.
40771         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
40772         * lib/xmemdup0.h (__attribute__): Remove definition.
40773         (ATTRIBUTE_NORETURN): Update definition. Define always.
40774         * lib/xprintf.h (__attribute__): Remove definition.
40775         (_GL_ATTRIBUTE_FORMAT): New macro.
40776         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
40777         * lib/xstrtol.h (__attribute__): Remove definition.
40778         (ATTRIBUTE_NORETURN): Update definition. Define always.
40779         * lib/xvasprintf.h (__attribute__): Remove definition.
40780         (_GL_ATTRIBUTE_FORMAT): New macro.
40781         (xasprintf, xvasprintf): Use it.
40782         * tests/test-argmatch.c (__attribute__): Remove definition.
40783         (ATTRIBUTE_NORETURN): Update definition. Define always.
40784         * tests/test-exclude.c (__attribute__): Remove definition.
40785         (ATTRIBUTE_NORETURN): Update definition. Define always.
40786         Reported by Paul Eggert.
40788 2011-02-13  Bruno Haible  <bruno@clisp.org>
40790         mbrtowc: Add more tests for native Windows platforms.
40791         * tests/test-mbrtowc-w32-1.sh: New file.
40792         * tests/test-mbrtowc-w32-2.sh: New file.
40793         * tests/test-mbrtowc-w32-3.sh: New file.
40794         * tests/test-mbrtowc-w32-4.sh: New file.
40795         * tests/test-mbrtowc-w32-5.sh: New file.
40796         * tests/test-mbrtowc-w32.c: New file.
40797         * modules/mbrtowc-tests (Files): Add them.
40798         (Makefile.am): Arrange to run these tests.
40799         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
40800         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
40802 2011-02-13  Bruno Haible  <bruno@clisp.org>
40804         mbrtowc: Work around native Windows bug.
40805         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
40806         guess when no suitable locale for testing was found.
40807         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
40809 2011-02-13  Bruno Haible  <bruno@clisp.org>
40811         mbsinit: Work around mingw bug.
40812         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
40813         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
40814         Windows.
40815         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
40817 2011-02-13  Bruno Haible  <bruno@clisp.org>
40819         mbsinit: Don't crash for a NULL argument.
40820         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
40821         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
40823 2011-02-13  Bruno Haible  <bruno@clisp.org>
40825         Don't interfere with a program's definition of __attribute__.
40826         * lib/stdio.in.h (__attribute__): Remove definition.
40827         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
40828         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
40829         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
40830         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
40831         * lib/string.in.h (__attribute__): Remove definition.
40832         Reported by Paul Eggert.
40834 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40836         stdlib: don't get in the way of non-GCC __attribute__
40837         See thread starting at
40838         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
40839         Revert previous stdlib change, installing the following instead:
40840         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
40841         to get in the way of a non-GCC compiler that supports __attribute__.
40842         (_GL_ATTRIBUTE_RETURN): New macro.
40843         (_Exit): Use it instead of __attribute__.
40845 2011-02-12  Bruno Haible  <bruno@clisp.org>
40847         quotearg test: Avoid test failure on mingw.
40848         * tests/test-quotearg.sh: Convert the locale identifier from native
40849         Windows syntax to Unix syntax.
40851 2011-02-12  Bruno Haible  <bruno@clisp.org>
40853         setlocale: Prefer gnulib's override over libintl's override.
40854         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
40855         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40856         GNULIB_defined_setlocale is set.
40858 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40860         stdlib: support non-GCC __attribute__
40862         Fix a serious and tricky problem encountered when attempting to
40863         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40864         5.5, but it crashed due to memory corruption on Solaris 10 with
40865         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40866         bits that are otherwise zero.  This tagging is optional inside
40867         Emacs but is preferred and is used when __attribute__ ((__aligned
40868         (8))) works, as it does with both recent-enough GCC and with Sun C
40869         5.11.  However, Sun C 5.11 is not GCC and does not #define
40870         __GNUC__ and __GNUC_MINOR__.
40872         When I added the getloadavg module to Emacs, it brought in
40873         stdlib.in.h, which contained this fragment:
40875            #ifndef __attribute__
40876            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40877            #  define __attribute__(Spec)   /* empty */
40878            # endif
40879            #endif
40881         When files that include <stdlib.h> were compiled with Sun C 5.11,
40882         the above code disabled __attribute__ ((__aligned (8))), which
40883         caused variables to not be properly aligned, which eventually led
40884         to the pointer corruption mentioned above.  (This was a bit hard
40885         to diagnose, unfortunately.)
40887         Several "#define __attribute__(X) /* empty */" code snippets need
40888         to be eradicated from Gnulib to work with non-GCC compilers that
40889         support __attribute__.  The Autoconf way to do this is to test for
40890         each kind of attribute that we want support for, and selectively
40891         enable that in source code.
40893         Fix this problem just for stdlib.h, by adding a test for the
40894         __noreturn__ attribute, and change stdlib.in.h to use that test
40895         when needed.  This technique can be easily generalized to the
40896         other *.in.h files and attributes, and a similar technique can be
40897         used for *.h and *.c files.  This patch is enough to solve the
40898         problem for Emacs + getloadavg, and I thought I'd publish it for
40899         feedback before undertaking further, similar fixes in other
40900         modules.
40902         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40903         because it's not needed for stdlib.h.  It merely substitutes the
40904         value directly into stdlib.h.  We may well need to #define it, or
40905         similar symbols, for other modules, but it's nice to also have an
40906         option to not #define it for applications like Emacs that do not
40907         need it.
40909         * lib/stdlib.in.h (__attribute__): Do not #define.
40910         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40911         be defined only if the _Exit module is also used.
40912         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40914         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40915         platforms.
40916         * modules/_Exit (Files): Add m4/attribute.m4.
40917         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
40918         * m4/attribute.m4: New file.
40920 2011-02-12  Bruno Haible  <bruno@clisp.org>
40922         wcsrtombs: Work around bug on native Windows.
40923         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
40924         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
40925         instead of len.
40926         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
40928 2011-02-12  Bruno Haible  <bruno@clisp.org>
40930         mbsrtowcs: Work around bug on native Windows.
40931         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
40932         against mingw bug.
40933         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
40935 2011-02-12  Bruno Haible  <bruno@clisp.org>
40937         Avoid setlocale bugs in tests.
40938         * modules/btowc (Dependencies): Add setlocale.
40939         * modules/c-strcase (Dependencies): Likewise.
40940         * modules/mbmemcasecmp (Dependencies): Likewise.
40941         * modules/mbmemcasecoll (Dependencies): Likewise.
40942         * modules/mbrtowc (Dependencies): Likewise.
40943         * modules/mbscasecmp (Dependencies): Likewise.
40944         * modules/mbscasestr (Dependencies): Likewise.
40945         * modules/mbschr (Dependencies): Likewise.
40946         * modules/mbscspn (Dependencies): Likewise.
40947         * modules/mbsinit (Dependencies): Likewise.
40948         * modules/mbsncasecmp (Dependencies): Likewise.
40949         * modules/mbsnrtowcs (Dependencies): Likewise.
40950         * modules/mbspbrk (Dependencies): Likewise.
40951         * modules/mbspcasecmp (Dependencies): Likewise.
40952         * modules/mbsrchr (Dependencies): Likewise.
40953         * modules/mbsrtowcs (Dependencies): Likewise.
40954         * modules/mbsspn (Dependencies): Likewise.
40955         * modules/mbsstr (Dependencies): Likewise.
40956         * modules/nl_langinfo (Dependencies): Likewise.
40957         * modules/quotearg (Dependencies): Likewise.
40958         * modules/unicase/locale-language (Dependencies): Likewise.
40959         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
40960         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
40961         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
40962         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
40963         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
40964         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
40965         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
40966         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
40967         * modules/vasnprintf-posix (Dependencies): Likewise.
40968         * modules/wcrtomb (Dependencies): Likewise.
40969         * modules/wcsnrtombs (Dependencies): Likewise.
40970         * modules/wcsrtombs (Dependencies): Likewise.
40972 2011-02-12  Bruno Haible  <bruno@clisp.org>
40974         setlocale: Workaround native Windows bug.
40975         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
40976         succeeds but sets LC_CTYPE to "C", report a failure.
40977         * tests/test-setlocale2.sh: New file.
40978         * tests/test-setlocale2.c: New file.
40979         * modules/setlocale-tests (Files): Add the new files.
40980         (Makefile.am): Enable test-setlocale2.sh test.
40981         * doc/posix-functions/setlocale.texi: Mention workaround.
40983 2011-02-11  Bruno Haible  <bruno@clisp.org>
40985         Tests for module 'setlocale'.
40986         * modules/setlocale-tests: New file.
40987         * tests/test-setlocale1.sh: New file.
40988         * tests/test-setlocale1.c: New file.
40990         New module 'setlocale'.
40991         * lib/locale.in.h (setlocale): New declaration.
40992         * lib/setlocale.c: New file, based on
40993         gettext/gettext-runtime/intl/setlocale.c.
40994         * m4/setlocale.m4: New file.
40995         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
40996         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
40997         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
40998         REPLACE_SETLOCALE.
40999         * modules/setlocale: New file.
41000         * tests/test-locale-c++.cc: Test the declaration of setlocale.
41001         * doc/posix-functions/setlocale.texi: Mention the new module.
41003 2011-02-11  Bruno Haible  <bruno@clisp.org>
41005         Prepare for locale dependent tests on mingw.
41006         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
41007         because it has the wrong locale encoding.
41008         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
41009         French_France.1252 instead of "fr".
41010         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
41011         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
41012         because it has the wrong locale encoding.
41013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
41014         native Windows, try Turkish_Turkey.65001.
41015         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
41016         Chinese_China.54936.
41018         Prepare for locale dependent tests on mingw.
41019         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
41020         differently.
41021         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
41022         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
41023         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41026 2011-02-11  Eric Blake  <eblake@redhat.com>
41028         strptime: avoid compiler warnings
41029         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
41030         compiler warnings about dead code.
41031         Reported by Daniel P. Berrange.
41033 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
41035         doc: update users.txt
41036         * users.txt: Add rcs.
41038 2011-02-10  John W. Eaton  <jwe@gnu.org>
41040         doc: update users.txt
41041         * users.txt: Add octave.
41043 2011-02-10  Jim Meyering  <meyering@redhat.com>
41045         doc: update users.txt
41046         * users.txt: Add iwhd.
41048 2011-02-09  Bruno Haible  <bruno@clisp.org>
41050         gnulib-tool: Make copyright notice adjustment more robust.
41051         * gnulib-tool (func_import): In sed_transform_main_lib_file,
41052         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
41053         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
41054         License".
41055         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
41057 2011-02-06  Bruno Haible  <bruno@clisp.org>
41059         New module 'towctrans'.
41060         * modules/towctrans: New file.
41061         * lib/wctype.in.h (towctrans): New declaration.
41062         * lib/towctrans.c: New file.
41063         * lib/towctrans-impl.h: New file.
41064         * m4/towctrans.m4: New file.
41065         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
41066         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
41067         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
41068         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
41069         * doc/posix-functions/towctrans.texi: Mention the new module.
41071 2011-02-06  Bruno Haible  <bruno@clisp.org>
41073         New module 'wctrans'.
41074         * modules/wctrans: New file.
41075         * lib/wctype.in.h (wctrans): New declaration.
41076         * lib/wctrans.c: New file.
41077         * lib/wctrans-impl.h: New file.
41078         * m4/wctrans.m4: New file.
41079         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
41080         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
41081         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
41082         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
41083         * doc/posix-functions/wctrans.texi: Mention the new module.
41085 2011-02-06  Bruno Haible  <bruno@clisp.org>
41087         New module 'iswctype'.
41088         * modules/iswctype: New file.
41089         * lib/wctype.in.h (iswctype): New declaration.
41090         * lib/iswctype.c: New file.
41091         * lib/iswctype-impl.h: New file.
41092         * m4/iswctype.m4: New file.
41093         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
41094         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
41095         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
41096         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
41097         * doc/posix-functions/iswctype.texi: Mention the new module and the
41098         HP-UX 11.00 problem.
41100 2011-02-06  Bruno Haible  <bruno@clisp.org>
41102         New module 'wctype'.
41103         * modules/wctype: Change to represent the wctype() substitute.
41104         * lib/wctype.in.h (wctype): New declaration.
41105         * lib/wctype.c: New file.
41106         * lib/wctype-impl.h: New file.
41107         * m4/wctype.m4: New file.
41108         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
41109         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
41110         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
41111         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
41112         * doc/posix-functions/wctype.texi: Mention the new module and the
41113         HP-UX 11.00 problem.
41115 2011-02-06  Bruno Haible  <bruno@clisp.org>
41117         wctype-h: Ensure wctype_t and wctrans_t are defined.
41118         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
41119         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41120         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41121         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
41122         HAVE_WCTRANS_T.
41123         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
41125 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41127         flock: fix license typo
41129         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
41130         omitted.
41132 2011-02-08  Bruno Haible  <bruno@clisp.org>
41134         Split large sed scripts, for HP-UX sed.
41135         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
41136         to avoid HP-UX limit of 99 commands, in the near future.
41137         * modules/stdlib (Makefile.am): Likewise.
41138         * modules/unistd (Makefile.am): Likewise.
41139         * modules/wchar (Makefile.am): Likewise.
41140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41141         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
41142         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
41144 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41145             Bruno Haible  <bruno@clisp.org>
41147         stdlib: improve random_r modularization
41148         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
41149         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
41150         you also need the random_r module to get this material right.
41151         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
41152         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
41153         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
41155 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41157         stdlib: don't depend on stdint
41158         * lib/stdlib.in.h: Don't include <stdint.h> merely because
41159         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
41160         be independent of whether stdint.h is needed.
41161         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
41162         here, instead of ...
41163         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
41164         struct random_data should be using the random_r module, not just
41165         the stdlib module (which wouldn't make sense: what package needs
41166         just struct random_data without also needing random_r?).
41167         * modules/stdlib (Depends-on): Remove stdint.
41169         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
41170         See the thread rooted at
41171         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
41172         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
41173         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
41174         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
41175         __VMS)); previously it was always included (via fcntl--.h).
41176         (getloadavg): Do not use c_strtod.  Instead, approximate it by
41177         hand; this is good enough for load averages.  Also, do not use
41178         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
41179         flags directly if available and don't bother otherwise.  (Packages
41180         that need the extra reliability should use the modules that define
41181         these flags on older platforms that lack them.)
41182         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
41183         fcntl-safer.
41185 2011-02-08  Jim Meyering  <meyering@redhat.com>
41187         di-set.h, ino-map.h: add multiple-inclusion guard
41188         Technically, the guard is required only for ino-map.h, due to its
41189         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
41190         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
41191         * lib/ino-map.h: Likewise.
41193 2011-02-06  Bruno Haible  <bruno@clisp.org>
41195         iswblank: Ensure declaration on glibc systems.
41196         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
41197         * modules/iswblank (Dependencies): Add 'extensions'.
41198         * doc/posix-functions/iswblank.texi: Document the glibc problem.
41200 2011-02-06  Bruno Haible  <bruno@clisp.org>
41202         New module 'iswblank'.
41203         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
41204         * modules/iswblank: New file.
41205         * modules/wctype-h (Files): Remove lib/iswblank.c.
41206         (Makefile.am): Substitute GNULIB_ISWBLANK.
41207         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
41208         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
41209         (gl_WCTYPE_H_DEFAULTS): New macro.
41210         (gl_WCTYPE_H): Require it. Remove iswblank related code.
41211         * modules/iswblank-tests: New file.
41212         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
41213         * tests/test-wctype-h.c (main): Remove iswblank tests.
41214         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
41215         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
41216         of 'wctype-h'.
41217         * NEWS: Mention the change.
41218         * modules/mbchar (Depends-on): Add iswblank.
41220 2011-02-08  Bruno Haible  <bruno@clisp.org>
41222         di-set tests: Refactor.
41223         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
41224         unnecessary includes.
41225         (ASSERT): Remove macro.
41226         (main): Make C90 compliant by avoiding variable declaration after
41227         statement.
41228         * modules/di-set-tests (Files): Add tests/macros.h.
41230 2011-02-08  Bruno Haible  <bruno@clisp.org>
41232         ino-map tests: Refactor.
41233         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
41234         unnecessary includes.
41235         (ASSERT): Remove macro.
41236         (main): Make C90 compliant by avoiding variable declaration after
41237         statement.
41238         * modules/ino-map-tests (Files): Add tests/macros.h.
41240 2011-02-08  Jim Meyering  <meyering@redhat.com>
41242         di-set: add "const" to a cast
41243         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
41244         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
41246 2011-02-06  Bruno Haible  <bruno@clisp.org>
41248         Rename module 'wctype' to 'wctype-h'.
41249         * modules/wctype-h: Renamed from modules/wctype.
41250         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
41251         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
41252         (Files, Depends-on, Makefile.am): Update.
41253         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
41254         (Files, Makefile.am): Update.
41255         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
41256         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
41257         * doc/posix-headers/wctype.texi: Update.
41258         * doc/posix-functions/iswalnum.texi: Update.
41259         * doc/posix-functions/iswalpha.texi: Update.
41260         * doc/posix-functions/iswblank.texi: Update.
41261         * doc/posix-functions/iswcntrl.texi: Update.
41262         * doc/posix-functions/iswdigit.texi: Update.
41263         * doc/posix-functions/iswgraph.texi: Update.
41264         * doc/posix-functions/iswlower.texi: Update.
41265         * doc/posix-functions/iswprint.texi: Update.
41266         * doc/posix-functions/iswpunct.texi: Update.
41267         * doc/posix-functions/iswspace.texi: Update.
41268         * doc/posix-functions/iswupper.texi: Update.
41269         * doc/posix-functions/iswxdigit.texi: Update.
41270         * doc/posix-functions/towlower.texi: Update.
41271         * doc/posix-functions/towupper.texi: Update.
41272         * NEWS: Mention the change.
41273         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
41274         * modules/mbchar (Dependencies): Likewise.
41275         * modules/mbswidth (Dependencies): Likewise.
41276         * modules/quotearg (Dependencies): Likewise.
41277         * modules/regex (Dependencies): Likewise.
41278         * modules/wcscasecmp (Dependencies): Likewise.
41279         * modules/wcsncasecmp (Dependencies): Likewise.
41280         * modules/wcwidth (Dependencies): Likewise.
41282 2011-02-06  Bruno Haible  <bruno@clisp.org>
41284         New module 'wcswidth'.
41285         * modules/wcswidth: New file.
41286         * lib/wchar.in.h (wcswidth): New declaration.
41287         * lib/wcswidth.c: New file.
41288         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
41289         * m4/wcswidth.m4: New file.
41290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
41291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
41292         REPLACE_WCSWIDTH.
41293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
41294         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
41295         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
41296         * doc/posix-functions/wcswidth.texi: Mention the new module.
41298 2011-02-06  Bruno Haible  <bruno@clisp.org>
41300         New module 'wcstok'.
41301         * modules/wcstok: New file.
41302         * lib/wchar.in.h (wcstok): New declaration.
41303         * lib/wcstok.c: New file.
41304         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
41305         * m4/wcstok.m4: New file.
41306         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
41307         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
41308         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
41309         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
41310         * doc/posix-functions/wcstok.texi: Mention the new module.
41312 2011-02-06  Bruno Haible  <bruno@clisp.org>
41314         New module 'wcsstr'.
41315         * modules/wcsstr: New file.
41316         * lib/wchar.in.h (wcsstr): New declaration.
41317         * lib/wcsstr.c: New file.
41318         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
41319         * m4/wcsstr.m4: New file.
41320         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
41321         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
41322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
41323         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
41324         * doc/posix-functions/wcsstr.texi: Mention the new module.
41326 2011-02-06  Bruno Haible  <bruno@clisp.org>
41328         New module 'wcspbrk'.
41329         * modules/wcspbrk: New file.
41330         * lib/wchar.in.h (wcspbrk): New declaration.
41331         * lib/wcspbrk.c: New file.
41332         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
41333         * m4/wcspbrk.m4: New file.
41334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
41335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
41336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
41337         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
41338         * doc/posix-functions/wcspbrk.texi: Mention the new module.
41340 2011-02-06  Bruno Haible  <bruno@clisp.org>
41342         New module 'wcsspn'.
41343         * modules/wcsspn: New file.
41344         * lib/wchar.in.h (wcsspn): New declaration.
41345         * lib/wcsspn.c: New file.
41346         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
41347         * m4/wcsspn.m4: New file.
41348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
41349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
41350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
41351         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
41352         * doc/posix-functions/wcsspn.texi: Mention the new module.
41354 2011-02-06  Bruno Haible  <bruno@clisp.org>
41356         New module 'wcscspn'.
41357         * modules/wcscspn: New file.
41358         * lib/wchar.in.h (wcscspn): New declaration.
41359         * lib/wcscspn.c: New file.
41360         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
41361         * m4/wcscspn.m4: New file.
41362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
41363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
41364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
41365         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
41366         * doc/posix-functions/wcscspn.texi: Mention the new module.
41368 2011-02-06  Bruno Haible  <bruno@clisp.org>
41370         New module 'wcsrchr'.
41371         * modules/wcsrchr: New file.
41372         * lib/wchar.in.h (wcsrchr): New declaration.
41373         * lib/wcsrchr.c: New file.
41374         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
41375         * m4/wcsrchr.m4: New file.
41376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
41377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
41378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
41379         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
41380         * doc/posix-functions/wcsrchr.texi: Mention the new module.
41382 2011-02-06  Bruno Haible  <bruno@clisp.org>
41384         New module 'wcschr'.
41385         * modules/wcschr: New file.
41386         * lib/wchar.in.h (wcschr): New declaration.
41387         * lib/wcschr.c: New file.
41388         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
41389         * m4/wcschr.m4: New file.
41390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
41391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
41392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
41393         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
41394         * doc/posix-functions/wcschr.texi: Mention the new module.
41396 2011-02-06  Bruno Haible  <bruno@clisp.org>
41398         New module 'wcsdup'.
41399         * modules/wcsdup: New file.
41400         * lib/wchar.in.h (wcsdup): New declaration.
41401         * lib/wcsdup.c: New file.
41402         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
41403         * m4/wcsdup.m4: New file.
41404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
41405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
41406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
41407         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
41408         * doc/posix-functions/wcsdup.texi: Mention the new module.
41410 2011-02-06  Bruno Haible  <bruno@clisp.org>
41412         New module 'wcsxfrm'.
41413         * modules/wcsxfrm: New file.
41414         * lib/wchar.in.h (wcsxfrm): New declaration.
41415         * lib/wcsxfrm.c: New file.
41416         * lib/wcsxfrm-impl.h: New file.
41417         * m4/wcsxfrm.m4: New file.
41418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
41419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
41420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
41421         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
41422         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
41424 2011-02-06  Bruno Haible  <bruno@clisp.org>
41426         New module 'wcscoll'.
41427         * modules/wcscoll: New file.
41428         * lib/wchar.in.h (wcscoll): New declaration.
41429         * lib/wcscoll.c: New file.
41430         * lib/wcscoll-impl.h: New file.
41431         * m4/wcscoll.m4: New file.
41432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
41433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
41434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
41435         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
41436         * doc/posix-functions/wcscoll.texi: Mention the new module.
41438 2011-02-06  Bruno Haible  <bruno@clisp.org>
41440         New module 'wcsncasecmp'.
41441         * modules/wcsncasecmp: New file.
41442         * lib/wchar.in.h (wcsncasecmp): New declaration.
41443         * lib/wcsncasecmp.c: New file.
41444         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
41445         * m4/wcsncasecmp.m4: New file.
41446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
41447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
41448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
41449         HAVE_WCSNCASECMP.
41450         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
41451         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
41453 2011-02-06  Bruno Haible  <bruno@clisp.org>
41455         New module 'wcscasecmp'.
41456         * modules/wcscasecmp: New file.
41457         * lib/wchar.in.h (wcscasecmp): New declaration.
41458         * lib/wcscasecmp.c: New file.
41459         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
41460         * m4/wcscasecmp.m4: New file.
41461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
41462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
41463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
41464         HAVE_WCSCASECMP.
41465         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
41466         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
41468 2011-02-05  Bruno Haible  <bruno@clisp.org>
41470         New module 'wcsncmp'.
41471         * modules/wcsncmp: New file.
41472         * lib/wchar.in.h (wcsncmp): New declaration.
41473         * lib/wcsncmp.c: New file.
41474         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
41475         * m4/wcsncmp.m4: New file.
41476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
41477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
41478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
41479         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
41480         * doc/posix-functions/wcsncmp.texi: Mention the new module.
41482 2011-02-05  Bruno Haible  <bruno@clisp.org>
41484         New module 'wcscmp'.
41485         * modules/wcscmp: New file.
41486         * lib/wchar.in.h (wcscmp): New declaration.
41487         * lib/wcscmp.c: New file.
41488         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
41489         * m4/wcscmp.m4: New file.
41490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
41491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
41492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
41493         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
41494         * doc/posix-functions/wcscmp.texi: Mention the new module.
41496 2011-02-05  Bruno Haible  <bruno@clisp.org>
41498         New module 'wcsncat'.
41499         * modules/wcsncat: New file.
41500         * lib/wchar.in.h (wcsncat): New declaration.
41501         * lib/wcsncat.c: New file.
41502         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
41503         * m4/wcsncat.m4: New file.
41504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
41505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
41506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
41507         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
41508         * doc/posix-functions/wcsncat.texi: Mention the new module.
41510 2011-02-05  Bruno Haible  <bruno@clisp.org>
41512         New module 'wcscat'.
41513         * modules/wcscat: New file.
41514         * lib/wchar.in.h (wcscat): New declaration.
41515         * lib/wcscat.c: New file.
41516         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
41517         * m4/wcscat.m4: New file.
41518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
41519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
41520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
41521         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
41522         * doc/posix-functions/wcscat.texi: Mention the new module.
41524 2011-02-05  Bruno Haible  <bruno@clisp.org>
41526         New module 'wcpncpy'.
41527         * modules/wcpncpy: New file.
41528         * lib/wchar.in.h (wcpncpy): New declaration.
41529         * lib/wcpncpy.c: New file.
41530         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
41531         * m4/wcpncpy.m4: New file.
41532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
41533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
41534         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
41535         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
41536         * doc/posix-functions/wcpncpy.texi: Mention the new module.
41538 2011-02-05  Bruno Haible  <bruno@clisp.org>
41540         New module 'wcsncpy'.
41541         * modules/wcsncpy: New file.
41542         * lib/wchar.in.h (wcsncpy): New declaration.
41543         * lib/wcsncpy.c: New file.
41544         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
41545         * m4/wcsncpy.m4: New file.
41546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
41547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
41548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
41549         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
41550         * doc/posix-functions/wcsncpy.texi: Mention the new module.
41552 2011-02-05  Bruno Haible  <bruno@clisp.org>
41554         New module 'wcpcpy'.
41555         * modules/wcpcpy: New file.
41556         * lib/wchar.in.h (wcpcpy): New declaration.
41557         * lib/wcpcpy.c: New file.
41558         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
41559         * m4/wcpcpy.m4: New file.
41560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
41561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
41562         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
41563         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
41564         * doc/posix-functions/wcpcpy.texi: Mention the new module.
41566 2011-02-05  Bruno Haible  <bruno@clisp.org>
41568         New module 'wcscpy'.
41569         * modules/wcscpy: New file.
41570         * lib/wchar.in.h (wcscpy): New declaration.
41571         * lib/wcscpy.c: New file.
41572         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
41573         * m4/wcscpy.m4: New file.
41574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
41575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
41576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
41577         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
41578         * doc/posix-functions/wcscpy.texi: Mention the new module.
41580 2011-02-05  Bruno Haible  <bruno@clisp.org>
41582         New module 'wcsnlen'.
41583         * modules/wcsnlen: New file.
41584         * lib/wchar.in.h (wcsnlen): New declaration.
41585         * lib/wcsnlen.c: New file.
41586         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
41587         * m4/wcsnlen.m4: New file.
41588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
41589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
41590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
41591         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
41592         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41594 2011-02-05  Bruno Haible  <bruno@clisp.org>
41596         New module 'wcslen'.
41597         * modules/wcslen: New file.
41598         * lib/wchar.in.h (wcslen): New declaration.
41599         * lib/wcslen.c: New file.
41600         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41601         * m4/wcslen.m4: New file.
41602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41605         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41606         * doc/posix-functions/wcslen.texi: Mention the new module.
41608 2011-02-05  Bruno Haible  <bruno@clisp.org>
41610         New module 'wmemset'.
41611         * modules/wmemset: New file.
41612         * lib/wchar.in.h (wmemset): New declaration.
41613         * lib/wmemset.c: New file.
41614         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41615         * m4/wmemset.m4: New file.
41616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41618         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41619         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41620         * doc/posix-functions/wmemset.texi: Mention the new module.
41622 2011-02-05  Bruno Haible  <bruno@clisp.org>
41624         New module 'wmemmove'.
41625         * modules/wmemmove: New file.
41626         * lib/wchar.in.h (wmemmove): New declaration.
41627         * lib/wmemmove.c: New file.
41628         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41629         * m4/wmemmove.m4: New file.
41630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41632         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41633         HAVE_WMEMMOVE.
41634         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41635         * doc/posix-functions/wmemmove.texi: Mention the new module.
41637 2011-02-05  Bruno Haible  <bruno@clisp.org>
41639         New module 'wmemcpy'.
41640         * modules/wmemcpy: New file.
41641         * lib/wchar.in.h (wmemcpy): New declaration.
41642         * lib/wmemcpy.c: New file.
41643         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41644         * m4/wmemcpy.m4: New file.
41645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41647         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41648         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41649         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41651 2011-02-05  Bruno Haible  <bruno@clisp.org>
41653         New module 'wmemcmp'.
41654         * modules/wmemcmp: New file.
41655         * lib/wchar.in.h (wmemcmp): New declaration.
41656         * lib/wmemcmp.c: New file.
41657         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41658         * m4/wmemcmp.m4: New file.
41659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41661         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41662         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41663         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41665 2011-02-07  Jim Meyering  <meyering@redhat.com>
41667         di-set, ino-map: new modules, from coreutils
41668         * lib/di-set.c: New file.
41669         * lib/di-set.h: Likewise.
41670         * lib/ino-map.c: Likewise.
41671         * lib/ino-map.h: Likewise.
41672         * modules/di-set: Likewise.
41673         * modules/di-set-tests: Likewise.
41674         * modules/ino-map: Likewise.
41675         * modules/ino-map-tests: Likewise.
41676         * tests/test-di-set.c: Likewise.
41677         * tests/test-ino-map.c: Likewise.
41679 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41681         getloadavg: merge minor changes from Emacs
41683         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41684         (getloadavg): Use memset, not bzero.
41686         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41687         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41688         clash (bug#86).
41690 2010-11-14  Bruno Haible  <bruno@clisp.org>
41692         Allow multiple gnulib generated replacements to coexist.
41693         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41694         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41695         * lib/langinfo.in.h (nl_item): Likewise.
41696         * lib/math.in.h (_NaN, NAN): Likewise.
41697         * lib/netdb.in.h (struct addrinfo): Likewise.
41698         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41699         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41700         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41701         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41702         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41703         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41704         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41705         pthread_mutexattr_init, pthread_mutexattr_settype,
41706         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41707         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41708         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41709         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41710         * lib/sched.in.h (struct sched_param): Likewise.
41711         * lib/se-selinux.in.h (security_class_t, security_context_t,
41712         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41713         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41714         lsetfilecon, fsetfilecon, security_check_context,
41715         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41716         Likewise.
41717         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41718         Likewise.
41719         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41720         _gl_function_taking_int_returning_void_t, union sigval,
41721         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41722         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41723         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41724         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41725         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41726         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41727         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41728         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41729         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41730         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41731         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41732         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41733         socklen_t, rpl_fd_isset): Likewise.
41734         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41735         * lib/sys_time.in.h (struct timeval): Likewise.
41736         * lib/sys_times.in.h (struct tms): Likewise.
41737         * lib/sys_utsname.in.h (struct utsname):
41738         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41739         * lib/unistd.in.h (getpagesize): Likewise.
41740         * lib/wchar.in.h (mbstate_t): Likewise.
41741         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41742         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41743         towlower, towupper): Likewise.
41744         Reported by Sam Steingold <sds@gnu.org>.
41746 2011-02-05  Eric Blake  <eblake@redhat.com>
41748         unsetenv: work around Haiku issues
41749         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
41750         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
41752 2010-12-30  Bruce Korb  <bkorb@gnu.org>
41754         libposix: avoid calling error() within libposix
41755         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
41756         is defined.
41758 2011-02-05  Eric Blake  <eblake@redhat.com>
41760         strerror_r-posix: port to cygwin
41761         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
41762         implementation.
41763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
41764         * tests/test-strerror_r.c (main): Fix test.
41765         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
41766         issue.
41768 2011-02-05  Bruno Haible  <bruno@clisp.org>
41770         New module 'wmemchr'.
41771         * modules/wmemchr: New file.
41772         * lib/wchar.in.h (wmemchr): New declaration.
41773         * lib/wmemchr.c: New file.
41774         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
41775         * m4/wmemchr.m4: New file.
41776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
41777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
41778         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
41779         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
41780         * doc/posix-functions/wmemchr.texi: Mention the new module.
41782 2011-02-04  Eric Blake  <eblake@redhat.com>
41784         fdopendir: detect FreeBSD bug
41785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
41786         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
41788 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41790         stdbool: do not define HAVE_STDBOOL_H
41791         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
41792         AC_HEADER_STDBOOL.  All uses changed.  Do not define
41793         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
41794         imported from the latest Autoconf git.  It was motivated by Emacs,
41795         which uses gnulib but does not need HAVE_STDBOOL_H.
41797 2011-02-04  Bruno Haible  <bruno@clisp.org>
41799         wcsnrtombs: Prepare for new module wwcsnrtombs.
41800         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
41801         * lib/wcsnrtombs.c: Include it.
41802         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
41804         wcsrtombs: Prepare for new module wwcsrtombs.
41805         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
41806         * lib/wcsrtombs.c: Include it.
41807         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
41809         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
41810         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
41811         * lib/mbsnrtowcs.c: Include it.
41812         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
41814         mbsrtowcs: Prepare for new module mbsrtowwcs.
41815         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
41816         * lib/mbsrtowcs.c: Include it.
41817         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
41819 2011-02-04  Bruno Haible  <bruno@clisp.org>
41821         vasnprintf: Reduce use of malloc for small format strings.
41822         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
41823         (arguments): Add room for the first 7 arguments.
41824         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
41825         (char_directives, u8_directives, u16_directives, u32_directives): Add
41826         room for the first 7 directives.
41827         * lib/printf-parse.c: Include <string.h>.
41828         (PRINTF_PARSE): Change memory handling code so that it uses the first
41829         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
41830         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
41831         Reported by Pádraig Brady <P@draigbrady.com>.
41833 2011-01-31  Eric Blake  <eblake@redhat.com>
41835         dup2: work around Haiku bug
41836         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
41837         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
41838         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41839         * tests/test-dup2.c (main): Enhance test.
41841 2011-01-31  Simon Josefsson  <simon@josefsson.org>
41843         doc: off_t is not available in eglibc 2.11.2 stdio.h.
41844         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
41845         declared by eglibc 2.11.2.
41846         * lib/stdio.in.h: Likewise.
41848 2011-01-31  Eric Blake  <eblake@redhat.com>
41850         ignore-value: add missing test dependency
41851         * tests/test-ignore-value.c: Revert previous change; stdio.h
41852         provides off_t.
41853         * modules/ignore-value-tests (Depends-on): Add missing dependency.
41855 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
41857         mktime: clarify long_int width checking
41858         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41859         the top level, to make it clearer that the assumption about
41860         long_int width is being checked.  See
41861         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41863 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41865         ignore-value: Fix self-test.
41866         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41868 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41870         TYPE_MAXIMUM: avoid theoretically undefined behavior
41871         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41872         negative number, which the C Standard says has undefined behavior.
41873         In practice this is not a problem, but might as well do it by the book.
41874         Reported by Rich Felker and Eric Blake; see
41875         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41876         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41877         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41879         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41880         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41881         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41883         mktime: #undef mktime before #defining it
41884         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41886         mktime: systematically normalize tm_isdst comparisons
41887         * lib/mktime.c (isdst_differ): New function.
41888         (__mktime_internal): Use it systematically for all isdst comparisons.
41889         This completes the fix for libc BZ #6723, and removes the need for
41890         normalizing tm_isdst.  See
41891         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41892         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41894         mktime: fix some integer overflow issues and sidestep the rest
41896         This was prompted by a bug report by Benjamin Lindner for MinGW
41897         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41898         His bug is due to signed integer overflow (0 - INT_MIN), and I
41899         I scanned through mktime.c looking for other integer overflow
41900         problems, fixing all the bugs I found.
41902         Although the C Standard says the resulting code is still not safe
41903         in the presence of integer overflow, in practice it should be good
41904         enough for all real-world two's-complement implementations, except
41905         for debugging environments that deliberately trap on integer
41906         overflow (e.g., gcc -ftrapv).
41908         * lib/mktime.c (WRAPV): New macro.
41909         (SHR): Also check that long_int and time_t shift right in the
41910         usual way, before using the fast-but-unportable method.
41911         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41912         used.  The code already assumed two's complement, so there's
41913         no need to test for alternatives.  All uses removed.
41914         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41915         the C standard.  Problem reported by Rich Felker in
41916         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41917         (twos_complement_arithmetic): Also check long_int and time_t.
41918         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
41919         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
41920         (__mktime_internal): Avoid integer overflow with unary subtraction
41921         in two instances where -1 - X is an adequate replacement for -X,
41922         since the calculations are approximate.
41924 2011-01-29  Eric Blake  <eblake@redhat.com>
41926         mktime: avoid infinite loop
41927         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
41928         type; behavior is still undefined but portable to all known targets.
41929         Reported by Rich Felker.
41931 2011-01-29  Simon Josefsson  <simon@josefsson.org>
41933         rename, unlink, same-inode: Relicense.
41934         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
41935         * modules/unlink (License): Likewise.
41936         * modules/same-inode (License): Likewise.
41938 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41940         mktime: avoid problems on NetBSD 5 / i386
41941         * lib/mktime.c (long_int): New type.  This works around a problem
41942         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
41943         but time_t is 64 bits, and where I expect the existing code is
41944         wrong in some cases.
41945         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
41946         (ydhms_diff): Bring back the compile-time check for wide-enough
41947         year and yday.
41949         mktime: fix misspelling in comment
41950         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
41951         This merges all recent glibc changes of importance.
41953 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41955         move-if-change: cope with concurrent mv of identical file.
41956         * build-aux/move-if-change (CMPPROG): Accept environment
41957         variable as an override for `cmp'.
41958         (usage): Document CMPPROG.
41959         Adjust comparison to drop stdout.  Cope with failure of mv if
41960         the target file exists and is identical to the source, for
41961         parallel builds.
41962         Report from H.J. Lu against binutils in PR binutils/12283.
41964 2011-01-28  Bruce Korb  <bkorb@gnu.org>
41966         * users.txt: Mention sharutils.
41968 2011-01-28  Simon Josefsson  <simon@josefsson.org>
41970         * users.txt: Mention OATH Toolkit.
41972 2011-01-27  Bruno Haible  <bruno@clisp.org>
41974         Prepare for supporting FreeBSD 10.
41975         * build-aux/config.libpath: Remove handling of freebsd1*.
41977 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
41979         Prepare for supporting FreeBSD 10.
41980         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
41981         match FreeBSD 10.0.
41983 2011-01-27  Bruno Haible  <bruno@clisp.org>
41985         vma-iter, get-rusage-as: Add OpenBSD support.
41986         * modules/vma-iter (configure.ac): Test for mquery.
41987         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
41988         * lib/vma-iter.c: Include <sys/mman.h>.
41989         (vma_iterate): Add an implementation based on mquery().
41990         * lib/resource-ext.h (get_rusage_as): Update comments.
41991         * lib/get-rusage-as.c: Likewise.
41992         * lib/get-rusage-data.c: Likewise.
41994 2011-01-26  Karl Berry  <karl@gnu.org>
41996         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
41997         variables to make it easier to override the makeinfo program used.
41999 2011-01-26  Eric Blake  <eblake@redhat.com>
42001         fcntl: work around Haiku F_DUPFD bugs
42002         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
42003         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
42004         cloexec bit on duplication.
42005         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
42007 2011-01-26  Bruno Haible  <bruno@clisp.org>
42009         Enable memory leak tests on AIX.
42010         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
42011         * tests/test-fprintf-posix3.c (main): Likewise.
42013 2011-01-26  Bruno Haible  <bruno@clisp.org>
42015         Tests for module 'get-rusage-data'.
42016         * modules/get-rusage-data-tests: New file.
42017         * tests/test-get-rusage-data.c: New file.
42019         New module 'get-rusage-data'.
42020         * lib/resource-ext.h (get_rusage_data): New declaration.
42021         * lib/get-rusage-data.c: New file.
42022         * modules/get-rusage-data: New file.
42024 2011-01-25  Bruno Haible  <bruno@clisp.org>
42026         get-rusage-as: Allow for easier testing.
42027         * lib/resource-ext.h (get_rusage_as): Add comment.
42028         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
42029         (main): New function for interactive testing.
42031 2011-01-25  Bruno Haible  <bruno@clisp.org>
42033         vma-iter: Treat Haiku like BeOS.
42034         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
42035         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
42037 2011-01-25  Eric Blake  <eblake@redhat.com>
42039         c-stack: fix regression on cygwin when libsigsegv is present
42040         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
42042 2011-01-24  Bruno Haible  <bruno@clisp.org>
42044         vma-iter: Avoid empty intervals.
42045         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
42046         on an empty interval.
42048 2011-01-24  Jim Meyering  <meyering@redhat.com>
42050         u64: remove unnecessary #include
42051         * lib/u64.h: Don't include <stddef.h>.  It was not used.
42053 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42055         Allow the user to avoid the HAVE_RAW_DECL_* macros.
42056         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
42058 2011-01-23  Bruno Haible  <bruno@clisp.org>
42060         New module 'vma-iter'.
42061         * lib/vma-iter.h: New file.
42062         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
42063         * modules/vma-iter: New file.
42064         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
42065         for get_rusage_as_via_iterator.
42066         (vma_iterate_callback): New function.
42067         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
42068         * modules/get-rusage-as (Depends-on): Add vma-iter.
42070 2011-01-23  Bruno Haible  <bruno@clisp.org>
42072         uninorm: Tweak includes.
42073         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
42074         Reported by Jim Meyering.
42076 2011-01-23  Bruno Haible  <bruno@clisp.org>
42078         get-rusage-as: Improve on NetBSD.
42079         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
42080         /proc, like on FreeBSD.
42082 2011-01-23  Jim Meyering  <meyering@redhat.com>
42084         xreadlink.h: remove unnecessary #include
42085         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
42087         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
42088         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
42090 2011-01-23  Bruno Haible  <bruno@clisp.org>
42092         get-rusage-as: Fix bug.
42093         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
42094         original limit when aborting the first loop.
42096 2011-01-23  Bruno Haible  <bruno@clisp.org>
42098         wctype: Ensure valid C syntax.
42099         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
42100         unconditionally, instead of gl_NEXT_HEADERS conditionally.
42102 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42104         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
42105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
42106         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
42107         as they are needed only for configure's test case.
42108         This removes two unnecessary symbols from config.h.
42110         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
42111         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
42112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
42113         AC_CHECK_HEADERS_ONCE on a header that we also invoke
42114         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
42115         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
42116         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
42117         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
42118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42119         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42120         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
42121         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42122         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42123         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
42124         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
42125         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42126         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
42127         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42129 2011-01-21  Eric Blake  <eblake@redhat.com>
42131         maintainer-makefile: work with older git for submodule check
42132         * top/maint.mk (public-submodule-commit): Rewrite to avoid
42133         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
42134         Reported by Matthias Bolte.
42136         bootstrap: minor portability fixes
42137         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
42138         (usage): Omit leading capital and trailing . on help phrases, per
42139         GNU Coding Standards.
42140         (check_versions, top level): Prefix messages with script name.
42142 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
42144         bootstrap: support --no-git option
42145         * build-aux/bootstrap: Add --no-git option, to be used when
42146         --gnulib-srcdir points to the exact desired checkout.
42148 2011-01-21  Eric Blake  <eblake@redhat.com>
42150         strerror_r-posix: work with glibc 2.13
42151         * lib/strerror_r.c (strerror_r): Fix return type.
42153 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42154             Bruno Haible  <bruno@clisp.org>
42156         uN_strstr: New unit tests.
42157         * modules/unistr/u8-strstr-tests: New file.
42158         * modules/unistr/u16-strstr-tests: New file.
42159         * modules/unistr/u32-strstr-tests: New file.
42160         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
42161         * tests/unistr/test-u8-strstr.c: New file.
42162         * tests/unistr/test-u16-strstr.c: New file.
42163         * tests/unistr/test-u32-strstr.c: New file.
42165 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42166             Bruno Haible  <bruno@clisp.org>
42168         Make uN_strstr functions O(n) worst-case.
42169         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
42170         16-bit and 32-bit unit cases, use the unibyte algorithm from
42171         lib/mbsstr.c.
42172         * lib/unistr/u8-strstr.c: Include <string.h>.
42173         (UNIT_IS_UINT8_T): New macro.
42174         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
42175         (U_STRLEN, U_STRNLEN): New macros.
42176         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
42177         (U_STRLEN, U_STRNLEN): New macros.
42178         * modules/unistr/u8-strstr (Depends-on): Add strstr.
42179         (configure.ac): Update required libunistring version.
42180         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
42181         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
42182         malloca.
42183         (configure.ac): Update required libunistring version.
42184         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
42185         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
42186         malloca.
42187         (configure.ac): Update required libunistring version.
42189 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42190             Bruno Haible  <bruno@clisp.org>
42192         Prepare for faster uN_strstr functions.
42193         * lib/str-kmp.h: Support definable UNITs.
42194         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
42195         needle_len argument.
42196         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
42197         * lib/mbscasestr.c (mbscasestr): Likewise.
42199 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42201         malloca-tests: make faster by unsetting MALLOC_PERTURB_
42202         * tests/test-malloca.c (main): Unset the environment variable
42203         to greatly speed up the test.
42204         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
42205         * modules/malloca-tests: Depend on unsetenv.
42207 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42209         ignore-value: remove stdint dependency
42210         * lib/ignore-value.h: Remove <stdint.h>
42211         * modules/ignore-value: Remove stdint dependency.
42213 2011-01-21  Jim Meyering  <meyering@redhat.com>
42215         maint.mk: adjust variable name to be consistent with other gl_ vars
42216         * top/maint.mk (gl_public_submodule_commit): Rename the variable
42217         to be lower case.
42219 2011-01-20  Jim Meyering  <meyering@redhat.com>
42221         maint.mk: make "check" depend on public-submodule-commit by default
42222         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
42224 2011-01-20  Bruno Haible  <bruno@clisp.org>
42226         mbfile, mbiter: Complete change from 2008-12-21.
42227         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
42228         * m4/mbiter.m4 (gl_MBITER): Likewise.
42230 2011-01-20  Jim Meyering  <meyering@redhat.com>
42232         init.sh: insert space between each function name and "()"
42233         * tests/init.sh: Make it a little easier to see that a function's
42234         name is "warn_", and not "warn" when looking at the first part of
42235         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
42237 2011-01-20  Jim Meyering  <meyering@redhat.com>
42239         mountlist: clean up code formatting
42240         * lib/mountlist.c (read_file_system_list): Split a long line,
42241         correct bracing style, use NULL in place of "(struct statfs *)0",
42242         don't parenthesize return value, add spaces around "=" and after
42243         ";-in-for-stmt".
42245 2011-01-14  Markus Duft  <mduft@gentoo.org>
42247         mountlist: add support for Interix
42248         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
42249         Apply statvfs to all entries of /dev/fs.
42250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
42251         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
42253 2011-01-20  Jim Meyering  <meyering@redhat.com>
42255         maint.mk: improve the public-submodule-commit rule
42256         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
42257         to suppress printing of its commands... unless V=1.
42258         Add git submodule's --quiet option to suppress printing of e.g.,
42259         "Entering gnulib" output.
42260         "cd" into $(srcdir) before running git submodule.
42262 2011-01-20  Bruno Haible  <bruno@clisp.org>
42264         include_next: Fix bug introduced on 2011-01-18.
42265         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
42266         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
42267         ac_cv_header_... variable if the second argument is not 'check'.
42268         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
42269         gl_NEXT_HEADERS_INTERNAL.
42271 2011-01-20  Bruno Haible  <bruno@clisp.org>
42273         Allow the user to avoid the GNULIB_TEST_* macros.
42274         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
42275         Suggested by Paul Eggert.
42277 2011-01-14  Jim Meyering  <meyering@redhat.com>
42279         bootstrap: avoid failure when there is no .gitmodules file
42280         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
42281         has been assigned to, even when its value is the empty string.
42282         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
42283         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
42284         Reported by John W. Eaton <jwe@gnu.org>.
42286 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42288         assume <ctype.h>, ..., <time.h> exist
42289         For years gnulib has been assuming the existence of the headers
42290         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
42291         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
42292         them, since they don't appear to be needed.
42293         * README (Portability guidelines): Document this.
42294         * lib/flock.c: Assume <fcntl.h> exists.
42295         * lib/regex_internal.h: Assume <locale.h> exists.
42296         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
42297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
42298         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
42299         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
42300         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
42301         * m4/regex.m4 (gl_REGEX): Likewise.
42302         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
42303         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
42304         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
42305         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
42306         * tests/test-argp.c: Likewise.
42307         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
42309         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
42310         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
42311         AA_APPLE_UNIVERSAL_BUILD.  See
42312         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
42313         * NEWS: Document this.
42315 2011-01-19  Eric Blake  <eblake@redhat.com>
42317         c-stack: assume stack overflow if SA_SIGINFO unsupported
42318         * lib/c-stack.c (SIGACTION_WORKS): Rename...
42319         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
42320         sigaction will work.
42321         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
42322         behavior match Linux.
42323         * tests/test-c-stack.c (main): Prefer NULL for pointers.
42325         stdbool-tests: accommodate Haiku
42326         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
42328         binary-io: fix O_TEXT on Haiku
42329         * modules/binary-io (Depends-on): Add fcntl-h.
42330         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
42331         than blindly undefining O_TEXT.
42332         Reported by Scott McCreary.
42334 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42336         include_next: do not check for standard headers like stddef.h
42338         I found this problem when modifying Emacs to use gnulib.
42339         I noticed that it added HAVE_STDDEF_H to config.h, even though
42340         gnulib always assumes <stddef.h> exists as per README and this
42341         symbol is unnecessary.
42342         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
42343         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
42344         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
42345         faster for headers like stddef.h that are known to exist.
42346         (gl_CHECK_NEXT_HEADERS): Use it.
42347         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
42348         rather than gl_CHECK_NEXT_HEADERS.
42349         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
42350         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
42352 2011-01-18  Eric Blake  <eblake@redhat.com>
42354         ansi-c++-opt: skip C++ dependency style if C++ is unused
42355         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
42356         tests when we know C++ compilation is not desired.
42357         Reported by Scott McCreary.
42359 2011-01-18  Bruno Haible  <bruno@clisp.org>
42361         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
42362         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
42363         (main): Perform test also when getrlimit and setrlimit don't exist or
42364         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
42365         limiting the address space size using setrlimit, compare the address
42366         space size before and after the test.
42367         * tests/test-dprintf-posix2.c: Likewise.
42368         * tests/test-fprintf-posix3.sh: Update skip messages.
42369         * tests/test-dprintf-posix2.sh: Likewise.
42370         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
42371         * modules/dprintf-posix-tests (Depends-on): Likewise.
42372         Reported by Bruce Korb <bkorb@gnu.org> and
42373         Gary V. Vaughan <gary@gnu.org>.
42375 2011-01-18  Bruno Haible  <bruno@clisp.org>
42377         get-rusage-as: Improvement for Cygwin.
42378         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
42379         areas that are merely reserved.
42381 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42383         strftime: remove dependencies on multibyte modules
42385         strftime depended on mbrlen, mbsinit, and wchar, but these modules
42386         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
42387         only if __osf__ is defined, and I suspect OSF doesn't need these
42388         other modules.  If my guess is wrong, we'll need to come up with a
42389         variant of strftime that doesn't need the multibyte modules.
42391         I discovered this problem when attempting modify Emacs to use the
42392         strftime module.  With the previous gnulib, this caused Emacs to
42393         need 31 new files, ranging from lib/config.charset to
42394         m4/wint_t.m4.  This was overkill and I expect would be offputting
42395         to the Emacs maintainers.  After this change, only 6 new files are
42396         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
42397         stdbool.m4, and tm_gmtoff.m4.
42399         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
42400         Suggested by Bruno Haible in
42401         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
42402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
42403         and do not check for wchar.h.
42404         * modules/strftime (Files): Remove m4/mbstate_t.m4.
42405         (Depends-on): Remove mbrlen, mbsinit, wchar.
42407 2011-01-18  Bruno Haible  <bruno@clisp.org>
42409         Tests for module 'get-rusage-as'.
42410         * modules/get-rusage-as-tests: New file.
42411         * tests/test-get-rusage-as.c: New file.
42413         New module 'get-rusage-as'.
42414         * modules/get-rusage-as: New file.
42415         * lib/resource-ext.h: New file.
42416         * lib/get-rusage-as.c: New file.
42418 2011-01-17  Eric Blake  <eblake@redhat.com>
42420         sigaction: relax license from LGPLv3+ to LGPLv2+
42421         * modules/sigaction (License): Relax to LGPLv2+.
42423 2011-01-14  Bruno Haible  <bruno@clisp.org>
42425         filemode: Make function declarations usable in C++ mode.
42426         * lib/filemode.h: Enclose function declarations in extern "C" block.
42427         Reported by John W. Eaton <jwe@gnu.org>.
42429 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
42431         save-cwd: no longer include "xgetcwd.h"
42432         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
42433         This avoids a compilation failure in projects that use save-cwd
42434         without also using the xgetcwd module.
42436 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42438         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
42439         This is so that a program like Emacs, which needs only dtoastr,
42440         does not have to bother with distributing and compiling ftoastr
42441         and ldtoastr.
42442         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
42443         * modules/dtoastr, modules/ldtoastr: New files.
42444         * modules/ftoastr: Now works just for 'float'.
42445         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
42446         (Makefile.am): Remove ftoastr.h (not needed and no effect),
42447         dtoastr.c, ldtoastr.c.
42449 2011-01-11  Jim Meyering  <meyering@redhat.com>
42451         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
42452         There is no need to work around the lack of the fchdir function,
42453         since gnulib can now provide a replacement when required.
42454         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
42455         * modules/save-cwd (Depends-on): Add fchdir.
42457 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42459         openat, save-cwd: avoid xmalloc
42461         This removes a direct (but undocumented) dependency of openat on
42462         xalloc, along with an indirect dependency via save-cwd.  It also
42463         removes a dependency of save-cwd on xgetcwd, and thereby
42464         indirectly on xalloc.  This change causes the openat substitute
42465         to fall back on save_cwd when memory is tight, and for save_cwd to
42466         fail instead of dying when memory is tight, but that's good enough.
42467         Problem and initial idea for fix reported by Bastien Roucaries in
42468         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
42470         * lib/openat-proc.c: Include stdlib.h (for malloc), not
42471         xalloc.h (for xmalloc).
42472         (openat_proc_name): Use malloc, not xmalloc.
42473         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
42474         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
42476         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
42477         This avoids heap allocation for file names whose lengths are in
42478         the range 512..1023, with the upper bound increasing to at most
42479         4031 depending on the platform's PATH_MAX.  (We do not want
42480         pathmax.h here as it might supply a non-constant PATH_MAX.)
42481         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
42482         Perhaps they should be moved to malloca.h?
42483         (OPENAT_BUFFER_SIZE): Use them.
42485 2011-01-10  Bruno Haible  <bruno@clisp.org>
42487         doc: Update users.txt.
42488         * users.txt: Add recutils.
42490 2011-01-09  Karl Berry  <karl@gnu.org>
42492         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
42494         * doc/configmake.texi: New file.
42495         * doc/gnulib.texi: Include it.
42496         * modules/configmake: Move documentation from here.
42498 2011-01-09  Bruno Haible  <bruno@clisp.org>
42500         Update to Unicode 6.0.0.
42501         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
42502         (get_lbp): Update for Unicode 6.0.0.
42503         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
42504         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
42505         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
42506         U+11001, U+11038..U+11046. Remove U+06DE.
42507         (uc_width): Fix bounds of planes.
42508         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42509         lib/uniwidth/width.c.
42510         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
42511         trailing whitespace removed.
42512         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
42513         without comments, but with the original copyright notice.
42514         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
42515         * lib/unicase/ignorable.h: Likewise.
42516         * lib/unicase/tocasefold.h: Likewise.
42517         * lib/unicase/tolower.h: Likewise.
42518         * lib/unicase/totitle.h: Likewise.
42519         * lib/unicase/toupper.h: Likewise.
42520         * lib/unictype/bidi_of.h: Likewise.
42521         * lib/unictype/blocks.h: Likewise.
42522         * lib/unictype/categ_C.h: Likewise.
42523         * lib/unictype/categ_Cn.h: Likewise.
42524         * lib/unictype/categ_L.h: Likewise.
42525         * lib/unictype/categ_Ll.h: Likewise.
42526         * lib/unictype/categ_Lm.h: Likewise.
42527         * lib/unictype/categ_Lo.h: Likewise.
42528         * lib/unictype/categ_Lu.h: Likewise.
42529         * lib/unictype/categ_M.h: Likewise.
42530         * lib/unictype/categ_Mc.h: Likewise.
42531         * lib/unictype/categ_Me.h: Likewise.
42532         * lib/unictype/categ_Mn.h: Likewise.
42533         * lib/unictype/categ_N.h: Likewise.
42534         * lib/unictype/categ_Nd.h: Likewise.
42535         * lib/unictype/categ_No.h: Likewise.
42536         * lib/unictype/categ_P.h: Likewise.
42537         * lib/unictype/categ_Po.h: Likewise.
42538         * lib/unictype/categ_S.h: Likewise.
42539         * lib/unictype/categ_Sc.h: Likewise.
42540         * lib/unictype/categ_Sk.h: Likewise.
42541         * lib/unictype/categ_Sm.h: Likewise.
42542         * lib/unictype/categ_So.h: Likewise.
42543         * lib/unictype/categ_of.h: Likewise.
42544         * lib/unictype/combining.h: Likewise.
42545         * lib/unictype/ctype_alnum.h: Likewise.
42546         * lib/unictype/ctype_alpha.h: Likewise.
42547         * lib/unictype/ctype_graph.h: Likewise.
42548         * lib/unictype/ctype_lower.h: Likewise.
42549         * lib/unictype/ctype_print.h: Likewise.
42550         * lib/unictype/ctype_punct.h: Likewise.
42551         * lib/unictype/ctype_upper.h: Likewise.
42552         * lib/unictype/decdigit.h: Likewise.
42553         * lib/unictype/digit.h: Likewise.
42554         * lib/unictype/numeric.h: Likewise.
42555         * lib/unictype/pr_alphabetic.h: Likewise.
42556         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42557         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42558         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42559         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42560         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42561         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42562         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42563         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42564         * lib/unictype/pr_case_ignorable.h: Likewise.
42565         * lib/unictype/pr_cased.h: Likewise.
42566         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
42567         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
42568         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
42569         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
42570         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
42571         * lib/unictype/pr_combining.h: Likewise.
42572         * lib/unictype/pr_composite.h: Likewise.
42573         * lib/unictype/pr_currency_symbol.h: Likewise.
42574         * lib/unictype/pr_decimal_digit.h: Likewise.
42575         * lib/unictype/pr_deprecated.h: Likewise.
42576         * lib/unictype/pr_format_control.h: Likewise.
42577         * lib/unictype/pr_grapheme_base.h: Likewise.
42578         * lib/unictype/pr_grapheme_extend.h: Likewise.
42579         * lib/unictype/pr_grapheme_link.h: Likewise.
42580         * lib/unictype/pr_id_continue.h: Likewise.
42581         * lib/unictype/pr_id_start.h: Likewise.
42582         * lib/unictype/pr_ideographic.h: Likewise.
42583         * lib/unictype/pr_lowercase.h: Likewise.
42584         * lib/unictype/pr_math.h: Likewise.
42585         * lib/unictype/pr_numeric.h: Likewise.
42586         * lib/unictype/pr_other_alphabetic.h: Likewise.
42587         * lib/unictype/pr_other_id_continue.h: Likewise.
42588         * lib/unictype/pr_other_math.h: Likewise.
42589         * lib/unictype/pr_punctuation.h: Likewise.
42590         * lib/unictype/pr_sentence_terminal.h: Likewise.
42591         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42592         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42593         * lib/unictype/pr_unified_ideograph.h: Likewise.
42594         * lib/unictype/pr_uppercase.h: Likewise.
42595         * lib/unictype/pr_xid_continue.h: Likewise.
42596         * lib/unictype/pr_xid_start.h: Likewise.
42597         * lib/unictype/scripts.h: Likewise.
42598         * lib/unictype/scripts_byname.gperf: Likewise.
42599         * lib/unictype/sy_java_ident.h: Likewise.
42600         * lib/unigbrk/gbrkprop.h: Likewise.
42601         * lib/unilbrk/lbrkprop1.h: Likewise.
42602         * lib/unilbrk/lbrkprop2.h: Likewise.
42603         * lib/uninorm/decomposition-table2.h: Likewise.
42604         * lib/uniwbrk/wbrkprop.h: Likewise.
42605         * tests/unicase/test-cased.c: Likewise.
42606         * tests/unicase/test-ignorable.c: Likewise.
42607         * tests/unicase/test-uc_tolower.c: Likewise.
42608         * tests/unicase/test-uc_totitle.c: Likewise.
42609         * tests/unicase/test-uc_toupper.c: Likewise.
42610         * tests/unictype/test-categ_C.c: Likewise.
42611         * tests/unictype/test-categ_Cn.c: Likewise.
42612         * tests/unictype/test-categ_L.c: Likewise.
42613         * tests/unictype/test-categ_Ll.c: Likewise.
42614         * tests/unictype/test-categ_Lm.c: Likewise.
42615         * tests/unictype/test-categ_Lo.c: Likewise.
42616         * tests/unictype/test-categ_Lu.c: Likewise.
42617         * tests/unictype/test-categ_M.c: Likewise.
42618         * tests/unictype/test-categ_Mc.c: Likewise.
42619         * tests/unictype/test-categ_Me.c: Likewise.
42620         * tests/unictype/test-categ_Mn.c: Likewise.
42621         * tests/unictype/test-categ_N.c: Likewise.
42622         * tests/unictype/test-categ_Nd.c: Likewise.
42623         * tests/unictype/test-categ_No.c: Likewise.
42624         * tests/unictype/test-categ_P.c: Likewise.
42625         * tests/unictype/test-categ_Po.c: Likewise.
42626         * tests/unictype/test-categ_S.c: Likewise.
42627         * tests/unictype/test-categ_Sc.c: Likewise.
42628         * tests/unictype/test-categ_Sk.c: Likewise.
42629         * tests/unictype/test-categ_Sm.c: Likewise.
42630         * tests/unictype/test-categ_So.c: Likewise.
42631         * tests/unictype/test-ctype_alnum.c: Likewise.
42632         * tests/unictype/test-ctype_alpha.c: Likewise.
42633         * tests/unictype/test-ctype_graph.c: Likewise.
42634         * tests/unictype/test-ctype_lower.c: Likewise.
42635         * tests/unictype/test-ctype_print.c: Likewise.
42636         * tests/unictype/test-ctype_punct.c: Likewise.
42637         * tests/unictype/test-ctype_upper.c: Likewise.
42638         * tests/unictype/test-decdigit.h: Likewise.
42639         * tests/unictype/test-digit.h: Likewise.
42640         * tests/unictype/test-numeric.h: Likewise.
42641         * tests/unictype/test-pr_alphabetic.c: Likewise.
42642         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42643         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42644         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42645         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42646         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42647         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42648         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42649         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42650         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42651         * tests/unictype/test-pr_cased.c: Likewise.
42652         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42653         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42654         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42655         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42656         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42657         * tests/unictype/test-pr_combining.c: Likewise.
42658         * tests/unictype/test-pr_composite.c: Likewise.
42659         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42660         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42661         * tests/unictype/test-pr_deprecated.c: Likewise.
42662         * tests/unictype/test-pr_format_control.c: Likewise.
42663         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42664         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42665         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42666         * tests/unictype/test-pr_id_continue.c: Likewise.
42667         * tests/unictype/test-pr_id_start.c: Likewise.
42668         * tests/unictype/test-pr_ideographic.c: Likewise.
42669         * tests/unictype/test-pr_lowercase.c: Likewise.
42670         * tests/unictype/test-pr_math.c: Likewise.
42671         * tests/unictype/test-pr_numeric.c: Likewise.
42672         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42673         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42674         * tests/unictype/test-pr_other_math.c: Likewise.
42675         * tests/unictype/test-pr_punctuation.c: Likewise.
42676         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42677         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42678         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42679         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42680         * tests/unictype/test-pr_uppercase.c: Likewise.
42681         * tests/unictype/test-pr_xid_continue.c: Likewise.
42682         * tests/unictype/test-pr_xid_start.c: Likewise.
42683         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42684         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42685         changes.
42686         * lib/unictype/categ_Cc.h: Likewise.
42687         * lib/unictype/categ_Cf.h: Likewise.
42688         * lib/unictype/categ_Co.h: Likewise.
42689         * lib/unictype/categ_Cs.h: Likewise.
42690         * lib/unictype/categ_Lt.h: Likewise.
42691         * lib/unictype/categ_Nl.h: Likewise.
42692         * lib/unictype/categ_Pc.h: Likewise.
42693         * lib/unictype/categ_Pd.h: Likewise.
42694         * lib/unictype/categ_Pe.h: Likewise.
42695         * lib/unictype/categ_Pf.h: Likewise.
42696         * lib/unictype/categ_Pi.h: Likewise.
42697         * lib/unictype/categ_Ps.h: Likewise.
42698         * lib/unictype/categ_Z.h: Likewise.
42699         * lib/unictype/categ_Zl.h: Likewise.
42700         * lib/unictype/categ_Zp.h: Likewise.
42701         * lib/unictype/categ_Zs.h: Likewise.
42702         * lib/unictype/ctype_blank.h: Likewise.
42703         * lib/unictype/ctype_cntrl.h: Likewise.
42704         * lib/unictype/ctype_digit.h: Likewise.
42705         * lib/unictype/ctype_space.h: Likewise.
42706         * lib/unictype/ctype_xdigit.h: Likewise.
42707         * lib/unictype/mirror.h: Likewise.
42708         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42709         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42710         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42711         * lib/unictype/pr_bidi_control.h: Likewise.
42712         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42713         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42714         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42715         * lib/unictype/pr_bidi_pdf.h: Likewise.
42716         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42717         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42718         * lib/unictype/pr_dash.h: Likewise.
42719         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42720         * lib/unictype/pr_diacritic.h: Likewise.
42721         * lib/unictype/pr_extender.h: Likewise.
42722         * lib/unictype/pr_hex_digit.h: Likewise.
42723         * lib/unictype/pr_hyphen.h: Likewise.
42724         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42725         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42726         * lib/unictype/pr_ignorable_control.h: Likewise.
42727         * lib/unictype/pr_iso_control.h: Likewise.
42728         * lib/unictype/pr_join_control.h: Likewise.
42729         * lib/unictype/pr_left_of_pair.h: Likewise.
42730         * lib/unictype/pr_line_separator.h: Likewise.
42731         * lib/unictype/pr_logical_order_exception.h: Likewise.
42732         * lib/unictype/pr_non_break.h: Likewise.
42733         * lib/unictype/pr_not_a_character.h: Likewise.
42734         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42735         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42736         * lib/unictype/pr_other_id_start.h: Likewise.
42737         * lib/unictype/pr_other_lowercase.h: Likewise.
42738         * lib/unictype/pr_other_uppercase.h: Likewise.
42739         * lib/unictype/pr_paired_punctuation.h: Likewise.
42740         * lib/unictype/pr_paragraph_separator.h: Likewise.
42741         * lib/unictype/pr_pattern_syntax.h: Likewise.
42742         * lib/unictype/pr_pattern_white_space.h: Likewise.
42743         * lib/unictype/pr_private_use.h: Likewise.
42744         * lib/unictype/pr_quotation_mark.h: Likewise.
42745         * lib/unictype/pr_radical.h: Likewise.
42746         * lib/unictype/pr_soft_dotted.h: Likewise.
42747         * lib/unictype/pr_space.h: Likewise.
42748         * lib/unictype/pr_titlecase.h: Likewise.
42749         * lib/unictype/pr_variation_selector.h: Likewise.
42750         * lib/unictype/pr_white_space.h: Likewise.
42751         * lib/unictype/pr_zero_width.h: Likewise.
42752         * lib/unictype/sy_c_ident.h: Likewise.
42753         * lib/unictype/sy_c_whitespace.h: Likewise.
42754         * lib/unictype/sy_java_whitespace.h: Likewise.
42755         * lib/uninorm/composition-table.gperf: Likewise.
42756         * lib/uninorm/decomposition-table1.h: Likewise.
42757         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
42758         LB8.
42759         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42760         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42761         * modules/unictype/*: Bump version number of expected libunistring
42762         version.
42764 2011-01-09  Bruno Haible  <bruno@clisp.org>
42766         Update to Unicode 5.2.0.
42767         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
42768         trailing whitespace removed.
42770 2011-01-09  Bruno Haible  <bruno@clisp.org>
42772         New Unicode character properties, from Unicode 5.2.0.
42773         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
42774         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
42775         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
42776         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
42777         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
42778         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
42779         uc_is_property_cased, uc_is_property_case_ignorable,
42780         uc_is_property_changes_when_lowercased,
42781         uc_is_property_changes_when_uppercased,
42782         uc_is_property_changes_when_titlecased,
42783         uc_is_property_changes_when_casefolded,
42784         uc_is_property_changes_when_casemapped): New declarations.
42785         * lib/unictype/pr_byname.gperf: Add the new properties.
42786         * modules/unictype/property-byname (Depends-on): Depend on the new
42787         properties modules.
42788         * modules/unictype/property-all (Depends-on): Likewise.
42789         * MODULES.html.sh (Unicode string functions): Add
42790         unictype/property-case-ignorable, unictype/property-cased,
42791         unictype/property-changes-when-casefolded,
42792         unictype/property-changes-when-casemapped,
42793         unictype/property-changes-when-lowercased,
42794         unictype/property-changes-when-titlecased,
42795         unictype/property-changes-when-uppercased.
42797         New module 'unictype/property-changes-when-casemapped'.
42798         * modules/unictype/property-changes-when-casemapped: New file.
42799         * lib/unictype/pr_changes_when_casemapped.c: New file.
42800         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
42801         generated by gen-uni-tables.
42802         * modules/unictype/property-changes-when-casemapped-tests: New file.
42803         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
42804         automatically generated by gen-uni-tables.
42806         New module 'unictype/property-changes-when-casefolded'.
42807         * modules/unictype/property-changes-when-casefolded: New file.
42808         * lib/unictype/pr_changes_when_casefolded.c: New file.
42809         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
42810         generated by gen-uni-tables.
42811         * modules/unictype/property-changes-when-casefolded-tests: New file.
42812         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
42813         automatically generated by gen-uni-tables.
42815         New module 'unictype/property-changes-when-titlecased'.
42816         * modules/unictype/property-changes-when-titlecased: New file.
42817         * lib/unictype/pr_changes_when_titlecased.c: New file.
42818         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
42819         generated by gen-uni-tables.
42820         * modules/unictype/property-changes-when-titlecased-tests: New file.
42821         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
42822         automatically generated by gen-uni-tables.
42824         New module 'unictype/property-changes-when-uppercased'.
42825         * modules/unictype/property-changes-when-uppercased: New file.
42826         * lib/unictype/pr_changes_when_uppercased.c: New file.
42827         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
42828         generated by gen-uni-tables.
42829         * modules/unictype/property-changes-when-uppercased-tests: New file.
42830         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
42831         automatically generated by gen-uni-tables.
42833         New module 'unictype/property-changes-when-lowercased'.
42834         * modules/unictype/property-changes-when-lowercased: New file.
42835         * lib/unictype/pr_changes_when_lowercased.c: New file.
42836         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
42837         generated by gen-uni-tables.
42838         * modules/unictype/property-changes-when-lowercased-tests: New file.
42839         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
42840         automatically generated by gen-uni-tables.
42842         New module 'unictype/property-case-ignorable'.
42843         * modules/unictype/property-case-ignorable: New file.
42844         * lib/unictype/pr_case_ignorable.c: New file.
42845         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
42846         by gen-uni-tables.
42847         * modules/unictype/property-case-ignorable-tests: New file.
42848         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
42849         generated by gen-uni-tables.
42851         New module 'unictype/property-cased'.
42852         * modules/unictype/property-cased: New file.
42853         * lib/unictype/pr_cased.c: New file.
42854         * lib/unictype/pr_cased.h: New file, automatically generated by
42855         gen-uni-tables.
42856         * modules/unictype/property-cased-tests: New file.
42857         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42858         gen-uni-tables.
42860 2011-01-09  Bruno Haible  <bruno@clisp.org>
42862         Update to Unicode 5.2.0.
42863         * lib/gen-uni-tables.c (output_predicate, output_category,
42864         output_combclass, output_bidi_category, output_decimal_digit_test,
42865         output_decimal_digit, output_digit_test, output_digit,
42866         output_numeric_test, output_numeric, output_mirror, output_scripts,
42867         output_scripts_byname, output_blocks, output_ident_category): Fix
42868         comment header.
42869         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42870         get_wbp.
42871         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42872         items.
42873         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42874         Changes_When_Lowercased, Changes_When_Uppercased,
42875         Changes_When_Titlecased, Changes_When_Casefolded,
42876         Changes_When_Casemapped.
42877         (is_property_alphabetic, is_property_default_ignorable_code_point):
42878         Update for Unicode 5.2.0.
42879         (is_property_cased, is_property_case_ignorable,
42880         is_property_changes_when_lowercased,
42881         is_property_changes_when_uppercased,
42882         is_property_changes_when_titlecased,
42883         is_property_changes_when_casefolded,
42884         is_property_changes_when_casemapped): New functions.
42885         (output_properties): Output also the properties cased, case_ignorable,
42886         changes_when_lowercased, changes_when_uppercased,
42887         changes_when_titlecased, changes_when_casefolded,
42888         changes_when_casemapped.
42889         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42890         Unicode TR#11 revision 17 -> 19.
42891         (LBP_CP): New enumeration value.
42892         (LBP_*): Adjust values accordingly.
42893         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42894         TR#14 revision 22 -> 24.
42895         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42896         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42897         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42898         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42899         is_WBP_MIDLETTER.
42900         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42901         the code1 and code2 of each composition rule.
42902         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42903         * lib/unicase/ignorable.h: Likewise.
42904         * lib/unicase/tocasefold.h: Likewise.
42905         * lib/unicase/tolower.h: Likewise.
42906         * lib/unicase/totitle.h: Likewise.
42907         * lib/unicase/toupper.h: Likewise.
42908         * lib/unictype/bidi_of.h: Likewise.
42909         * lib/unictype/blocks.h: Likewise.
42910         * lib/unictype/categ_C.h: Likewise.
42911         * lib/unictype/categ_Cf.h: Likewise.
42912         * lib/unictype/categ_Cn.h: Likewise.
42913         * lib/unictype/categ_L.h: Likewise.
42914         * lib/unictype/categ_Ll.h: Likewise.
42915         * lib/unictype/categ_Lm.h: Likewise.
42916         * lib/unictype/categ_Lo.h: Likewise.
42917         * lib/unictype/categ_Lu.h: Likewise.
42918         * lib/unictype/categ_M.h: Likewise.
42919         * lib/unictype/categ_Mc.h: Likewise.
42920         * lib/unictype/categ_Mn.h: Likewise.
42921         * lib/unictype/categ_N.h: Likewise.
42922         * lib/unictype/categ_Nd.h: Likewise.
42923         * lib/unictype/categ_Nl.h: Likewise.
42924         * lib/unictype/categ_No.h: Likewise.
42925         * lib/unictype/categ_P.h: Likewise.
42926         * lib/unictype/categ_Pd.h: Likewise.
42927         * lib/unictype/categ_Po.h: Likewise.
42928         * lib/unictype/categ_S.h: Likewise.
42929         * lib/unictype/categ_Sc.h: Likewise.
42930         * lib/unictype/categ_So.h: Likewise.
42931         * lib/unictype/categ_of.h: Likewise.
42932         * lib/unictype/combining.h: Likewise.
42933         * lib/unictype/ctype_alnum.h: Likewise.
42934         * lib/unictype/ctype_alpha.h: Likewise.
42935         * lib/unictype/ctype_graph.h: Likewise.
42936         * lib/unictype/ctype_lower.h: Likewise.
42937         * lib/unictype/ctype_print.h: Likewise.
42938         * lib/unictype/ctype_punct.h: Likewise.
42939         * lib/unictype/ctype_upper.h: Likewise.
42940         * lib/unictype/decdigit.h: Likewise.
42941         * lib/unictype/digit.h: Likewise.
42942         * lib/unictype/numeric.h: Likewise.
42943         * lib/unictype/pr_alphabetic.h: Likewise.
42944         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42945         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42946         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42947         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42948         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42949         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42950         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42951         * lib/unictype/pr_combining.h: Likewise.
42952         * lib/unictype/pr_composite.h: Likewise.
42953         * lib/unictype/pr_currency_symbol.h: Likewise.
42954         * lib/unictype/pr_dash.h: Likewise.
42955         * lib/unictype/pr_decimal_digit.h: Likewise.
42956         * lib/unictype/pr_deprecated.h: Likewise.
42957         * lib/unictype/pr_diacritic.h: Likewise.
42958         * lib/unictype/pr_extender.h: Likewise.
42959         * lib/unictype/pr_grapheme_base.h: Likewise.
42960         * lib/unictype/pr_grapheme_extend.h: Likewise.
42961         * lib/unictype/pr_grapheme_link.h: Likewise.
42962         * lib/unictype/pr_id_continue.h: Likewise.
42963         * lib/unictype/pr_id_start.h: Likewise.
42964         * lib/unictype/pr_ideographic.h: Likewise.
42965         * lib/unictype/pr_ignorable_control.h: Likewise.
42966         * lib/unictype/pr_logical_order_exception.h: Likewise.
42967         * lib/unictype/pr_lowercase.h: Likewise.
42968         * lib/unictype/pr_numeric.h: Likewise.
42969         * lib/unictype/pr_other_alphabetic.h: Likewise.
42970         * lib/unictype/pr_punctuation.h: Likewise.
42971         * lib/unictype/pr_sentence_terminal.h: Likewise.
42972         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42973         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42974         * lib/unictype/pr_unified_ideograph.h: Likewise.
42975         * lib/unictype/pr_uppercase.h: Likewise.
42976         * lib/unictype/pr_xid_continue.h: Likewise.
42977         * lib/unictype/pr_xid_start.h: Likewise.
42978         * lib/unictype/pr_zero_width.h: Likewise.
42979         * lib/unictype/scripts.h: Likewise.
42980         * lib/unictype/scripts_byname.gperf: Likewise.
42981         * lib/unictype/sy_java_ident.h: Likewise.
42982         * lib/unigbrk/gbrkprop.h: Likewise.
42983         * lib/unilbrk/lbrkprop1.h: Likewise.
42984         * lib/unilbrk/lbrkprop2.h: Likewise.
42985         * lib/unilbrk/lbrktables.h: Likewise.
42986         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
42987         LBP_CP. Implement rule LB30.
42988         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
42989         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
42990         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
42991         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
42992         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
42993         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
42994         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
42995         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
42996         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
42997         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
42998         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
42999         bits instead of 16 bits in the code1 and code2 of each composition
43000         rule.
43001         (uc_composition): Update for Unicode 5.2.0.
43002         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
43003         * lib/uninorm/decomposition-table2.h: Likewise.
43004         * lib/uniwbrk/wbrkprop.h: Likewise.
43005         * tests/unicase/test-cased.c: Likewise.
43006         * tests/unicase/test-ignorable.c: Likewise.
43007         * tests/unicase/test-uc_tolower.c: Likewise.
43008         * tests/unicase/test-uc_totitle.c: Likewise.
43009         * tests/unicase/test-uc_toupper.c: Likewise.
43010         * tests/unictype/test-categ_C.c: Likewise.
43011         * tests/unictype/test-categ_Cf.c: Likewise.
43012         * tests/unictype/test-categ_Cn.c: Likewise.
43013         * tests/unictype/test-categ_L.c: Likewise.
43014         * tests/unictype/test-categ_Ll.c: Likewise.
43015         * tests/unictype/test-categ_Lm.c: Likewise.
43016         * tests/unictype/test-categ_Lo.c: Likewise.
43017         * tests/unictype/test-categ_Lu.c: Likewise.
43018         * tests/unictype/test-categ_M.c: Likewise.
43019         * tests/unictype/test-categ_Mc.c: Likewise.
43020         * tests/unictype/test-categ_Mn.c: Likewise.
43021         * tests/unictype/test-categ_N.c: Likewise.
43022         * tests/unictype/test-categ_Nd.c: Likewise.
43023         * tests/unictype/test-categ_Nl.c: Likewise.
43024         * tests/unictype/test-categ_No.c: Likewise.
43025         * tests/unictype/test-categ_P.c: Likewise.
43026         * tests/unictype/test-categ_Pd.c: Likewise.
43027         * tests/unictype/test-categ_Po.c: Likewise.
43028         * tests/unictype/test-categ_S.c: Likewise.
43029         * tests/unictype/test-categ_Sc.c: Likewise.
43030         * tests/unictype/test-categ_So.c: Likewise.
43031         * tests/unictype/test-ctype_alnum.c: Likewise.
43032         * tests/unictype/test-ctype_alpha.c: Likewise.
43033         * tests/unictype/test-ctype_graph.c: Likewise.
43034         * tests/unictype/test-ctype_lower.c: Likewise.
43035         * tests/unictype/test-ctype_print.c: Likewise.
43036         * tests/unictype/test-ctype_punct.c: Likewise.
43037         * tests/unictype/test-ctype_upper.c: Likewise.
43038         * tests/unictype/test-decdigit.h: Likewise.
43039         * tests/unictype/test-digit.h: Likewise.
43040         * tests/unictype/test-numeric.h: Likewise.
43041         * tests/unictype/test-pr_alphabetic.c: Likewise.
43042         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43043         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43044         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43045         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43046         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43047         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43048         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43049         * tests/unictype/test-pr_combining.c: Likewise.
43050         * tests/unictype/test-pr_composite.c: Likewise.
43051         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43052         * tests/unictype/test-pr_dash.c: Likewise.
43053         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43054         * tests/unictype/test-pr_deprecated.c: Likewise.
43055         * tests/unictype/test-pr_diacritic.c: Likewise.
43056         * tests/unictype/test-pr_extender.c: Likewise.
43057         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43058         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43059         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43060         * tests/unictype/test-pr_id_continue.c: Likewise.
43061         * tests/unictype/test-pr_id_start.c: Likewise.
43062         * tests/unictype/test-pr_ideographic.c: Likewise.
43063         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43064         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43065         * tests/unictype/test-pr_lowercase.c: Likewise.
43066         * tests/unictype/test-pr_numeric.c: Likewise.
43067         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43068         * tests/unictype/test-pr_punctuation.c: Likewise.
43069         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43070         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43071         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43072         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43073         * tests/unictype/test-pr_uppercase.c: Likewise.
43074         * tests/unictype/test-pr_xid_continue.c: Likewise.
43075         * tests/unictype/test-pr_xid_start.c: Likewise.
43076         * tests/unictype/test-pr_zero_width.c: Likewise.
43077         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
43078         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
43079         changed behaviour: line breaking is now disallowed between a letter
43080         or '=' and '('.
43081         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43082         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43083         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43084         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
43085         * tests/uniwidth/test-uc_width2.sh: Same updates as in
43086         lib/uniwidth/width.c.
43087         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
43088         without comments, but with the original copyright notice.
43089         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
43090         changes.
43091         * lib/unictype/categ_Cc.h: Likewise.
43092         * lib/unictype/categ_Co.h: Likewise.
43093         * lib/unictype/categ_Cs.h: Likewise.
43094         * lib/unictype/categ_Lt.h: Likewise.
43095         * lib/unictype/categ_Me.h: Likewise.
43096         * lib/unictype/categ_Pc.h: Likewise.
43097         * lib/unictype/categ_Pe.h: Likewise.
43098         * lib/unictype/categ_Pf.h: Likewise.
43099         * lib/unictype/categ_Pi.h: Likewise.
43100         * lib/unictype/categ_Ps.h: Likewise.
43101         * lib/unictype/categ_Sk.h: Likewise.
43102         * lib/unictype/categ_Sm.h: Likewise.
43103         * lib/unictype/categ_Z.h: Likewise.
43104         * lib/unictype/categ_Zl.h: Likewise.
43105         * lib/unictype/categ_Zp.h: Likewise.
43106         * lib/unictype/categ_Zs.h: Likewise.
43107         * lib/unictype/ctype_blank.h: Likewise.
43108         * lib/unictype/ctype_cntrl.h: Likewise.
43109         * lib/unictype/ctype_digit.h: Likewise.
43110         * lib/unictype/ctype_space.h: Likewise.
43111         * lib/unictype/ctype_xdigit.h: Likewise.
43112         * lib/unictype/mirror.h: Likewise.
43113         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43114         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43115         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43116         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43117         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43118         * lib/unictype/pr_bidi_control.h: Likewise.
43119         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43120         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43121         * lib/unictype/pr_bidi_pdf.h: Likewise.
43122         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43123         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43124         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43125         * lib/unictype/pr_format_control.h: Likewise.
43126         * lib/unictype/pr_hex_digit.h: Likewise.
43127         * lib/unictype/pr_hyphen.h: Likewise.
43128         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43129         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43130         * lib/unictype/pr_iso_control.h: Likewise.
43131         * lib/unictype/pr_join_control.h: Likewise.
43132         * lib/unictype/pr_left_of_pair.h: Likewise.
43133         * lib/unictype/pr_line_separator.h: Likewise.
43134         * lib/unictype/pr_math.h: Likewise.
43135         * lib/unictype/pr_non_break.h: Likewise.
43136         * lib/unictype/pr_not_a_character.h: Likewise.
43137         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43138         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43139         * lib/unictype/pr_other_id_continue.h: Likewise.
43140         * lib/unictype/pr_other_id_start.h: Likewise.
43141         * lib/unictype/pr_other_lowercase.h: Likewise.
43142         * lib/unictype/pr_other_math.h: Likewise.
43143         * lib/unictype/pr_other_uppercase.h: Likewise.
43144         * lib/unictype/pr_paired_punctuation.h: Likewise.
43145         * lib/unictype/pr_paragraph_separator.h: Likewise.
43146         * lib/unictype/pr_pattern_syntax.h: Likewise.
43147         * lib/unictype/pr_pattern_white_space.h: Likewise.
43148         * lib/unictype/pr_private_use.h: Likewise.
43149         * lib/unictype/pr_quotation_mark.h: Likewise.
43150         * lib/unictype/pr_radical.h: Likewise.
43151         * lib/unictype/pr_soft_dotted.h: Likewise.
43152         * lib/unictype/pr_space.h: Likewise.
43153         * lib/unictype/pr_titlecase.h: Likewise.
43154         * lib/unictype/pr_variation_selector.h: Likewise.
43155         * lib/unictype/pr_white_space.h: Likewise.
43156         * lib/unictype/sy_c_ident.h: Likewise.
43157         * lib/unictype/sy_c_whitespace.h: Likewise.
43158         * lib/unictype/sy_java_whitespace.h: Likewise.
43159         * modules/uni*/*: Bump version number of expected libunistring version.
43160         Reported by Simon Josefsson.
43162 2011-01-09  Karl Heuer  <kwzh@gnu.org>
43164         useless-if-before-free: fix typo in --help and make the internal,
43165         automatic version date update process work once again.
43166         --help output contained a NUL character instead of the
43167         backslash-zero that was intended.  Also, the "must lie within
43168         the first 8 lines" line is on line 9, and hence not getting
43169         automatically updated.
43170         * build-aux/useless-if-before-free: Fix the former by adding a
43171         backslash, and the latter by condensing the three lines of what-it-does
43172         to a single line, leaving one line of slack for the future.
43174 2011-01-09  Bruno Haible  <bruno@clisp.org>
43176         uniwidth/width: Fix width of U+1D173..U+1D17A.
43177         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
43178         symbolic_width, output_width_property_test): New functions.
43179         (main): Invoke output_nonspacing_property, output_width_property_test.
43180         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
43181         U+1D173..U+1D17A.
43182         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
43183         1.
43184         * modules/uniwidth/*: Bump version number of expected libunistring
43185         version.
43186         * modules/unilbrk/*: Likewise.
43188 2011-01-08  Bruno Haible  <bruno@clisp.org>
43190         uninorm tests: Preserve copyright of Unicode data file.
43191         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
43192         Mention modifications.
43194 2011-01-08  Bruno Haible  <bruno@clisp.org>
43196         gen-uni-tables: Prepare for Unicode 5.2.0.
43197         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
43198         (debug_output_lbp, output_lbp): Update.
43200 2011-01-08  Bruno Haible  <bruno@clisp.org>
43202         unilbrk: Clarify gen-uni-tables.c code.
43203         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
43204         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
43205         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
43207 2011-01-07  Bruno Haible  <bruno@clisp.org>
43209         strtod: Restore errno when successfully parsing Infinity or NaN.
43210         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
43211         restore the original errno.
43213 2011-01-07  Bruno Haible  <bruno@clisp.org>
43215         remove test: Avoid failure on HP-UX 11.
43216         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
43218 2011-01-07  Bruno Haible  <bruno@clisp.org>
43220         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
43221         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
43222         error code.
43224 2011-01-07  Pádraig Brady  <P@draigBrady.com>
43226         ignore-value: fixup comments, and add Eric Blake
43227         as an author since he rewrote the macros.
43228         * lib/ignore-value.h (ignore_value):  State that
43229         we now support aggregates.  Also specify exactly
43230         when the GCC warn_unused_result feature was added.
43232 2011-01-06  Eric Blake  <eblake@redhat.com>
43234         ignore-value: support aggregate types
43235         * lib/ignore-value.h (ignore_value): Provide separate gcc
43236         definition.
43237         * modules/ignore-value-tests: New test module.
43238         * tests/test-ignore-value.c: New test.
43240         maint.mk: improve sc_prohibit_strcmp regex
43241         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
43242         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
43243         definition of STRNEQ.
43245         signal: work around Haiku issue with SIGBUS
43246         * lib/siglist.h: Add comment.
43247         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
43248         strsignal's favoring of SIGSEGV.
43249         * tests/test-signal.c (main): Avoid test failure.
43250         * doc/posix-headers/signal.texi (signal.h): Document the issue.
43251         Reported by Scott McCreary.
43253         maint.mk: add pre-release check to ensure submodule commits are public
43254         * top/maint.mk (public-submodule-commit): New rule.
43255         (submodule-checks): New variable.
43256         (alpha beta stable): Depend on the variable.
43258 2011-01-05  Pádraig Brady  <P@draigBrady.com>
43259         and Jim Meyering  <meyering@redhat.com>
43261         ignore-value: make ignore_value more generic; deprecate ignore_ptr
43262         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
43263         (ATTRIBUTE_DEPRECATED): Define.
43264         (_ignore_case): New function.
43265         (ignore_value): New macro, to replace the old function.
43266         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
43267         * modules/ignore-value (Depends-on): Add stdint.
43269 2011-01-04  Eric Blake  <eblake@redhat.com>
43271         doc: regenerate INSTALL
43272         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
43273         @firstparagraphindent support, now that autoconf dropped it.
43274         (INSTALL_PRELUDE): Reinstate old macro.
43275         * doc/install.texi: Resync from autoconf.
43276         * doc/INSTALL: Reflect recent autoconf update.
43277         * doc/INSTALL.ISO: Likewise.
43278         * doc/INSTALL.UTF-8: Likewise.
43279         Reported by Karl Berry.
43281 2011-01-04  Bruce Korb  <address@hidden>
43283         git-version-gen: avoid a sub-shell
43284         * build-aux/git-version-gen: Redirect stderr in `...` via
43285         "exec 2>...", rather than via an added sub-shell.
43287 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
43289         git-version-gen: use (...) rather than sh -c '...'
43290         * build-aux/git-version-gen: Rather than hard-coding a shell's name
43291         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
43293 2011-01-03  Jim Meyering  <meyering@redhat.com>
43295         git-version-gen: convert leading TABs to spaces
43296         * build-aux/git-version-gen: Expand leading TABs.
43298         git-version-gen: handle failed "git rev-list"
43299         * build-aux/git-version-gen: Rather than leaking a "fatal" error
43300         from git and proceeding as if it had succeeded but printed no SHA1
43301         checksums, suppress the diagnostic and handle the failure.
43302         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
43304         git-version-gen: include command name in one more diagnostic
43305         * build-aux/git-version-gen: When the required .tarball-version file
43306         was missing or unreadable, you might see the diagnostic from "cat",
43307         but no trace of the name of the invoking script.  Now, you still see
43308         the diagnostic from cat, but also get one from "git-version-gen: ".
43309         Inspired by a patch from Bruce Korb.
43311         update-copyright: adjust test to match changed code
43312         * tests/test-update-copyright.sh: Change test's expected output
43313         to match new actual output.
43315 2011-01-02  Bruno Haible  <bruno@clisp.org>
43317         getlogin_r: Avoid test failure on HP-UX 11.
43318         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
43319         ERANGE when the second argument is zero.
43320         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
43321         portability problem.
43323 2011-01-02  Bruce Korb  <bkorb@gnu.org>
43325         * build-aux/update-copyright: doc Simon's changes
43327 2011-01-02  Simon Josefsson  <simon@josefsson.org>
43329         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
43330         environment variable.
43332 2011-01-02  Bruno Haible  <bruno@clisp.org>
43334         unigbrk: Avoid gcc warnings.
43335         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
43336         unused variable.
43337         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
43338         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
43339         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
43340         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
43341         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
43342         Change type of first argument to 'const char *'.
43343         (main): Remove unused variable.
43344         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
43345         type of first argument to 'const char *'.
43346         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
43347         Likewise.
43348         (main): Change type of variable 's'.
43349         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
43350         to 'int'.
43352 2011-01-02  Bruno Haible  <bruno@clisp.org>
43354         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
43355         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
43356         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
43357         bug.
43358         * lib/pwrite.c: Undo 2010-12-31 patch.
43359         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
43361 2011-01-02  Bruno Haible  <bruno@clisp.org>
43363         pread: Fix test whether it works.
43364         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
43366 2011-01-02  Bruno Haible  <bruno@clisp.org>
43368         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
43369         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
43370         ends in "6". Don't require a specific month name. Try also the locale
43371         names found on HP-UX 11 and Solaris 7.
43373 2011-01-02  Bruno Haible  <bruno@clisp.org>
43375         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
43376         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
43377         C linkage.
43378         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
43380 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43382         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
43383         for consistency, since the "cluster" term is not used elsewhere.
43384         * lib/unigbrk.in.h: Update name.
43385         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
43386         * lib/unigbrk/u16-grapheme-next.c: Update name.
43387         * lib/unigbrk/u16-grapheme-prev.c: Update name.
43388         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
43389         * lib/unigbrk/u32-grapheme-next.c: Update name.
43390         * lib/unigbrk/u32-grapheme-prev.c: Update name.
43391         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
43392         * lib/unigbrk/u8-grapheme-next.c: Update name.
43393         * lib/unigbrk/u8-grapheme-prev.c: Update name.
43394         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
43395         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
43396         Suggested by Bruno Haible.
43398 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43400         Remove module 'u8-grapheme-len' as too redundant with
43401         'u8-grapheme-next'.
43402         * modules/unigbrk/u8-grapheme-len: Delete file.
43403         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
43404         * lib/unigbrk.in.h: Remove prototype for deleted function.
43405         * lib/unigbrk/u8-grapheme-len.c: Delete file.
43406         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
43408         Remove module 'u16-grapheme-len' as too redundant with
43409         'u16-grapheme-next'.
43410         * modules/unigbrk/u16-grapheme-len: Delete file.
43411         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
43412         * lib/unigbrk.in.h: Remove prototype for deleted function.
43413         * lib/unigbrk/u16-grapheme-len.c: Delete file.
43414         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
43416         Remove module 'u32-grapheme-len' as too redundant with
43417         'u32-grapheme-next'.
43418         * modules/unigbrk/u32-grapheme-len: Delete file.
43419         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
43420         * lib/unigbrk.in.h: Remove prototype for deleted function.
43421         * lib/unigbrk/u32-grapheme-len.c: Delete file.
43422         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
43424         Suggested by Bruno Haible.
43426 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43428         * unigbrk.in.h: Fix typo: "ben" => "been".
43429         Reported by Bruno Haible.
43431 2011-01-01  Jim Meyering  <meyering@redhat.com>
43433         maint: update almost all copyright ranges to include 2011
43434         Run the new "make update-copyright" rule.
43436 2011-01-01  Jim Meyering  <meyering@redhat.com>
43438         maint: update-copyright: exempt doc/INSTALL*
43439         * Makefile (update-copyright): Also exclude doc/INSTALL*,
43440         since they are generated.  Suggested by Bruno Haible.
43442 2011-01-01  Jim Meyering  <meyering@redhat.com>
43444         maint: refine the update-copyright rule
43445         * Makefile (update-copyright): Also exclude any file that includes
43446         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
43447         code that merely generates the comment.
43449 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43451         New module 'u8-grapheme-len'.
43452         * modules/unigbrk/u8-grapheme-len: New file.
43453         * modules/unigbrk/u8-grapheme-len-tests: New file.
43454         * lib/unigbrk.in.h: Add prototype for new function.
43455         * lib/unigbrk/u8-grapheme-len.c: New file.
43456         * tests/unigbrk/test-u8-grapheme-len.c: New file.
43458         New module 'u16-grapheme-len'.
43459         * modules/unigbrk/u16-grapheme-len: New file.
43460         * modules/unigbrk/u16-grapheme-len-tests: New file.
43461         * lib/unigbrk.in.h: Add prototype for new function.
43462         * lib/unigbrk/u16-grapheme-len.c: New file.
43463         * tests/unigbrk/test-u16-grapheme-len.c: New file.
43465         New module 'u32-grapheme-len'.
43466         * modules/unigbrk/u32-grapheme-len: New file.
43467         * modules/unigbrk/u32-grapheme-len-tests: New file.
43468         * lib/unigbrk.in.h: Add prototype for new function.
43469         * lib/unigbrk/u32-grapheme-len.c: New file.
43470         * tests/unigbrk/test-u32-grapheme-len.c: New file.
43472         New module 'u8-grapheme-next'.
43473         * modules/unigbrk/u8-grapheme-next: New file.
43474         * modules/unigbrk/u8-grapheme-next-tests: New file.
43475         * lib/unigbrk.in.h: Add prototype for new function.
43476         * lib/unigbrk/u8-grapheme-next.c: New file.
43477         * tests/unigbrk/test-u8-grapheme-next.c: New file.
43479         New module 'u16-grapheme-next'.
43480         * modules/unigbrk/u16-grapheme-next: New file.
43481         * modules/unigbrk/u16-grapheme-next-tests: New file.
43482         * lib/unigbrk.in.h: Add prototype for new function.
43483         * lib/unigbrk/u16-grapheme-next.c: New file.
43484         * tests/unigbrk/test-u16-grapheme-next.c: New file.
43486         New module 'u32-grapheme-next'.
43487         * modules/unigbrk/u32-grapheme-next: New file.
43488         * modules/unigbrk/u32-grapheme-next-tests: New file.
43489         * lib/unigbrk.in.h: Add prototype for new function.
43490         * lib/unigbrk/u32-grapheme-next.c: New file.
43491         * tests/unigbrk/test-u32-grapheme-next.c: New file.
43493         New module 'u8-grapheme-prev'.
43494         * modules/unigbrk/u8-grapheme-prev: New file.
43495         * modules/unigbrk/u8-grapheme-prev-tests: New file.
43496         * lib/unigbrk.in.h: Add prototype for new function.
43497         * lib/unigbrk/u8-grapheme-prev.c: New file.
43498         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
43500         New module 'u16-grapheme-prev'.
43501         * modules/unigbrk/u16-grapheme-prev: New file.
43502         * modules/unigbrk/u16-grapheme-prev-tests: New file.
43503         * lib/unigbrk.in.h: Add prototype for new function.
43504         * lib/unigbrk/u16-grapheme-prev.c: New file.
43505         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
43507         New module 'u32-grapheme-prev'.
43508         * modules/unigbrk/u32-grapheme-prev: New file.
43509         * modules/unigbrk/u32-grapheme-prev-tests: New file.
43510         * lib/unigbrk.in.h: Add prototype for new function.
43511         * lib/unigbrk/u32-grapheme-prev.c: New file.
43512         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
43514         New module 'u8-grapheme-breaks'.
43515         * modules/unigbrk/u8-grapheme-breaks: New file.
43516         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
43517         * lib/unigbrk.in.h: Add prototype for new function.
43518         * lib/unigbrk/u8-grapheme-breaks.c: New file.
43519         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
43521         New module 'u16-grapheme-breaks'.
43522         * modules/unigbrk/u16-grapheme-breaks: New file.
43523         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
43524         * lib/unigbrk.in.h: Add prototype for new function.
43525         * lib/unigbrk/u16-grapheme-breaks.c: New file.
43526         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
43528         New module 'u32-grapheme-breaks'.
43529         * modules/unigbrk/u32-grapheme-breaks: New file.
43530         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
43531         * lib/unigbrk.in.h: Add prototype for new function.
43532         * lib/unigbrk/u32-grapheme-breaks.c: New file.
43533         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
43535         New module 'ulc-grapheme-breaks'.
43536         * modules/unigbrk/ulc-grapheme-breaks: New file.
43537         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
43538         * m4/locale-ar.m4: New file.
43539         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
43540         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
43541         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
43543 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43545         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
43546         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
43547         modified how this file was generated before I initially submitted
43548         the module, but failed to regenerate it.  This meant that several
43549         of the level2 entries were wrong.
43550         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
43551         Remove the division-by-2 that is folded into the table now that
43552         gbrkprop.h has been regenerated properly.  Now -1 entries are
43553         handled correctly.
43555         New module 'unigbrk/uc-gbrk-prop-tests'.
43556         * modules/unigbrk/uc-gbrk-prop-tests: New file.
43557         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
43558         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
43559         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
43561 2011-01-01  Bruno Haible  <bruno@clisp.org>
43563         Avoid use of hexadecimal escapes.
43564         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
43565         instead of hexadecimal escapes.
43567 2011-01-01  Jim Meyering  <meyering@redhat.com>
43569         maint: new rule to update copyright year ranges
43570         * Makefile (update-copyright): New rule.
43572         maint: indent with TABs in Makefile
43573         * Makefile: Expand leading sequences of spaces to TABs
43575         version-etc: update the copyright year it reports
43576         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
43578 2010-12-31  Bruno Haible  <bruno@clisp.org>
43580         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
43581         * lib/isfinite.c (zerof, zerod, zerol): New variables.
43582         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
43583         zero.
43585 2010-12-31  Bruno Haible  <bruno@clisp.org>
43587         pwrite: Work around HP-UX 11.11 bug.
43588         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
43589         works and set REPLACE_PWRITE if not.
43590         * lib/pwrite.c (pwrite): Add an implementation that uses the system
43591         function.
43592         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43594 2010-12-31  Bruno Haible  <bruno@clisp.org>
43596         pread: Work around HP-UX 11 bugs.
43597         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43598         and set REPLACE_PREAD if not.
43599         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43601 2010-12-31  Eric Blake  <eblake@redhat.com>
43603         nl_langinfo: fix YESEXPR on Irix 6.5
43604         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43605         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43606         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43607         it.
43609 2010-12-31  Bruno Haible  <bruno@clisp.org>
43611         iconv: Document HP-UX 11 bug.
43612         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43614 2010-12-31  Bruno Haible  <bruno@clisp.org>
43616         ldexpl: Fix link error on HP-UX 11.
43617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43618         LDEXPL_LIBM, using $ISNANL_LIBM.
43620 2010-12-31  Eric Blake  <eblake@redhat.com>
43622         ftello: avoid compilation failure with SunStudio c89
43623         * lib/ftello.c (ftello): Use lseek, not llseek.
43625         tests: avoid failing coreutils tests on cygwin
43626         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43627         (create_exe_shims_): Return 0 when skipping.
43629 2010-12-31  Bruno Haible  <bruno@clisp.org>
43631         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43632         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43634 2010-12-31  Bruno Haible  <bruno@clisp.org>
43636         waitpid: Fix link error in C++ mode.
43637         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43639 2010-12-31  Bruno Haible  <bruno@clisp.org>
43641         isnan: Use GCC built-ins when possible.
43642         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43643         __builtin_isnan.
43644         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43645         (isnan): Define using GCC built-ins for GCC >= 4.0.
43647 2010-12-31  Bruno Haible  <bruno@clisp.org>
43649         isnand: Fix mistake.
43650         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43651         __builtin_isnand.
43653 2010-12-31  Bruno Haible  <bruno@clisp.org>
43655         open: Avoid C++ error on HP-UX 11.
43656         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43658 2010-12-31  Bruno Haible  <bruno@clisp.org>
43660         time_r: Add missing declarations on HP-UX 11.
43661         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43662         instead of HAVE_LOCALTIME_R.
43663         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43664         HAVE_LOCALTIME_R always.
43665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43666         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43667         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43668         HAVE_LOCALTIME_R.
43669         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43670         * doc/posix-functions/localtime_r.texi: Likewise.
43672 2010-12-29  Eric Blake  <eblake@redhat.com>
43674         mountlist: tweak previous commit
43675         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43676         Reported by Paul Eggert.
43678         mountlist: fix local drive detection on cygwin
43679         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43680         that works for cygwin.
43682 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43684         ftoastr, snprintf: ftoastr + snprintf module
43685         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43686         since the snprintf module now should be good enough here.
43687         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43688         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43689         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43690         GNULIB_SNPRINTF only for the test directory, and the latter
43691         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43692         seems to suffice by itself.
43694 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43696         alloca: one step towards thread-safety
43697         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43698         need for a static variable.  All callers changed.  This does not
43699         make the alloca replacement thread-safe, but it's one step.
43701         tests: minor indenting change
43702         * tests/init.sh: Sync from coreutils housekeeping patch
43703         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43704         to keep lines within 80 columns.
43706 2010-12-28  Jim Meyering  <meyering@redhat.com>
43708         regex: don't infloop on persistent failing calloc
43709         * lib/regexec.c (build_trtable): Return failure indication upon
43710         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43711         In glibc, this was fixed for version 2.13:
43712         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43714 2010-12-28  Bruno Haible  <bruno@clisp.org>
43715             Paul Eggert <eggert@cs.ucla.edu>
43717         linkat: Make implementation robust against system behaviour variations.
43718         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43719         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43720         way, and to -2 if it needs a generic runtime test.
43721         * lib/linkat.c (solaris_optimized_link_immediate,
43722         solaris_optimized_link_follow): New functions.
43723         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43724         (check_same_link): Use it.
43726 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43728         New module 'unigbrk/base'.
43729         * modules/unigbrk/base: New file.
43730         * lib/unigbrk.in.h: New file.
43732         New module 'unigbrk/uc-gbrk-prop'.
43733         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43734         * modules/unigbrk/uc-gbrk-prop: New file.
43735         * lib/unigbrk/gbrkprop.h: New file.
43736         * lib/unigbrk/uc-gbrk-prop.c: New file.
43738         New module 'unigbrk/uc-is-grapheme-break'.
43739         * modules/unigbrk/uc-is-grapheme-break: New file.
43740         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43741         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43742         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43743         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
43744         * tests/unigbrk/GraphemeBreakTest.txt: New file.
43746         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
43748 2010-12-27  Bruno Haible  <bruno@clisp.org>
43750         linkat test: Avoid failure on Solaris 11 2010-11.
43751         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
43753 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43755         utimens: work around glibc rounding bug on more platforms
43756         * lib/utimens.c (fdutimens): Work around rounding bug even if
43757         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
43758         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
43760 2010-12-27  Bruno Haible  <bruno@clisp.org>
43762         select tests: Improve comments.
43763         * tests/test-select.c (do_select): Add comments.
43765 2010-12-27  Bruno Haible  <bruno@clisp.org>
43767         select tests: Safer way of handling timeout.
43768         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
43769         at every invocation.
43771 2010-12-27  Bruno Haible  <bruno@clisp.org>
43773         select tests: Use 'bool' where appropriate.
43774         * tests/test-select.c (connect_to_socket): Change argument type to
43775         'bool'.
43777 2010-12-27  Bruno Haible  <bruno@clisp.org>
43779         select tests: Use existing modules.
43780         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
43781         (configure.ac): Don't test for unistd.h.
43782         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
43783         declared in <unistd.h>.
43785 2010-12-27  Bruno Haible  <bruno@clisp.org>
43787         mbrtowc: Work around a Solaris 7 bug.
43788         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
43789         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
43790         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
43791         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
43792         MBRTOWC_NULL_ARG1_BUG.
43793         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
43794         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
43795         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
43796         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
43798 2010-12-27  Jim Meyering  <meyering@redhat.com>
43800         read-file.c: tweak syntax
43801         * lib/read-file.c (fread_file): Remove space after "*" in function
43802         definitions.
43804 2010-12-27  Bruno Haible  <bruno@clisp.org>
43806         times test: Avoid gcc warnings on OSF/1.
43807         * tests/test-times.c (main): Cast printf arguments from clock_t to
43808         'long int'.
43810 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43812         utimens: work around glibc rounding bug on older Linux kernels
43813         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
43814         on Linux with a glibc whose utimes might not work, then work
43815         around a longstanding glibc bug involving rounding rather than
43816         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
43817         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43819 2010-12-26  Bruno Haible  <bruno@clisp.org>
43821         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
43822         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
43823         _GL_CXXALIAS_SYS.
43824         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43826 2010-12-26  Bruno Haible  <bruno@clisp.org>
43828         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
43829         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
43830         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43831         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
43832         looking for the declaration.
43833         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43834         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
43835         problem.
43836         * doc/posix-functions/inet_pton.texi: Likewise.
43838 2010-12-26  Bruno Haible  <bruno@clisp.org>
43840         arpa_inet: Use the common idioms with C++ support.
43841         * lib/arpa_inet.in.h: Include c++defs.h.
43842         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
43843         support.
43844         * modules/arpa_inet (Depends-on): Add c++defs.
43845         (Makefile.am): Substitute the contents of c++defs.h.
43846         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
43847         * modules/arpa_inet-c++-tests: New file.
43848         * tests/test-arpa_inet-c++.cc: New file.
43850 2010-12-25  Bruno Haible  <bruno@clisp.org>
43852         Fix more C++ link errors on Solaris 8.
43853         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
43854         $(LIB_EACCESS).
43855         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
43856         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
43857         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43858         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43859         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43861 2010-12-25  Bruno Haible  <bruno@clisp.org>
43863         printf-posix: Fix link error when a non-GCC compiler is used.
43864         * lib/stdio.in.h (printf): When not using GCC, override printf
43865         correctly.
43866         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43868 2010-12-25  Bruno Haible  <bruno@clisp.org>
43870         strerror_r-posix: Update doc.
43871         * doc/posix-functions/strerror_r.texi: Update doc about the return
43872         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43874 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43876         utimens: simplify the logic of the previous change
43877         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43878         This should not affect whether the test succeeds or fails.
43880         utimens: configure better on hosts with NFS clock skew
43881         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43882         uses the clock of the local host.  It might use the clock of the
43883         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43884         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43886 2010-12-25  Bruno Haible  <bruno@clisp.org>
43888         ptsname test: Avoid failure on Solaris.
43889         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43890         open a pseudo-terminal; don't use BSD-style ptys.
43891         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43893 2010-12-25  Bruno Haible  <bruno@clisp.org>
43895         ptsname: Avoid ERANGE failure on some systems.
43896         * lib/ptsname.c (buffer): Increase size.
43898 2010-12-25  Bruno Haible  <bruno@clisp.org>
43900         rename, renameat: Avoid test failures at NFS mounted locations.
43901         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43902         so that subsequent mkdir calls succeed.
43904 2010-12-25  Bruno Haible  <bruno@clisp.org>
43906         iswblank: Fix C++ link error on Solaris 8.
43907         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43908         _GL_FUNCDECL_SYS.
43910 2010-12-25  Bruno Haible  <bruno@clisp.org>
43912         unistd: Fix C++ link error on Solaris 8.
43913         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43915 2010-12-25  Bruno Haible  <bruno@clisp.org>
43917         readlink doc: Mention an old glibc bug.
43918         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
43920 2010-12-25  Bruno Haible  <bruno@clisp.org>
43922         fcntl-h: Fix for use of C++ on glibc systems.
43923         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43924         also on glibc systems in C++ mode.
43925         Reported by Gary V. Vaughan <gary@gnu.org>.
43927 2010-12-25  Bruno Haible  <bruno@clisp.org>
43929         roundl-ieee: Make it work on OSF/1 5.1 with cc.
43930         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
43932 2010-12-25  Bruno Haible  <bruno@clisp.org>
43934         truncl-ieee: Make it work on OSF/1 5.1 with cc.
43935         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
43936         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
43937         test whether truncl works according to ISO C 99 with IEC 60559.
43938         * m4/truncl-ieee.m4: New file.
43939         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
43940         m4/signbit.m4.
43941         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
43943 2010-12-25  Bruno Haible  <bruno@clisp.org>
43945         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43946         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
43947         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
43948         test whether ceill works according to ISO C 99 with IEC 60559.
43949         * m4/ceill-ieee.m4: New file.
43950         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
43951         m4/signbit.m4.
43952         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
43954 2010-12-25  Bruno Haible  <bruno@clisp.org>
43956         Ensure all prerequisites of <wchar.h> are included.
43957         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
43958         before <wchar.h>.
43959         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43960         gl_MBRLEN_NUL_RETVAL): Likewise.
43961         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43962         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
43963         AC_FUNC_MBRTOWC): Likewise.
43964         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43965         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43966         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43967         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43968         Likewise.
43969         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43970         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
43971         (gl_WCHAR_H): Improve comments.
43972         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43974 2010-12-25  Bruno Haible  <bruno@clisp.org>
43976         strtok_r: Fix C syntax error in autoconf macro.
43977         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
43978         characters in test program.
43980 2010-12-24  Bruno Haible  <bruno@clisp.org>
43982         ceil, trunc, round: Fix gcc warnings.
43983         * lib/ceil.c (MIN): Undefine before redefining.
43984         * lib/trunc.c (MIN): Likewise.
43985         * lib/round.c (MIN): Likewise.
43986         Include <math.h> first.
43988 2010-12-24  Bruno Haible  <bruno@clisp.org>
43990         select tests: Avoid failures on OSF/1 5.1.
43991         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
43992         failure of closing the last socket; it may fail with ECONNRESET.
43994 2010-12-24  Eric Blake  <eblake@redhat.com>
43996         stdint: avoid HP-UX 10.20 preprocessor bug
43997         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
43998         than #if.
43999         * tests/test-floor2.c (main): Likewise.
44000         Reported by Peter O'Gorman.
44002         pipe: make obsoletion transition easier
44003         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
44004         * modules/pipe (Files): Include revived file.
44005         (Include): Drop reference, to mirror getdate's behavior.
44007 2010-12-24  Bruno Haible  <bruno@clisp.org>
44009         sys_socket: Hide mismatch of declarations on NonStop Kernel.
44010         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
44011         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
44012         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44014 2010-12-24  Bruno Haible  <bruno@clisp.org>
44016         gethostname: Ensure declaration on NonStop Kernel.
44017         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
44018         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44020 2010-12-24  Bruno Haible  <bruno@clisp.org>
44022         sys_select: Ensure all necessary types on NonStop Kernel.
44023         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
44024         include <sys/time.h>.
44025         * doc/posix-headers/sys_select.texi: Mention that it's missing on
44026         NonStop Kernel.
44027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44029 2010-12-24  Bruno Haible  <bruno@clisp.org>
44031         sys_select: Remove unneeded include.
44032         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
44033         have <sys/select.h>.
44035 2010-12-24  Bruno Haible  <bruno@clisp.org>
44037         gethostname: Provide a fallback for HOST_NAME_MAX.
44038         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
44039         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
44040         instead.
44041         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44043 2010-12-24  Bruno Haible  <bruno@clisp.org>
44045         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
44046         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
44047         (SA_RESTART): Likewise.
44048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44050 2010-12-24  Bruno Haible  <bruno@clisp.org>
44052         signal: Define NSIG.
44053         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
44054         * tests/test-signal.c (nsig): New variable.
44055         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44057 2010-12-24  Bruno Haible  <bruno@clisp.org>
44059         rename, renameat: Avoid test failures on OSF/1 5.1.
44060         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
44061         alternative error codes.
44062         * tests/test-renameat.c (main): Likewise.
44064 2010-12-24  Bruno Haible  <bruno@clisp.org>
44066         *printf: Detect large precisions bug on Solaris 10/SPARC.
44067         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
44068         by Paul Eggert.
44069         * tests/test-snprintf-posix.h (test_function): Add this test code here
44070         too.
44071         * tests/test-sprintf-posix.h (test_function): Likewise.
44072         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44073         * tests/test-vasprintf-posix.c (test_function): Likewise.
44074         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
44075         around by gnulib.
44076         * doc/posix-functions/printf.texi: Likewise.
44077         * doc/posix-functions/snprintf.texi: Likewise.
44078         * doc/posix-functions/sprintf.texi: Likewise.
44079         * doc/posix-functions/vfprintf.texi: Likewise.
44080         * doc/posix-functions/vprintf.texi: Likewise.
44081         * doc/posix-functions/vsnprintf.texi: Likewise.
44082         * doc/posix-functions/vsprintf.texi: Likewise.
44083         * doc/posix-functions/dprintf.texi: Undo last commit.
44084         * doc/posix-functions/vdprintf.texi: Likewise.
44086 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44088         tests: port test-fdutimensat.c to Solaris 8
44089         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
44090         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
44091         On Solaris 8, it fails with errno == ENOSYS, because there is no
44092         futimens (so it can't use the fd), and there is no lutimens (so it
44093         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
44095         vsnprintf: make more consistent with snprintf; doc fixes
44097         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
44098         the byte count return problem was promoted from the snprintf-posix
44099         to the snprintf module.
44100         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44101         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
44102         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
44103         * tests/test-snprintf.c (main): Check the byte count returned.
44104         * tests/test-vsnprintf.c (main): Likewise.
44106 2010-12-23  Eric Blake  <eblake@redhat.com>
44108         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
44109         * modules/sigpipe (License): Relax license.
44111 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44113         doc: document Solaris printf bug with large float precisions
44114         * doc/posix-functions/dprintf.texi (dprintf):
44115         * doc/posix-functions/fprintf.texi (fprintf):
44116         * doc/posix-functions/printf.texi (printf):
44117         * doc/posix-functions/snprintf.texi (snprintf):
44118         * doc/posix-functions/sprintf.texi (sprintf):
44119         * doc/posix-functions/vdprintf.texi (vdprintf):
44120         * doc/posix-functions/vfprintf.texi (vfprintf):
44121         * doc/posix-functions/vprintf.texi (vprintf):
44122         * doc/posix-functions/vsnprintf.texi (vsnprintf):
44123         * doc/posix-functions/vsprintf.texi (vsprintf):
44124         Mention that these functions mishandle large floating point
44125         precisions on Solaris 10.  The same bug is also present in Solaris
44126         8, and I assume earlier.  This causes "cd gnulib-tests; make
44127         check" to fail on Solaris 8 (and I assume, later) when building
44128         the latest coreutils, in test-vasprintf-posix's call to
44129         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
44130         the wide flavors (e.g., wprintf) so this patch just updates the
44131         documentation for the narrow ones.
44133         test-posixtm.c: add two tests
44134         * tests/test-posixtm.c: Add two tests, to highlight the
44135         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
44136         around this bug; this is merely to document it.
44138 2010-12-22  Bruno Haible  <bruno@clisp.org>
44140         getlogin_r: Work around portability problem on OSF/1.
44141         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
44142         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
44143         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
44144         test for a truncated result.
44145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
44146         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
44147         * modules/getlogin_r (Depends-on): Add memchr.
44148         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
44150 2010-12-22  Bruno Haible  <bruno@clisp.org>
44152         ptsname: Avoid test failure on OSF/1 5.1.
44153         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
44154         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
44155         (same_slave): New function.
44156         (main): Use it to compare ptsname's result with the expected file name.
44158 2010-12-22  Bruno Haible  <bruno@clisp.org>
44160         Port extended stdio modules to HP NonStop Kernel.
44161         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
44162         macros.
44163         * lib/fbufmode.c: Update comments.
44164         * lib/fflush.c: Likewise.
44165         * lib/fpurge.c: Likewise.
44166         * lib/freadable.c: Likewise.
44167         * lib/freadahead.c: Likewise.
44168         * lib/freading.c: Likewise.
44169         * lib/freadptr.c: Likewise.
44170         * lib/freadseek.c: Likewise.
44171         * lib/fseeko.c: Likewise.
44172         * lib/fseterr.c: Likewise.
44173         * lib/fwritable.c: Likewise.
44174         * lib/fwriting.c: Likewise.
44175         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44177 2010-12-22  Bruno Haible  <bruno@clisp.org>
44179         ttyname_r: Work around bug on OSF/1 5.1.
44180         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
44181         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
44182         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
44183         present.
44184         * lib/ttyname_r.c (ttyname_r): Update comments.
44186 2010-12-22  Bruno Haible  <bruno@clisp.org>
44188         round: Implement result sign according to IEEE 754.
44189         * lib/round.c (MIN, MINUS_ZERO): New macros.
44190         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
44191         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
44192         * tests/test-round-ieee.c (main): Likewise.
44193         * tests/test-roundl-ieee.c (main): Likewise.
44195         trunc: Implement result sign according to IEEE 754.
44196         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
44197         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
44198         * tests/test-trunc2.c: Include minus-zero.h.
44199         (MINUS_ZERO): New macro.
44200         (trunc_reference): Keep in sync with lib/trunc.c.
44201         * tests/test-truncf2.c: Include minus-zero.h.
44202         (MINUS_ZERO): New macro.
44203         (truncf_reference): Keep in sync with lib/trunc.c.
44204         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
44205         * tests/test-trunc-ieee.c (main): Likewise.
44206         * tests/test-truncl-ieee.c (main): Likewise.
44208         ceil: Implement result sign according to IEEE 754.
44209         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
44210         (FUNC): Return -0.0 for -1 < x < 0.
44211         * tests/test-ceil2.c: Include minus-zero.h.
44212         (MINUS_ZERO): New macro.
44213         (ceil_reference): Keep in sync with lib/ceil.c.
44214         * tests/test-ceilf2.c: Include minus-zero.h.
44215         (MINUS_ZERO): New macro.
44216         (ceilf_reference): Keep in sync with lib/ceil.c.
44217         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
44218         * tests/test-ceil-ieee.c (main): Likewise.
44219         * tests/test-ceill-ieee.c (main): Likewise.
44221         floor: Implement result sign according to IEEE 754.
44222         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
44223         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
44224         * tests/test-floorf2.c (floorf_reference): Likewise.
44225         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
44226         * tests/test-floor-ieee.c (main): Likewise.
44227         * tests/test-floorl-ieee.c (main): Likewise.
44229 2010-12-22  Bruno Haible  <bruno@clisp.org>
44231         getaddrinfo: Update doc.
44232         * doc/posix-functions/gai_strerror.texi: Return type is also different
44233         on AIX and HP-UX.
44235 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44237         getaddrinfo, inet_ntop: Update doc for Solaris.
44238         * doc/posix-functions/gai_strerror.texi: Return type is also an
44239         issue on Solaris 9 and earlier.
44240         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
44241         on Solaris 10 and earlier.
44243 2010-12-21  Bruno Haible  <bruno@clisp.org>
44245         New module 'roundl-ieee'.
44246         * modules/roundl-ieee: New file.
44247         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
44248         test whether roundl works according to ISO C 99 with IEC 60559.
44249         * m4/roundl-ieee.m4: New file.
44250         * modules/roundl-ieee-tests: New file.
44251         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
44252         * tests/test-roundl.c (main): Remove signbit tests.
44253         * modules/roundl-tests (Depends-on): Remove signbit.
44254         * doc/posix-functions/roundl.texi: Mention the new module.
44256 2010-12-21  Bruno Haible  <bruno@clisp.org>
44258         New module 'truncl-ieee'.
44259         * modules/truncl-ieee: New file.
44260         * modules/truncl-ieee-tests: New file.
44261         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
44262         * tests/test-truncl.c (main): Remove signbit tests.
44263         * modules/truncl-tests (Depends-on): Remove signbit.
44264         * doc/posix-functions/truncl.texi: Mention the new module.
44266 2010-12-21  Bruno Haible  <bruno@clisp.org>
44268         New module 'ceill-ieee'.
44269         * modules/ceill-ieee: New file.
44270         * modules/ceill-ieee-tests: New file.
44271         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
44272         * tests/test-ceill.c (main): Remove signbit tests.
44273         * modules/ceill-tests (Depends-on): Remove signbit.
44274         * doc/posix-functions/ceill.texi: Mention the new module.
44276 2010-12-21  Bruno Haible  <bruno@clisp.org>
44278         New module 'floorl-ieee'.
44279         * modules/floorl-ieee: New file.
44280         * modules/floorl-ieee-tests: New file.
44281         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
44282         * tests/test-floorl.c (main): Remove signbit tests.
44283         * modules/floorl-tests (Depends-on): Remove signbit.
44284         * doc/posix-functions/floorl.texi: Mention the new module.
44286 2010-12-21  Bruno Haible  <bruno@clisp.org>
44288         New module 'round-ieee'.
44289         * modules/round-ieee: New file.
44290         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
44291         whether round works according to ISO C 99 with IEC 60559.
44292         * m4/round-ieee.m4: New file.
44293         * modules/round-ieee-tests: New file.
44294         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
44295         * tests/test-round1.c (main): Remove signbit tests.
44296         * modules/round-tests (Depends-on): Remove 'signbit'.
44297         * doc/posix-functions/round.texi: Mention the new module.
44299 2010-12-21  Bruno Haible  <bruno@clisp.org>
44301         New module 'trunc-ieee'.
44302         * modules/trunc-ieee: New file.
44303         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
44304         whether trunc works according to ISO C 99 with IEC 60559.
44305         * m4/trunc-ieee.m4: New file.
44306         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
44307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
44308         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
44309         * modules/trunc-ieee-tests: New file.
44310         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
44311         * tests/test-trunc1.c (main): Remove signbit tests.
44312         * modules/trunc-tests (Depends-on): Remove 'signbit'.
44313         * doc/posix-functions/trunc.texi: Mention the new module.
44315 2010-12-21  Bruno Haible  <bruno@clisp.org>
44317         New module 'ceil-ieee'.
44318         * modules/ceil-ieee: New file.
44319         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
44320         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
44321         ISO C 99 with IEC 60559.
44322         * m4/ceil-ieee.m4: New file.
44323         * modules/ceil (Files): Add lib/ceil.c.
44324         (Depends-on): Add 'float'.
44325         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44326         * lib/math.in.h (ceil): New declaration.
44327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
44328         REPLACE_CEIL.
44329         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
44330         * modules/ceil-ieee-tests: New file.
44331         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
44332         * tests/test-math-c++.cc: Check the signature of 'ceil'.
44333         * doc/posix-functions/ceil.texi: Mention the new module.
44335 2010-12-21  Bruno Haible  <bruno@clisp.org>
44337         New module 'floor-ieee'.
44338         * modules/floor-ieee: New file.
44339         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
44340         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
44341         ISO C 99 with IEC 60559.
44342         * m4/floor-ieee.m4: New file.
44343         * modules/floor (Files): Add lib/floor.c.
44344         (Depends-on): Add 'float'.
44345         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44346         * lib/math.in.h (floor): New declaration.
44347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
44348         REPLACE_FLOOR.
44349         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
44350         * modules/floor-ieee-tests: New file.
44351         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
44352         * tests/test-math-c++.cc: Check the signature of 'floor'.
44353         * doc/posix-functions/floor.texi: Mention the new module.
44355 2010-12-21  Bruno Haible  <bruno@clisp.org>
44357         New module 'roundf-ieee'.
44358         * modules/roundf-ieee: New file.
44359         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
44360         test whether roundf works according to ISO C 99 with IEC 60559.
44361         * m4/roundf-ieee.m4: New file.
44362         * modules/roundf-ieee-tests: New file.
44363         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
44364         * tests/test-roundf1.c (main): Remove signbit tests.
44365         * modules/roundf-tests (Depends-on): Remove 'signbit'.
44366         * doc/posix-functions/roundf.texi: Mention the new module.
44368 2010-12-21  Bruno Haible  <bruno@clisp.org>
44370         New module 'truncf-ieee'.
44371         * modules/truncf-ieee: New file.
44372         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
44373         test whether truncf works according to ISO C 99 with IEC 60559.
44374         * m4/truncf-ieee.m4: New file.
44375         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
44376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
44377         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
44378         * modules/truncf-ieee-tests: New file.
44379         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
44380         * tests/test-truncf1.c (main): Remove signbit tests.
44381         * modules/truncf-tests (Depends-on): Remove 'signbit'.
44382         * doc/posix-functions/truncf.texi: Mention the new module.
44384 2010-12-21  Bruno Haible  <bruno@clisp.org>
44386         New module 'ceilf-ieee'.
44387         * modules/ceilf-ieee: New file.
44388         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
44389         test whether ceilf works according to ISO C 99 with IEC 60559.
44390         * m4/ceilf-ieee.m4: New file.
44391         * modules/ceilf-ieee-tests: New file.
44392         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
44393         * tests/test-ceilf1.c (main): Remove signbit tests.
44394         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
44395         * doc/posix-functions/ceilf.texi: Mention the new module.
44397 2010-12-21  Bruno Haible  <bruno@clisp.org>
44399         New module 'floorf-ieee'.
44400         * modules/floorf-ieee: New file.
44401         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
44402         test whether floorf works according to ISO C 99 with IEC 60559.
44403         * m4/floorf-ieee.m4: New file.
44404         * modules/floorf-ieee-tests: New file.
44405         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
44406         * tests/test-floorf1.c (main): Remove signbit tests.
44407         * modules/floorf-tests (Depends-on): Remove 'signbit'.
44408         * doc/posix-functions/floorf.texi: Mention the new module.
44410 2010-12-21  Bruno Haible  <bruno@clisp.org>
44412         Support for minus zero in autoconf macros.
44413         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
44414         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
44415         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
44416         * tests/minus-zero.h: Update comments.
44418 2010-12-21  Bruno Haible  <bruno@clisp.org>
44420         Tests for module 'ceil'.
44421         * modules/ceil-tests: New file.
44422         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
44423         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
44425 2010-12-21  Bruno Haible  <bruno@clisp.org>
44427         Tests for module 'floor'.
44428         * modules/floor-tests: New file.
44429         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
44430         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
44432 2010-12-21  Bruno Haible  <bruno@clisp.org>
44434         math: Fix indentation.
44435         * lib/math.in.h (floorf): Fix indentation.
44437 2010-12-21  Bruno Haible  <bruno@clisp.org>
44439         Fix cross-compilation guesses on Solaris.
44440         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
44441         not match "solaris2.10".
44442         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44443         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
44444         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
44446 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44448         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
44449         This fixes a problem observed with the latest coreutils snapshot
44450         that caused a test to fail on Solaris 8.  src/csplit.c's call
44451         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
44452         earlier, instead of returning the number of bytes that would have
44453         been generated; this causes csplit to incorrectly report memory
44454         exhaustion.
44455         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
44456         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
44457         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
44458         comments to match.
44459         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
44460         Fix typo in matching older versions of Solaris: "solaris2.10"
44461         is matched by the shell pattern "solaris2.[0-9]*".  This matters
44462         only for guessing while cross-compiling.
44463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
44465 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
44467         ftoastr: fix comment again
44468         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44469         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
44470         Also, simplify example a bit by using flags = 0.
44472 2010-12-20  Bruno Haible  <bruno@clisp.org>
44474         round*, trunc*: Update documentation regarding glibc.
44475         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
44476         * doc/posix-functions/round.texi: Likewise.
44477         * doc/posix-functions/roundl.texi: Likewise.
44478         * doc/posix-functions/truncf.texi: Likewise.
44479         * doc/posix-functions/trunc.texi: Likewise.
44480         * doc/posix-functions/truncl.texi: Likewise.
44482 2010-12-20  Bruno Haible  <bruno@clisp.org>
44484         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
44485         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
44486         * doc/posix-functions/round.texi: Likewise.
44487         * doc/posix-functions/roundl.texi: Likewise.
44489 2010-12-20  Bruno Haible  <bruno@clisp.org>
44491         ttyname_r: Add missing declaration on HP-UX 11.
44492         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
44493         HAVE_TTYNAME_R.
44494         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
44495         declared. Set HAVE_TTYNAME_R always.
44496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44497         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
44498         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
44499         HAVE_TTYNAME_R.
44500         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
44502 2010-12-20  Bruno Haible  <bruno@clisp.org>
44504         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
44505         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
44506         * doc/posix-functions/getlogin_r.texi: Likewise.
44507         * tests/test-getlogin.c: Include <errno.h>.
44508         (main): Avoid test failure on HP-UX 11.11.
44509         * tests/test-getlogin_r.c (main): Likewise.
44511 2010-12-20  Bruno Haible  <bruno@clisp.org>
44513         getlogin_r: Add missing declaration on HP-UX 11.
44514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
44515         declared also when it exists as a function.
44516         * doc/posix-functions/getlogin_r.texi: Document this workaround.
44518 2010-12-20  Bruno Haible  <bruno@clisp.org>
44520         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
44521         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
44522         through wcrtomb.
44524 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44526         ftoastr: fix comment
44527         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44528         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
44530 2010-12-19  Bruno Haible  <bruno@clisp.org>
44532         isnan: Ensure it is a macro.
44533         * lib/math.in.h (isnan): Define as a macro if not already a macro.
44534         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
44535         Solaris.
44537 2010-12-19  Bruno Haible  <bruno@clisp.org>
44539         ldexpl test: Fix link error on OSF/1 5.1.
44540         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
44542 2010-12-19  Bruno Haible  <bruno@clisp.org>
44544         wctype: Make it work in C++ mode on OSF/1 5.1.
44545         * lib/wctype.in.h (iswblank): Declare but not define here.
44546         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
44547         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
44548         * modules/wctype (Files): Add lib/iswblank.c.
44550 2010-12-19  Bruno Haible  <bruno@clisp.org>
44552         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
44553         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
44554         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
44556 2010-12-19  Bruno Haible  <bruno@clisp.org>
44558         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
44559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
44560         _POSIX_PII_SOCKET.
44561         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
44562         * doc/posix-functions/recvfrom.texi: Likewise.
44563         * doc/posix-functions/send.texi: Likewise.
44564         * doc/posix-functions/sendto.texi: Likewise.
44566 2010-12-19  Bruno Haible  <bruno@clisp.org>
44568         tcgetsid: Add missing declaration on OSF/1 5.1.
44569         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
44570         HAVE_TCGETSID.
44571         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
44572         Don't set HAVE_TCGETSID.
44573         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
44574         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
44575         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
44576         HAVE_TCGETSID.
44577         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
44579 2010-12-19  Bruno Haible  <bruno@clisp.org>
44581         stdio: Fix problem with popen() declaration on OSF/1 5.1.
44582         * lib/stdio.in.h: During the include_next statement, let recursive
44583         includes of this file include only the system header file.
44585 2010-12-19  Bruno Haible  <bruno@clisp.org>
44587         iconv_open: Fix regression from 2010-12-04.
44588         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
44589         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
44591 2010-12-19  Bruno Haible  <bruno@clisp.org>
44593         stdbool test: Avoid a gcc warning.
44594         * tests/test-stdbool.c (main): Fail if e1 is false.
44595         Reported by Jim Meyering.
44597 2010-12-19  Jim Meyering  <meyering@redhat.com>
44599         setenv: restore to working order
44600         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44601         mistakenly removed.
44602         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44603         HAVE_SETENV.
44604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44605         HAVE_SETENV.
44607 2010-12-19  Bruno Haible  <bruno@clisp.org>
44609         Document some different function declarations on OSF/1 5.1.
44610         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44611         * doc/posix-functions/inet_ntop.texi: Likewise.
44612         * doc/posix-functions/gethostname.texi: Likewise.
44613         * lib/unistd.in.h (gethostname): Update comment.
44615 2010-12-19  Bruno Haible  <bruno@clisp.org>
44617         doc: Mention vasprintf-posix module.
44618         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44619         the 'vasprintf-posix' module.
44620         * doc/glibc-functions/vasprintf.texi: Likewise.
44622 2010-12-19  Bruno Haible  <bruno@clisp.org>
44624         unsetenv: Add missing declaration on OSF/1 5.1.
44625         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44626         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44627         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44629         not HAVE_UNSETENV.
44630         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44631         HAVE_UNSETENV.
44632         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44634 2010-12-19  Bruno Haible  <bruno@clisp.org>
44636         setenv: Add missing declaration on OSF/1 5.1.
44637         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44638         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44639         declared. Don't set HAVE_SETENV.
44640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44641         not HAVE_SETENV.
44642         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44643         HAVE_SETENV.
44644         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44646 2010-12-19  Bruno Haible  <bruno@clisp.org>
44648         nl_langinfo tests: Avoid gcc warning.
44649         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44651 2010-12-19  Bruno Haible  <bruno@clisp.org>
44653         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44654         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44655         _GL_CXXALIAS_SYS.
44657 2010-12-19  Bruno Haible  <bruno@clisp.org>
44659         stdbool: Relax test.
44660         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44661         address to 'bool' work in static initializer, for compilers other than
44662         GCC.
44664 2010-12-19  Bruno Haible  <bruno@clisp.org>
44666         ftello: Add missing declaration on OSF/1 5.1.
44667         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44668         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44670         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44671         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44673 2010-12-19  Bruno Haible  <bruno@clisp.org>
44675         fseeko: Add missing declaration on OSF/1 5.1.
44676         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44679         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44680         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44682 2010-12-19  Bruno Haible  <bruno@clisp.org>
44684         fchdir: Add missing declaration on OSF/1 5.1.
44685         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44688         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44689         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44691 2010-12-19  Bruno Haible  <bruno@clisp.org>
44693         relocatable-prog-wrapper: Separate from relocatable-prog.
44694         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44695         uninstall-relocwrapper rule here.
44696         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44697         Reported by Ian Beckwith <ianb@erislabs.net>.
44699 2010-12-19  Bruno Haible  <bruno@clisp.org>
44701         unistr/u8-mbsnlen: Add missing dependency.
44702         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44703         Reported by Ian Beckwith <ianb@erislabs.net>.
44705 2010-12-19  Bruno Haible  <bruno@clisp.org>
44707         iconv: Make it possible again to use this module without 'iconv-h'.
44708         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44709         if it is not defined.
44710         Reported by Ian Beckwith <ianb@erislabs.net>.
44712 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44714         acl: port to Solaris 8 when copying from tmpfs to ufs
44715         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44716         error number.  Problem observed on Solaris 8 with latest
44717         coreutils, with "mv A B", where A is on a tmpfs file system and B
44718         is on a ufs file system.  This caused coreutils' mv/part-symlink
44719         test to fail.
44721         tests: set fail=0 at start
44722         * tests/init.sh (setup_): Move fail=0 initialization here ...
44723         (mktempd_): ... from here, so that tests can rely on fail being
44724         set to 0 initially.  This fixes a problem in coreutils; see:
44725         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44727 2010-12-18  Bruno Haible  <bruno@clisp.org>
44729         memmem-simple: Stylistic changes.
44730         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44731         Fix preprocessor directive indentation.
44733 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44735         memmem, memmem-simple: reorganize and expand empty needle check
44736         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44737         functional checks to memmem-simple so that one has a fully functional
44738         memmem by using just this module.
44739         Restrict the performance only check to the memmem module.
44740         Also expand the empty needle check to ensure the correct
44741         pointer is returned, not just a non NULL pointer.
44742         * doc/glibc-functions/memmem.texi: Rearrange the portability
44743         documentation to correlate with the rearranged checks.
44744         Clarify exactly how the memmem and memmem-simple modules
44745         relate to each other.
44747 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44748             Bruno Haible  <bruno@clisp.org>
44750         Improve cross-compilation guesses for uClibc.
44751         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
44752         that uClibc does not have the glibc bug.
44753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
44754         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
44756 2010-12-14  Eric Blake  <eblake@redhat.com>
44758         configmake: provide fallbacks for oldest supported autotools
44759         * m4/configmake.m4: New file.
44760         * modules/configmake (Files): Ship it.
44761         (configure.ac): Use it to guarantee fallbacks.
44763 2010-12-13  Pádraig Brady  <P@draigBrady.com>
44765         read-file: Improve handling of large files
44766         * lib/read-file.c (fread_file): Minimize realloc()s
44767         for regular files, and better manage sizes around SIZE_MAX.
44769 2010-12-13  Eric Blake  <eblake@redhat.com>
44771         cloexec, fcntl: relax license
44772         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
44773         consent from all contributors.
44774         * modules/fcntl (License): Likewise.
44776 2010-12-10  Bruno Haible  <bruno@clisp.org>
44778         Tests for module 'pipe-posix'.
44779         * modules/pipe-posix-tests: New file.
44780         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
44782 2010-12-10  Bruno Haible  <bruno@clisp.org>
44784         pipe-posix: Make it work in C++ mode.
44785         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
44786         (pipe): Use common idiom, not a macro definition.
44787         * lib/pipe.c: New file.
44788         * m4/pipe.m4: New file.
44789         * modules/pipe-posix (Description): Enhance.
44790         (Files): Add lib/pipe.c, m4/pipe.m4.
44791         (configure.ac): Invoke gl_FUNC_PIPE.
44792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
44793         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
44794         * tests/test-unistd-c++.cc: Check the signature of pipe.
44796 2010-12-10  Bruno Haible  <bruno@clisp.org>
44798         Rename module 'pipe' to 'spawn-pipe'.
44799         * modules/spawn-pipe: New file, renamed from modules/pipe.
44800         (Files, configure.ac, Makefile.am): Update.
44801         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
44802         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
44803         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
44804         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
44805         "spawn-pipe.h" instead of "pipe.h".
44806         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
44807         to gl_SPAWN_PIPE.
44808         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
44809         (Files, Makefile.am): Update.
44810         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
44811         Update.
44812         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
44813         Include "spawn-pipe.h" instead of "pipe.h".
44814         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
44815         * lib/javacomp.c: Likewise.
44816         * lib/javaversion.c: Likewise.
44817         * lib/pipe-filter-gi.c: Likewise.
44818         * lib/pipe-filter-ii.c: Likewise.
44819         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
44820         * modules/javacomp (Depends-on): Likewise.
44821         * modules/javaversion (Depends-on): Likewise.
44822         * modules/pipe-filter-gi (Depends-on): Likewise.
44823         * modules/pipe-filter-ii (Depends-on): Likewise.
44824         * MODULES.html.sh (Executing programs): Update.
44825         * NEWS: Mention the change.
44827 2010-12-10  Eric Blake  <eblake@redhat.com>
44829         pipe-posix: new module
44830         * modules/pipe-posix: New file.
44831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
44832         (gl_UNISTD_H): Check for declaration.
44833         * modules/unistd (Makefile.am): Substitute it.
44834         * lib/unistd.in.h (pipe): Provide it for mingw.
44835         * doc/posix-functions/pipe.texi (pipe): Update documentation.
44836         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
44838 2010-12-07  Bruno Haible  <bruno@clisp.org>
44840         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
44841         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
44842         u8_strcmp_gnu.
44843         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
44845 2010-12-06  Bruno Haible  <bruno@clisp.org>
44847         Update internal documentation.
44848         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
44850 2010-12-04  Bruno Haible  <bruno@clisp.org>
44852         Put more information about failed tests into the test return codes.
44853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
44854         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
44855         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44856         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44857         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44860         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44861         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44864         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44865         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44866         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44867         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44868         returns a bit mask.
44869         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44870         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44871         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44872         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44873         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44877         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44879         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44880         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44881         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44883         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44884         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44885         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44886         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44888         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44890         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44891         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44892         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44893         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44894         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44895         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44896         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44897         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44898         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44899         gl_PRINTF_PRECISION): Likewise.
44900         * m4/regex.m4 (gl_REGEX): Likewise.
44901         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44902         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44903         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44904         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44908         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44909         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44910         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44911         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44912         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44913         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44914         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44915         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44916         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44917         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
44918         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44920         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
44921         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
44922         enumerated value.
44923         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
44925 2010-12-04  Bruno Haible  <bruno@clisp.org>
44927         Update for Solaris 11 2010-11.
44928         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
44929         Express, released in November 2010.
44931 2010-12-04  Bruno Haible  <bruno@clisp.org>
44933         nproc: Relax license.
44934         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
44935         and Paul Eggert.
44936         Requested by Ludovic Courtès <ludo@gnu.org>.
44938 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44940         utimecmp: fine-grained src to nearby coarse-grained dest
44942         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
44943         and the source is on a file system with higher-resolution time
44944         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
44945         not work, and the time stamps are close together, the algorithm to
44946         determine the exact resolution from the read-back mtime was buggy:
44947         it had a "!=" where it should have had an "==".  This bug has been
44948         in the code ever since it was introduced to gnulib.
44949         Problem reported by Dan Jacobson in
44950         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
44952 2010-11-30  Bruno Haible  <bruno@clisp.org>
44954         strerror_r-posix: Fix autoconf test.
44955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
44957 2010-11-28  Bruno Haible  <bruno@clisp.org>
44958             Paul Eggert  <eggert@cs.ucla.edu>
44960         Tests for module 'getdomainname'.
44961         * modules/getdomainname-tests: New file.
44962         * tests/test-getdomainname.c: New file, based on
44963         tests/test-gethostname.c.
44965 2010-11-28  Bruno Haible  <bruno@clisp.org>
44966             Paul Eggert  <eggert@cs.ucla.edu>
44968         getdomainname: Use the system function when possible.
44969         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
44970         (getdomainname): Replace if needed. Provide the declaration if it is
44971         missing. Don't use _GL_CXXALIAS_SYS_CAST.
44972         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
44973         (getdomainname): When the system has getdomainname, call the system
44974         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
44975         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44976         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
44977         found in libnsl. Look for the declaration also in <netdb.h>. Replace
44978         the function if its second argument is of type 'int' or if it is found
44979         in libnsl.
44980         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
44981         <sys/systeminfo.h> and sysinfo().
44982         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
44983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44984         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
44985         HAVE_GETDOMAINNAME.
44986         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
44987         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
44988         * doc/glibc-functions/getdomainname.texi: Document the problems with
44989         the getdomainname declaration.
44991 2010-11-28  Bruno Haible  <bruno@clisp.org>
44993         sys_socket: Ensure ss_family field on AIX.
44994         * lib/sys_socket.in.h (ss_family): New macro definition.
44995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
44996         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
44997         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44998         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44999         * modules/sys_socket (Makefile.am): Substitute
45000         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45001         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
45003 2010-11-27  Bruno Haible  <bruno@clisp.org>
45005         readline: Improve configure output.
45006         * m4/readline.m4 (gl_FUNC_READLINE): Make the
45007         "checking for readline..." result understandable.
45009 2010-11-27  Bruno Haible  <bruno@clisp.org>
45011         *printf-posix: Detect a bug on Solaris 10/x86.
45012         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
45013         for floating-point output.
45014         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
45015         directive.
45016         * tests/test-snprintf-posix.h (test_function): Likewise.
45017         * tests/test-sprintf-posix.h (test_function): Likewise.
45018         * tests/test-vasprintf-posix.c (test_function): Likewise.
45019         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
45020         * doc/posix-functions/printf.texi: Likewise.
45021         * doc/posix-functions/snprintf.texi: Likewise.
45022         * doc/posix-functions/sprintf.texi: Likewise.
45023         * doc/posix-functions/vfprintf.texi: Likewise.
45024         * doc/posix-functions/vprintf.texi: Likewise.
45025         * doc/posix-functions/vsnprintf.texi: Likewise.
45026         * doc/posix-functions/vsprintf.texi: Likewise.
45027         * doc/glibc-functions/obstack_printf.texi: Likewise.
45028         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45030 2010-11-27  Bruno Haible  <bruno@clisp.org>
45032         Fix link error when module libunistring-optional is in use.
45033         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
45034         * modules/striconveha-tests (Makefile.am): Likewise.
45036 2010-11-27  Bruno Haible  <bruno@clisp.org>
45038         regex: Mention link dependencies.
45039         * modules/regex (Link): New section.
45040         * modules/rpmatch (Link): Likewise.
45041         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
45043 2010-11-27  Bruno Haible  <bruno@clisp.org>
45045         ftoastr: Fix compilation error on Solaris.
45046         * lib/ftoastr.c: Include <config.h>.
45048 2010-11-27  Bruno Haible  <bruno@clisp.org>
45050         getloadavg: Update documentation.
45051         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
45053 2010-11-27  Bruno Haible  <bruno@clisp.org>
45055         sys_socket: Fix test whether the functions are declared.
45056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
45057         not <sys/select.h>.
45059 2010-11-27  Bruno Haible  <bruno@clisp.org>
45061         getpass: Make sure to get system declaration on some platforms.
45062         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
45063         gl_USE_SYSTEM_EXTENSIONS.
45064         * modules/getpass (Depends-on): Add extensions.
45066 2010-11-26  Bruno Haible  <bruno@clisp.org>
45068         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
45069         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
45070         'iconv' module is present.
45071         (ICONV_CONST): New macro.
45072         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
45073         ICONV_CONST.
45074         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
45075         set ICONV_CONST.
45076         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
45077         here.
45078         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
45079         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
45080         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
45081         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
45082         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
45083         present.
45085 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45087         ftoastr: comment fix
45088         * lib/ftoastr.c: "little" -> "little or no" in comment
45090 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
45092         stdint: port to GCC 4.3 + OSX + Octave
45093         On this platform, stdint.h is buggy and defines int64_t to long
45094         long int.  The replacement defined it to long int, causing
45095         problems with C++ style name mangling.  Instead, trust the system
45096         definition if INT64_MAX is defined, and likewise for the unsigned
45097         variant.   Problem reported by Jarno Rajahalme in
45098         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
45099         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
45100         and don't mess with int64_t and INT64_MAX in this case.
45101         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
45103 2010-11-24  Bruno Haible  <bruno@clisp.org>
45105         doc: Corrections regarding MacOS X 10.4 and 10.5.
45106         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
45107         MacOS X.
45108         Reported by Simon Josefsson.
45110 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
45112         Uninstall ".bin" files installed by relocwrapper.
45113         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
45114         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
45115         unless it is already there.
45117 2010-11-21  Bruno Haible  <bruno@clisp.org>
45119         Update for NetBSD 5.0.
45120         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45121         NetBSD; the test fails on NetBSD 5.0.
45122         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45123         about NetBSD.
45125 2010-11-21  Bruno Haible  <bruno@clisp.org>
45127         Update for HP-UX 11.23 and HP-UX 11.31.
45128         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
45129         HP-UX.
45131 2010-11-21  Bruno Haible  <bruno@clisp.org>
45133         Update for MacOS X 10.5.
45134         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45135         MacOS X; the test fails on MacOS X 10.5.8.
45136         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45137         about MacOS X.
45139 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
45141         bootstrap: add bootstrap_sync option.
45142         See discussion at
45143         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
45144         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
45145         * build-aux/bootstrap: Accept --bootstrap-sync to update
45146         bootstrap if it is not identical to the local gnulib's
45147         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
45148         enable this by default.  Accept --no-bootstrap-sync to disable
45149         it.
45151 2010-11-20  Bruno Haible  <bruno@clisp.org>
45153         Ensure that <features.h> is included before __GLIBC__ is tested.
45154         * lib/printf-parse.h: Include <features.h>.
45155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
45156         Reported by Mike Frysinger <vapier@gentoo.org>.
45158         Ensure that <features.h> is included before __GLIBC__ is tested.
45159         * lib/wchar.in.h: Include <features.h>.
45160         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
45161         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
45162         Reported by Mike Frysinger <vapier@gentoo.org>.
45164         Ensure that <features.h> is included before __GLIBC__ is tested.
45165         * lib/arpa_inet.in.h: Include <features.h>.
45166         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
45167         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
45168         Reported by Mike Frysinger <vapier@gentoo.org>.
45170         Ensure that <features.h> is included before __GLIBC__ is tested.
45171         * build-aux/link-warning.h: Include <features.h>.
45172         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
45173         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
45174         Reported by Mike Frysinger <vapier@gentoo.org>.
45176         Ensure that <features.h> is included before __GLIBC__ is tested.
45177         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
45178         Reported by Mike Frysinger <vapier@gentoo.org>.
45180 2010-11-20  Bruno Haible  <bruno@clisp.org>
45182         memmem: Fix autoconf test.
45183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
45185 2010-11-20  Bruno Haible  <bruno@clisp.org>
45187         Port to uClibc.
45188         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
45189         * lib/fcntl.in.h: Likewise.
45190         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
45191         * lib/mbrtowc.c (mbrtowc): Likewise.
45192         * lib/relocatable.c (find_shared_library_fullname): Likewise.
45193         * lib/strerror_r.c: Likewise.
45194         * lib/unistr/u8-strnlen.c: Likewise.
45195         * lib/vasnprintf.c (decimal_point_char): Likewise.
45196         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45197         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45199         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45200         * tests/test-sigaction.c (handler, main): Likewise.
45201         * lib/freading.h: Treat uClibc like a non-glibc platform.
45202         * lib/freading.c: Likewise.
45203         * lib/gettext.h: Likewise.
45204         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
45205         Likewise.
45206         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
45207         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45208         * lib/propername.c (proper_name_utf8): Likewise.
45209         * lib/spawn.in.h: Likewise.
45210         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
45211         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
45212         mem_cd_iconveh_internal): Likewise.
45213         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
45214         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
45215         strstr, strcasestr): Likewise.
45216         * lib/unicodeio.c (unicode_to_mb): Likewise.
45217         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
45218         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
45219         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
45220         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
45221         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
45222         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
45223         * lib/unistr/u8-stpncpy.c: Likewise.
45224         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45225         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
45226         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45227         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45228         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45229         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
45230         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
45231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
45232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
45233         Likewise.
45234         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
45237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
45240         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45241         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
45242         * tests/test-getopt.h (OPTIND_MIN): Likewise.
45243         * tests/test-striconveha.c (main): Likewise.
45244         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45245         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
45246         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
45247         * doc/posix-functions/getline.texi: Likewise.
45248         Reported by Mike Frysinger <vapier@gentoo.org>.
45250 2010-11-20  Bruno Haible  <bruno@clisp.org>
45252         nproc: Fix condition.
45253         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
45254         HAVE_PTHREAD_AFFINITY_NP.
45256 2010-11-20  Bruno Haible  <bruno@clisp.org>
45258         Fix a comment.
45259         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
45261 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
45263         ftoastr: don't assume snprintf
45264         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
45265         Implement a subset of snprintf here, by using sprintf safely.
45266         * modules/ftoastr (Depends-on): Remove snprintf.
45268 2010-11-19  Jim Meyering  <meyering@redhat.com>
45270         test-rename.h: fix compilation failure
45271         * tests/test-rename.h (test_rename): Add omitted "}".
45273 2010-11-17  Jim Meyering  <meyering@redhat.com>
45275         maint.mk: add a URL discussing the no-@acronym policy
45276         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
45278 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45280         ftoastr: depend on snprintf, improve comments
45281         * lib/ftoastr.c: Also mention Loitsch's draft.
45282         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
45283         needed in the current implementation, but it might simplify
45284         speeding up the code later.
45285         * modules/ftoastr: Depend on snprintf; this improves portability.
45286         Suggested by Bruno Haible in the same email.
45288         ftoastr: port to hosts lacking strtof and strtold
45289         Problem reported by Bruno Haible in
45290         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
45291         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
45292         environment and strtold (and presumably strtof) are not available.
45293         * modules/ftoastr (Files): Add m4/c-strtod.m4.
45294         (configure.ac): Require gl_C99_STRTOLD.
45296 2010-11-18  Bruno Haible  <bruno@clisp.org>
45298         c-strtold: Avoid link error on AIX 7.
45299         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
45300         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
45301         (gl_C_STRTOLD): Test whether strtold_l exists.
45302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45304 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45306         intprops: new macro INT_BITS_STRLEN_BOUND
45307         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
45308         ftoastr.h.  This exposes an internal of intprops.h that was formerly
45309         not exposed.  Also, it uses a slightly tighter bound than before;
45310         though this makes no practical difference, we might as well be as
45311         tight as we easily can.
45313         ftoastr: new module, for lossless conversion of floats to short strings
45314         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
45315         * modules/ftoastr: New files.
45317 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45319         bootstrap: port to Solaris sed
45320         * build-aux/bootstrap (get_version): Port to Solaris sed.
45321         See Ralf Wildenhues's note in
45322         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
45324 2010-11-14  Jim Meyering  <meyering@redhat.com>
45326         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
45327         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
45328         and move definition closer to sole use.
45330 2010-11-13  Jim Meyering  <meyering@redhat.com>
45332         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
45333         Now we require at least autoconf-2.59, which means the work-around
45334         is no longer needed.
45335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
45336         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45337         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45338         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45339         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45341 2010-11-13  Bruno Haible  <bruno@clisp.org>
45343         rename, renameat: Avoid test failures at NFS mounted locations.
45344         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
45345         functions.
45346         (test_rename): Use assert_nonexistent.
45347         * tests/test-rename.c: Include <dirent.h>.
45348         * tests/test-renameat.c: Likewise.
45349         Reported by Gary V. Vaughan <gary@gnu.org>.
45351         rename, renameat: Document Linux bug with NFS
45352         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
45353         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
45354         * doc/posix-functions/renameat.texi: Likewise.
45355         Suggested by Eric Blake.
45357 2010-11-13  Bruno Haible  <bruno@clisp.org>
45359         rename test: Add comments.
45360         * tests/test-rename.h (test_rename): Add structure and comments.
45362 2010-11-13  Eric Blake  <eblake@redhat.com>
45364         maintainer-makefile: cover a few more files
45365         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
45366         scripts generated within C files, for libvirt.
45368 2010-11-13  Bruno Haible  <bruno@clisp.org>
45370         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
45371         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
45372         character, return the number of bytes that belong together, not always
45373         1.
45374         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
45375         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
45376         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
45377         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
45378         number of bytes of an invalid character.
45379         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
45380         (main): Invoke it.
45381         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
45382         results.
45383         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
45384         malformed byte sequences.
45385         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
45386         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
45387         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
45388         Reported by Ben Pfaff and Paolo Bonzini.
45390 2010-11-13  Bruno Haible  <bruno@clisp.org>
45392         openat: Work around glibc bug with fchownat() and empty file names.
45393         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
45394         (gl_FUNC_FCHOWNAT): Invoke it.
45395         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
45396         * doc/posix-functions/fchownat.texi: Document the glibc bug.
45397         Reported by Gary V. Vaughan <gary@gnu.org>.
45399 2010-11-13  Bruno Haible  <bruno@clisp.org>
45401         openat: Ensure autoconf macro ordering.
45402         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
45403         gl_USE_SYSTEM_EXTENSIONS.
45404         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
45406 2010-11-13  Bruno Haible  <bruno@clisp.org>
45408         Update comments.
45409         * lib/unistr/u8-check.c: Update file name in comments.
45410         * lib/unistr/u8-mblen.c: Likewise.
45411         * lib/unistr/u8-prev.c: Likewise.
45412         * lib/unistr/u8-strmblen.c: Likewise.
45413         * lib/unistr/u8-strmbtouc.c: Likewise.
45415 2010-11-13  Jim Meyering  <meyering@redhat.com>
45417         tests: avoid test failure on Solaris 10 due to lack of PATH export
45418         * tests/test-update-copyright.sh: Don't forget to export PATH.
45420         init.sh: ensure that IFS is defined, just in case...
45421         * tests/init.sh (setup_): Ensure that IFS is defined,
45422         so that saving and restoring it works as expected.  This
45423         appears to be useful at least for an old version of dash
45424         from a long time ago (RH 6).  See here for details:
45425         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
45427         maint.mk: tighten "test a == b" check
45428         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
45429         test to files that contain something like #!/bin/sh.
45430         Without this, coreutils would get two false positives in
45431         the comments of C source files.
45433 2010-11-12  Eric Blake  <eblake@redhat.com>
45435         bootstrap: fix typo in previous attempt
45436         * build-aux/bootstrap (buildreq): Correct the grouping.
45437         Reported by Paul Eggert.
45439         maintainer-makefile: prohibit test x == x
45440         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
45441         Based on a report by Matthias Bolte.
45443         bootstrap: allow FreeBSD gzip
45444         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
45445         which has no '.' and goes to stderr.
45446         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
45447         Reported by Matthias Bolte.
45449         maintainer-makefile: check for i18n setup
45450         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
45451         will likely work.
45453 2010-11-12  Bruno Haible  <bruno@clisp.org>
45455         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
45456         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
45457         * lib/nanosleep.c (nanosleep): Likewise.
45459 2010-11-11  Bruno Haible  <bruno@clisp.org>
45461         fcntl-h: Fix for use of C++ on glibc systems.
45462         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45463         also on glibc systems in C++ mode.
45464         Reported by Gary V. Vaughan <gary@gnu.org>.
45466 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45468         mknod: avoid false failure with dash
45469         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
45471 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45473         unlink: Fix "is it should" typo in diagnostic.
45474         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
45475         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
45477 2010-11-11  Bruno Haible  <bruno@clisp.org>
45479         Tests for module 'strerror_r-posix'.
45480         * modules/strerror_r-posix-tests: New file.
45481         * tests/test-strerror_r.c: New file.
45482         * tests/test-string-c++.cc: Check the signature of strerror_r.
45484         New module 'strerror_r-posix'.
45485         * lib/string.in.h (strerror_r): New declaration.
45486         * lib/strerror_r.c: New file.
45487         * m4/strerror_r.m4: New file.
45488         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
45489         of strerror_r.
45490         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
45491         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45492         * modules/strerror_r-posix: New file.
45493         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
45494         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45495         * doc/posix-functions/strerror_r.texi: Mention the new module and the
45496         portability problems.
45498 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
45500         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
45501         line is also considered for output. Quoted function name in shell
45502         command, so temporary files for functions like MyClass::operator()
45503         are removed correctly without errors.
45505 2010-11-09  Bruno Haible  <bruno@clisp.org>
45507         * doc/posix-functions/strerror.texi: List more failing platforms.
45509         * doc/posix-functions/strerror.texi: Add a comment.
45511 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45513         fdopendir: fix bug on MacOS X when low on file descriptors
45515         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
45516         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
45517         All callers changed.
45518         (fdopendir): Invoke save_cwd at the top level, not after using
45519         multiple dup() calls to use up file descriptors.  Then retry
45520         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
45521         less than the maximum number of open file descriptors, because
45522         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
45523         on Mac OS X 10.6.4 for tar 1.24
45524         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
45525         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
45526         and for tar 1.25
45527         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
45529 2010-11-07  Bruno Haible  <bruno@clisp.org>
45531         vasnprintf: Support I flag on glibc systems.
45532         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
45533         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
45534         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
45535         snprintf function.
45536         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
45537         glibc systems.
45538         * tests/test-vasnprintf-posix3.c: New file.
45539         * modules/vasnprintf-posix-tests (Files): Add it.
45540         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
45542 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45544         [html] Fix copy/paste bug: Use unique name for compiler warnings.
45545         * MODULES.html.sh: For compiler warnings, use name
45546         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
45548 2010-11-05  Eric Blake  <eblake@redhat.com>
45550         ceil, floor: avoid spurious failure with icc
45551         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
45552         [denormals-as-zero] when optimizing without -mieee-fp option.
45553         * tests/test-floorf2.c (floorf_reference): Likewise.
45554         * tests/test-ceilf1.c (dummy): New function.
45555         (main): Use it to outsmart icc's optimization.
45556         * tests/test-floorf1.c (dummy, main): Likewise.
45558         tests: require working signbit
45559         * modules/ceilf-tests (Depends-on): Add signbit.
45560         * modules/ceill-tests (Depends-on): Likewise.
45561         * modules/floorf-tests (Depends-on): Likewise.
45562         * modules/floorl-tests (Depends-on): Likewise.
45563         * modules/round-tests (Depends-on): Likewise.
45564         * modules/roundf-tests (Depends-on): Likewise.
45565         * modules/roundl-tests (Depends-on): Likewise.
45566         * modules/trunc-tests (Depends-on): Likewise.
45567         * modules/truncf-tests (Depends-on): Likewise.
45568         * modules/truncl-tests (Depends-on): Likewise.
45570         strtod: work around icc bug
45571         * lib/strtod.c (minus_zero): Define to working value.
45572         (strtod): Use it to avoid icc bug.
45574         copysign: enhance tests
45575         * modules/copysign-tests (Files): Add minus-zero.h.
45576         * tests/test-copysign.c (main): Also test zeros.
45578 2010-11-04  Eric Blake  <eblake@redhat.com>
45580         ceil, floor, round, trunc: enhance tests of -0
45581         * tests/test-ceilf1.c (main): Ensure correct sign of result.
45582         * tests/test-ceill.c (main): Likewise.
45583         * tests/test-floorf1.c (main): Likewise.
45584         * tests/test-floorl.c (main): Likewise.
45585         * tests/test-round1.c (main): Likewise.
45586         * tests/test-roundf1.c (main): Likewise.
45587         * tests/test-roundl.c (main): Likewise.
45588         * tests/test-trunc1.c (main): Likewise.
45589         * tests/test-truncf1.c (main): Likewise.
45590         * tests/test-truncl.c (main): Likewise.
45592 2010-11-04  Eric Blake  <eblake@redhat.com>
45594         frexp, tests: work around ICC bug with -zero
45595         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45596         works with more compilers.
45597         * tests/minus-zero.h: New file.
45598         * modules/ceilf-tests (Files): Include it.
45599         * modules/ceill-tests (Files): Likewise.
45600         * modules/floorf-tests (Files): Likewise.
45601         * modules/floorl-tests (Files): Likewise.
45602         * modules/frexp-nolibm-tests (Files): Likewise.
45603         * modules/frexp-tests (Files): Likewise.
45604         * modules/frexpl-nolibm-tests (Files): Likewise.
45605         * modules/frexpl-tests (Files): Likewise.
45606         * modules/isnan-tests (Files): Likewise.
45607         * modules/isnand-nolibm-tests (Files): Likewise.
45608         * modules/isnand-tests (Files): Likewise.
45609         * modules/isnanf-nolibm-tests (Files): Likewise.
45610         * modules/isnanf-tests (Files): Likewise.
45611         * modules/isnanl-nolibm-tests (Files): Likewise.
45612         * modules/isnanl-tests (Files): Likewise.
45613         * modules/round-tests (Files): Likewise.
45614         * modules/roundf-tests (Files): Likewise.
45615         * modules/roundl-tests (Files): Likewise.
45616         * modules/ldexpl-tests (Files): Likewise.
45617         * modules/signbit-tests (Files): Likewise.
45618         * modules/snprintf-posix-tests (Files): Likewise.
45619         * modules/sprintf-posix-tests (Files): Likewise.
45620         * modules/strtod-tests (Files): Likewise.
45621         * modules/trunc-tests (Files): Likewise.
45622         * modules/truncf-tests (Files): Likewise.
45623         * modules/truncl-tests (Files): Likewise.
45624         * modules/vsnprintf-posix-tests (Files): Likewise.
45625         * modules/vsprintf-posix-tests (Files): Likewise.
45626         * modules/vasnprintf-posix-tests (Files): Likewise.
45627         * modules/vasprintf-posix-tests (Files): Likewise.
45628         * tests/test-ceilf1.c (main): Use it.
45629         * tests/test-ceill.c (main): Likewise.
45630         * tests/test-floorf1.c (main): Likewise.
45631         * tests/test-floorl.c (main): Likewise.
45632         * tests/test-frexp.c (main): Likewise.
45633         * tests/test-frexpl.c (main): Likewise.
45634         * tests/test-isnan.c (main): Likewise.
45635         * tests/test-isnand.h (main): Likewise.
45636         * tests/test-isnanf.h (main): Likewise.
45637         * tests/test-isnanl.h (main): Likewise.
45638         * tests/test-ldexpl.c (main): Likewise.
45639         * tests/test-round.c (main): Likewise.
45640         * tests/test-roundf.c (main): Likewise.
45641         * tests/test-roundl.c (main): Likewise.
45642         * tests/test-signbit.c (test_signbitf, test_signbitd)
45643         (test_signbitl): Likewise.
45644         * tests/test-snprintf-posix.h (test_function): Likewise.
45645         * tests/test-sprintf-posix.h (test_function): Likewise.
45646         * tests/test-strtod.c (main): Likewise.
45647         * tests/test-trunc1.c (main): Likewise.
45648         * tests/test-truncf1.c (main): Likewise.
45649         * tests/test-truncl.c (main): Likewise.
45651         isnanl: work around icc bug
45652         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45654 2010-11-03  Eric Blake  <eblake@redhat.com>
45656         tests: fix compiler warnings
45657         * tests/test-getopt.h (test_getopt): Fix condition.
45658         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45659         * tests/test-pipe2.c (main): Likewise.
45660         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45662         utimens: fix broken m4 test
45663         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45665 2010-10-28  Bruno Haible  <bruno@clisp.org>
45667         posix_spawn*, getdtablesize: Relax license.
45668         * modules/posix_spawn (License): Change to LGPLv2+.
45669         * modules/posix_spawnp (License): Likewise.
45670         * modules/posix_spawn-internal (License): Likewise.
45671         * modules/posix_spawnattr_init (License): Likewise.
45672         * modules/posix_spawnattr_getflags (License): Likewise.
45673         * modules/posix_spawnattr_setflags (License): Likewise.
45674         * modules/posix_spawnattr_getpgroup (License): Likewise.
45675         * modules/posix_spawnattr_setpgroup (License): Likewise.
45676         * modules/posix_spawnattr_getschedparam (License): Likewise.
45677         * modules/posix_spawnattr_setschedparam (License): Likewise.
45678         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45679         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45680         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45681         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45682         * modules/posix_spawnattr_getsigmask (License): Likewise.
45683         * modules/posix_spawnattr_setsigmask (License): Likewise.
45684         * modules/posix_spawnattr_destroy (License): Likewise.
45685         * modules/posix_spawn_file_actions_init (License): Likewise.
45686         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45687         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45688         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45689         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45690         * modules/getdtablesize (License): Likewise.
45691         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45693 2010-10-26  Bruno Haible  <bruno@clisp.org>
45695         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45696         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45697         Cygwin and mingw.
45698         Suggested by Eric Blake.
45700 2010-10-26  Bruno Haible  <bruno@clisp.org>
45702         stdio: Work around compilation error due to renameat() on Solaris 10.
45703         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45704         * lib/renameat.c: Don't include <unistd.h> here.
45705         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45706         Reported by Paul Eggert and Eric Blake.
45708 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45710         renameat: port to Solaris 10, which declares renameat in unistd.h
45712         * lib/renameat.c: Include unistd.h before stdio.h, because
45713         Solaris 10 declares renameat in unistd.h.  Problem encountered
45714         when building GNU tar 1.24 on Solaris 10.
45716 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45718         fdopendir: fix C89 compilation
45719         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45720         compilers.
45722 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45724         inttostr: simplify by removing unnecessary redundancy
45725         * lib/anytostr.c: Don't include verify.h.
45726         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45727         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45728         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45729         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45730         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45731         Likewise.
45732         * modules/inttostr (Depends-on): Remove 'verify'.
45734 2010-10-23  Bruno Haible  <bruno@clisp.org>
45736         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45737         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45738         Reported by Eric Blake.
45740 2010-10-23  Bruno Haible  <bruno@clisp.org>
45742         Tests: Fix LOCALE_JA on MirBSD 10.
45743         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
45744         to an UTF-8 locale.
45745         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
45746         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45747         Reported by Eric Blake.
45749 2010-10-21  Bruno Haible  <bruno@clisp.org>
45751         nl_langinfo test: Avoid test failure on NetBSD 5.
45752         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
45753         Reported by Eric Blake.
45755 2010-10-21  Eric Blake  <eblake@redhat.com>
45757         c-stack: work around libsigsegv 2.8 bug
45758         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
45759         overflow on at least PowerPC64.
45761 2010-10-17  Bruno Haible  <bruno@clisp.org>
45763         userspec: Drop redundant file.
45764         * modules/userspec (Files): Remove lib/inttostr.h.
45766 2010-10-17  Bruno Haible  <bruno@clisp.org>
45768         nl_langinfo tests: Silence some warnings.
45769         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
45770         Reported by Jim Meyering.
45772 2010-10-17  Bruno Haible  <bruno@clisp.org>
45774         Make use of GCC's attribute __alloc_size__.
45775         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
45776         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
45777         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
45778         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
45779         __alloc_size__.
45780         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45781         Suggested by Jim Meyering.
45783 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
45785         bootstrap: anchor .gitignore entries.
45786         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
45787         with...
45788         (insert_vc_ignore): ... this new function, which prepends `/' to
45789         all .gitignore entries before passing them to
45790         insert_sorted_if_absent.
45792 2010-10-16  Bruno Haible  <bruno@clisp.org>
45794         nextafter: Fix configure check.
45795         * modules/nextafter (configure.ac): Correct expected prototype.
45797 2010-10-16  Bruno Haible  <bruno@clisp.org>
45799         termios: Update documentation.
45800         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
45802 2010-10-16  Bruno Haible  <bruno@clisp.org>
45804         tests: Make them compile with TinyCC.
45805         * tests/test-strstr.c (main): Remove parentheses around array
45806         initializer.
45808 2010-10-15  Eric Blake  <eblake@redhat.com>
45810         ignore-value: make header idempotent
45811         * lib/ignore-value.h: Add double-inclusion guards.
45812         Reported by Stefan Berger.
45814 2010-10-15  Jim Meyering  <meyering@redhat.com>
45816         GNUmakefile: handle "stable" target, not "major"
45817         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
45818         lists in maint.mk and announce-gen.  Without this, "make stable"
45819         would fail to ensure that $(VERSION) is up to date.
45821 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
45823         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
45824         & co.
45826 2010-10-14  Bruno Haible  <bruno@clisp.org>
45828         vasnprintf: Don't set errno to 0.
45829         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
45830         block that sets it to 0.
45831         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
45833 2010-10-14  Bruno Haible  <bruno@clisp.org>
45835         socketlib: Fix.
45836         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
45837         gl_PREREQ_SYS_H_WINSOCK2.
45838         Reported by Ian Beckwith <ianb@erislabs.net>.
45840 2010-10-13  Jim Meyering  <meyering@redhat.com>
45842         test-select-stdin.c: avoid warn_unused_result warnings
45843         * tests/test-select-stdin.c: Include "macros.h".
45844         ASSERT that read and fflush succeed.
45846 2010-10-13  Jim Meyering  <meyering@redhat.com>
45848         git-version-gen: do require git-VC'd files in cwd
45849         * build-aux/git-version-gen: Reject a git version string
45850         if there are no commits associated with the current directory.
45851         This avoids an unlikely false-positive (unrelated dir whose parent
45852         repository also contains a tag matching v*), as pointed out
45853         by Giuseppe Scrivano in
45854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
45856 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45858         argv-iter: omit nonconforming declaration
45859         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45860         enum arg_iter_err declaration, which doesn't conform to C99.
45861         Solaris 10 cc warns about this.
45863 2010-10-13  Eric Blake  <eblake@redhat.com>
45865         termios: fix compilation on mingw
45866         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45867         (gl_TERMIOS_H): Adjust it on mingw.
45868         * modules/termios (Makefile.am): Substitute new key.
45869         * lib/termios.in.h (includes): Make include_next conditional.
45870         * doc/posix-headers/termios.texi (termios.h): Update
45871         documentation.
45872         Reported by Daniel P. Berrange.
45874 2010-10-13  Jim Meyering  <meyering@redhat.com>
45876         git-version-gen: don't require that .git/ be in the current dir
45877         * build-aux/git-version-gen: Adjust this script so that it works
45878         when run from any working directory beneath the top-level .git/-
45879         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45882         test-select: avoid warn_unused_result warnings
45883         * tests/test-select.c: Include "macros.h".
45884         ASSERT that each call to read, write, and pipe succeeds.
45885         While not technically required, also check each "close".
45886         * modules/select-tests (Files): Add tests/macros.h.
45888         test-symlinkat: remove declaration of unused local
45889         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45891         test-inttostr: avoid shadowing warnings
45892         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45893         and use malloc rather than the stack for the same reason as
45894         mentioned in the comment justifying the other allocation.
45896 2010-10-11  Bruno Haible  <bruno@clisp.org>
45898         stdlib: Allow multiple gnulib generated replacements to coexist.
45899         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45900         Reported by Sam Steingold <sds@gnu.org>.
45902 2010-10-11  Jim Meyering  <meyering@redhat.com>
45904         fix a documentation typo
45905         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45907 2010-10-11  Eric Blake  <eblake@redhat.com>
45909         futimens: work around Solaris 11 bug
45910         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45911         * tests/test-futimens.h (test_futimens): Enhance, rather than
45912         weaken test.
45913         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45915 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45917         Indentation.
45918         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
45919         higher-level operators more to the left.
45921 2010-10-11  Jim Meyering  <meyering@redhat.com>
45923         test-futimens: avoid unwarranted test failure on Solaris 5.11
45924         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
45925         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
45926         because it tries to dereference the NULL name argument.
45928 2010-10-11  Bruno Haible  <bruno@clisp.org>
45930         Indentation.
45931         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
45932         indentation.
45934 2010-10-11  Jim Meyering  <meyering@redhat.com>
45936         spawn.in.h: make indentation consistent with parentheses
45937         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
45938         Make indentation consistent with parentheses.
45940 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
45942         Fix mismatched parens in previous commit
45943         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
45944         parens.
45946 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45948         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
45950         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45951         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
45952         * lib/malloca.c: Include "verify.h".
45953         (verify1): Remove, replacing with a verify call.
45954         * lib/relocwrapper.c (verify1): Likewise.
45955         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
45956         Likewise.
45957         * modules/malloca (Depends-on): Add 'verify'.
45958         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
45959         * modules/vasnprintf (Depends-on): Add 'verify'.
45960         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45961         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45962         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45963         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45964         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45966         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45968         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
45970         Formerly the style was sometimes 2*X - 1, because the C standard
45971         was wrongly thought to disallow ?: in integral constant expressions.
45972         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
45973         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
45974         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
45975         * lib/stdint.in.h (_verify_intmax_size): Likewise.
45976         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
45977         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
45978         verify that time_t cannot be floating.
45980 2010-10-08  Eric Blake  <eblake@redhat.com>
45982         time: enforce recent POSIX ruling that time_t is integral
45983         * lib/time.in.h (__time_t_must_be_integral): Detect any
45984         problematic systems, allowing the rest of gnulib to assume POSIX.
45986 2010-10-08  Jim Meyering  <meyering@redhat.com>
45988         fdopendir: fix a bug on systems lacking openat and /proc support
45989         OpenBSD 4.7 is one such system.  The most noticeable effect was
45990         failure of any application making nontrivial use of fts: rm, du,
45991         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
45992           ./rm: traversal failed: `a': Bad file descriptor
45993         Debugging that, you see that even though FD 6 was closed just
45994         prior to the opendir call in fd_clone_opendir, its resulting
45995         dir->dd_fd was 8, rather than the expected value of 6:
45997         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
45998         93                close (fd);
45999         (gdb) n
46000         94                dir = fd_clone_opendir (dupfd);
46001         (gdb) n
46002         95                saved_errno = errno;
46003         (gdb) p dir->dd_fd
46004         $11 = 8
46006         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
46007         The problem is that on OpenBSD, fd_clone_opendir has to resort
46008         to using the old-style save/restore CWD mechanism, due to its
46009         lack of openat/proc support, and *that* would steal the FD (6)
46010         that opendir was supposed to use.
46012         The fix is to squirrel away the desired FD so that save_cwd uses a
46013         different one, and then free the dest FD right before calling opendir.
46014         That guarantees opendir will use the required file descriptor.
46016         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
46018 2010-10-08  Bruno Haible  <bruno@clisp.org>
46020         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
46021         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
46023 2010-10-08  Bruno Haible  <bruno@clisp.org>
46025         nanosleep: Make replacement POSIX compliant.
46026         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
46027         is out of range.
46028         Reported by Jim Meyering.
46030 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46032         bootstrap: add hook for altering gnulib.mk, for Bison
46033         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
46034         the Bison bootstrapping process can rewrite file names and variables
46035         in this file before later parts of 'bootstrap' use the file.
46036         Bison wants to include lib/gnulib.mk from the top-level makefile,
46037         so it needs the file names in this file to be relative to the top
46038         level, not relative to lib; plus it needs variable names to be
46039         rewritten.
46040         (slurp): Use the new function.
46042         bootstrap: reformat for readability
46043         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
46045 2010-10-08  Eric Blake  <eblake@redhat.com>
46047         docs: update cygwin progress
46048         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
46049         1.7.7.
46050         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
46051         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
46052         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
46053         * doc/posix-functions/carg.texi (carg): Likewise.
46054         * doc/posix-functions/cargf.texi (cargf): Likewise.
46055         * doc/posix-functions/casin.texi (casin): Likewise.
46056         * doc/posix-functions/casinf.texi (casinf): Likewise.
46057         * doc/posix-functions/casinh.texi (casinh): Likewise.
46058         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
46059         * doc/posix-functions/catan.texi (catan): Likewise.
46060         * doc/posix-functions/catanf.texi (catanf): Likewise.
46061         * doc/posix-functions/catanh.texi (catanh): Likewise.
46062         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
46063         * doc/posix-functions/ccos.texi (ccos): Likewise.
46064         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
46065         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
46066         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
46067         * doc/posix-functions/cexp.texi (cexp): Likewise.
46068         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
46069         * doc/posix-functions/cimag.texi (cimag): Likewise.
46070         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
46071         * doc/posix-functions/clog.texi (clog): Likewise.
46072         * doc/posix-functions/clogf.texi (clogf): Likewise.
46073         * doc/posix-functions/conj.texi (conj): Likewise.
46074         * doc/posix-functions/conjf.texi (conjf): Likewise.
46075         * doc/posix-functions/cpow.texi (cpow): Likewise.
46076         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
46077         * doc/posix-functions/cproj.texi (cproj): Likewise.
46078         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
46079         * doc/posix-functions/creal.texi (creal): Likewise.
46080         * doc/posix-functions/crealf.texi (crealf): Likewise.
46081         * doc/posix-functions/csin.texi (csin): Likewise.
46082         * doc/posix-functions/csinf.texi (csinf): Likewise.
46083         * doc/posix-functions/csinh.texi (csinh): Likewise.
46084         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
46085         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
46086         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
46087         * doc/posix-functions/ctan.texi (ctan): Likewise.
46088         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
46089         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
46090         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
46091         * doc/posix-headers/complex.texi (complex.h): Likewise.
46093 2010-10-07  Jim Meyering  <meyering@redhat.com>
46095         parse-datetime: avoid compilation failure on OpenBSD 4.7
46096         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
46097         This works around a compilation failure on OpenBSD 4.7:
46098         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
46100 2010-10-07  Eric Blake  <eblake@redhat.com>
46102         docs: update cygwin progress
46103         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
46104         1.7.6.
46105         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
46106         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
46107         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
46108         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
46109         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
46110         Likewise.
46111         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
46112         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
46113         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
46114         Likewise.
46115         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
46116         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
46117         Likewise.
46118         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
46119         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
46120         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
46121         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
46122         Likewise.
46123         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
46124         Likewise.
46125         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
46127         docs: update parse-datetime history
46128         * doc/parse-datetime.texi (Authors of parse_datetime): Better
46129         documentation of this function's history and alternatives.
46131         cygwin: use more robust version check
46132         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
46133         exclude an eventual cygwin 1.9.1.
46134         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46136         (gl_FUNC_STRCASESTR): Likewise.
46137         Reported by Bruno Haible.
46139 2010-10-06  Bruno Haible  <bruno@clisp.org>
46141         string, sys_select: Avoid #including large headers unless necessary.
46142         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
46143         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
46144         OSF/1, BeOS, Haiku.
46145         Reported by Jim Meyering.
46147 2010-10-05  Eric Blake  <eblake@redhat.com>
46149         memmem, strstr, strcasestr: fix bug with long periodic needle
46150         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
46151         periodic needle having false positive.
46152         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
46153         and cygwin 1.7.7.
46154         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
46155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46156         (gl_FUNC_STRCASESTR): Likewise.
46157         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46158         * tests/test-memmem.c (main): Expose the bug.
46159         * tests/test-strcasestr.c (main): Likewise.
46160         * tests/test-strstr.c (main): Likewise.
46161         * tests/test-c-strcasestr.c (main): Likewise.
46162         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
46163         * doc/posix-functions/strstr.texi (strstr): Likewise.
46164         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46165         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
46167 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46169         parse-datetime: do some more renaming
46170         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
46171         parse_datetime, not get_date.  Mention the renaming.
46172         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
46173         in comments.
46174         * m4/bison.m4: Likewise.
46176 2010-10-05  Eric Blake  <eblake@redhat.com>
46178         parse-datetime: better name than get_date
46179         * NEWS: Reword the deprecation notice.
46180         * modules/get_date: Rename to modules/parse-datetime.
46181         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
46182         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
46183         * lib/get_date.y: Rename to lib/parse-datetime.y.
46184         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
46185         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
46186         * doc/getdate.texi: Provide fallback wrapper.
46187         * lib/getdate.h: Move guts, and wrap...
46188         * lib/parse-datetime.h: ...new file.
46189         * lib/parse-datetime.y (get_date): Rename...
46190         (parse_datetime): ...to this.
46191         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
46192         (gl_PARSE_DATETIME): ...to this.
46193         * doc/posix-functions/getdate.texi (get_date): Provide fallback
46194         documentation.
46195         * modules/getdate (Files): Provide fallback docs and header.
46196         (Notice, Depends-on): Update references.
46197         * tests/test-parse-datetime.c: Likewise.
46198         * DEPENDENCIES: Likewise.
46199         * MODULES.html.sh (Date and time <time.h>): Likewise.
46200         * doc/parse-datetime.texi (Date input formats)
46201         (Authors of parse_datetime): Likewise.
46202         * modules/parse-datetime (Files, configure.ac, Makefile.am)
46203         (Include): Likewise.
46204         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
46205         * gnulib-tool: Likewise.
46206         * m4/bison.m4 (gl_BISON): Likewise.
46207         Suggested by Bruno Haible.
46209 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46211         more ports to Solaris tr, which needs [] around ranges
46212         * gnulib-tool: Solaris tr needs [] around ranges.
46213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46214         * tests/test-pipe-filter-gi1.c (main): Likewise.
46215         * tests/test-pipe-filter-ii1.c (main): Likewise.
46217 2010-10-05  Eric Blake  <eblake@redhat.com>
46219         bootstrap: fix Solaris regression
46220         * build-aux/bootstrap (check_versions): Solaris tr still needs []
46221         around ranges.
46222         Reported by Pádraig Brady.
46224         bootstrap: work with pkg-config
46225         * build-aux/bootstrap (check_versions): Also transliterate - in
46226         prerequisite name.
46227         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
46228         prerequisites that were already found, to avoid confusion.
46229         Reported by Justin Clift.
46231         faccessat: remove unused wrappers
46232         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
46233         presence of these wrappers dragged in -lgen on Solaris.
46234         Reported by Clemens Brogi; fix suggested by Paul Eggert.
46236 2010-10-05  Jim Meyering  <meyering@redhat.com>
46238         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
46239         * Makefile (sc_pragma_columns): New syntax-check rule.
46241 2010-10-04  Bruno Haible  <bruno@clisp.org>
46243         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
46244         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
46245         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
46246         Reported by Bruce Korb and Eric Blake.
46248 2010-10-04  Bruno Haible  <bruno@clisp.org>
46250         threadlib: Make option --with-libpth-prefix work.
46251         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
46252         use $LIBPTH, not just -lpth.
46254 2010-10-04  Bruno Haible  <bruno@clisp.org>
46256         Avoid line length limitation from HP NonStop system header files.
46257         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
46258         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
46259         * lib/ctype.in.h: Likewise.
46260         * lib/dirent.in.h: Likewise.
46261         * lib/errno.in.h: Likewise.
46262         * lib/fcntl.in.h: Likewise.
46263         * lib/float.in.h: Likewise.
46264         * lib/getopt.in.h: Likewise.
46265         * lib/iconv.in.h: Likewise.
46266         * lib/inttypes.in.h: Likewise.
46267         * lib/langinfo.in.h: Likewise.
46268         * lib/locale.in.h: Likewise.
46269         * lib/math.in.h: Likewise.
46270         * lib/netdb.in.h: Likewise.
46271         * lib/netinet_in.in.h: Likewise.
46272         * lib/poll.in.h: Likewise.
46273         * lib/pthread.in.h: Likewise.
46274         * lib/pty.in.h: Likewise.
46275         * lib/sched.in.h: Likewise.
46276         * lib/se-selinux.in.h: Likewise.
46277         * lib/search.in.h: Likewise.
46278         * lib/signal.in.h: Likewise.
46279         * lib/spawn.in.h: Likewise.
46280         * lib/stdarg.in.h: Likewise.
46281         * lib/stddef.in.h: Likewise.
46282         * lib/stdint.in.h: Likewise.
46283         * lib/stdio.in.h: Likewise.
46284         * lib/stdlib.in.h: Likewise.
46285         * lib/string.in.h: Likewise.
46286         * lib/strings.in.h: Likewise.
46287         * lib/sys_file.in.h: Likewise.
46288         * lib/sys_ioctl.in.h: Likewise.
46289         * lib/sys_select.in.h: Likewise.
46290         * lib/sys_socket.in.h: Likewise.
46291         * lib/sys_stat.in.h: Likewise.
46292         * lib/sys_time.in.h: Likewise.
46293         * lib/sys_times.in.h: Likewise.
46294         * lib/sys_utsname.in.h: Likewise.
46295         * lib/sys_wait.in.h: Likewise.
46296         * lib/sysexits.in.h: Likewise.
46297         * lib/termios.in.h: Likewise.
46298         * lib/time.in.h: Likewise.
46299         * lib/unistd.in.h: Likewise.
46300         * lib/wchar.in.h: Likewise.
46301         * lib/wctype.in.h: Likewise.
46302         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
46303         * modules/ctype (Makefile.am): Likewise.
46304         * modules/dirent (Makefile.am): Likewise.
46305         * modules/errno (Makefile.am): Likewise.
46306         * modules/fcntl-h (Makefile.am): Likewise.
46307         * modules/float (Makefile.am): Likewise.
46308         * modules/getopt-posix (Makefile.am): Likewise.
46309         * modules/iconv-h (Makefile.am): Likewise.
46310         * modules/inttypes (Makefile.am): Likewise.
46311         * modules/langinfo (Makefile.am): Likewise.
46312         * modules/locale (Makefile.am): Likewise.
46313         * modules/math (Makefile.am): Likewise.
46314         * modules/netdb (Makefile.am): Likewise.
46315         * modules/netinet_in (Makefile.am): Likewise.
46316         * modules/poll-h (Makefile.am): Likewise.
46317         * modules/pthread (Makefile.am): Likewise.
46318         * modules/pty (Makefile.am): Likewise.
46319         * modules/sched (Makefile.am): Likewise.
46320         * modules/search (Makefile.am): Likewise.
46321         * modules/selinux-h (Makefile.am): Likewise.
46322         * modules/signal (Makefile.am): Likewise.
46323         * modules/spawn (Makefile.am): Likewise.
46324         * modules/stdarg (Makefile.am): Likewise.
46325         * modules/stddef (Makefile.am): Likewise.
46326         * modules/stdint (Makefile.am): Likewise.
46327         * modules/stdio (Makefile.am): Likewise.
46328         * modules/stdlib (Makefile.am): Likewise.
46329         * modules/string (Makefile.am): Likewise.
46330         * modules/strings (Makefile.am): Likewise.
46331         * modules/sys_file (Makefile.am): Likewise.
46332         * modules/sys_ioctl (Makefile.am): Likewise.
46333         * modules/sys_select (Makefile.am): Likewise.
46334         * modules/sys_socket (Makefile.am): Likewise.
46335         * modules/sys_stat (Makefile.am): Likewise.
46336         * modules/sys_time (Makefile.am): Likewise.
46337         * modules/sys_times (Makefile.am): Likewise.
46338         * modules/sys_utsname (Makefile.am): Likewise.
46339         * modules/sys_wait (Makefile.am): Likewise.
46340         * modules/sysexits (Makefile.am): Likewise.
46341         * modules/termios (Makefile.am): Likewise.
46342         * modules/time (Makefile.am): Likewise.
46343         * modules/unistd (Makefile.am): Likewise.
46344         * modules/wchar (Makefile.am): Likewise.
46345         * modules/wctype (Makefile.am): Likewise.
46347 2010-10-04  Bruno Haible  <bruno@clisp.org>
46349         read-file tests: Avoid a test failure on NonStop Kernel.
46350         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
46351         a regular file.
46352         Reported by Joachim Schmitz <schmitz@hp.com>.
46354 2010-10-03  Bruno Haible  <bruno@clisp.org>
46356         gnulib-tool: Fixes for --create-testdir with --libtool.
46357         * gnulib-tool (func_get_automake_snippet): Don't augment
46358         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
46359         an executable.
46360         (func_create_testdir): Handle module 'alloca' like func_import.
46361         Reported by Bruce Korb <bruce.korb@gmail.com>.
46363 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46365         Avoid some lines longer than 80 characters.
46366         * lib/stdint.in.h: Break long comment lines.
46367         * lib/math.in.h: Likewise.
46368         (_GL_NUM_UINT_WORDS): New macro, for readability.
46369         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
46370         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
46371         * lib/stdlib.in.h: Likewise.
46372         * lib/spawn.in.h: Likewise.
46373         * lib/sys_socket.in.h: Update an URL.
46374         * lib/sys_stat.in.h: Break long line.
46376 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
46378         Improve pmccabe2html.
46379         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
46380         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
46381         when the sources change. Remove the line in the HTML about "Used
46382         ranges" (which implied that there might be other unused ranges),
46383         rename "Resume" to "Summary" (easier to understand for more users).
46384         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
46385         styles, and some unnecessary blank lines.
46387 2010-10-03  Bruno Haible  <bruno@clisp.org>
46388             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46390         acl: Add support for ACLs on NonStop Kernel.
46391         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
46392         Check whether the function aclsort() exists.
46393         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
46394         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
46395         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46396         (acl_nontrivial [HAVE_ACLSORT]: New function.
46397         (file_has_acl): Implement for NonStop Kernel.
46398         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46399         (qset_acl): Implement for NonStop Kernel.
46400         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
46401         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46402         (main): Implement for NonStop Kernel.
46403         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
46404         Kernel. Handle this flavor.
46405         * tests/test-set-mode-acl.sh: Likewise.
46406         * tests/test-copy-acl.sh: Likewise.
46407         * tests/test-copy-file.sh: Likewise.
46409 2010-10-03  Bruno Haible  <bruno@clisp.org>
46411         Info about ACLs on NonStop Kernel.
46412         * doc/acl-resources.txt: Add info about NonStop Kernel.
46413         References by Joachim Schmitz <schmitz@hp.com>.
46415 2010-10-02  Bruno Haible  <bruno@clisp.org>
46417         Define missing EDQUOT on NonStop Kernel.
46418         * lib/errno.in.h (EDQUOT): Assign a value if missing.
46419         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
46420         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
46421         missing.
46422         * doc/posix-headers/errno.texi: Mention the NSK bug.
46423         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
46424         Reported by Joachim Schmitz <schmitz@hp.com>.
46426 2010-10-02  Bruno Haible  <bruno@clisp.org>
46428         Update doc for POSIX:2008.
46429         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
46430         Update URL of POSIX specification.
46432 2010-10-02  Bruno Haible  <bruno@clisp.org>
46434         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
46435         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
46436         from gnulib, not from Automake.
46438 2010-10-02  Bruno Haible  <bruno@clisp.org>
46440         New module 'system-posix'.
46441         * modules/system-posix: New file.
46442         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
46443         module is present.
46444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46445         GNULIB_SYSTEM_POSIX.
46446         * modules/stdlib (Depends-on): Remove sys_wait.
46447         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
46448         * doc/posix-functions/system.texi: Mention the new module.
46449         * doc/posix-headers/stdlib.texi: Likewise.
46450         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
46451         define test_sys_wait_macros to a no-op.
46452         Reported by Sam Steingold <sds@gnu.org>.
46454 2010-09-30  Bruno Haible  <bruno@clisp.org>
46456         More renaming from 'getdate' to 'get_date'.
46457         * doc/get_date.texi: Renamed from doc/getdate.texi.
46458         * modules/get_date (Files): Update.
46459         * MODULES.html.sh (Date and time <time.h>): Update.
46460         * DEPENDENCIES: Update.
46461         * gnulib-tool: Update comment.
46462         * m4/bison.m4 (gl_BISON): Likewise.
46463         * m4/get_date.m4 (gl_GET_DATE): Likewise.
46465 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
46467         bootstrap: support ACLOCAL_FLAGS during aclocal
46468         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
46469         can add additional -I dir for third-party .m4 files.
46471 2010-09-30  Eric Blake  <eblake@redhat.com>
46473         bootstrap: use glibtoolize on MacOS
46474         * build-aux/bootstrap (check_versions): Convert libtool into
46475         libtoolize.
46476         (tool search): Move libtool check earlier, and look for
46477         glibtoolize for MacOS.
46478         (gnulib_tool_options): Auto-add --libtool when appropriate.
46479         Reported by Justin Clift.
46481         poll: fix typo that broke test on MacOS
46482         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
46483         Reported by Justin Clift.
46485         getdate: rename to get_date
46486         Note: getdate.h is not renamed, to minimize client impact.
46487         * modules/getdate: Mark obsolete.  Move old contents...
46488         * modules/get_date: ...to new module name.
46489         * modules/getdate-tests: Move...
46490         * modules/get_date-tests: ...here.
46491         * m4/getdate.m4: Move...
46492         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
46493         * lib/getdate.y: Move...
46494         * lib/get_date.y: ...here.
46495         * tests/test-getdate.c: Move...
46496         * tests/test-get_date.c: ...here.
46497         * doc/posix-functions/getdate.texi (getdate): Update name.
46498         * NEWS: Mention the change.
46500 2010-09-29  Bruno Haible  <bruno@clisp.org>
46502         Separate the module 'waitpid' from the module 'sys_wait'.
46503         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
46504         present.
46505         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
46506         gl_MODULE_INDICATOR_FOR_TESTS.
46507         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
46508         * modules/sys_wait (Depends-on): Remove waitpid.
46509         (Makefile.am): Substitute GNULIB_WAITPID.
46510         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
46511         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
46512         signature only if the 'waitpid' module is present.
46513         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
46514         * NEWS: Mention the change.
46515         * modules/grantpt (Depends-on): Add waitpid.
46516         * modules/wait-process (Depends-on): Likewise.
46518 2010-09-29  Bruno Haible  <bruno@clisp.org>
46520         More tests for module 'sys_wait'.
46521         * modules/sys_wait-c++-tests: New file.
46522         * tests/test-sys_wait-c++.cc: New file.
46523         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
46524         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46526 2010-09-29  Bruno Haible  <bruno@clisp.org>
46528         New module 'waitpid'.
46529         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
46530         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
46531         Don't include <process.h>.
46532         (waitpid): Declare only, using modern idiom.
46533         * m4/waitpid.m4: New file.
46534         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
46535         * modules/waitpid: New file.
46536         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
46537         (Makefile.am): Update.
46538         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46540 2010-09-28  Bruno Haible  <bruno@clisp.org>
46542         poll: Assume ANSI C.
46543         * lib/poll.c (poll): Use an ANSI C declaration.
46545 2010-09-28  Bruno Haible  <bruno@clisp.org>
46547         poll-h: Create poll.h on all platforms.
46548         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
46549         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
46550         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
46551         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
46552         (gl_REPLACE_POLL_H): Don't set POLL_H.
46553         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
46554         * modules/poll-h (Depends-on): Add include_next.
46555         (Makefile.am): Create poll.h unconditionally. Substitute also
46556         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
46558 2010-09-28  Bruno Haible  <bruno@clisp.org>
46560         Tests for module 'poll-h'.
46561         * modules/poll-h-c++-tests: New file.
46562         * tests/test-poll-h-c++.cc: New file.
46564         Tests for module 'poll-h'.
46565         * modules/poll-h-tests: New file.
46566         * tests/test-poll-h.c: New file.
46568 2010-09-28  Bruno Haible  <bruno@clisp.org>
46570         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
46571         * modules/poll-h (Depends-on): Add 'extensions'.
46573 2010-09-28  Bruno Haible  <bruno@clisp.org>
46575         New module 'poll-h'.
46576         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
46577         (poll): Use modern idiom.
46578         * modules/poll-h: New file.
46579         * modules/poll (Files): Remove lib/poll.in.h.
46580         (Depends-on): Add poll-h.
46581         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
46582         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
46583         * m4/poll_h.m4: New file.
46584         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
46585         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
46586         and invoke gl_REPLACE_POLL_H.
46587         * lib/poll.c: Use common idiom.
46588         * tests/test-poll.c: Likewise.
46589         * doc/posix-headers/poll.texi: Mention the poll-h module.
46590         Suggested by Eric Blake.
46592 2010-09-26  Bruno Haible  <bruno@clisp.org>
46594         sys_wait: Implement WSTOPSIG.
46595         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46596         Reported by Simon Josefsson.
46598 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46600         stdlib, sys_wait: Avoid compilation error on mingw.
46601         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46603 2010-09-26  Bruno Haible  <bruno@clisp.org>
46605         stdlib tests: Avoid code duplication.
46606         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46607         * modules/sys_wait-tests (Files): Likewise.
46608         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46609         * tests/test-stdlib.c: Include test-sys_wait.h.
46610         (main): Invoke test_sys_wait_macros.
46611         * tests/test-sys_wait.c: Include test-sys_wait.h.
46612         (main): Invoke test_sys_wait_macros.
46614 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46616         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46617         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46618         sure Windows sockets are working before calling getaddrinfo.
46619         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46620         * doc/gnulib.texi (Windows sockets): Fix typo.
46622 2010-09-25  Bruno Haible  <bruno@clisp.org>
46624         Tests for module 'regex-quote'.
46625         * modules/regex-quote-tests: New file.
46626         * tests/test-regex-quote.c: New file.
46628         New module 'regex-quote'.
46629         * lib/regex-quote.h: New file.
46630         * lib/regex-quote.c: New file.
46631         * modules/regex-quote: New file.
46632         Suggested by Reuben Thomas <rrt@sc3d.org>.
46634 2010-09-24  Bruno Haible  <bruno@clisp.org>
46636         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46637         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46639 2010-09-23  Bruno Haible  <bruno@clisp.org>
46641         setenv: Relax license.
46642         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46643         Blake.
46644         Requested by Eric Blake.
46646 2010-09-22  Bruno Haible  <bruno@clisp.org>
46648         termios: Relax license.
46649         * modules/termios (License): Change to LGPLv2+.
46650         Requested by Eric Blake.
46652 2010-09-22  Bruno Haible  <bruno@clisp.org>
46654         threadlib: Allow the package to change the default to 'no'.
46655         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46656         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46657         Reported by Paul Eggert.
46659 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46660             Bruno Haible  <bruno@clisp.org>
46662         Fix endless loop in mbmemcasecoll.
46663         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46664         byte.
46665         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46667 2010-09-22  Bruno Haible  <bruno@clisp.org>
46669         Tests for module 'memcoll'.
46670         * modules/memcoll-tests: New file.
46671         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46673         memcoll, xmemcoll: Clarify size vs. length.
46674         * modules/memcoll.c (memcoll0): Clarify specification.
46675         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46676         passed to collate_error.
46678 2010-09-22  Bruno Haible  <bruno@clisp.org>
46680         Tests for module 'memcasecmp'.
46681         * modules/memcasecmp-tests: New file.
46682         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46684 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46686         * lib/pthread.in.h: Add split double-inclusion guard, and include
46687         system <pthread.h> if there is one.  Use @@-style as in other
46688         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46689         pthread.h doesn't.
46690         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46691         (pthread_mutexattr_settype, pthread_mutex_trylock):
46692         New static inline functions, if there's no system <pthread.h>.
46693         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46694         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46695         Approximate with mutexes if the system lacks spinlocks, as in
46696         MacOS.
46697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46698         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46699         @@-style.  Check for spinlocks separately.
46700         (gl_PTHREAD_DEFAULTS): New macro.
46701         * modules/pthread: Redo to use a more typical style for in.h files.
46703 2010-09-21  Eric Blake  <eblake@redhat.com>
46705         net_if: enhance tests
46706         * tests/test-net_if.c (main): Move signature checks earlier.
46707         Print failures to stderr.
46708         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46709         Document the bug that we do not yet fix.
46711 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46713         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46714         about gnulib, not GSS.
46716 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46718         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46719         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46720         for Emacs.
46721         * build-aux/pmccabe2html: Make Makefile.am example code more
46722         cut-and-paste friendly.
46724 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46726         * tests/test-net_if.c: New file.
46727         * modules/net_if-tests: New file.
46729 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46731         pthread: add pthread_spin_destroy
46732         * lib/pthread.in.h (pthread_spin_destroy): New function.
46734 2010-09-19  Bruno Haible  <bruno@clisp.org>
46736         gnulib-tool: Fix --help output.
46737         * gnulib-tool (func_usage): Fix help message.
46738         Reported by Reuben Thomas <rrt@sc3d.org>.
46740 2010-09-18  Jim Meyering  <meyering@redhat.com>
46742         maint.mk: avoid unexpanded \n in two diagnostics
46743         * top/maint.mk (sc_prohibit_always_true_header_tests):
46744         Don't use a literal \n in a halt=... assignment.  It would not be
46745         expanded, and the two \n bytes would appear in the diagnostic output
46746         rather than the desired newline.  Use halt=$$(printf ... instead.
46747         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46749 2010-09-18  Bruno Haible  <bruno@clisp.org>
46751         netinet_in: Doc tweak.
46752         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
46753         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46755 2010-09-18  Jim Meyering  <meyering@redhat.com>
46757         init.sh: correct an outdated comment
46758         * tests/init.sh (create_exe_shims_):  s/function/alias/
46760         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46761         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46762         a file named "*.exe" is removed between the glob expansion and the
46763         processing of that oddly named file.
46765 2010-09-17  Eric Blake  <eblake@redhat.com>
46767         mirbsd: add some more support
46768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46769         in BSD family.
46770         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
46771         devices as OpenBSD.
46772         * m4/host-os.m4 (mirbsd): Add MirBSD.
46774         tests: fix unportable assumption on sys/wait.h
46775         * tests/test-sys_wait.c (main): Relax test.
46776         * tests/test-stdlib.c (main): Likewise.
46778         init.sh: accommodate directory with no .exes
46779         * tests/init.sh: Accomodate directory containing only scripts.
46781         tests: avoid compiler warning
46782         * tests/test-stdlib.c (main): Use the variable.
46784         fdutimens, fdutimensat: update signature, again
46785         * lib/utimens.h (gl_futimens): Delete, and move signature...
46786         (fdutimens): ...here.
46787         (fdutimensat): Rearrange signature.
46788         (lutimensat): Rename variable for clarity.
46789         * lib/fdutimensat.c (fdutimensat): Update signature.
46790         * lib/utimens.c (fdutimens): Likewise.
46791         (gl_futimens): Delete.
46792         (utimens, lutimens): Update callers.
46793         * lib/futimens.c (futimens): Likewise.
46794         * tests/test-fdutimensat.c: Likewise.
46795         * tests/test-utimens.c: Likewise.
46796         * tests/test-futimens.h: Update comment.
46797         * NEWS: Mention this.
46798         Suggested by Paul Eggert.
46800 2010-09-17  Bruno Haible  <bruno@clisp.org>
46802         Take over the maintenance of some older macros from Autoconf.
46803         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
46804         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
46805         GNU Autoconf.
46806         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
46807         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
46809 2010-09-17  Eric Blake  <eblake@redhat.com>
46811         fdutimensat: drop atflag validation
46812         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
46813         with valid fd, to close a race scenario where futimens is
46814         unsupported and FILE was replaced by a symlink.
46815         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
46816         accordingly.
46817         Suggested by Paul Eggert.
46819 2010-09-16  Bruno Haible  <bruno@clisp.org>
46821         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
46822         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
46824 2010-09-16  Bruno Haible  <bruno@clisp.org>
46826         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
46827         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
46828         login_tty exists.
46829         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46831 2010-09-16  Bruno Haible  <bruno@clisp.org>
46833         login_tty: Make the replacement code work on BSD systems.
46834         * lib/login_tty.c: Include <sys/ioctl.h>.
46835         (login_tty): Use ioctl TIOCSCTTY when available.
46836         * modules/login_tty (Depends-on): Add sys_ioctl.
46837         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46839 2010-09-16  Bruno Haible  <bruno@clisp.org>
46841         login_tty: Stricter unit test.
46842         * modules/login_tty-tests (Depends-on): Add tcgetsid.
46843         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
46844         and tcgetsid() after login_tty.
46845         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46847 2010-09-16  Bruno Haible  <bruno@clisp.org>
46849         New module 'tcgetsid'.
46850         * lib/tcgetsid.c: New file.
46851         * m4/tcgetsid.m4: New file.
46852         * modules/tcgetsid: New file.
46853         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46854         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
46855         GNULIB_TCGETSID, HAVE_TCGETSID.
46856         * lib/termios.in.h: Include <sys/types.h>.
46857         (tcgetsid): New declaration.
46858         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46859         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46860         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46861         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46863 2010-09-16  Bruno Haible  <bruno@clisp.org>
46865         Tests for module 'termios'.
46866         * modules/termios-c++-tests: New file.
46867         * modules/termios-tests: New file.
46868         * tests/test-termios-c++.cc: New file.
46869         * tests/test-termios.c: New file.
46871         New module 'termios'.
46872         * modules/termios: New file.
46873         * lib/termios.in.h: New file.
46874         * m4/termios_h.m4: New file.
46875         * doc/posix-headers/termios.texi: Mention the new module.
46877 2010-09-16  Eric Blake  <eblake@redhat.com>
46879         fdutimensat: add an atflag parameter
46880         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46881         * lib/utimens.h (fdutimensat): Update prototype.
46882         * tests/test-fdutimensat.c: Adjust test to match.
46883         * NEWS: Document the change.
46884         Suggested by Paul Eggert.
46886 2010-09-16  Bruno Haible  <bruno@clisp.org>
46888         Fix typos in comments.
46889         * lib/striconveh.h: Fix typo in comment.
46890         * lib/login_tty.c (login_tty): Likewise.
46892 2010-09-15  Bruno Haible  <bruno@clisp.org>
46894         stdlib: clarify MirBSD WEXITSTATUS bug
46895         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46896         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46898 2010-09-15  Eric Blake  <eblake@redhat.com>
46900         stdlib: work around MirBSD WEXITSTATUS bug
46901         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46902         * modules/stdlib (Depends-on): Add sys_wait.
46903         * tests/test-sys_wait.c (main): Enhance test.
46904         * tests/test-stdlib.c (main): Likewise.
46905         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46907         docs: mention MacOS issue with WEXITSTATUS(constant)
46908         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46909         issue.
46910         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46912         strnlen: add tests
46913         * modules/strnlen-tests: New file.
46914         * tests/test-strnlen.c: Likewise.
46916 2010-09-14  Bruno Haible  <bruno@clisp.org>
46918         unistr/base: Avoid link errors when module 'libunistring' is also used.
46919         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
46920         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
46921         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
46922         Declare also when HAVE_LIBUNISTRING is set.
46923         Reported by Pádraig Brady <P@draigbrady.com>.
46925 2010-09-14  Eric Blake  <eblake@redhat.com>
46927         test-rawmemchr: make more robust
46928         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
46929         (Depends-on, configure.ac): Add needed prerequisites to use it.
46930         * modules/memchr-tests (Files, Depends-on, configure.ac):
46931         Likewise, to avoid implicit reliance on memchr module prereqs.
46932         * tests/test-memchr.c (main): Ensure proper masking.
46933         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
46934         reads.
46936         memchr: detect glibc Alpha bug
46937         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
46938         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
46939         Alpha.
46940         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
46941         * tests/test-memchr.c (main): Enhance test.
46942         Reported by Nelson H. F. Beebe.
46944 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46946         fts, getcwd, glob: audit for dirfd returning -1
46947         * lib/fts.c (opendir): Remove #define; no longer used.
46948         (opendirat): New arg PDIR_FD.  All callers changed.
46949         (fts_build, _opendir2): Use new opendirat to avoid the need for
46950         dirfd, or for checking whether dirfd returns a negative value.
46951         Don't use opendir; always use openat followed by fdopendir.
46952         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
46953         it.
46954         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
46955         returns -1 here.
46956         * modules/fts (Depends-on): Remove dirfd.
46957         * modules/getcwd (Depends-on): Likewise.
46959 2010-09-13  Eric Blake  <eblake@redhat.com>
46961         float: fix broken MirBSD header
46962         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
46963         * doc/posix-headers/float.texi (float.h): Document it.
46965 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46967         fts: use O_NOFOLLOW to avoid race condition when opening a directory
46968         * lib/fts.c (opendirat): New arg extra_flags.
46969         (__opendir2): Use it to avoid following symlinks when opening
46970         a directory, if symlinks are not supposed to be followed.  See
46971         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
46973         fdopendir: preserve argument fd before returning
46974         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
46975         (fdopendir_with_dup, fd_clone_opendir): New static functions.
46976         (fdopendir): Use them, arranging for FD to be open to the same
46977         directory that it was when it started.  (It might be temporarily
46978         closed while fdopendir is running, so this not thread- or
46979         signal-safe.)  Be careful to do the right thing even when file
46980         descriptors are scarce and dup fails with errno == EMFILE.  See
46981         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
46983 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
46985         regex: Pass the system regex if its only problem is 32-bit regoff_t.
46986         * NEWS: Document change.
46987         * m4/regex.m4: Disable test for regoff_t size.
46989 2010-09-13  Jim Meyering  <meyering@redhat.com>
46991         fts: don't operate on an invalid file descriptor after failed dup
46992         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
46993         negative file descriptor.
46995 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46997         savedir: add streamsavedir, deprecate fdsavedir
46998         * NEWS: Mention deprecation of fdsavedir.
46999         * lib/savedir.c (streamsavedir): New extern function, whose name
47000         ends in "savedir" to be consistent with the others.  This differs
47001         from savedirstream in that it doesn't close its argument.  The
47002         next version of GNU tar will use this instead of fdsavedir, to
47003         avoid some race conditions and conserve file descriptors.
47004         (savedirstream): Reimplement as a wrapper around streamsavedir.
47005         (fdsavedir): Add a comment deprecating this function.  As far as
47006         I know, only GNU tar used it, and GNU tar doesn't need it any more.
47007         * lib/savedir.h (streamsavedir): New decl.
47008         (fdsavedir): Add a comment deprecating this.
47010 2010-09-10  Bruno Haible  <bruno@clisp.org>
47012         langinfo: Fix last commit.
47013         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
47014         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
47015         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47017 2010-09-10  Bruno Haible  <bruno@clisp.org>
47019         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
47020         * lib/progreloc.c (O_EXEC): Define fallback.
47022 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
47024         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
47025         * NEWS: Document recent changes to fcntl-h.
47026         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
47027         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
47028         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
47029         Similarly for O_SEARCH; this last was already true, but not documented.
47030         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
47031         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
47032         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
47033         Likewise.
47034         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
47035         is zero, not whether it is defined.
47036         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
47037         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
47038         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
47040 2010-09-10  Bruno Haible  <bruno@clisp.org>
47042         langinfo, nl_langinfo: Fix for IRIX 5.3.
47043         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
47044         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
47045         HAVE_LANGINFO_YESEXPR.
47046         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
47047         HAVE_LANGINFO_YESEXPR.
47048         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
47049         HAVE_LANGINFO_T_FMT_AMPM is 0.
47050         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
47051         HAVE_LANGINFO_YESEXPR is 0.
47052         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
47053         NOEXPR.
47054         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
47055         * doc/posix-functions/nl_langinfo.texi: Likewise.
47056         Reported by Eric Blake.
47058 2010-09-10  Bruno Haible  <bruno@clisp.org>
47060         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
47061         * doc/glibc-functions/login_tty.texi: Mention the include file problem
47062         on FreeBSD 8.0 and OpenBSD 4.6.
47063         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
47064         * m4/pty_h.m4 (gl_PTY_H): Likewise.
47065         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
47066         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
47067         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
47068         ac_includes_default.
47069         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47071 2010-09-09  Eric Blake  <eblake@redhat.com>
47073         strsignal: work around NetBSD bug
47074         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
47075         * lib/string.in.h (includes): Likewise.
47076         * doc/posix-functions/strsignal.texi (strsignal): Document the
47077         bug.
47078         Reported by Nelson H. F. Beebe.
47080         gnulib-tool: work with NetBSD /bin/sh
47081         * gnulib-tool (func_cache_var, func_cache_lookup_module)
47082         (func_get_description, func_get_comment, func_get_status)
47083         (func_get_notice, func_get_applicability, func_get_filelist)
47084         (func_get_dependencies, func_get_autoconf_early_snippet)
47085         (func_get_autoconf_snippet, func_get_automake_snippet)
47086         (func_get_include_directive, func_get_link_directive)
47087         (func_get_license, func_get_maintainer, func_import): Avoid
47088         shell syntax errors from parsing syntax extensions.
47090 2010-09-09  Bruno Haible  <bruno@clisp.org>
47092         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47093         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
47094         a reliable way to determine whether the 'alias' command works.
47096 2010-09-08  Jim Meyering  <meyering@redhat.com>
47098         init.sh: penalize a set-x-impaired shell; don't disqualify it
47099         * tests/init.sh: Too many shells corrupt application stderr when
47100         you set -x, so we can't afford to disqualify them, since at least
47101         on Irix-6.5, that would disqualify all bourne shells.
47102         Instead, use a two-pass approach.
47103         On the first pass, try to find a shell that meets the stricter
47104         condition that set -x does not corrupt stderr.
47105         If no shell meets the stricter condition, retest each candidate
47106         shell, but without that extra condition.  Finally, when
47107         VERBOSE=yes is requested and set -x might cause trouble, simply
47108         issue a warning and refrain from enabling debug output.
47110 2010-09-08  Eric Blake  <eblake@redhat.com>
47112         unsetenv: fix OpenBSD bug
47113         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
47114         * doc/posix-functions/unsetenv.texi (unsetenv): Update
47115         documentation.
47116         Reported by Jim Meyering.
47118         strtod: work around IRIX 6.5 bug
47119         * lib/strtod.c (strtod): Reparse number on shorter string if
47120         exponent parse was invalid.
47121         * tests/test-strtod.c (main): Add check for "0x1p 2".
47122         Reported by Tom G. Christensen.
47124         getopt: optimize previous patch
47125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
47126         empty variable.  Speed up awk script.
47127         Reported by Paolo Bonzini.
47129 2010-09-08  Jim Meyering  <meyering@redhat.com>
47131         test.sh: disqualify shells for which set -x corrupts stderr
47132         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
47133         and OpenBSD 4.7.  They make it so with "set -x", environment settings
47134         appear in stderr output.  For example, this command:
47135             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
47136         prints "P=1" on those two systems:
47138 2010-09-08  Bruno Haible  <bruno@clisp.org>
47140         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47141         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
47142         commands, because some shells ignore redirections when there is an
47143         error in the command lookup.
47144         Reported by Eric Blake.
47146 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
47148         * lib/regex.h: Fix a mention of `regex_compile' (should be
47149         `re_compile_pattern').
47150         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
47151         (re_set_registers): Correct name of parameter in comment.
47153         * doc/regex.texi: Add documentation for missing syntax flags.
47154         Remove commented-out documentation of defunct syntax option
47155         RE_NO_EMPTY_ALTS.
47156         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
47157         Add documentation of re_set_registers.
47158         Document trick to re-use a pattern buffer by setting fastmap manually.
47159         Update documentation of struct re_pattern_buffer per public members.
47160         Uncomment documentation of equivalence class operators and
47161         collating symbol operators, since they are now implemented,
47162         Explain leftmost-longest matching in relation to alternatives.
47163         Tidy documentation of substring matching.
47164         Remove POSIX documentation, which is done better in
47165         glibc, and refer the reader there. Keep BSD API documentation, as
47166         that is not readily available elsewhere.
47168 2010-09-07  Eric Blake  <eblake@redhat.com>
47170         getopt: handle POSIXLY_CORRECT set but not exported
47171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
47172         export state of POSIXLY_CORRECT, due to bash set -o posix.
47173         Reported by Dustin J. Mitchell.
47175 2010-09-05  Bruno Haible  <bruno@clisp.org>
47177         gnulib-tool: Highlight the changed options.
47178         * gnulib-tool (func_usage): Display the --import, --add-import,
47179         --remove-import explanations in bold font.
47181 2010-09-06  Karl Berry  <karl@gnu.org>
47183         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
47185 2010-09-05  Bruno Haible  <bruno@clisp.org>
47187         uniwidth/width: Update comment.
47188         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
47189         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
47191 2010-09-05  Bruno Haible  <bruno@clisp.org>
47193         isinf, isnan: Relax license.
47194         * modules/isinf (License): Change from GPL to LGPL, with consent from
47195         Ben Pfaff.
47196         * modules/isnan (License): Likewise.
47197         Requested by Ludovic Courtès.
47199 2010-09-04  Bruno Haible  <bruno@clisp.org>
47201         gnulib-tool: Help migration from --import to --add-import or --update.
47202         * gnulib-tool: Emit a verbose error message when --import is used
47203         without any module name.
47205 2010-09-04  Bruno Haible  <bruno@clisp.org>
47207         Update doc about gnulib-tool.
47208         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
47209         'gnulib-tool --update' in more detail.
47210         Reported by Eric Blake.
47212 2010-09-04  Bruno Haible  <bruno@clisp.org>
47214         gnulib-tool: Change --import. New options --add/remove-import.
47215         * gnulib-tool: New options --add-import, --remove-import.
47216         (func_usage): Document them.
47217         (have_associative): Define always.
47218         (func_import): In import mode, don't merge the specified settings with
47219         the cached settings. Implement remove-import mode.
47220         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
47221         Explain when to use them versus --import.
47222         (Simple update): Use --add-import instead of --import.
47223         * NEWS: Mention the change.
47225 2010-09-04  Bruno Haible  <bruno@clisp.org>
47227         * doc/gnulib-tool.texi (Initial import): Update paragraph about
47228         separate gnulib.mk.
47230 2010-09-04  Bruno Haible  <bruno@clisp.org>
47232         gnulib-tool: Don't talk about CVS any more.
47233         * gnulib-tool (func_usage, func_import): Write "version control"
47234         instead of CVS.
47236 2010-09-04  Jim Meyering  <meyering@redhat.com>
47238         maint.mk: avoid obscure sc_copyright_check failure in coreutils
47239         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
47240         false positives (whose names may be ill-chosen) when searching
47241         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
47242         would cause a false-positive.
47244         avoid coreutils "make distcheck" failure
47245         Coreutils tests with an absolute build directory name that contains
47246         a space.  Not quoting this directory name caused a failure.
47247         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
47248         * tests/test-vc-list-files-cvs.sh: Likewise.
47250 2010-09-04  Bruno Haible  <bruno@clisp.org>
47252         gnulib-tool: Avoid error when run in a package without Makefile.am.
47253         * gnulib-tool: When collecting the m4dirs in a package that does not
47254         have a Makefile.am, eliminate those directories that contain no
47255         gnulib-cache.m4. Fix expression that counts these directories.
47257 2010-09-04  Bruno Haible  <bruno@clisp.org>
47259         update-copyright test: Improve output when perl is missing or too old.
47260         * tests/test-update-copyright.sh: Move test of Perl version down after
47261         the test whether Perl exists. Provide an explanation relating Perl's
47262         error message to Automake's SKIP: message.
47264 2010-09-04  Bruno Haible  <bruno@clisp.org>
47266         Don't augment PATH in TESTS_ENVIRONMENT.
47267         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
47268         set abs_aux_dir instead of augmenting PATH.
47269         * modules/vc-list-files-tests (Makefile.am): Likewise.
47270         * tests/test-update-copyright.sh: Augment PATH here.
47271         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
47272         path_prepend_.
47273         * tests/test-vc-list-files-git.sh: Likewise.
47275 2010-09-04  Jim Meyering  <meyering@redhat.com>
47277         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
47278         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
47280 2010-09-04  Bruno Haible  <bruno@clisp.org>
47282         strdup: Fix compilation error in C++ mode.
47283         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
47284         the macro.
47286 2010-09-04  Bruno Haible  <bruno@clisp.org>
47288         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
47289         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
47290         macro into a function.
47291         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47293 2010-09-04  Bruno Haible  <bruno@clisp.org>
47295         Set PATH_SEPARATOR the same way autoconf does.
47296         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
47297         the value of PATH_SEPARATOR the same way autoconf-generated configure
47298         scripts do.
47299         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
47300         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47302 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47304         Set PATH_SEPARATOR the same way autoconf does.
47305         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
47306         the same way autoconf-generated configure scripts do.
47307         * posix-modules: Likewise.
47309 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47311         hash: fix safe_hasher const typo
47312         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
47313         const; otherwise, there is a type error later.
47315 2010-09-02  Jim Meyering  <meyering@redhat.com>
47317         test-update-copyright.sh: require perl 5.8.0
47318         * tests/test-update-copyright.sh: Require 5.8.0,
47319         which Tom G. Christensen has confirmed is adequate,
47320         while 5.6.1 is not.
47322 2010-09-02  Eric Blake  <eblake@redhat.com>
47324         tests: init.sh improvements for re-exec'ing with zsh
47325         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
47326         -vx through shell re-exec.
47327         Reported by Tom G. Christensen.
47329         wctype: fix typo in previous commit
47330         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
47331         Reported by Ludovic Courtès.
47333 2010-09-02  Jim Meyering  <meyering@redhat.com>
47335         test-update-copyright.sh: skip test if Perl is too old
47336         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
47337         Reported by Tom G. Christensen.
47339 2010-09-02  Bruno Haible  <bruno@clisp.org>
47341         wctype: Avoid compilation error on IRIX 6.5.30.
47342         * lib/wctype.in.h (iswblank): Declare with a replacement if
47343         REPLACE_ISWBLANK is set.
47344         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
47345         declared. Set REPLACE_ISWBLANK.
47346         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
47347         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
47348         * doc/posix-headers/wctype.texi: Likewise.
47349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47351 2010-09-01  Bruno Haible  <bruno@clisp.org>
47353         New module 'socketlib'.
47354         * modules/socketlib: New file.
47355         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
47356         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
47357         * modules/sockets (Depends-on): Add socketlib.
47358         Suggested by Sam Steingold <sds@gnu.org>.
47360 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47362         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
47364         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
47365         when one needs search access to a directory but not read access.
47366         On systems where it is available, it works in some cases where
47367         O_RDONLY does not, namely on directories that are searchable but
47368         not readable, and which need only to be searchable.  If O_SEARCH
47369         is not available, fall back to the traditional method of using
47370         O_RDONLY.
47372         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
47373         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
47374         when opening a directory that needs only to be searchable.
47375         * lib/chdir-safer.c (chdir_no_follow): Likewise.
47376         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
47377         * lib/openat-proc.c (openat_proc_name): Likewise.
47378         * lib/openat.c (openat_needs_fchdir): Likewise.
47379         * lib/save-cwd.c (save_cwd): Likewise.
47380         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
47382 2010-08-28  Bruno Haible  <bruno@clisp.org>
47384         New module 'host-cpu-c-abi'.
47385         * modules/host-cpu-c-abi: New file.
47386         * m4/host-cpu-c-abi.m4: New file, based on part of
47387         clisp/src/m4/general.m4.
47388         Requested by Sam Steingold <sds@gnu.org>.
47390 2010-08-31  Eric Blake  <eblake@redhat.com>
47391         and Jim Meyering  <meyering@redhat.com>
47393         hash: factor, and guard against misbehaving hasher function
47394         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
47395         of table->hasher's return value.  Also protect against a hash value
47396         so large that adding it to table->bucket results in a NULL pointer.
47397         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
47398         Use it in place of open-coded check-and-abort.
47400 2010-08-30  Bruno Haible  <bruno@clisp.org>
47402         hash: silence spurious clang warning
47403         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
47404         Reported by Eric Blake.
47406 2010-08-30  Eric Blake  <eblake@redhat.com>
47408         strstr, memmem, strcasestr: avoid leaked shell message
47409         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
47410         FreeBSD.
47411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47412         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47414         tests: silence clang warning
47415         * tests/test-malloca.c (do_allocation): Avoid dead store.
47417 2010-08-29  Bruno Haible  <bruno@clisp.org>
47419         gettext: Fix recent mistake.
47420         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
47422 2010-08-29  Bruno Haible  <bruno@clisp.org>
47424         selinux-h: Offer a --without-selinux option.
47425         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
47426         --without-selinux was specified, skip all tests and define
47427         HAVE_SELINUX_SELINUX_H to 0.
47428         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
47429         set LIB_SELINUX to empty.
47430         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
47431         gl_LIBSELINUX. If --without-selinux was specified, replace
47432         selinux/context.h.
47433         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
47435 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47436             Bruno Haible  <bruno@clisp.org>
47438         Make the module 'realloc-gnu' work again on AIX and OSF/1.
47439         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
47440         of HAVE_REALLOC.
47441         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
47442         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
47443         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
47444         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47446 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47447             Bruno Haible  <bruno@clisp.org>
47449         Make the module 'calloc-gnu' work again on AIX and OSF/1.
47450         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
47451         HAVE_CALLOC.
47452         * lib/xmalloc.c: Update accordingly.
47453         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
47454         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
47455         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
47457 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47458             Bruno Haible  <bruno@clisp.org>
47460         Make the module 'malloc-gnu' work again on AIX and OSF/1.
47461         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
47462         HAVE_MALLOC.
47463         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
47464         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
47465         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47467 2010-08-29  Bruno Haible  <bruno@clisp.org>
47469         Update modules list.
47470         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47471         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
47472         (String handling <string.h>): Add astrxfrm.
47473         (File system functions): Add readlinkat.
47475 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47477         Tests for module 'realloc-gnu'.
47478         * modules/realloc-gnu-tests: New file.
47479         * tests/test-realloc-gnu.c: New file.
47481         Tests for module 'calloc-gnu'.
47482         * modules/calloc-gnu-tests: New file.
47483         * tests/test-calloc-gnu.c: New file.
47485         Tests for module 'malloc-gnu'.
47486         * modules/malloc-gnu-tests: New file.
47487         * tests/test-malloc-gnu.c: New file.
47489 2010-08-28  Bruno Haible  <bruno@clisp.org>
47491         Rename module 'realloc' -> 'realloc-gnu'.
47492         * modules/realloc-gnu: New file, copied from modules/realloc.
47493         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
47494         obsolete.
47495         * modules/mgetgroups (Depends-on): Update.
47496         * doc/posix-functions/realloc.texi: Update.
47497         * NEWS: Mention the change.
47499         Rename module 'calloc' -> 'calloc-gnu'.
47500         * modules/calloc-gnu: New file, copied from modules/calloc.
47501         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
47502         obsolete.
47503         * doc/posix-functions/calloc.texi: Update.
47504         * NEWS: Mention the change.
47506         Rename module 'malloc' -> 'malloc-gnu'.
47507         * modules/malloc-gnu: New file, copied from modules/malloc.
47508         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
47509         obsolete.
47510         * modules/argp (Depends-on): Update.
47511         * modules/regex (Depends-on): Update.
47512         * doc/posix-functions/malloc.texi: Update.
47513         * NEWS: Mention the change.
47515 2010-08-28  Eric Blake  <eblake@redhat.com>
47517         pread, pwrite: add missing dependency
47518         * modules/pread (Depends-on): Add extensions.
47519         * modules/pwrite (Depends-on): Likewise.
47521 2010-08-28  Bruno Haible  <bruno@clisp.org>
47523         unistr/u*-strchr: Fix tests dependencies.
47524         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
47525         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
47526         Reported by Ian Beckwith <ianb@erislabs.net>.
47528 2010-08-28  Bruno Haible  <bruno@clisp.org>
47530         read-file: Don't occupy too much unused memory.
47531         * lib/read-file.c (fread_file): Shrink the buffer at the end.
47533 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
47534             Eric Blake  <eblake@redhat.com>
47535             Bruno Haible  <bruno@clisp.org>
47537         read-file: Avoid memory reallocations with regular files.
47538         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
47539         (fread_file): With regular files, use the remaining length as the
47540         initial buffer size.  Check against overflow.
47541         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
47542         sys_stat.
47544 2010-08-28  Bruno Haible  <bruno@clisp.org>
47546         ftello: Relax license.
47547         * modules/ftello (License): Relax to LGPLv2+.
47548         Reported by Eric Blake.
47550 2010-08-28  Bruno Haible  <bruno@clisp.org>
47552         Avoid relocwrapper link errors due to gnulib replacement functions.
47553         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
47554         function.
47555         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47557 2010-08-28  Bruno Haible  <bruno@clisp.org>
47559         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
47560         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
47561         defined.
47562         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
47563         Suggested by Eric Blake.
47565 2010-08-28  Bruno Haible  <bruno@clisp.org>
47567         sys_socket, netdb: Ensure socklen_t gets defined.
47568         * modules/sys_socket (Depends-on): Add socklen.
47569         * modules/netdb (Depends-on): Likewise.
47570         * modules/getaddrinfo (Depends-on): Remove socklen.
47571         * modules/getsockopt (Depends-on): Likewise.
47572         * modules/setsockopt (Depends-on): Likewise.
47573         * tests/test-sys_socket.c: Check that socklen_t is defined.
47574         * tests/test-netdb.c: Likewise.
47575         * m4/socklen.m4: Update comments.
47576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47578 2010-08-27  Eric Blake  <eblake@redhat.com>
47580         login_tty: add missing dependency
47581         * modules/login_tty (Depends-on): Add pty.
47583 2010-08-26  Eric Blake  <eblake@redhat.com>
47585         lib-symbol-versions: fix m4 quoting
47586         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
47587         format for AC_LINK_IFELSE.
47589         glob: fix compile test
47590         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
47592         btowc: fix missing file
47593         * modules/btowc (Files): Also ship locale-fr.m4.
47595         lseek: fix link test
47596         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47597         AC_LINK_IFELSE.
47599         include_next: silence autoconf 2.68 warning
47600         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47601         AC_COMPILE_IFELSE as special.
47602         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47603         autoconf < 2.68.
47605         acl: fix compilation test
47606         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47607         AC_COMPILE_IFELSE.
47609 2010-08-26  Bruno Haible  <bruno@clisp.org>
47611         Modernize AC_TRY_RUN invocations.
47612         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47613         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47614         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47615         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47616         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47617         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47618         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47619         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47620         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47621         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47623         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47624         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47627         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47628         gl_MBRLEN_NUL_RETVAL): Likewise.
47629         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47630         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47631         Likewise.
47632         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47633         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47634         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47635         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47636         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47637         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47638         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47639         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47640         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47641         Likewise.
47642         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47643         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47645         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47646         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47647         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47648         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47649         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47650         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47653 2010-08-26  Bruno Haible  <bruno@clisp.org>
47655         Modernize AC_TRY_LINK invocations.
47656         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47657         AC_TRY_LINK.
47658         * m4/argp.m4 (gl_ARGP): Likewise.
47659         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47660         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47661         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47663         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47664         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47665         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47666         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47667         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47668         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47669         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47670         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47671         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47672         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47673         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47674         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47675         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47676         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47677         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47678         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47679         Likewise.
47680         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47681         Likewise.
47682         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47683         Likewise.
47684         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47685         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47686         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47687         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47688         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47689         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47690         * m4/servent.m4 (gl_SERVENT): Likewise.
47691         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47692         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47693         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47694         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47695         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47696         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47697         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47699         * modules/tsearch-tests (configure.ac): Likewise.
47701 2010-08-26  Bruno Haible  <bruno@clisp.org>
47703         Modernize AC_TRY_COMPILE invocations.
47704         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47705         AC_TRY_COMPILE.
47706         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47707         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47708         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47709         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47710         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47711         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47712         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47713         * m4/lock.m4 (gl_LOCK): Likewise.
47714         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47715         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47716         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47717         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47718         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47719         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47720         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47722         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47723         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47724         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47725         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47726         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47727         extraneous semicolon.
47729 2010-08-26  Jim Meyering  <meyering@redhat.com>
47731         stat-time: relax license LGPL
47732         * modules/stat-time (License): Change from GPL to LGPL,
47733         with consent from all contributors, for use in libguile.
47734         Requested by Ludovic Courtès.
47736 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47738         poll: return immediately on POLLHUP.
47739         * lib/poll.c (poll): Always set timeout before wait_timeout is
47740         computed.
47742 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47744         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
47745         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
47746         rmdir ("dir/.//"), unlinkat.
47748 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47750         stdbool: avoid spurious failure with modern xlc
47751         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47753 2010-08-24  Bruno Haible  <bruno@clisp.org>
47755         getloadavg: simplify code
47756         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
47757         gl_have_func. Update comments.
47759 2010-08-24  Eric Blake  <eblake@redhat.com>
47761         getloadavg: don't define SVR4 on cygwin
47762         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
47763         only define SVR4 when -lkvm is required.
47764         Reported by Yaakov Selkowitz.
47766 2010-08-24  Bruno Haible  <bruno@clisp.org>
47768         priv-set: fix comment
47769         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
47771 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47773         priv-set: fix comments
47774         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
47775         to match code, as suggested by David Bartley in:
47776         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
47778 2010-08-23  Eric Blake  <eblake@redhat.com>
47780         stdbool: avoid rejecting clang
47781         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47782         * tests/test-stdbool.c: Enable more tests if using the system
47783         <stdbool.h> instead of the gnulib replacement.
47784         (main): Move xlc bug test to a runtime test for all compilers.
47785         Reported by Anders Kaseorg.
47787         argz: fix shell quoting issue
47788         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
47789         Reported by Charles Wilson.
47791 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
47792             Erik Faye-Lund <kusmabite@gmail.com>
47794         poll, select: handle ERROR_BROKEN_PIPE.
47795         * lib/poll.c (win32_compute_revents): Return POLLHUP when
47796         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47797         * lib/select.c (win32_compute_revents): Do not mark a pipe
47798         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47800 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
47802         fts: allow compilation with C++
47803         * lib/fts_.h: Specify extern "C" linkage with C++.
47805 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47807         Fix gnulib-tool sed script de-commentation for AIX sed.
47808         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
47809         sed.
47811 2010-08-17  Eric Blake  <eblake@redhat.com>
47813         test-stddef: test for (some) offsetof bugs
47814         * tests/test-stddef.c: Enhance test to ensure correct type of
47815         offsetof.
47816         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
47817         that we are not fixing at this time.
47819 2010-08-15  Bruno Haible  <bruno@clisp.org>
47821         stpncpy: Allow stpncpy to be defined as a macro.
47822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
47823         if it's already correctly declared.
47824         * lib/string.in.h (stpncpy): Undefine before redefining.
47825         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
47827 2010-08-14  Bruno Haible  <bruno@clisp.org>
47829         Rename module 'memxfrm' to 'amemxfrm'.
47830         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
47831         (amemxfrm): Renamed from memxfrm.
47832         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
47833         (amemxfrm): Renamed from memxfrm.
47834         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
47835         * NEWS: Mention the change.
47836         * MODULES.html.sh (String handling <string.h>): Update.
47837         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
47838         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
47839         * lib/unicase/u16-casexfrm.c: Likewise.
47840         * lib/unicase/u32-casexfrm.c: Likewise.
47841         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
47842         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
47843         * lib/uninorm/u16-normxfrm.c: Likewise.
47844         * lib/uninorm/u32-normxfrm.c: Likewise.
47845         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
47846         memxfrm.
47847         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
47848         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
47849         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
47850         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
47851         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
47852         Suggested by Paul Eggert.
47854 2010-08-14  Bruno Haible  <bruno@clisp.org>
47856         Tests for module 'astrxfrm'.
47857         * modules/astrxfrm-tests: New file.
47858         * tests/test-astrxfrm.c: New file.
47860         New module 'astrxfrm'.
47861         * lib/astrxfrm.h: New file.
47862         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47863         * modules/astrxfrm: New file.
47865 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47867         regex: Tweak doc.
47868         * doc/regex.texi (Overview): Don't mention regex.c.
47869         (GNU Regular Expression Compiling): Likewise.
47870         (Match-end-of-line Operator): Mention 'not_eol'.
47872 2010-08-14  Brian Gough  <bjg@gnu.org>
47873             Bruno Haible  <bruno@clisp.org>
47875         git-merge-changelog: add doc relating to use with bzr and hg.
47876         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47878 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47880         pthread: fix pthread.h creation for srcdir != builddir
47881         * modules/pthread (Makefile.am): Fix the rule to work also in a
47882         non-srcdir build.
47884 2010-08-13  Karl Berry  <karl@gnu.org>
47886         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47887         * doc/posix-*/*: force line break before @url of POSIX
47888         specifications.
47889         Suggested by Werner Lemberg.
47891 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47893         strtod: fix const diagnostic
47894         * lib/strtod.c (strtod): Don't assign const char * to char *,
47895         as this elicits a warning from GCC when warnings are enabled.
47897 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47898         and Eric Blake  <eblake@redhat.com>
47900         copy-acl: ignore ENOTSUP on HP-UX
47901         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47902         so that it is available for HP-UX.
47903         * lib/copy-acl.c (qcopy_acl): Use it.
47904         Reported by Patrick M. Callahan.
47906 2010-08-10  Eric Blake  <eblake@redhat.com>
47908         open, chown: relax license
47909         * modules/open (License): Change to LGPLv2+, with consent by all
47910         authors, for use in augeas.
47911         * modules/chown (License): Likewise.
47912         * modules/lchown (Likewise): Likewise.
47913         Requested by Adam Stokes.
47915 2010-08-09  Karl Berry  <karl@gnu.org>
47917         * build-aux/ar-lib: new file, import from Automake.
47918         * config/srclist.txt: autocheck for updates.
47920 2010-08-09  Eric Blake  <eblake@redhat.com>
47922         readlinkat: adjust client modules
47923         * modules/areadlinkat (Depends-on): Use readlinkat, not
47924         symlinkat.
47925         * modules/areadlinkat-with-size (Depends-on): Likewise.
47927         mknod: be more vocal about danger of running tests as root
47928         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
47929         root, since that is just asking for problems.
47930         Suggested by Bruno Haible, based on a report by Rainer Tammer.
47932         readlinkat: split into its own module
47933         * modules/symlinkat: Split readlinkat...
47934         * modules/readlinkat: ...into separate module.
47935         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
47936         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
47937         * lib/symlinkat.c (readlinkat): Move...
47938         * lib/readlinkat.c: ...into new file.
47939         * modules/symlinkat-tests: Split readlinkat test...
47940         * modules/readlinkat-tests: ...into separate module.
47941         * tests/test-symlinkat.c: Split...
47942         * tests/test-readlinkat.c: ...into new file.
47943         * NEWS: Document the split.
47944         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47945         * lib/unistd.in.h (readlinkat): Likewise.
47946         Suggested by Bruno Haible.
47948 2010-08-08  Bruno Haible  <bruno@clisp.org>
47950         memxfrm: Speed up.
47951         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
47952         that usually only one call to strxfrm is necessary for each string
47953         part.
47954         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47956 2010-08-07  Karl Berry  <karl@gnu.org>
47958         * doc/posix-headers/limits.texi,
47959         * doc/posix-functions/malloc.texi,
47960         * doc/posix-functions/strsignal.texi: missing @item.
47961         * doc/ld-version-script.texi: spurious leading i.
47962         * doc/regex.texi (Interval Operators): no commas inside @var.
47964 2010-08-01  Bruno Haible  <bruno@clisp.org>
47966         Integrate the regex documentation.
47967         * doc/gnulib.texi: Define 'cn' index.
47968         (Regular expressions): New a chapter that includes regex.texi and
47969         regexprops-generic.texi.
47970         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
47971         syntax.
47973         Whitespace cleanup.
47974         * doc/regex.texi: Remove trailing spaces.
47976         Add regex documentation.
47977         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
47978         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
47979         Written by Kathy A. Hargreaves and Karl Berry.
47981 2010-08-01  Bruno Haible  <bruno@clisp.org>
47983         link: Update documentation.
47984         * doc/posix-functions/link.texi: Update regarding Solaris.
47986 2010-07-31  Bruno Haible  <bruno@clisp.org>
47988         Update modules list.
47989         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
47990         (String handling <string.h>): Add memcmp2, memxfrm.
47991         (Container data structures): Add xlist, xsublist, xoset.
47992         (Core language properties): Add alignof, unused-parameter.
47993         (Process control, Numeric conversion functions <stdlib.h>): Renamed
47994         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
47995         (Unibyte characters <ctype.h>): New section.
47996         (String handling <string.h>): New section.
47997         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
47998         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
47999         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
48000         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
48001         tan, tanh, tanl, y0, y1, yn.
48002         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
48003         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
48004         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
48005         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
48006         unlockpt, vdprintf, vdprintf-posix.
48007         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
48008         (File system functions): Add concat-filename, sys_file, sys_ioctl,
48009         xconcat-filename.
48010         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
48011         getdtablesize, pipe2, pipe2-safer.
48012         (Security): New section.
48013         (Networking functions): Add accept4.
48014         (Signal handling): Add sigpipe.
48015         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
48016         mbmemcasecoll.
48017         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
48018         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
48019         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
48020         pipe-filter-ii.
48021         (Misc): Add argp-version-etc, login_tty, parse-duration.
48023 2010-07-31  Bruno Haible  <bruno@clisp.org>
48025         Improve doc in MODULES.html.
48026         * modules/linkat (Description): Add the word "function".
48027         * modules/mkfifo (Description): Likewise.
48028         * modules/mknod (Description): Likewise.
48029         * modules/remove (Description): Likewise.
48030         * modules/renameat (Description): Likewise.
48031         * modules/stat (Description): Likewise.
48032         * modules/symlink (Description): Likewise.
48033         * modules/unlink (Description): Likewise.
48035 2010-07-31  Bruno Haible  <bruno@clisp.org>
48037         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
48038         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
48039         option --enable/disable-c++ instead of --enable/disable-cxx.
48040         * NEWS: Mention the change.
48042 2010-07-31  Bruno Haible  <bruno@clisp.org>
48044         readlink, areadlink: Relax test a bit.
48045         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
48046         alternative to ENOTDIR.
48047         * tests/test-areadlink.h (test_areadlink): Likewise.
48048         Reported by Rainer Tammer.
48050 2010-07-31  Bruno Haible  <bruno@clisp.org>
48052         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
48053         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
48054         character, perform the search using U_STRCHR.
48055         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
48056         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
48057         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
48058         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
48059         Suggested by Paolo Bonzini.
48061 2010-07-31  Bruno Haible  <bruno@clisp.org>
48063         unistr/u*-strstr: Fix dependencies.
48064         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
48065         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
48066         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
48068 2010-07-31  Bruno Haible  <bruno@clisp.org>
48070         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
48071         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
48072         the beginning of the loop.
48073         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
48074         cases in 'switch' statement.
48076         unistr/u8-strchr: Fix several bugs.
48077         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
48078         the string. When not found, return NULL, not a pointer near the end.
48080         More tests for unistr/u8-strchr.
48081         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
48082         that the function does not read past the first occurrence of the byte
48083         being searched.
48084         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
48085         * tests/unistr/test-u16-strchr.c (main): New function.
48086         * tests/unistr/test-u32-strchr.c (main): New function.
48088 2010-07-31  Bruno Haible  <bruno@clisp.org>
48090         posix-modules: Ignore backup files of documentation files.
48091         * posix-modules: grep only through files named *.texi.
48093 2010-07-31  Bruno Haible  <bruno@clisp.org>
48095         symlinkat: Fix documentation.
48096         * doc/posix-functions/readlinkat.texi: Fix module name.
48098 2010-07-31  Bruno Haible  <bruno@clisp.org>
48100         fchownat: Replace also when chown has the trailing slash bug.
48101         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
48102         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
48103         introduced on 2010-04-10.
48104         Reported by Rainer Tammer.
48106 2010-07-31  Bruno Haible  <bruno@clisp.org>
48108         linkat: Work around AIX 7.1 bug.
48109         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
48110         whether linkat handles trailing slash correctly. If not, replace linkat
48111         and define LINKAT_TRAILING_SLASH_BUG.
48112         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
48113         check whether (fd1,file1) points to a directory if file1 or file2 ends
48114         in a slash. Code taken from lib/link.c.
48115         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
48116         Reported by Rainer Tammer.
48118 2010-07-31  Bruno Haible  <bruno@clisp.org>
48120         Correctly determine whether pow is available in libc on AIX 7 with xlc.
48121         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
48122         This disables an xlc optimization that was causing wrong test results.
48123         Reported by Rainer Tammer.
48125 2010-07-31  Bruno Haible  <bruno@clisp.org>
48127         iconv: Work around AIX 6.1..7.1 bug.
48128         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
48129         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
48130         cross-compiling, guess no on all versions of AIX.
48131         Reported by Rainer Tammer.
48133 2010-07-31  Bruno Haible  <bruno@clisp.org>
48135         readlink: Relax test a bit.
48136         * tests/test-readlink.h (test_readlink): Allow different errno value
48137         when readlink is called with a file name that ends in / and refers to
48138         a file.
48139         Suggested by Eric Blake.
48140         Reported by Rainer Tammer.
48142 2010-07-31  Bruno Haible  <bruno@clisp.org>
48144         copysign: Does not require -lm on glibc systems.
48145         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
48146         gl_COMMON_DOUBLE_MATHFUNC.
48147         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
48149 2010-07-31  Bruno Haible  <bruno@clisp.org>
48151         duplocale: Work around AIX 7.1 bug.
48152         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
48153         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
48154         * lib/duplocale.c (rpl_duplocale): Update comment.
48155         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
48156         Reported by Rainer Tammer.
48158 2010-07-30  Bruno Haible  <bruno@clisp.org>
48160         dirfd: Avoid link error on AIX 7.1.
48161         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
48162         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
48163         exist, set REPLACE_DIRFD.
48164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
48165         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
48166         * doc/posix-functions/dirfd.texi: Update.
48167         Reported by Rainer Tammer.
48169 2010-07-30  Eric Blake  <eblake@redhat.com>
48171         strtod: next round of AIX fixes
48172         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
48173         exponent.
48174         * tests/test-strtod.c (main): Enhance tests.
48175         * doc/posix-functions/strtod.texi (strtod): Document next bug.
48176         Reported by Rainer Tammer.
48178         futimens: fix configure check
48179         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
48180         Reported by Bruno Haible.
48182 2010-07-30  Bruno Haible  <bruno@clisp.org>
48184         getline: Update regarding AIX.
48185         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
48186         Reported by Rainer Tammer.
48188 2010-07-30  Bruno Haible  <bruno@clisp.org>
48190         wcwidth: Drop replacement on AIX 7.
48191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
48192         AIX 7.
48193         Reported by Rainer Tammer.
48195 2010-07-30  Bruno Haible  <bruno@clisp.org>
48197         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
48198         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
48199         a 'char *'.
48200         Reported by Rainer Tammer.
48202 2010-07-30  Bruno Haible  <bruno@clisp.org>
48204         unlink: Update regarding AIX.
48205         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
48206         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
48207         Reported by Rainer Tammer.
48209 2010-07-30  Bruno Haible  <bruno@clisp.org>
48211         symlink: Update regarding AIX.
48212         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
48213         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
48214         Reported by Rainer Tammer.
48216 2010-07-30  Bruno Haible  <bruno@clisp.org>
48218         strndup: Update regarding AIX.
48219         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
48220         AIX 7.
48221         Reported by Rainer Tammer.
48223 2010-07-30  Bruno Haible  <bruno@clisp.org>
48225         stat: Update regarding AIX.
48226         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
48227         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
48228         Reported by Rainer Tammer.
48230 2010-07-30  Bruno Haible  <bruno@clisp.org>
48232         truncl: Fix autoconf test.
48233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
48234         whether truncl works.
48235         Reported by Rainer Tammer.
48237 2010-07-30  Bruno Haible  <bruno@clisp.org>
48239         round: Update regarding AIX.
48240         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
48241         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
48242         Reported by Rainer Tammer.
48244 2010-07-30  Bruno Haible  <bruno@clisp.org>
48246         rename: Update regarding AIX.
48247         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
48248         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
48249         Reported by Rainer Tammer.
48251 2010-07-30  Bruno Haible  <bruno@clisp.org>
48253         printf.m4: Update regarding AIX.
48254         * m4/printf.m4: Update comments regarding AIX.
48255         Reported by Rainer Tammer.
48257 2010-07-30  Bruno Haible  <bruno@clisp.org>
48259         iconv: Update regarding AIX.
48260         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
48261         AIX 7.
48262         Reported by Rainer Tammer.
48264 2010-07-30  Bruno Haible  <bruno@clisp.org>
48266         getopt: Update regarding AIX.
48267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
48268         no on AIX.
48269         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
48270         Reported by Rainer Tammer.
48272 2010-07-30  Bruno Haible  <bruno@clisp.org>
48274         ldexpl; Update regarding AIX.
48275         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
48276         on AIX 7.
48277         Reported by Rainer Tammer.
48279 2010-07-30  Bruno Haible  <bruno@clisp.org>
48281         frexpl: Update regarding AIX.
48282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
48283         on AIX 7.
48284         Reported by Rainer Tammer.
48286 2010-07-30  Bruno Haible  <bruno@clisp.org>
48288         open, fopen: Update regarding AIX.
48289         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
48290         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
48291         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
48292         * doc/posix-functions/fopen.texi: Likewise.
48293         Reported by Rainer Tammer.
48295 2010-07-30  Bruno Haible  <bruno@clisp.org>
48297         chown: Update doc regarding AIX.
48298         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
48299         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
48300         Reported by Rainer Tammer.
48302 2010-07-30  Eric Blake  <eblake@redhat.com>
48304         strtod: fix bug in replacement function on AIX
48305         * lib/strtod.c (strtod): Special case broken "0x" parse in
48306         underlying strtod.
48307         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
48308         * doc/posix-functions/strtod.texi (strtod): Likewise.
48309         Reported by Rainer Tammer.
48311 2010-07-30  Bruno Haible  <bruno@clisp.org>
48313         mbrlen: Fix cross-compilation guess for AIX.
48314         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
48315         guess. Leftover from 2008-12-22.
48317 2010-07-30  Bruno Haible  <bruno@clisp.org>
48319         mbrtowc: Fix cross-compilation guess for AIX.
48320         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
48321         guess. Leftover from 2008-12-21.
48323 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
48325         init.sh: work around trap limitation of some shells
48326         * tests/init.sh (setup_): Move exit trap outside of shell function.
48328 2010-07-29  Eric Blake  <eblake@redhat.com>
48330         strtod: aid debugging
48331         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
48332         understanding why strtod is rejected.
48334 2010-07-28  Bruno Haible  <bruno@clisp.org>
48336         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
48337         * lib/unistr/u8-chr.c: Include <string.h>.
48338         * tests/unistr/test-u8-chr.c: Likewise.
48339         * tests/unistr/test-u16-chr.c: Likewise.
48340         * tests/unistr/test-u32-chr.c: Likewise.
48341         * tests/unistr/test-u8-strchr.c: Likewise.
48342         * tests/unistr/test-u16-strchr.c: Likewise.
48343         * tests/unistr/test-u32-strchr.c: Likewise.
48344         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
48345         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
48346         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
48347         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
48349 2010-07-28  Bruno Haible  <bruno@clisp.org>
48351         Use spaces for indentation, not tabs.
48352         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
48354 2010-07-27  Bruno Haible  <bruno@clisp.org>
48356         mbspcasecmp: Fix function specification.
48357         * lib/string.in.h (mbspcasecmp): Fix specification comment.
48358         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
48359         Reported by Eric Blake <eblake@redhat.com>.
48361 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
48363         timespec: use cast and not conditional, as truncation isn't possible
48364         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
48365         instead of a conditional.  Comment about the situation in more detail.
48366         This undoes most of the 2009-10-29 patch.
48368 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
48370         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
48371         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
48372         * lib/unistr/u8-strchr.c: Likewise.
48373         * modules/unistr/u8-chr: Depend on memchr.
48375         unistr/u*-strchr: add tests
48376         * modules/unistr/u8-strchr-tests: New file.
48377         * modules/unistr/u16-strchr-tests: New file.
48378         * modules/unistr/u32-strchr-tests: New file.
48379         * tests/unistr/test-strchr.h: New file.
48380         * tests/unistr/test-u8-strchr.c: New file.
48381         * tests/unistr/test-u16-strchr.c: New file.
48382         * tests/unistr/test-u32-strchr.c: New file.
48384         unistr/u*-chr: test multibyte sequences more
48385         * tests/unistr/test-chr.h: Do complete testing of the characters in the
48386         test vector.
48387         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
48388         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
48389         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
48391         unistr/u*-chr: test multibyte sequences
48392         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
48394         unistr/u*-chr: prepare for multibyte tests
48395         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
48396         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
48397         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
48398         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
48399         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
48400         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
48402 2010-07-18  Bruno Haible  <bruno@clisp.org>
48404         unistr/u8-strchr: Optimize non-ASCII argument case.
48405         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
48406         because the first byte often matches anyway.
48407         Reported by Pádraig Brady <P@draigbrady.com>.
48409 2010-07-15  Karl Berry  <karl@gnu.org>
48411         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
48413 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
48415         getcwd: on Solaris, work better if ancestors are inaccessible
48416         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
48417         buffer and size, try again with a large buffer.  This works better
48418         on Solaris, since its getcwd succeeds even if the path to the root
48419         is inaccessible, and this is helpful in common cases such as .zfs
48420         hidden directories.  Problem reported by J Chapman Flack in
48421         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
48422         Use system getcwd if it's declared, not merely if it's partly
48423         working; use the partly-working test only to avoid needless effort
48424         if the system getcwd fails.
48425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
48426         comment that was already obsolete and is now even more obsolete.
48427         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
48428         now might call strdup.
48430 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
48432         pthread: Add enough so that coreutils/src/sort.c compiles.
48433         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
48434         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
48435         gnulib. Include <sched.h> and <time.h>, as per POSIX.
48436         Include <sys/types.h>, in case it defines pthread_t.
48437         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
48438         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
48439         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
48440         (pthread_rwlockattr_t, pthread_spinlock_t):
48441         New typedefs, if HAVE_PTHREAD_T is not defined.
48442         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
48443         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
48444         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
48445         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
48446         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
48447         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
48448         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
48449         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
48450         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
48451         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
48452         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
48453         New macros.
48454         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
48455         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
48456         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
48457         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
48458         (pthread_spin_unlock): New dummy functions.
48459         (pthread_create): Return EAGAIN; don't set errno.
48460         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
48461         require AC_C_INLINE.
48462         * modules/pthread (Depends-on): Add sched, time.
48463         (pthread.h): Use AM_V_GEN.
48465 2010-07-13  Bruno Haible  <bruno@clisp.org>
48467         striconveh: Don't malloc memory if the result buffer is sufficient.
48468         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
48469         buffer if its size is sufficient.
48470         Reported by Ludovic Courtès <ludo@gnu.org>.
48472 2010-07-13  Bruno Haible  <bruno@clisp.org>
48474         strtod: Add safety check.
48475         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
48477 2010-07-12  Bruno Haible  <bruno@clisp.org>
48479         Unify tests that set gl_cv_func_ldexpl_no_libm.
48480         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
48481         gl_FUNC_LDEXPL.
48482         (gl_FUNC_LDEXPL): Invoke it.
48483         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48485 2010-07-12  Bruno Haible  <bruno@clisp.org>
48487         Unify tests that set gl_cv_func_ldexp_no_libm.
48488         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
48489         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
48490         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
48491         (configure.ac): Simply invoke gl_FUNC_LDEXP.
48492         * modules/strtod (Files): Add m4/ldexp.m4.
48494 2010-07-12  Bruno Haible  <bruno@clisp.org>
48496         Unify tests that set gl_cv_func_frexpl_no_libm.
48497         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
48498         gl_FUNC_FREXPL_NO_LIBM.
48499         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
48500         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48502 2010-07-12  Bruno Haible  <bruno@clisp.org>
48504         Unify tests that set gl_cv_func_frexp_no_libm.
48505         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
48506         gl_FUNC_FREXP_NO_LIBM.
48507         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
48508         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
48510 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48512         memcoll: clarify sizes versus lengths, document better, and tweak perf
48513         * lib/memcoll.c (strcoll_loop, memcoll0):
48514         Improve quality of descriptive comments.  Name variables
48515         consistently as to whether they are lengths (which do not include
48516         terminating null) versus sizes (which do).
48517         * lib/xmemcoll.c (xmemcoll0): Likewise.
48518         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
48519         returned when s1size == 0; this is easier to compile and saves
48520         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
48522 2010-07-12  Bruno Haible  <bruno@clisp.org>
48524         Tests for module '_Exit'.
48525         * modules/_Exit-tests: New file.
48526         * tests/test-_Exit.sh: New file.
48527         * tests/test-_Exit.c: New file.
48529         New module '_Exit'.
48530         * lib/stdlib.in.h (__attribute__): New macro.
48531         (_Exit): New declaration.
48532         * lib/_Exit.c: New file.
48533         * m4/_Exit.m4: New file.
48534         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
48535         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
48536         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
48537         * modules/_Exit: New file.
48538         * tests/test-stdlib-c++.cc (_Exit): Check signature.
48539         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
48541 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48543         strtod: make it more-accurate typically, and don't require libm
48544         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
48545         Include limits.h.  Don't include string.h.
48546         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
48547         (locale_isspace): New function, so that no casts are needed to
48548         check whether *s is a space.
48549         (ldexp): Provide an unused dummy if not available.
48550         (scale_radix_exp, parse_number, underlying_strtod): New functions.
48551         (strtod): Use them.  This implementation prefers to use the
48552         underlying strtod if available, falling back on our own code
48553         only to fix known bugs.  This is more likely to produce an
48554         accurate result.  Also, it avoids the use of libm functions.
48555         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
48556         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
48557         was absent, but it caused a test failure with coreutils.
48558         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
48559         with libm.
48560         * modules/strtod (Makefile.am, Link): libm is no longer needed.
48561         * modules/strtod-tests (Makefile.am): Likewise.
48563 2010-07-11  Pádraig Brady  <P@draigBrady.com>
48564             Bruno Haible  <bruno@clisp.org>
48566         unistr/u8-strchr: Optimize ASCII argument case.
48567         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
48569 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48571         (x)memcoll: minor tweaks
48572         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
48573         is after the type that it qualifies.
48574         (memcoll0): Likewise.
48575         * lib/memcoll.h (memcoll0): Likewise.
48576         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
48577         * lib/xmemcoll.h (xmemcoll0): Likewise.
48578         * lib/memcoll.c (memcoll0): Correct the comment.  This function
48579         differs from memcoll in that the NUL byte is part of the argument.
48580         Omit the abort-checks, as performance is a real issue here.  Plus,
48581         the checks were wrong anyway (an off-by-one error).  Omit local
48582         variable 'diff', as it's a bit clearer that way.
48583         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
48584         no longer needed.
48586 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
48588         (x)memcoll: speedup when input is known to be NUL delimited
48589         * lib/memcoll.c: Include stdlib.
48590         (memcoll0): New function.
48591         (strcoll_loop): New function, refactored for use in both memcoll
48592         and memcoll0.
48593         * lib/memcoll.h (memcoll0): Add prototype.
48594         * lib/xmemcoll.c (xmemcoll0): New function.
48595         (collate_error): New function, refactored for use in both xmemcoll
48596         and xmemcoll0.
48597         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48598         * m4/memcoll.m4: add inline invocation.
48600 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48602         * build-aux/bootstrap: Remove any local translations
48603         from the translation project synchronization directory,
48604         so that local only translations are not distributed.
48606 2010-07-04  Bruno Haible  <bruno@clisp.org>
48608         fsusage: Clarify which code applies to which platforms.
48609         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48610         platform.
48611         * lib/fsusage.c (get_fs_usage): Likewise.
48613 2010-07-04  Bruno Haible  <bruno@clisp.org>
48615         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48616         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48617         Reported by Martin Lambers <marlam@marlam.de>.
48619 2010-07-04  Jim Meyering  <meyering@redhat.com>
48621         hash: once again explicitly disallow insertion of NULL
48622         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48623         inserting a NULL pointer cannot work with these functions.
48624         Add a comment with details.
48625         This reverts part of the 2010-07-01 commit, 5bef1a35
48626         "hash: extend module to deal with non-pointer keys".
48628 2010-07-01  Bruno Haible  <bruno@clisp.org>
48630         stdbool: Update doc.
48631         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48632         Info from Christian Weisgerber <naddy@mips.inka.de>.
48634 2010-07-01  Jim Meyering  <meyering@redhat.com>
48636         hash: extend module to deal with non-pointer keys
48637         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48638         but that allows insertion of non-pointer entries.
48639         Do not disallow an ENTRY value of NULL.
48640         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48641         * lib/hash.h (hash_insert0): Declare.
48643 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48645         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48646         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48647         not present (i.e. with autoconf 2.59 and when using gettextize, not
48648         gnulib), require AC_GNU_SOURCE instead.
48650 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48652         idpriv-drop: Fix tests.
48653         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48654         not to the test-idpriv-droptemp program.
48656 2010-06-29  Bruno Haible  <bruno@clisp.org>
48658         string: Fix syntax error with g++ 2.96.
48659         * lib/string.in.h (__pure__): Remove definition.
48660         (_GL_ATTRIBUTE_PURE): New macro.
48661         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48662         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48663         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48665 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48667         unitypes: Fix bug introduced on 2010-05-18.
48668         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48670 2010-06-22  Eric Blake  <eblake@redhat.com>
48672         memmem: slight optimization
48673         * lib/str-two-way.h (critical_factorization): Update comments.
48674         Reduce work during factorization phase.
48675         Reported by Carlos Bueno <carlos@bueno.org>.
48677 2010-06-21  Bruno Haible  <bruno@clisp.org>
48679         Fix HAVE_CALLOC_POSIX misnomer.
48680         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48681         !HAVE_CALLOC_POSIX.
48682         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48683         HAVE_CALLOC_POSIX.
48684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48685         instead of HAVE_CALLOC_POSIX.
48686         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48687         HAVE_CALLOC_POSIX.
48689         Use modern idiom for calloc() replacement.
48690         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48691         AC_FUNC_CALLOC.
48692         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48693         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48694         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48695         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48696         (gl_REPLACE_CALLOC): New macro.
48698 2010-06-21  Bruno Haible  <bruno@clisp.org>
48700         Fix HAVE_REALLOC_POSIX misnomer.
48701         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48702         !HAVE_REALLOC_POSIX.
48703         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48704         HAVE_REALLOC_POSIX.
48705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48706         instead of HAVE_REALLOC_POSIX.
48707         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48708         HAVE_REALLOC_POSIX.
48710         Use modern idiom for realloc() replacement.
48711         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48712         AC_FUNC_REALLOC.
48713         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48714         Autoconf's AC_FUNC_REALLOC.
48715         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48716         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48717         (gl_REPLACE_REALLOC): New macro.
48718         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48720 2010-06-21  Bruno Haible  <bruno@clisp.org>
48722         Fix HAVE_MALLOC_POSIX misnomer.
48723         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48724         !HAVE_MALLOC_POSIX.
48725         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48726         HAVE_MALLOC_POSIX.
48727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48728         instead of HAVE_MALLOC_POSIX.
48729         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48730         HAVE_MALLOC_POSIX.
48732         Use modern idiom for malloc() replacement.
48733         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48734         AC_FUNC_MALLOC.
48735         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48736         Autoconf's AC_FUNC_MALLOC.
48737         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48738         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48739         (gl_REPLACE_MALLOC): New macro.
48740         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48742 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
48744         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
48745         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
48746         This macro takes 3 arguments, not 4.
48748 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
48750         ipv6: fix detection under mingw
48751         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
48752         in6_addr.
48754 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
48756         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
48757         that strtod() works when cross-compiling to a glibc version known
48758         to work.
48760 2010-06-15  Bruno Haible  <bruno@clisp.org>
48762         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
48764 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
48766         select: Correct timeout.
48767         * lib/select.c (rpl_select): Compute wait_timeout correctly.
48769 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48771         git-version-gen: init shell var to avoid env var influence
48772         * build-aux/git-version-gen (v): Init shell var to empty.
48774 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
48776         priv-set: Don't assume that priv.h exists merely because getppriv does.
48777         See Jan Andersen's bug report about AIX 5L in
48778         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
48779         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
48780         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
48781         * lib/priv-set.h: Likewise.
48782         * tests/test-priv-set.c: Likewise.
48784 2010-06-13  Bruno Haible  <bruno@clisp.org>
48786         relocatable: Make it easier to test whether to install wrappers.
48787         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
48788         RELOCATABLE_VIA_WRAPPER.
48790 2010-06-13  Bruno Haible  <bruno@clisp.org>
48792         gnulib-tool: Display specified modules and dependencies differently.
48793         * gnulib-tool (func_show_module_list): New function.
48794         (func_import, func_create_testdir): Invoke it.
48795         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48797 2010-06-13  Bruno Haible  <bruno@clisp.org>
48799         gnulib-tool: Align code of func_import and func_create_testdir.
48800         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
48801         specified_modules.
48803 2010-06-12  Jim Meyering  <meyering@redhat.com>
48805         test-inttostr: avoid spurious failure on Solaris 9
48806         * tests/test-inttostr.c (main): Skip the test when snprintf fails
48807         to accept "%ju".  Reported by Bruno Haible.
48809 2010-06-11  Jim Meyering  <meyering@redhat.com>
48811         test-sys_socket: mark variables as used more readably
48812         * tests/test-sys_socket.c (main): Mark otherwise unused variables
48813         as "used" explicitly via (void) statement casts.  This is more
48814         readable than using them in an artificial return expression.
48815         Suggestion from Bruno Haible.
48817 2010-06-11  Bruno Haible  <bruno@clisp.org>
48819         Avoid some more warnings from "gcc -Wwrite-strings".
48820         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
48821         to 'const char *'.
48822         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
48823         * tests/test-c-strcasestr.c (main): Likewise.
48824         * tests/test-mbscasestr1.c (main): Likewise.
48825         * tests/test-mbscasestr2.c (main): Likewise.
48826         * tests/test-memmem.c (main): Likewise.
48827         * tests/test-strstr.c (main): Likewise.
48828         * tests/test-strcasestr.c (main): Likewise.
48830 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48832         init.sh: change framework_failure_ to fail with status 99, not 1
48833         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
48834         automake's parallel-tests rule that this is an unexpected failure,
48835         even if the test is listed in XFAIL_TESTS.
48837 2010-06-11  Jim Meyering  <meyering@redhat.com>
48839         test-inttostr: avoid warnings about 4-6KB literal strings
48840         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
48841         Include "macros.h", for its definition of ASSERT.
48842         (CK): s/assert/ASSERT/
48843         * modules/inttostr-tests (Files): Add macros.h.
48845         init.sh: don't use $ME_ or skip_ before they are defined
48846         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
48847         their first uses.  Also hoist their companions: warn_, fail_,
48848         framework_failure_, $stderr_fileno.  Prompted by a patch from
48849         Stefano Lattarini.
48851         test-sys_socket: avoid set-but-not-used warnings from gcc
48852         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
48853         avoid warning about set-but-not-used variables.
48855         test-xvasprintf: avoid 'const' discard warnings
48856         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
48857         "const" when assigning from literal strings.
48858         (test_xasprintf): Add "void" in function argument list to placate
48859         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48861         tests: avoid compilation warnings in argmatch and exclude tests...
48862         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48863         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48864         Since it always exits, declare with the "noreturn" attribute.
48865         * tests/test-argmatch.c: Likewise.
48867         tests: avoid 'const' discard warnings in mbsstr tests
48868         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48869         * tests/test-mbsstr2.c (main): Likewise.
48871         test-verify: avoid warning from gcc's -Wmissing-declarations
48872         * tests/test-verify.c (function): Declare to be static.
48874         test-inttostr.c: include <string.h> for use of strcmp
48875         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48877         test-linkat: avoid failed assertion on "other" architectures
48878         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48879         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48880         sparc: https://bugs.launchpad.net/bugs/591968
48882 2010-06-11  Jim Meyering  <meyering@redhat.com>
48884         printf.m4: avoid autoconf's "Expanded Before Required" warning
48885         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48886         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48887         autoconf warning.
48889 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48891         Replacement header templates are now named with ".in", not "_".
48892         * doc/gnulib-intro.texi: Correct.
48894 2010-06-10  Jim Meyering  <meyering@redhat.com>
48896         inttostr-tests: depend on snprintf, not snprintf-posix
48897         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48898         snprintf-posix, to avoid this aclocal failure:
48899           missing file gnulib-tests/vasnprintf.c
48900           configure.ac:45: error: expected source file, required through \
48901           AC_LIBSOURCES, not found
48903 2010-06-10  Jim Meyering  <meyering@redhat.com>
48905         inttostr: add a new function, inttostr, and tests
48906         The namesake function was not available.  The existence of the
48907         template file, inttostr.c makes its addition nontrivial.
48908         * lib/anytostr.c: Rename from inttostr.c.
48909         (anytostr): Rename from inttostr.
48910         * lib/inttostr.c: New file.
48911         * modules/inttostr (Files): Add anytostr.c.
48912         (Makefile.am): Set lib_SOURCES instead of ...
48913         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48914         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48915         * lib/offtostr.c: Likewise.
48916         * lib/uinttostr.c: Likewise.
48917         * lib/umaxtostr.c: Likewise.
48918         * modules/inttostr-tests: New file.
48919         * tests/test-inttostr.c: New file.  Test these functions.
48921 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
48922             Bruno Haible  <bruno@clisp.org>
48924         Add "Extending Gnulib" chapter to manual.
48925         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
48926         chapter.
48927         (Extending Gnulib): New chapter.
48928         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
48929         chapter.
48931 2010-06-09  Bruno Haible  <bruno@clisp.org>
48933         Avoid relocwrapper link errors due to gnulib replacement functions.
48934         * lib/areadlink.c: Use the system's malloc, realloc functions.
48935         (areadlink): Set errno to ENOMEM explicitly.
48936         * modules/areadlink (Depends-on): Remove malloc-posix.
48937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48939 2010-06-09  Bruno Haible  <bruno@clisp.org>
48941         Avoid relocwrapper link errors due to gnulib replacement functions.
48942         * lib/canonicalize-lgpl.c: Use the system's malloc function.
48943         * lib/malloca.c: Likewise.
48944         * lib/relocatable.c: Likewise.
48945         * lib/progreloc.c: Use the system's malloc, sprintf functions.
48946         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
48947         * lib/setenv.c: Use the system's malloc, realloc functions.
48948         * lib/strerror.c: Use the system's sprintf function.
48949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48951 2010-06-04  Bruno Haible  <bruno@clisp.org>
48953         Prefer documented low-level autoconf macro names.
48954         * m4/lib-link.m4: Use m4_translit instead of translit.
48955         * m4/environ.m4: Likewise.
48956         * m4/mathfunc.m4: Likewise.
48957         * m4/onceonly.m4: Likewise.
48958         * m4/stdint.m4: Likewise.
48959         Suggested by Eric Blake.
48961 2010-06-04  Martin Lambers  <marlam@marlam.de>
48962             Bruno Haible  <bruno@clisp.org>
48964         havelib: Allow library names with '+' characters.
48965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48966         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
48968 2010-06-09  Bruno Haible  <bruno@clisp.org>
48970         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
48971         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
48972         realloc failed.
48974 2010-06-08  Peter Simons  <simons@cryp.to>
48976         maint.mk: make the news-check rule more configurable
48977         * top/maint.mk (news-check-lines-spec): New variable.
48978         (news-check): Use "sed -n 1,10p" in place of "head".
48980 2010-06-07  Jim Meyering  <meyering@redhat.com>
48982         do-release-commit-and-tag: fix typo in --help
48983         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
48985         regex: avoid new dead-code warning with gcc-4.6.0
48986         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
48987         if-block containing a while-loop.  It's been unused for at least
48988         5 years.
48990 2010-06-05  Bruno Haible  <bruno@clisp.org>
48992         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
48993         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
48995 2010-06-04  Bruno Haible  <bruno@clisp.org>
48997         Update to GNU gettext 0.18.1.
48998         * modules/gettext (configure.ac): Require gettext infrastructure from
48999         version 0.18.1.
49001 2010-06-03  Bruno Haible  <bruno@clisp.org>
49003         Don't use AC_LIBOBJ with file names in subdirectories.
49004         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
49005         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
49006         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
49007         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
49008         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
49009         gl_LIBUNISTRING_LIBSOURCE.
49010         (Makefile.am): Augment lib_SOURCES here, conditionally.
49011         * NEWS: Drop requirement for Automake option 'subdir-objects'.
49013 2010-06-03  Bruno Haible  <bruno@clisp.org>
49015         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
49016         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
49017         expansion does not end with a newline.
49018         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
49019         unnecessary newline.
49021 2010-06-03  Bruno Haible  <bruno@clisp.org>
49023         Reduce dependencies.
49024         * tests/test-quotearg.h: New file, extracted from
49025         tests/test-quotearg.c.
49026         * tests/test-quotearg-simple.c: New file, extracted from
49027         tests/test-quotearg.c.
49028         * tests/test-quotearg.c: Don't include <ctype.h>.
49029         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
49030         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
49031         use_quote_double_quotes, use_quotearg_colon): Moved to
49032         tests/test-quotearg.h.
49033         (results_g, flag_results, custom_quotes, custom_results): Moved
49034         to tests/test-quotearg-simple.c.
49035         (main): Moved the part that does not depend on gettext to
49036         tests/test-quotearg-simple.c. Return 77 if the test cannot be
49037         performed.
49038         * modules/quotearg-simple: New file.
49039         * modules/quotearg-simple-tests: New file.
49040         * modules/quotearg (Depends-on): Add quotearg-simple.
49041         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
49042         (Files): Add tests/test-quotearg.h.
49043         Reported by Paolo Bonzini.
49045 2010-06-03  Bruno Haible  <bruno@clisp.org>
49047         Reduce dependencies.
49048         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
49050 2010-06-03  Bruno Haible  <bruno@clisp.org>
49052         time: Undefine more broken macros.
49053         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
49054         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
49055         Reported by Eric Blake.
49057 2010-06-03  Bruno Haible  <bruno@clisp.org>
49059         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
49060         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
49061         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
49062         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
49063         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
49064         Reported by Ludovic Courtès <ludo@gnu.org>.
49066 2010-06-02  Eric Blake  <eblake@redhat.com>
49068         time: work with mingw + pthreads-win32 library
49069         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
49070         if timespec is defined only in pthread.h.
49071         * modules/time (Makefile.am): Substitute it.
49072         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
49073         <pthread.h>, when needed.
49074         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
49075         from the library.
49077 2010-05-31  Bruno Haible  <bruno@clisp.org>
49079         Avoid expanding two macros in the wrong order.
49080         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
49081         gl_LIBUNISTRING if it is defined.
49082         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
49083         autoconf >= 2.64.
49084         Reported by Ludovic Courtès <ludo@gnu.org>.
49086 2010-05-27  Jim Meyering  <meyering@redhat.com>
49088         maint.mk: also prohibit "#undef" of always-defined symbols
49089         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
49090         Allow more than one space before the symbol name.
49091         (sc_prohibit_always-defined_macros): Use grep's -E, now that
49092         the regexp uses alternation.
49094 2010-05-26  Eric Blake  <eblake@redhat.com>
49096         maint.mk: avoid echo -e
49097         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
49098         Convert all uses of echo -* to printf.
49099         Reported by Matthias Bolte.
49101 2010-05-25  Bruno Haible  <bruno@clisp.org>
49103         Update to GNU gettext 0.18, part 2.
49104         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
49105         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
49107 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49109         Add missing include in test-pwrite.c.
49110         * tests/test-pwrite.c: Include string.h, for strcmp.
49112 2010-05-24  Bruno Haible  <bruno@clisp.org>
49114         * NEWS: Mention requirement for Automake option 'subdir-objects'.
49116 2010-05-24  Bruno Haible  <bruno@clisp.org>
49118         Don't use conversion with transliteration in u{8,16,32}_strcoll.
49119         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
49120         iconveh_error argument.
49121         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
49122         U_STRCONV_TO_LOCALE.
49123         * lib/unistr/u16-strcoll.c: Likewise.
49124         * lib/unistr/u32-strcoll.c: Likewise.
49125         * modules/unistr/u8-strcoll (Depends-on): Add
49126         uniconv/u8-strconv-to-enc, localcharset. Remove
49127         uniconv/u8-strconv-to-locale.
49128         (configure.ac): Bump version number.
49129         * modules/unistr/u16-strcoll (Depends-on): Add
49130         uniconv/u16-strconv-to-enc, localcharset. Remove
49131         uniconv/u16-strconv-to-locale.
49132         (configure.ac): Bump version number.
49133         * modules/unistr/u32-strcoll (Depends-on): Add
49134         uniconv/u32-strconv-to-enc, localcharset. Remove
49135         uniconv/u32-strconv-to-locale.
49136         (configure.ac): Bump version number.
49138 2010-05-24  Bruno Haible  <bruno@clisp.org>
49140         Avoid a test failure on NetBSD 5.0.
49141         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
49142         an iconv() bug.
49144 2010-05-24  Bruno Haible  <bruno@clisp.org>
49146         Adjust #include directive style.
49147         * modules/regex (Includes): Recommend to write <regex.h>.
49149 2010-05-24  Bruno Haible  <bruno@clisp.org>
49151         regex: Don't require alloca.
49152         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
49153         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
49154         only inside if (0).
49156 2010-05-23  Jim Meyering  <meyering@redhat.com>
49158         test-renameat.c: include <sys/stat.h>
49159         * tests/test-renameat.c: Include <sys/stat.h>; required for
49160         definition of S_IS* macros.
49162 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
49164         Update maintainer documentation for 'relocatable-prog' module.
49165         * doc/relocatable-maint.texi: Update.
49166         Comments by Bruno Haible.
49168 2010-05-23  Bruno Haible  <bruno@clisp.org>
49170         git-merge-changelog: Enable --split-merged-entry by default.
49171         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
49172         (usage): Don't mention this option any more.
49173         Reported by Ralf Wildenhues.
49175 2010-05-23  Jim Meyering  <meyering@redhat.com>
49177         test-pwrite: do not leave behind a test file named "out"
49178         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
49179         The trivial-looking use of init.sh is really necessary.
49180         It ensures that the temporary file, "out", is created in
49181         a temporary directory, and removed upon termination.
49182         * tests/test-pwrite.sh: Re-add file.
49183         * modules/pwrite-tests: Reference it.
49185 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49187         Fix output redirection buglet in init.sh.
49188         * tests/init.sh: Fix redirection of stderr.
49190 2010-05-20  Simon Josefsson  <simon@josefsson.org>
49192         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
49194 2010-05-17  Simon Josefsson  <simon@josefsson.org>
49196         * modules/valgrind-tests: New file.
49197         * m4/valgrind-tests.m4: New file.
49198         * doc/valgrind-tests.texi: New file.
49199         * doc/gnulib.texi (Running self-tests under valgrind): New
49200         section.
49202 2010-05-19  Bruno Haible  <bruno@clisp.org>
49204         Clean up dead code in recent commit.
49205         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
49206         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
49207         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
49208         Suggested by Paolo Bonzini.
49210 2010-05-19  Bruno Haible  <bruno@clisp.org>
49212         Avoid valgrind error reports from libunistring.
49213         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
49214         * modules/libunistring (Files): Add it.
49215         * modules/libunistring-optional (Files): Likewise.
49217 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
49218             Bruno Haible  <bruno@clisp.org>
49220         New module 'libunistring-optional'.
49221         * modules/libunistring-optional: New file.
49222         * m4/libunistring-base.m4: New file.
49223         * m4/libunistring-optional.m4: New file.
49224         * lib/unicase.in.h: Renamed from lib/unicase.h.
49225         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
49226         * lib/unictype.in.h: Renamed from lib/unictype.h.
49227         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
49228         * lib/uniname.in.h: Renamed from lib/uniname.h.
49229         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
49230         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
49231         * lib/unistr.in.h: Renamed from lib/unistr.h.
49232         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
49233         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
49234         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
49235         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
49236         gl_LIBUNISTRING. If the library was found, determine the installed
49237         version and set LIBUNISTRING_VERSION.
49238         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
49239         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
49240         handle a configuration option --with-included-libunistring.
49241         * modules/libunistring (Files): Add m4/absolute-header.m4.
49242         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
49243         Add m4/libunistring-base.m4.
49244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49245         (Makefile.am): Build unicase.h from unicase.in.h.
49246         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
49247         Add m4/libunistring-base.m4.
49248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49249         (Makefile.am): Build uniconv.h from uniconv.in.h.
49250         * modules/unictype/base (Files): Use unictype.in.h instead of
49251         unictype.h. Add m4/libunistring-base.m4.
49252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49253         (Makefile.am): Build unictype.h from unictype.in.h.
49254         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
49255         Add m4/libunistring-base.m4.
49256         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49257         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
49258         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
49259         Add m4/libunistring-base.m4.
49260         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49261         (Makefile.am): Build uniname.h from uniname.in.h.
49262         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
49263         Add m4/libunistring-base.m4.
49264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49265         (Makefile.am): Build uninorm.h from uninorm.in.h.
49266         * modules/unistdio/base (Files): Use unistdio.in.h instead of
49267         unistdio.h. Add m4/libunistring-base.m4.
49268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49269         (Makefile.am): Build unistdio.h from unistdio.in.h.
49270         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
49271         Add m4/libunistring-base.m4.
49272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49273         (Makefile.am): Build unistr.h from unistr.in.h.
49274         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
49275         Add m4/libunistring-base.m4.
49276         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49277         (Makefile.am): Build unitypes.h from unitypes.in.h.
49278         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
49279         Add m4/libunistring-base.m4.
49280         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49281         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
49282         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
49283         uniwidth.h. Add m4/libunistring-base.m4.
49284         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49285         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
49286         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
49287         instead of augmenting lib_SOURCES.
49288         * modules/unicase/empty-suffix-context: Likewise.
49289         * modules/unicase/locale-language: Likewise.
49290         * modules/unicase/tolower: Likewise.
49291         * modules/unicase/totitle: Likewise.
49292         * modules/unicase/toupper: Likewise.
49293         * modules/unicase/u8-casecmp: Likewise.
49294         * modules/unicase/u8-casecoll: Likewise.
49295         * modules/unicase/u8-casefold: Likewise.
49296         * modules/unicase/u8-casexfrm: Likewise.
49297         * modules/unicase/u8-ct-casefold: Likewise.
49298         * modules/unicase/u8-ct-tolower: Likewise.
49299         * modules/unicase/u8-ct-totitle: Likewise.
49300         * modules/unicase/u8-ct-toupper: Likewise.
49301         * modules/unicase/u8-is-cased: Likewise.
49302         * modules/unicase/u8-is-casefolded: Likewise.
49303         * modules/unicase/u8-is-lowercase: Likewise.
49304         * modules/unicase/u8-is-titlecase: Likewise.
49305         * modules/unicase/u8-is-uppercase: Likewise.
49306         * modules/unicase/u8-prefix-context: Likewise.
49307         * modules/unicase/u8-suffix-context: Likewise.
49308         * modules/unicase/u8-tolower: Likewise.
49309         * modules/unicase/u8-totitle: Likewise.
49310         * modules/unicase/u8-toupper: Likewise.
49311         * modules/unicase/u16-casecmp: Likewise.
49312         * modules/unicase/u16-casecoll: Likewise.
49313         * modules/unicase/u16-casefold: Likewise.
49314         * modules/unicase/u16-casexfrm: Likewise.
49315         * modules/unicase/u16-ct-casefold: Likewise.
49316         * modules/unicase/u16-ct-tolower: Likewise.
49317         * modules/unicase/u16-ct-totitle: Likewise.
49318         * modules/unicase/u16-ct-toupper: Likewise.
49319         * modules/unicase/u16-is-cased: Likewise.
49320         * modules/unicase/u16-is-casefolded: Likewise.
49321         * modules/unicase/u16-is-lowercase: Likewise.
49322         * modules/unicase/u16-is-titlecase: Likewise.
49323         * modules/unicase/u16-is-uppercase: Likewise.
49324         * modules/unicase/u16-prefix-context: Likewise.
49325         * modules/unicase/u16-suffix-context: Likewise.
49326         * modules/unicase/u16-tolower: Likewise.
49327         * modules/unicase/u16-totitle: Likewise.
49328         * modules/unicase/u16-toupper: Likewise.
49329         * modules/unicase/u32-casecmp: Likewise.
49330         * modules/unicase/u32-casecoll: Likewise.
49331         * modules/unicase/u32-casefold: Likewise.
49332         * modules/unicase/u32-casexfrm: Likewise.
49333         * modules/unicase/u32-ct-casefold: Likewise.
49334         * modules/unicase/u32-ct-tolower: Likewise.
49335         * modules/unicase/u32-ct-totitle: Likewise.
49336         * modules/unicase/u32-ct-toupper: Likewise.
49337         * modules/unicase/u32-is-cased: Likewise.
49338         * modules/unicase/u32-is-casefolded: Likewise.
49339         * modules/unicase/u32-is-lowercase: Likewise.
49340         * modules/unicase/u32-is-titlecase: Likewise.
49341         * modules/unicase/u32-is-uppercase: Likewise.
49342         * modules/unicase/u32-prefix-context: Likewise.
49343         * modules/unicase/u32-suffix-context: Likewise.
49344         * modules/unicase/u32-tolower: Likewise.
49345         * modules/unicase/u32-totitle: Likewise.
49346         * modules/unicase/u32-toupper: Likewise.
49347         * modules/unicase/ulc-casecmp: Likewise.
49348         * modules/unicase/ulc-casecoll: Likewise.
49349         * modules/unicase/ulc-casexfrm: Likewise.
49350         * modules/uniconv/u8-conv-from-enc: Likewise.
49351         * modules/uniconv/u8-conv-to-enc: Likewise.
49352         * modules/uniconv/u8-strconv-from-enc: Likewise.
49353         * modules/uniconv/u8-strconv-from-locale: Likewise.
49354         * modules/uniconv/u8-strconv-to-enc: Likewise.
49355         * modules/uniconv/u8-strconv-to-locale: Likewise.
49356         * modules/uniconv/u16-conv-from-enc: Likewise.
49357         * modules/uniconv/u16-conv-to-enc: Likewise.
49358         * modules/uniconv/u16-strconv-from-enc: Likewise.
49359         * modules/uniconv/u16-strconv-from-locale: Likewise.
49360         * modules/uniconv/u16-strconv-to-enc: Likewise.
49361         * modules/uniconv/u16-strconv-to-locale: Likewise.
49362         * modules/uniconv/u32-conv-from-enc: Likewise.
49363         * modules/uniconv/u32-conv-to-enc: Likewise.
49364         * modules/uniconv/u32-strconv-from-enc: Likewise.
49365         * modules/uniconv/u32-strconv-from-locale: Likewise.
49366         * modules/uniconv/u32-strconv-to-enc: Likewise.
49367         * modules/uniconv/u32-strconv-to-locale: Likewise.
49368         * modules/unictype/bidicategory-byname: Likewise.
49369         * modules/unictype/bidicategory-name: Likewise.
49370         * modules/unictype/bidicategory-of: Likewise.
49371         * modules/unictype/bidicategory-test: Likewise.
49372         * modules/unictype/block-list: Likewise.
49373         * modules/unictype/block-test: Likewise.
49374         * modules/unictype/category-C: Likewise.
49375         * modules/unictype/category-Cc: Likewise.
49376         * modules/unictype/category-Cf: Likewise.
49377         * modules/unictype/category-Cn: Likewise.
49378         * modules/unictype/category-Co: Likewise.
49379         * modules/unictype/category-Cs: Likewise.
49380         * modules/unictype/category-L: Likewise.
49381         * modules/unictype/category-Ll: Likewise.
49382         * modules/unictype/category-Lm: Likewise.
49383         * modules/unictype/category-Lo: Likewise.
49384         * modules/unictype/category-Lt: Likewise.
49385         * modules/unictype/category-Lu: Likewise.
49386         * modules/unictype/category-M: Likewise.
49387         * modules/unictype/category-Mc: Likewise.
49388         * modules/unictype/category-Me: Likewise.
49389         * modules/unictype/category-Mn: Likewise.
49390         * modules/unictype/category-N: Likewise.
49391         * modules/unictype/category-Nd: Likewise.
49392         * modules/unictype/category-Nl: Likewise.
49393         * modules/unictype/category-No: Likewise.
49394         * modules/unictype/category-P: Likewise.
49395         * modules/unictype/category-Pc: Likewise.
49396         * modules/unictype/category-Pd: Likewise.
49397         * modules/unictype/category-Pe: Likewise.
49398         * modules/unictype/category-Pf: Likewise.
49399         * modules/unictype/category-Pi: Likewise.
49400         * modules/unictype/category-Po: Likewise.
49401         * modules/unictype/category-Ps: Likewise.
49402         * modules/unictype/category-S: Likewise.
49403         * modules/unictype/category-Sc: Likewise.
49404         * modules/unictype/category-Sk: Likewise.
49405         * modules/unictype/category-Sm: Likewise.
49406         * modules/unictype/category-So: Likewise.
49407         * modules/unictype/category-Z: Likewise.
49408         * modules/unictype/category-Zl: Likewise.
49409         * modules/unictype/category-Zp: Likewise.
49410         * modules/unictype/category-Zs: Likewise.
49411         * modules/unictype/category-and: Likewise.
49412         * modules/unictype/category-and-not: Likewise.
49413         * modules/unictype/category-byname: Likewise.
49414         * modules/unictype/category-name: Likewise.
49415         * modules/unictype/category-none: Likewise.
49416         * modules/unictype/category-of: Likewise.
49417         * modules/unictype/category-or: Likewise.
49418         * modules/unictype/category-test: Likewise.
49419         * modules/unictype/combining-class: Likewise.
49420         * modules/unictype/ctype-alnum: Likewise.
49421         * modules/unictype/ctype-alpha: Likewise.
49422         * modules/unictype/ctype-blank: Likewise.
49423         * modules/unictype/ctype-cntrl: Likewise.
49424         * modules/unictype/ctype-digit: Likewise.
49425         * modules/unictype/ctype-graph: Likewise.
49426         * modules/unictype/ctype-lower: Likewise.
49427         * modules/unictype/ctype-print: Likewise.
49428         * modules/unictype/ctype-punct: Likewise.
49429         * modules/unictype/ctype-space: Likewise.
49430         * modules/unictype/ctype-upper: Likewise.
49431         * modules/unictype/ctype-xdigit: Likewise.
49432         * modules/unictype/decimal-digit: Likewise.
49433         * modules/unictype/digit: Likewise.
49434         * modules/unictype/mirror: Likewise.
49435         * modules/unictype/numeric: Likewise.
49436         * modules/unictype/property-alphabetic: Likewise.
49437         * modules/unictype/property-ascii-hex-digit: Likewise.
49438         * modules/unictype/property-bidi-arabic-digit: Likewise.
49439         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
49440         * modules/unictype/property-bidi-block-separator: Likewise.
49441         * modules/unictype/property-bidi-boundary-neutral: Likewise.
49442         * modules/unictype/property-bidi-common-separator: Likewise.
49443         * modules/unictype/property-bidi-control: Likewise.
49444         * modules/unictype/property-bidi-embedding-or-override: Likewise.
49445         * modules/unictype/property-bidi-eur-num-separator: Likewise.
49446         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
49447         * modules/unictype/property-bidi-european-digit: Likewise.
49448         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
49449         * modules/unictype/property-bidi-left-to-right: Likewise.
49450         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
49451         * modules/unictype/property-bidi-other-neutral: Likewise.
49452         * modules/unictype/property-bidi-pdf: Likewise.
49453         * modules/unictype/property-bidi-segment-separator: Likewise.
49454         * modules/unictype/property-bidi-whitespace: Likewise.
49455         * modules/unictype/property-byname: Likewise.
49456         * modules/unictype/property-combining: Likewise.
49457         * modules/unictype/property-composite: Likewise.
49458         * modules/unictype/property-currency-symbol: Likewise.
49459         * modules/unictype/property-dash: Likewise.
49460         * modules/unictype/property-decimal-digit: Likewise.
49461         * modules/unictype/property-default-ignorable-code-point: Likewise.
49462         * modules/unictype/property-deprecated: Likewise.
49463         * modules/unictype/property-diacritic: Likewise.
49464         * modules/unictype/property-extender: Likewise.
49465         * modules/unictype/property-format-control: Likewise.
49466         * modules/unictype/property-grapheme-base: Likewise.
49467         * modules/unictype/property-grapheme-extend: Likewise.
49468         * modules/unictype/property-grapheme-link: Likewise.
49469         * modules/unictype/property-hex-digit: Likewise.
49470         * modules/unictype/property-hyphen: Likewise.
49471         * modules/unictype/property-id-continue: Likewise.
49472         * modules/unictype/property-id-start: Likewise.
49473         * modules/unictype/property-ideographic: Likewise.
49474         * modules/unictype/property-ids-binary-operator: Likewise.
49475         * modules/unictype/property-ids-trinary-operator: Likewise.
49476         * modules/unictype/property-ignorable-control: Likewise.
49477         * modules/unictype/property-iso-control: Likewise.
49478         * modules/unictype/property-join-control: Likewise.
49479         * modules/unictype/property-left-of-pair: Likewise.
49480         * modules/unictype/property-line-separator: Likewise.
49481         * modules/unictype/property-logical-order-exception: Likewise.
49482         * modules/unictype/property-lowercase: Likewise.
49483         * modules/unictype/property-math: Likewise.
49484         * modules/unictype/property-non-break: Likewise.
49485         * modules/unictype/property-not-a-character: Likewise.
49486         * modules/unictype/property-numeric: Likewise.
49487         * modules/unictype/property-other-alphabetic: Likewise.
49488         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
49489         * modules/unictype/property-other-grapheme-extend: Likewise.
49490         * modules/unictype/property-other-id-continue: Likewise.
49491         * modules/unictype/property-other-id-start: Likewise.
49492         * modules/unictype/property-other-lowercase: Likewise.
49493         * modules/unictype/property-other-math: Likewise.
49494         * modules/unictype/property-other-uppercase: Likewise.
49495         * modules/unictype/property-paired-punctuation: Likewise.
49496         * modules/unictype/property-paragraph-separator: Likewise.
49497         * modules/unictype/property-pattern-syntax: Likewise.
49498         * modules/unictype/property-pattern-white-space: Likewise.
49499         * modules/unictype/property-private-use: Likewise.
49500         * modules/unictype/property-punctuation: Likewise.
49501         * modules/unictype/property-quotation-mark: Likewise.
49502         * modules/unictype/property-radical: Likewise.
49503         * modules/unictype/property-sentence-terminal: Likewise.
49504         * modules/unictype/property-soft-dotted: Likewise.
49505         * modules/unictype/property-space: Likewise.
49506         * modules/unictype/property-terminal-punctuation: Likewise.
49507         * modules/unictype/property-test: Likewise.
49508         * modules/unictype/property-titlecase: Likewise.
49509         * modules/unictype/property-unassigned-code-value: Likewise.
49510         * modules/unictype/property-unified-ideograph: Likewise.
49511         * modules/unictype/property-uppercase: Likewise.
49512         * modules/unictype/property-variation-selector: Likewise.
49513         * modules/unictype/property-white-space: Likewise.
49514         * modules/unictype/property-xid-continue: Likewise.
49515         * modules/unictype/property-xid-start: Likewise.
49516         * modules/unictype/property-zero-width: Likewise.
49517         * modules/unictype/scripts: Likewise.
49518         * modules/unictype/syntax-c-ident: Likewise.
49519         * modules/unictype/syntax-c-whitespace: Likewise.
49520         * modules/unictype/syntax-java-ident: Likewise.
49521         * modules/unictype/syntax-java-whitespace: Likewise.
49522         * modules/unilbrk/u8-possible-linebreaks: Likewise.
49523         * modules/unilbrk/u8-width-linebreaks: Likewise.
49524         * modules/unilbrk/u16-possible-linebreaks: Likewise.
49525         * modules/unilbrk/u16-width-linebreaks: Likewise.
49526         * modules/unilbrk/u32-possible-linebreaks: Likewise.
49527         * modules/unilbrk/u32-width-linebreaks: Likewise.
49528         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
49529         * modules/unilbrk/ulc-width-linebreaks: Likewise.
49530         * modules/uniname/uniname: Likewise.
49531         * modules/uninorm/canonical-decomposition: Likewise.
49532         * modules/uninorm/composition: Likewise.
49533         * modules/uninorm/decomposing-form: Likewise.
49534         * modules/uninorm/decomposition: Likewise.
49535         * modules/uninorm/filter: Likewise.
49536         * modules/uninorm/nfc: Likewise.
49537         * modules/uninorm/nfd: Likewise.
49538         * modules/uninorm/nfkc: Likewise.
49539         * modules/uninorm/nfkd: Likewise.
49540         * modules/uninorm/u8-normalize: Likewise.
49541         * modules/uninorm/u8-normcmp: Likewise.
49542         * modules/uninorm/u8-normcoll: Likewise.
49543         * modules/uninorm/u8-normxfrm: Likewise.
49544         * modules/uninorm/u16-normalize: Likewise.
49545         * modules/uninorm/u16-normcmp: Likewise.
49546         * modules/uninorm/u16-normcoll: Likewise.
49547         * modules/uninorm/u16-normxfrm: Likewise.
49548         * modules/uninorm/u32-normalize: Likewise.
49549         * modules/uninorm/u32-normcmp: Likewise.
49550         * modules/uninorm/u32-normcoll: Likewise.
49551         * modules/uninorm/u32-normxfrm: Likewise.
49552         * modules/unistdio/u8-asnprintf: Likewise.
49553         * modules/unistdio/u8-asprintf: Likewise.
49554         * modules/unistdio/u8-snprintf: Likewise.
49555         * modules/unistdio/u8-sprintf: Likewise.
49556         * modules/unistdio/u8-u8-asnprintf: Likewise.
49557         * modules/unistdio/u8-u8-asprintf: Likewise.
49558         * modules/unistdio/u8-u8-snprintf: Likewise.
49559         * modules/unistdio/u8-u8-sprintf: Likewise.
49560         * modules/unistdio/u8-u8-vasnprintf: Likewise.
49561         * modules/unistdio/u8-u8-vasprintf: Likewise.
49562         * modules/unistdio/u8-u8-vsnprintf: Likewise.
49563         * modules/unistdio/u8-u8-vsprintf: Likewise.
49564         * modules/unistdio/u8-vasnprintf: Likewise.
49565         * modules/unistdio/u8-vasprintf: Likewise.
49566         * modules/unistdio/u8-vsnprintf: Likewise.
49567         * modules/unistdio/u8-vsprintf: Likewise.
49568         * modules/unistdio/u16-asnprintf: Likewise.
49569         * modules/unistdio/u16-asprintf: Likewise.
49570         * modules/unistdio/u16-snprintf: Likewise.
49571         * modules/unistdio/u16-sprintf: Likewise.
49572         * modules/unistdio/u16-u16-asnprintf: Likewise.
49573         * modules/unistdio/u16-u16-asprintf: Likewise.
49574         * modules/unistdio/u16-u16-snprintf: Likewise.
49575         * modules/unistdio/u16-u16-sprintf: Likewise.
49576         * modules/unistdio/u16-u16-vasnprintf: Likewise.
49577         * modules/unistdio/u16-u16-vasprintf: Likewise.
49578         * modules/unistdio/u16-u16-vsnprintf: Likewise.
49579         * modules/unistdio/u16-u16-vsprintf: Likewise.
49580         * modules/unistdio/u16-vasnprintf: Likewise.
49581         * modules/unistdio/u16-vasprintf: Likewise.
49582         * modules/unistdio/u16-vsnprintf: Likewise.
49583         * modules/unistdio/u16-vsprintf: Likewise.
49584         * modules/unistdio/u32-asnprintf: Likewise.
49585         * modules/unistdio/u32-asprintf: Likewise.
49586         * modules/unistdio/u32-snprintf: Likewise.
49587         * modules/unistdio/u32-sprintf: Likewise.
49588         * modules/unistdio/u32-u32-asnprintf: Likewise.
49589         * modules/unistdio/u32-u32-asprintf: Likewise.
49590         * modules/unistdio/u32-u32-snprintf: Likewise.
49591         * modules/unistdio/u32-u32-sprintf: Likewise.
49592         * modules/unistdio/u32-u32-vasnprintf: Likewise.
49593         * modules/unistdio/u32-u32-vasprintf: Likewise.
49594         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49595         * modules/unistdio/u32-u32-vsprintf: Likewise.
49596         * modules/unistdio/u32-vasnprintf: Likewise.
49597         * modules/unistdio/u32-vasprintf: Likewise.
49598         * modules/unistdio/u32-vsnprintf: Likewise.
49599         * modules/unistdio/u32-vsprintf: Likewise.
49600         * modules/unistdio/ulc-asnprintf: Likewise.
49601         * modules/unistdio/ulc-asprintf: Likewise.
49602         * modules/unistdio/ulc-fprintf: Likewise.
49603         * modules/unistdio/ulc-snprintf: Likewise.
49604         * modules/unistdio/ulc-sprintf: Likewise.
49605         * modules/unistdio/ulc-vasnprintf: Likewise.
49606         * modules/unistdio/ulc-vasprintf: Likewise.
49607         * modules/unistdio/ulc-vfprintf: Likewise.
49608         * modules/unistdio/ulc-vsnprintf: Likewise.
49609         * modules/unistdio/ulc-vsprintf: Likewise.
49610         * modules/unistr/u8-check: Likewise.
49611         * modules/unistr/u8-chr: Likewise.
49612         * modules/unistr/u8-cmp: Likewise.
49613         * modules/unistr/u8-cmp2: Likewise.
49614         * modules/unistr/u8-cpy: Likewise.
49615         * modules/unistr/u8-cpy-alloc: Likewise.
49616         * modules/unistr/u8-endswith: Likewise.
49617         * modules/unistr/u8-mblen: Likewise.
49618         * modules/unistr/u8-mbsnlen: Likewise.
49619         * modules/unistr/u8-mbtouc: Likewise.
49620         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49621         * modules/unistr/u8-mbtoucr: Likewise.
49622         * modules/unistr/u8-move: Likewise.
49623         * modules/unistr/u8-next: Likewise.
49624         * modules/unistr/u8-prev: Likewise.
49625         * modules/unistr/u8-set: Likewise.
49626         * modules/unistr/u8-startswith: Likewise.
49627         * modules/unistr/u8-stpcpy: Likewise.
49628         * modules/unistr/u8-stpncpy: Likewise.
49629         * modules/unistr/u8-strcat: Likewise.
49630         * modules/unistr/u8-strchr: Likewise.
49631         * modules/unistr/u8-strcmp: Likewise.
49632         * modules/unistr/u8-strcoll: Likewise.
49633         * modules/unistr/u8-strcpy: Likewise.
49634         * modules/unistr/u8-strcspn: Likewise.
49635         * modules/unistr/u8-strdup: Likewise.
49636         * modules/unistr/u8-strlen: Likewise.
49637         * modules/unistr/u8-strmblen: Likewise.
49638         * modules/unistr/u8-strmbtouc: Likewise.
49639         * modules/unistr/u8-strncat: Likewise.
49640         * modules/unistr/u8-strncmp: Likewise.
49641         * modules/unistr/u8-strncpy: Likewise.
49642         * modules/unistr/u8-strnlen: Likewise.
49643         * modules/unistr/u8-strpbrk: Likewise.
49644         * modules/unistr/u8-strrchr: Likewise.
49645         * modules/unistr/u8-strspn: Likewise.
49646         * modules/unistr/u8-strstr: Likewise.
49647         * modules/unistr/u8-strtok: Likewise.
49648         * modules/unistr/u8-to-u16: Likewise.
49649         * modules/unistr/u8-to-u32: Likewise.
49650         * modules/unistr/u8-uctomb: Likewise.
49651         * modules/unistr/u16-check: Likewise.
49652         * modules/unistr/u16-chr: Likewise.
49653         * modules/unistr/u16-cmp: Likewise.
49654         * modules/unistr/u16-cmp2: Likewise.
49655         * modules/unistr/u16-cpy: Likewise.
49656         * modules/unistr/u16-cpy-alloc: Likewise.
49657         * modules/unistr/u16-endswith: Likewise.
49658         * modules/unistr/u16-mblen: Likewise.
49659         * modules/unistr/u16-mbsnlen: Likewise.
49660         * modules/unistr/u16-mbtouc: Likewise.
49661         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49662         * modules/unistr/u16-mbtoucr: Likewise.
49663         * modules/unistr/u16-move: Likewise.
49664         * modules/unistr/u16-next: Likewise.
49665         * modules/unistr/u16-prev: Likewise.
49666         * modules/unistr/u16-set: Likewise.
49667         * modules/unistr/u16-startswith: Likewise.
49668         * modules/unistr/u16-stpcpy: Likewise.
49669         * modules/unistr/u16-stpncpy: Likewise.
49670         * modules/unistr/u16-strcat: Likewise.
49671         * modules/unistr/u16-strchr: Likewise.
49672         * modules/unistr/u16-strcmp: Likewise.
49673         * modules/unistr/u16-strcoll: Likewise.
49674         * modules/unistr/u16-strcpy: Likewise.
49675         * modules/unistr/u16-strcspn: Likewise.
49676         * modules/unistr/u16-strdup: Likewise.
49677         * modules/unistr/u16-strlen: Likewise.
49678         * modules/unistr/u16-strmblen: Likewise.
49679         * modules/unistr/u16-strmbtouc: Likewise.
49680         * modules/unistr/u16-strncat: Likewise.
49681         * modules/unistr/u16-strncmp: Likewise.
49682         * modules/unistr/u16-strncpy: Likewise.
49683         * modules/unistr/u16-strnlen: Likewise.
49684         * modules/unistr/u16-strpbrk: Likewise.
49685         * modules/unistr/u16-strrchr: Likewise.
49686         * modules/unistr/u16-strspn: Likewise.
49687         * modules/unistr/u16-strstr: Likewise.
49688         * modules/unistr/u16-strtok: Likewise.
49689         * modules/unistr/u16-to-u32: Likewise.
49690         * modules/unistr/u16-to-u8: Likewise.
49691         * modules/unistr/u16-uctomb: Likewise.
49692         * modules/unistr/u32-check: Likewise.
49693         * modules/unistr/u32-chr: Likewise.
49694         * modules/unistr/u32-cmp: Likewise.
49695         * modules/unistr/u32-cmp2: Likewise.
49696         * modules/unistr/u32-cpy: Likewise.
49697         * modules/unistr/u32-cpy-alloc: Likewise.
49698         * modules/unistr/u32-endswith: Likewise.
49699         * modules/unistr/u32-mblen: Likewise.
49700         * modules/unistr/u32-mbsnlen: Likewise.
49701         * modules/unistr/u32-mbtouc: Likewise.
49702         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49703         * modules/unistr/u32-mbtoucr: Likewise.
49704         * modules/unistr/u32-move: Likewise.
49705         * modules/unistr/u32-next: Likewise.
49706         * modules/unistr/u32-prev: Likewise.
49707         * modules/unistr/u32-set: Likewise.
49708         * modules/unistr/u32-startswith: Likewise.
49709         * modules/unistr/u32-stpcpy: Likewise.
49710         * modules/unistr/u32-stpncpy: Likewise.
49711         * modules/unistr/u32-strcat: Likewise.
49712         * modules/unistr/u32-strchr: Likewise.
49713         * modules/unistr/u32-strcmp: Likewise.
49714         * modules/unistr/u32-strcoll: Likewise.
49715         * modules/unistr/u32-strcpy: Likewise.
49716         * modules/unistr/u32-strcspn: Likewise.
49717         * modules/unistr/u32-strdup: Likewise.
49718         * modules/unistr/u32-strlen: Likewise.
49719         * modules/unistr/u32-strmblen: Likewise.
49720         * modules/unistr/u32-strmbtouc: Likewise.
49721         * modules/unistr/u32-strncat: Likewise.
49722         * modules/unistr/u32-strncmp: Likewise.
49723         * modules/unistr/u32-strncpy: Likewise.
49724         * modules/unistr/u32-strnlen: Likewise.
49725         * modules/unistr/u32-strpbrk: Likewise.
49726         * modules/unistr/u32-strrchr: Likewise.
49727         * modules/unistr/u32-strspn: Likewise.
49728         * modules/unistr/u32-strstr: Likewise.
49729         * modules/unistr/u32-strtok: Likewise.
49730         * modules/unistr/u32-to-u16: Likewise.
49731         * modules/unistr/u32-to-u8: Likewise.
49732         * modules/unistr/u32-uctomb: Likewise.
49733         * modules/uniwbrk/u8-wordbreaks: Likewise.
49734         * modules/uniwbrk/u16-wordbreaks: Likewise.
49735         * modules/uniwbrk/u32-wordbreaks: Likewise.
49736         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49737         * modules/uniwbrk/wordbreak-property: Likewise.
49738         * modules/uniwidth/u8-strwidth: Likewise.
49739         * modules/uniwidth/u8-width: Likewise.
49740         * modules/uniwidth/u16-strwidth: Likewise.
49741         * modules/uniwidth/u16-width: Likewise.
49742         * modules/uniwidth/u32-strwidth: Likewise.
49743         * modules/uniwidth/u32-width: Likewise.
49744         * modules/uniwidth/width: Likewise.
49745         * modules/unicase/cased-tests (Makefile.am): Link all test programs
49746         with $(LIBUNISTRING).
49747         * modules/unicase/ignorable-tests: Likewise.
49748         * modules/unicase/locale-language-tests: Likewise.
49749         * modules/unicase/tolower-tests: Likewise.
49750         * modules/unicase/totitle-tests: Likewise.
49751         * modules/unicase/toupper-tests: Likewise.
49752         * modules/unicase/u8-casecmp-tests: Likewise.
49753         * modules/unicase/u8-casecoll-tests: Likewise.
49754         * modules/unicase/u8-casefold-tests: Likewise.
49755         * modules/unicase/u8-is-cased-tests: Likewise.
49756         * modules/unicase/u8-is-casefolded-tests: Likewise.
49757         * modules/unicase/u8-is-lowercase-tests: Likewise.
49758         * modules/unicase/u8-is-titlecase-tests: Likewise.
49759         * modules/unicase/u8-is-uppercase-tests: Likewise.
49760         * modules/unicase/u8-tolower-tests: Likewise.
49761         * modules/unicase/u8-totitle-tests: Likewise.
49762         * modules/unicase/u8-toupper-tests: Likewise.
49763         * modules/unicase/u16-casecmp-tests: Likewise.
49764         * modules/unicase/u16-casecoll-tests: Likewise.
49765         * modules/unicase/u16-casefold-tests: Likewise.
49766         * modules/unicase/u16-is-cased-tests: Likewise.
49767         * modules/unicase/u16-is-casefolded-tests: Likewise.
49768         * modules/unicase/u16-is-lowercase-tests: Likewise.
49769         * modules/unicase/u16-is-titlecase-tests: Likewise.
49770         * modules/unicase/u16-is-uppercase-tests: Likewise.
49771         * modules/unicase/u16-tolower-tests: Likewise.
49772         * modules/unicase/u16-totitle-tests: Likewise.
49773         * modules/unicase/u16-toupper-tests: Likewise.
49774         * modules/unicase/u32-casecmp-tests: Likewise.
49775         * modules/unicase/u32-casecoll-tests: Likewise.
49776         * modules/unicase/u32-casefold-tests: Likewise.
49777         * modules/unicase/u32-is-cased-tests: Likewise.
49778         * modules/unicase/u32-is-casefolded-tests: Likewise.
49779         * modules/unicase/u32-is-lowercase-tests: Likewise.
49780         * modules/unicase/u32-is-titlecase-tests: Likewise.
49781         * modules/unicase/u32-is-uppercase-tests: Likewise.
49782         * modules/unicase/u32-tolower-tests: Likewise.
49783         * modules/unicase/u32-totitle-tests: Likewise.
49784         * modules/unicase/u32-toupper-tests: Likewise.
49785         * modules/unicase/ulc-casecmp-tests: Likewise.
49786         * modules/unicase/ulc-casecoll-tests: Likewise.
49787         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
49788         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
49789         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
49790         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
49791         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
49792         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
49793         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
49794         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
49795         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
49796         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
49797         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
49798         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
49799         * modules/unictype/bidicategory-byname-tests: Likewise.
49800         * modules/unictype/bidicategory-name-tests: Likewise.
49801         * modules/unictype/bidicategory-of-tests: Likewise.
49802         * modules/unictype/bidicategory-test-tests: Likewise.
49803         * modules/unictype/block-list-tests: Likewise.
49804         * modules/unictype/block-of-tests: Likewise.
49805         * modules/unictype/block-test-tests: Likewise.
49806         * modules/unictype/category-C-tests: Likewise.
49807         * modules/unictype/category-Cc-tests: Likewise.
49808         * modules/unictype/category-Cf-tests: Likewise.
49809         * modules/unictype/category-Cn-tests: Likewise.
49810         * modules/unictype/category-Co-tests: Likewise.
49811         * modules/unictype/category-Cs-tests: Likewise.
49812         * modules/unictype/category-L-tests: Likewise.
49813         * modules/unictype/category-Ll-tests: Likewise.
49814         * modules/unictype/category-Lm-tests: Likewise.
49815         * modules/unictype/category-Lo-tests: Likewise.
49816         * modules/unictype/category-Lt-tests: Likewise.
49817         * modules/unictype/category-Lu-tests: Likewise.
49818         * modules/unictype/category-M-tests: Likewise.
49819         * modules/unictype/category-Mc-tests: Likewise.
49820         * modules/unictype/category-Me-tests: Likewise.
49821         * modules/unictype/category-Mn-tests: Likewise.
49822         * modules/unictype/category-N-tests: Likewise.
49823         * modules/unictype/category-Nd-tests: Likewise.
49824         * modules/unictype/category-Nl-tests: Likewise.
49825         * modules/unictype/category-No-tests: Likewise.
49826         * modules/unictype/category-P-tests: Likewise.
49827         * modules/unictype/category-Pc-tests: Likewise.
49828         * modules/unictype/category-Pd-tests: Likewise.
49829         * modules/unictype/category-Pe-tests: Likewise.
49830         * modules/unictype/category-Pf-tests: Likewise.
49831         * modules/unictype/category-Pi-tests: Likewise.
49832         * modules/unictype/category-Po-tests: Likewise.
49833         * modules/unictype/category-Ps-tests: Likewise.
49834         * modules/unictype/category-S-tests: Likewise.
49835         * modules/unictype/category-Sc-tests: Likewise.
49836         * modules/unictype/category-Sk-tests: Likewise.
49837         * modules/unictype/category-Sm-tests: Likewise.
49838         * modules/unictype/category-So-tests: Likewise.
49839         * modules/unictype/category-Z-tests: Likewise.
49840         * modules/unictype/category-Zl-tests: Likewise.
49841         * modules/unictype/category-Zp-tests: Likewise.
49842         * modules/unictype/category-Zs-tests: Likewise.
49843         * modules/unictype/category-and-not-tests: Likewise.
49844         * modules/unictype/category-and-tests: Likewise.
49845         * modules/unictype/category-byname-tests: Likewise.
49846         * modules/unictype/category-name-tests: Likewise.
49847         * modules/unictype/category-none-tests: Likewise.
49848         * modules/unictype/category-of-tests: Likewise.
49849         * modules/unictype/category-or-tests: Likewise.
49850         * modules/unictype/category-test-withtable-tests: Likewise.
49851         * modules/unictype/combining-class-tests: Likewise.
49852         * modules/unictype/ctype-alnum-tests: Likewise.
49853         * modules/unictype/ctype-alpha-tests: Likewise.
49854         * modules/unictype/ctype-blank-tests: Likewise.
49855         * modules/unictype/ctype-cntrl-tests: Likewise.
49856         * modules/unictype/ctype-digit-tests: Likewise.
49857         * modules/unictype/ctype-graph-tests: Likewise.
49858         * modules/unictype/ctype-lower-tests: Likewise.
49859         * modules/unictype/ctype-print-tests: Likewise.
49860         * modules/unictype/ctype-punct-tests: Likewise.
49861         * modules/unictype/ctype-space-tests: Likewise.
49862         * modules/unictype/ctype-upper-tests: Likewise.
49863         * modules/unictype/ctype-xdigit-tests: Likewise.
49864         * modules/unictype/decimal-digit-tests: Likewise.
49865         * modules/unictype/digit-tests: Likewise.
49866         * modules/unictype/mirror-tests: Likewise.
49867         * modules/unictype/numeric-tests: Likewise.
49868         * modules/unictype/property-alphabetic-tests: Likewise.
49869         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49870         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49871         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49872         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49873         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49874         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49875         * modules/unictype/property-bidi-control-tests: Likewise.
49876         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49877         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49878         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49879         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49880         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49881         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49882         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49883         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49884         * modules/unictype/property-bidi-pdf-tests: Likewise.
49885         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49886         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49887         * modules/unictype/property-byname-tests: Likewise.
49888         * modules/unictype/property-combining-tests: Likewise.
49889         * modules/unictype/property-composite-tests: Likewise.
49890         * modules/unictype/property-currency-symbol-tests: Likewise.
49891         * modules/unictype/property-dash-tests: Likewise.
49892         * modules/unictype/property-decimal-digit-tests: Likewise.
49893         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49894         * modules/unictype/property-deprecated-tests: Likewise.
49895         * modules/unictype/property-diacritic-tests: Likewise.
49896         * modules/unictype/property-extender-tests: Likewise.
49897         * modules/unictype/property-format-control-tests: Likewise.
49898         * modules/unictype/property-grapheme-base-tests: Likewise.
49899         * modules/unictype/property-grapheme-extend-tests: Likewise.
49900         * modules/unictype/property-grapheme-link-tests: Likewise.
49901         * modules/unictype/property-hex-digit-tests: Likewise.
49902         * modules/unictype/property-hyphen-tests: Likewise.
49903         * modules/unictype/property-id-continue-tests: Likewise.
49904         * modules/unictype/property-id-start-tests: Likewise.
49905         * modules/unictype/property-ideographic-tests: Likewise.
49906         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49907         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49908         * modules/unictype/property-ignorable-control-tests: Likewise.
49909         * modules/unictype/property-iso-control-tests: Likewise.
49910         * modules/unictype/property-join-control-tests: Likewise.
49911         * modules/unictype/property-left-of-pair-tests: Likewise.
49912         * modules/unictype/property-line-separator-tests: Likewise.
49913         * modules/unictype/property-logical-order-exception-tests: Likewise.
49914         * modules/unictype/property-lowercase-tests: Likewise.
49915         * modules/unictype/property-math-tests: Likewise.
49916         * modules/unictype/property-non-break-tests: Likewise.
49917         * modules/unictype/property-not-a-character-tests: Likewise.
49918         * modules/unictype/property-numeric-tests: Likewise.
49919         * modules/unictype/property-other-alphabetic-tests: Likewise.
49920         * modules/unictype/property-other-default-ignorable-code-point-tests:
49921         Likewise.
49922         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
49923         * modules/unictype/property-other-id-continue-tests: Likewise.
49924         * modules/unictype/property-other-id-start-tests: Likewise.
49925         * modules/unictype/property-other-lowercase-tests: Likewise.
49926         * modules/unictype/property-other-math-tests: Likewise.
49927         * modules/unictype/property-other-uppercase-tests: Likewise.
49928         * modules/unictype/property-paired-punctuation-tests: Likewise.
49929         * modules/unictype/property-paragraph-separator-tests: Likewise.
49930         * modules/unictype/property-pattern-syntax-tests: Likewise.
49931         * modules/unictype/property-pattern-white-space-tests: Likewise.
49932         * modules/unictype/property-private-use-tests: Likewise.
49933         * modules/unictype/property-punctuation-tests: Likewise.
49934         * modules/unictype/property-quotation-mark-tests: Likewise.
49935         * modules/unictype/property-radical-tests: Likewise.
49936         * modules/unictype/property-sentence-terminal-tests: Likewise.
49937         * modules/unictype/property-soft-dotted-tests: Likewise.
49938         * modules/unictype/property-space-tests: Likewise.
49939         * modules/unictype/property-terminal-punctuation-tests: Likewise.
49940         * modules/unictype/property-test-tests: Likewise.
49941         * modules/unictype/property-titlecase-tests: Likewise.
49942         * modules/unictype/property-unassigned-code-value-tests: Likewise.
49943         * modules/unictype/property-unified-ideograph-tests: Likewise.
49944         * modules/unictype/property-uppercase-tests: Likewise.
49945         * modules/unictype/property-variation-selector-tests: Likewise.
49946         * modules/unictype/property-white-space-tests: Likewise.
49947         * modules/unictype/property-xid-continue-tests: Likewise.
49948         * modules/unictype/property-xid-start-tests: Likewise.
49949         * modules/unictype/property-zero-width-tests: Likewise.
49950         * modules/unictype/scripts-tests: Likewise.
49951         * modules/unictype/syntax-c-ident-tests: Likewise.
49952         * modules/unictype/syntax-c-whitespace-tests: Likewise.
49953         * modules/unictype/syntax-java-ident-tests: Likewise.
49954         * modules/unictype/syntax-java-whitespace-tests: Likewise.
49955         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
49956         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
49957         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
49958         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
49959         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
49960         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
49961         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
49962         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
49963         * modules/uniname/uniname-tests: Likewise.
49964         * modules/uninorm/canonical-decomposition-tests: Likewise.
49965         * modules/uninorm/compat-decomposition-tests: Likewise.
49966         * modules/uninorm/composition-tests: Likewise.
49967         * modules/uninorm/decomposing-form-tests: Likewise.
49968         * modules/uninorm/decomposition-tests: Likewise.
49969         * modules/uninorm/filter-tests: Likewise.
49970         * modules/uninorm/nfc-tests: Likewise.
49971         * modules/uninorm/nfd-tests: Likewise.
49972         * modules/uninorm/nfkc-tests: Likewise.
49973         * modules/uninorm/nfkd-tests: Likewise.
49974         * modules/uninorm/u8-normcmp-tests: Likewise.
49975         * modules/uninorm/u8-normcoll-tests: Likewise.
49976         * modules/uninorm/u16-normcmp-tests: Likewise.
49977         * modules/uninorm/u16-normcoll-tests: Likewise.
49978         * modules/uninorm/u32-normcmp-tests: Likewise.
49979         * modules/uninorm/u32-normcoll-tests: Likewise.
49980         * modules/unistdio/u8-asnprintf-tests: Likewise.
49981         * modules/unistdio/u8-vasnprintf-tests: Likewise.
49982         * modules/unistdio/u8-vasprintf-tests: Likewise.
49983         * modules/unistdio/u8-vsnprintf-tests: Likewise.
49984         * modules/unistdio/u8-vsprintf-tests: Likewise.
49985         * modules/unistdio/u16-asnprintf-tests: Likewise.
49986         * modules/unistdio/u16-vasnprintf-tests: Likewise.
49987         * modules/unistdio/u16-vasprintf-tests: Likewise.
49988         * modules/unistdio/u16-vsnprintf-tests: Likewise.
49989         * modules/unistdio/u16-vsprintf-tests: Likewise.
49990         * modules/unistdio/u32-asnprintf-tests: Likewise.
49991         * modules/unistdio/u32-vasnprintf-tests: Likewise.
49992         * modules/unistdio/u32-vasprintf-tests: Likewise.
49993         * modules/unistdio/u32-vsnprintf-tests: Likewise.
49994         * modules/unistdio/u32-vsprintf-tests: Likewise.
49995         * modules/unistdio/ulc-asnprintf-tests: Likewise.
49996         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
49997         * modules/unistdio/ulc-vasprintf-tests: Likewise.
49998         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
49999         * modules/unistdio/ulc-vsprintf-tests: Likewise.
50000         * modules/unistr/u8-check-tests: Likewise.
50001         * modules/unistr/u8-chr-tests: Likewise.
50002         * modules/unistr/u8-cmp-tests: Likewise.
50003         * modules/unistr/u8-cmp2-tests: Likewise.
50004         * modules/unistr/u8-cpy-alloc-tests: Likewise.
50005         * modules/unistr/u8-cpy-tests: Likewise.
50006         * modules/unistr/u8-mblen-tests: Likewise.
50007         * modules/unistr/u8-mbsnlen-tests: Likewise.
50008         * modules/unistr/u8-mbtouc-tests: Likewise.
50009         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
50010         * modules/unistr/u8-mbtoucr-tests: Likewise.
50011         * modules/unistr/u8-move-tests: Likewise.
50012         * modules/unistr/u8-next-tests: Likewise.
50013         * modules/unistr/u8-prev-tests: Likewise.
50014         * modules/unistr/u8-set-tests: Likewise.
50015         * modules/unistr/u8-stpcpy-tests: Likewise.
50016         * modules/unistr/u8-stpncpy-tests: Likewise.
50017         * modules/unistr/u8-strcat-tests: Likewise.
50018         * modules/unistr/u8-strcmp-tests: Likewise.
50019         * modules/unistr/u8-strcoll-tests: Likewise.
50020         * modules/unistr/u8-strcpy-tests: Likewise.
50021         * modules/unistr/u8-strdup-tests: Likewise.
50022         * modules/unistr/u8-strlen-tests: Likewise.
50023         * modules/unistr/u8-strmblen-tests: Likewise.
50024         * modules/unistr/u8-strmbtouc-tests: Likewise.
50025         * modules/unistr/u8-strncat-tests: Likewise.
50026         * modules/unistr/u8-strncmp-tests: Likewise.
50027         * modules/unistr/u8-strncpy-tests: Likewise.
50028         * modules/unistr/u8-strnlen-tests: Likewise.
50029         * modules/unistr/u8-to-u16-tests: Likewise.
50030         * modules/unistr/u8-to-u32-tests: Likewise.
50031         * modules/unistr/u8-uctomb-tests: Likewise.
50032         * modules/unistr/u16-check-tests: Likewise.
50033         * modules/unistr/u16-chr-tests: Likewise.
50034         * modules/unistr/u16-cmp-tests: Likewise.
50035         * modules/unistr/u16-cmp2-tests: Likewise.
50036         * modules/unistr/u16-cpy-alloc-tests: Likewise.
50037         * modules/unistr/u16-cpy-tests: Likewise.
50038         * modules/unistr/u16-mblen-tests: Likewise.
50039         * modules/unistr/u16-mbsnlen-tests: Likewise.
50040         * modules/unistr/u16-mbtouc-tests: Likewise.
50041         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
50042         * modules/unistr/u16-mbtoucr-tests: Likewise.
50043         * modules/unistr/u16-move-tests: Likewise.
50044         * modules/unistr/u16-next-tests: Likewise.
50045         * modules/unistr/u16-prev-tests: Likewise.
50046         * modules/unistr/u16-set-tests: Likewise.
50047         * modules/unistr/u16-stpcpy-tests: Likewise.
50048         * modules/unistr/u16-stpncpy-tests: Likewise.
50049         * modules/unistr/u16-strcat-tests: Likewise.
50050         * modules/unistr/u16-strcmp-tests: Likewise.
50051         * modules/unistr/u16-strcoll-tests: Likewise.
50052         * modules/unistr/u16-strcpy-tests: Likewise.
50053         * modules/unistr/u16-strdup-tests: Likewise.
50054         * modules/unistr/u16-strlen-tests: Likewise.
50055         * modules/unistr/u16-strmblen-tests: Likewise.
50056         * modules/unistr/u16-strmbtouc-tests: Likewise.
50057         * modules/unistr/u16-strncat-tests: Likewise.
50058         * modules/unistr/u16-strncmp-tests: Likewise.
50059         * modules/unistr/u16-strncpy-tests: Likewise.
50060         * modules/unistr/u16-strnlen-tests: Likewise.
50061         * modules/unistr/u16-to-u32-tests: Likewise.
50062         * modules/unistr/u16-to-u8-tests: Likewise.
50063         * modules/unistr/u16-uctomb-tests: Likewise.
50064         * modules/unistr/u32-check-tests: Likewise.
50065         * modules/unistr/u32-chr-tests: Likewise.
50066         * modules/unistr/u32-cmp-tests: Likewise.
50067         * modules/unistr/u32-cmp2-tests: Likewise.
50068         * modules/unistr/u32-cpy-alloc-tests: Likewise.
50069         * modules/unistr/u32-cpy-tests: Likewise.
50070         * modules/unistr/u32-mblen-tests: Likewise.
50071         * modules/unistr/u32-mbsnlen-tests: Likewise.
50072         * modules/unistr/u32-mbtouc-tests: Likewise.
50073         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
50074         * modules/unistr/u32-mbtoucr-tests: Likewise.
50075         * modules/unistr/u32-move-tests: Likewise.
50076         * modules/unistr/u32-next-tests: Likewise.
50077         * modules/unistr/u32-prev-tests: Likewise.
50078         * modules/unistr/u32-set-tests: Likewise.
50079         * modules/unistr/u32-stpcpy-tests: Likewise.
50080         * modules/unistr/u32-stpncpy-tests: Likewise.
50081         * modules/unistr/u32-strcat-tests: Likewise.
50082         * modules/unistr/u32-strcmp-tests: Likewise.
50083         * modules/unistr/u32-strcoll-tests: Likewise.
50084         * modules/unistr/u32-strcpy-tests: Likewise.
50085         * modules/unistr/u32-strdup-tests: Likewise.
50086         * modules/unistr/u32-strlen-tests: Likewise.
50087         * modules/unistr/u32-strmblen-tests: Likewise.
50088         * modules/unistr/u32-strmbtouc-tests: Likewise.
50089         * modules/unistr/u32-strncat-tests: Likewise.
50090         * modules/unistr/u32-strncmp-tests: Likewise.
50091         * modules/unistr/u32-strncpy-tests: Likewise.
50092         * modules/unistr/u32-strnlen-tests: Likewise.
50093         * modules/unistr/u32-to-u16-tests: Likewise.
50094         * modules/unistr/u32-to-u8-tests: Likewise.
50095         * modules/unistr/u32-uctomb-tests: Likewise.
50096         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
50097         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
50098         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
50099         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
50100         * modules/uniwidth/u8-strwidth-tests: Likewise.
50101         * modules/uniwidth/u8-width-tests: Likewise.
50102         * modules/uniwidth/u16-strwidth-tests: Likewise.
50103         * modules/uniwidth/u16-width-tests: Likewise.
50104         * modules/uniwidth/u32-strwidth-tests: Likewise.
50105         * modules/uniwidth/u32-width-tests: Likewise.
50106         * modules/uniwidth/width-tests: Likewise.
50108 2010-05-18  Richard Jones  <rjones@redhat.com>
50110         doc: users.txt: list hivex
50111         * users.txt: Add hivex.
50113 2010-05-18  Richard Jones  <rjones@redhat.com>
50115         doc: users.txt: list febootstrap
50116         * users.txt: Add febootstrap.
50118 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
50120         bootstrap: fix an error when gnulib is not used as a git submodule
50121         * build-aux/bootstrap (gnulib_path): If its length is zero then
50122         assign "gnulib" to it.
50123         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
50125 2010-05-16  Bruno Haible  <bruno@clisp.org>
50127         Avoid autoconf warnings about AM_ICONV.
50128         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
50129         2.64.
50131 2010-05-16  Bruno Haible  <bruno@clisp.org>
50133         absolute-header: Make the macro usable in more situations.
50134         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
50135         from gl_ABSOLUTE_HEADER.
50136         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
50138 2010-05-16  James Youngman  <jay@gnu.org>
50140         doc: update users.txt
50141         * users.txt: Add CSSC.
50143 2010-05-16  Jim Meyering  <meyering@redhat.com>
50145         init.sh: fix an error in the previous change; add more comments
50146         * tests/init.sh: Compare exit code in loop against 9, not 2.
50147         Patch by Bruno Haible.
50148         Make the two tests more similar by adding an empty "then" clause.
50149         Add comments.
50151         init.sh: avoid unnecessary shell re-exec
50152         * tests/init.sh: Improve the re-exec-required check to first test the
50153         current shell.  If it passes the test, do not search for a shell that
50154         does pass, and do not re-exec.  This test is particularly contorted to
50155         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
50156         of $(...) evokes a syntax error and causes immediate shell exit with
50157         status 2.  Bruno Haible reported that the re-exec made it impossible
50158         to single-step through any init.sh-using script.
50160 2010-05-16  Bruno Haible  <bruno@clisp.org>
50162         Fix collision between gnulib's and libintl's printf replacements.
50163         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
50164         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
50165         (printf): When using GNU C, map the __printf__ function to rpl_printf
50166         via __asm__. When not using GNU C, define rpl_printf instead of
50167         __printf__.
50168         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
50169         commit.
50170         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
50171         commit.
50172         * m4/asm-underscore.m4: New file.
50173         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
50174         * modules/stdio (Files): Add m4/asm-underscore.m4.
50175         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
50176         Reported by Ben Pfaff.
50178 2010-05-16  Bruno Haible  <bruno@clisp.org>
50180         verify: Avoid skipping the test on openSUSE 11.0.
50181         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
50183 2010-05-13  Bruno Haible  <bruno@clisp.org>
50185         Avoid useless warnings from G++.
50186         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
50187         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
50188         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50190 2010-05-11  Jim Meyering  <meyering@redhat.com>
50192         maint.mk: tweak preceding change
50193         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
50194         regexps tighter by anchoring at EOL, and make the new group "shy"
50195         for slightly decreased overhead.
50197 2010-05-11  Eric Blake  <eblake@redhat.com>
50199         maint.mk: gnulib doesn't guarantee NSIG
50200         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
50202 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50204         test-pwrite.c: Remove unused variable declaration.
50205         * tests/test-pwrite.c (main): Remove read_buf declaration.
50207         Remove useless test-pwrite.sh file.
50208         * tests/test-pwrite.sh: Delete file.
50209         * modules/pwrite-tests: Remove references.
50210         Reported by Bruno Haible.
50212 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50214         init.sh: fix a typo
50215         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
50217 2010-05-10  Jim Meyering  <meyering@redhat.com>
50219         maint.mk: avoid using a temporary file in the always-defined-macros check
50220         * top/maint.mk (.re-defmac): Remove rule.
50221         (gl_trap_): Remove definition.
50222         (sc_prohibit_always-defined_macros): Rewrite not to create and
50223         depend on a temporary file.  Instead, depend on GNU grep's ability
50224         to read a list of regular expressions from stdin when given "-f -".
50226 2010-05-09  Bruno Haible  <bruno@clisp.org>
50228         Update to GNU gettext 0.18, part 1.
50229         * m4/gettext.m4: Update to GNU gettext 0.18.
50230         * m4/intl.m4: Likewise.
50231         * m4/po.m4: Likewise.
50232         * modules/gettext (Files): Add m4/fcntl-o.m4.
50233         (configure.ac): Require gettext infrastructure from version 0.18.
50235 2010-05-09  Jim Meyering  <meyering@redhat.com>
50237         init.sh: enable MALLOC_PERTURB_
50238         * tests/init.sh: Enable glibc's malloc-perturbing option.
50240         maint.mk: improve sc_cross_check_PATH_usage_in_tests
50241         With my recent change in init.sh from the two-line form:
50242             -#   : ${srcdir=.}
50243             -#   . "$srcdir/init.sh"; path_prepend_ .
50244             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
50245         I noticed that using the one-line form would cause this test
50246         to fail with a false-positive, or to stop working altogether,
50247         depending on whether help-version changed or all the tests did.
50248         * top/maint.mk (_hv_regex): Remove this definition.
50249         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
50250         (_hv_regex_strong): Use a stronger regex to check for conformance.
50251         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
50252         Give a separate diagnostic for lack of conforming use.
50254         maint.mk: prohibit definition of symbols defined by gnulib
50255         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
50256         definition of symbols defined by gnulib.
50258 2010-05-09  Bruno Haible  <bruno@clisp.org>
50260         acl: Avoid test failure on Cygwin-hosted mingw.
50261         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
50263 2010-05-09  Bruno Haible  <bruno@clisp.org>
50265         error: Use system's fcntl function.
50266         * lib/error.c (fcntl): Undefine.
50268 2010-05-09  Jim Meyering  <meyering@redhat.com>
50270         verify: adjust formatting to be more consistent
50271         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
50272         argument-list '('s, and after one comma.
50274 2010-05-09  Bruno Haible  <bruno@clisp.org>
50276         error: More reliable output on mingw.
50277         * lib/error.c: Include <windows.h>.
50278         (is_open): New function.
50279         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
50280         defined.
50282 2010-05-09  Bruno Haible  <bruno@clisp.org>
50284         vasnprintf: Fix syntax errors in libintl build on mingw.
50285         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
50286         pad_ourselves and prec_ourselves after use.
50288 2010-05-08  Bruno Haible  <bruno@clisp.org>
50290         * lib/config.charset: Update comments for Cygwin 1.7.
50291         * lib/localcharset.c: Likewise.
50293 2010-05-07  Jim Meyering  <meyering@redhat.com>
50295         init.sh: improve comments
50296         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
50297         . "${srcdir=.}/init.sh"; path_prepend_ .
50298         Add a note about path_prepend_ and the alternative of using
50299         TESTS_ENVIRONMENT.
50301 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
50303         exclude: Unescape hashed patterns in wildcard mode.
50304         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
50305         to the hash list.
50306         * tests/test-exclude8.sh: New test case.
50307         * modules/exclude-tests: Add new test.
50309 2010-05-05  Eric Blake  <eblake@redhat.com>
50311         verify: automate tests
50312         * modules/verify-tests: New module.
50313         * tests/test-verify.sh: New file.
50314         * tests/test-verify.c: Guard each negative test with a unique id.
50315         Also avoid warning about unused left hand of comma expressions.
50317 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50319         Further improvements to verify.h, suggested by Eric Blake.
50320         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
50321         the GL_* versions, to avoid collision with OpenGL.
50322         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
50323         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
50324         than testing merely whether it's defined.
50326         Modify verify.h to pacify gcc -Wredundant_decls.
50327         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
50328         These use the prefix "GL_" since they're likely to be useful elsewhere.
50329         We may need to break them out into a different .h file.
50330         (__COUNTER__): Define to 0 if the compiler doesn't support it.
50331         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
50332         of verify_function__.
50334 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50336         Tests for module pwrite.
50337         * modules/pwrite-tests: New file.
50338         * tests/test-pwrite.sh: New file.
50339         * tests/test-pwrite.c: New file.
50341         New module pwrite.
50342         * lib/unistd.in.h (pwrite): New declaration.
50343         * lib/pwrite.c: New file, from glibc with modifications.
50344         * m4/pwrite.m4: New file.
50345         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
50346         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
50347         REPLACE_PWRITE.
50348         * modules/pwrite: New file.
50349         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
50350         REPLACE_PWRITE.
50351         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
50352         * doc/posix-functions/pwrite.texi: Mention the new module.
50354 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50356         pread: Update documentation.
50357         * doc/posix-functions/pread.texi: Mention the 'pread' module.
50359 2010-05-04  Eric Blake  <eblake@redhat.com>
50361         docs: update cygwin progress
50362         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
50363         this bug.
50364         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
50365         Added in cygwin 1.7.2.
50366         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
50367         Likewise.
50368         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
50369         Likewise.
50370         * doc/glibc-functions/dup3.texi (dup3): Likewise.
50371         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50372         * doc/glibc-functions/accept4.texi (accept4): Likewise.
50373         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
50374         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
50375         Mention nproc module.
50376         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
50377         bug in cygwin 1.7.5 addition.
50378         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
50379         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
50380         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
50381         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
50382         1.7.5.
50383         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
50384         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
50385         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
50386         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
50387         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
50388         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
50389         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
50390         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
50391         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
50392         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
50393         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
50394         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
50395         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
50396         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
50397         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
50398         Likewise.
50399         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
50400         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
50401         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
50402         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
50403         Likewise.
50404         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
50405         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
50406         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
50407         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
50408         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
50409         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
50410         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
50411         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
50412         Likewise.
50413         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
50414         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
50415         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
50416         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
50417         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
50418         Likewise.
50419         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
50420         Likewise.
50421         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
50422         Likewise.
50423         * doc/glibc-functions/xdrrec_endofrecord.texi
50424         (xdrrec_endofrecord): Likewise.
50425         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
50426         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
50427         Likewise.
50428         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
50429         Likewise.
50431 2010-05-04  Jim Meyering  <meyering@redhat.com>
50433         gendocs.sh: make its "-s FILE" option more useful
50434         * build-aux/gendocs.sh: When honoring the -s FILE option, update
50435         $PACKAGE to reflect the probably-different basename of "FILE".
50437 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50439         bootstrap: don't ignore download_po_files failure
50440         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
50441         failure.
50443 2010-05-03  Jim Meyering  <meyering@redhat.com>
50445         maint.mk: allow to pass options to gendocs.sh
50446         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
50447         (gendocs_options_): New overridable variable.
50449         gnu-web-doc-update: don't ignore configure or build failure
50450         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
50452         announce-gen: backslash-escape '@'s in --help output
50453         * build-aux/announce-gen: Fix syntax errors.
50455         maint.mk, announce-gen: allow project-specific announcement mail headers
50456         * top/maint.mk (translation_project_): Define default.
50457         (announcement_Cc_, announcement_mail_headers_): Likewise.
50458         (announcement): Invoke announce-gen with new --mail-headers option.
50459         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
50461         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
50462         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
50463         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
50464         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
50465         line in the "err2" output file when running "make check" in verbose
50466         mode (i.e., with set -x enabled).
50468 2010-05-03  Bruno Haible  <bruno@clisp.org>
50470         wctob: Fix for weird platforms.
50471         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
50472         argument value.
50474 2010-05-03  Jim Meyering  <meyering@redhat.com>
50476         maint.mk: prohibit unwarranted use of <strings.h>
50477         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
50478         strings.h in a file that does not also use strcasecmp, strncasecmp,
50479         ffs or ffsll.
50481         maint.mk: remove obsolete comments
50482         * top/maint.mk: Remove stale, commented-out rules.
50484 2010-05-02  Bruno Haible  <bruno@clisp.org>
50486         wcwidth: Declare also when it's aliased.
50487         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
50488         macro.
50490 2010-05-02  Bruno Haible  <bruno@clisp.org>
50492         Fix regression from 2010-04-25.
50493         * gnulib-tool (func_modules_transitive_closure): Check the status of
50494         all modules, not only of the tests that are of the form foo-tests where
50495         foo is a module.
50497 2010-05-02  Bruno Haible  <bruno@clisp.org>
50499         wctob: Work around nasty Cygwin 1.7.2 bug.
50500         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
50501         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
50503 2010-05-01  Bruno Haible  <bruno@clisp.org>
50505         fpurge: Sharper test.
50506         * tests/test-fpurge.c (main): Add one more ftell check.
50507         * modules/fpurge-tests (Depends-on): Add ftell.
50508         Suggested by Eric Blake.
50510 2010-05-01  Bruno Haible  <bruno@clisp.org>
50512         ftello: Another test.
50513         * tests/test-ftello3.c: New file.
50514         * modules/ftello-tests (Files): Add it.
50515         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50516         MOSTLYCLEANFILES.
50518         ftell: Another test.
50519         * tests/test-ftell3.c: New file.
50520         * modules/ftell-tests (Files): Add it.
50521         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50522         MOSTLYCLEANFILES.
50524 2010-05-01  Bruno Haible  <bruno@clisp.org>
50526         ftell, ftello: Work around Solaris bug.
50527         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
50528         * lib/ftello.c: Include stdio-impl.h.
50529         (ftello): On Solaris, when _IOWRT is set, compute the result without
50530         looking at _IOREAD.
50531         * modules/ftello (Files): Add lib/stdio-impl.h.
50532         * doc/posix-functions/ftell.texi: Mention Solaris bug.
50533         * doc/posix-functions/ftello.texi: Likewise.
50534         Reported by Eric Blake.
50536 2010-05-01  Bruno Haible  <bruno@clisp.org>
50538         freading: Adapt to special meaning of _IOREAD flag on Solaris.
50539         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
50540         the _IOWRT flag is also set.
50542 2010-05-01  Bruno Haible  <bruno@clisp.org>
50544         Fix doc about a HP-UX stdio bug.
50545         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
50546         * doc/posix-functions/ftello.texi: Likewise.
50548 2010-05-01  Bruno Haible  <bruno@clisp.org>
50550         lseek test: Fix failure on Solaris.
50551         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
50552         output.
50554 2010-04-30  Jim Meyering  <meyering@redhat.com>
50556         bootstrap: don't ignore failure to generate po*/Makevars
50557         * build-aux/bootstrap (with_gettext): Don't ignore failure
50558         to create po/Makevars or runtime-po/Makevars.
50560 2010-04-29  Eric Blake  <eblake@redhat.com>
50562         headers: relax license to LGPLv2+
50563         * modules/fcntl-h (License): Relax license.
50564         * modules/getopt-posix (License): Likewise.
50565         * modules/locale (License): Likewise.
50566         * modules/math (License): Likewise.
50567         * modules/pty (License): Likewise.
50568         * modules/sched (License): Likewise.
50569         * modules/search (License): Likewise.
50570         * modules/spawn (License): Likewise.
50571         * modules/stdarg (License): Likewise.
50572         * modules/sysexits (License): Likewise.
50574 2010-04-29  Jim Meyering  <meyering@redhat.com>
50576         inttypes: relax license to LGPLv2+
50577         * modules/inttypes (License): Relax license.
50579 2010-04-29  Simon Josefsson  <simon@josefsson.org>
50581         * top/maint.mk (indent): Run twice to produce idempotent results.
50583 2010-04-28  Bruno Haible  <bruno@clisp.org>
50585         getdate: Generate getdate.c in the source directory.
50586         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
50587         MOSTLYCLEANFILES.
50588         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
50590 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
50592         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
50593         is not declared as a const *; avoid warnings in that case.
50595 2010-04-28  Eric Blake  <eblake@redhat.com>
50597         canonicalize-lgpl: avoid compiler warning
50598         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50599         declaration' / 'extraneous semicolon' warning with some compilers.
50600         Reported by Andreas Gruenbacher.
50602 2010-04-28  Jim Meyering  <meyering@redhat.com>
50604         init.sh: ensure a more reliable exit status when exiting via trap
50605         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50606         Inspired by patches from Dmitry V. Levin.
50607         Also trap on signal 3 (SIGQUIT).
50609 2010-04-27  Bruno Haible  <bruno@clisp.org>
50611         Update doc about utimes().
50612         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50613         'utimens' module.
50614         Reported by Andreas Gruenbacher <agruen@suse.de>.
50616 2010-04-27  Eric Blake  <eblake@redhat.com>
50618         full-read, full-write: relax license
50619         * modules/full-read (License): Drop to LGPLv2+.
50620         * modules/full-write (License): Likewise.
50621         * modules/safe-read (License): Likewise.
50622         * modules/safe-write (License): Likewise.
50624         pthread: mention library for linking
50625         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50627 2010-04-27  Jim Meyering  <meyering@redhat.com>
50629         maint.mk: fix a bug introduced in last change
50630         * top/maint.mk (gl_assured_headers_): Now that all names are on
50631         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50632         is not anchored to end of word, it should be adequate.
50634         maint.mk: avoid side-effect in latest syntax-check
50635         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50636         to run commands via $(shell...), and hence to incur cost only when
50637         the new rule is actually run.
50639         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50640         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50641         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50642         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50643         (gl_assured_headers_, az_, AZ_): Define.
50644         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50646 2010-04-26  Jim Meyering  <jim@meyering.net>
50647             Bruno Haible  <bruno@clisp.org>
50649         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50650         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50651         Prompted by an exchange with Gilles Espinasse.
50653 2010-04-26  Jim Meyering  <meyering@redhat.com>
50655         git-version-gen: aesthetic tweak
50656         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50657         so that the command remains on a single line.
50659 2010-04-26  Eric Blake  <eblake@redhat.com>
50661         git-version-gen: allow use on EBCDIC hosts
50662         * build-aux/git-version-gen (dirty): Use literal rather than tying
50663         ourselves to ascii.
50664         Reported by Steve Goetze.
50666 2010-04-25  Bruno Haible  <bruno@clisp.org>
50668         netdb: Add support for GNULIB_POSIXCHECK.
50669         * lib/netdb.in.h: Include warn-on-use.h.
50670         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50671         functions are used when GNULIB_POSIXCHECK is defined and the
50672         getaddrinfo module is not in use.
50673         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50674         freeaddrinfo, gai_strerror, getnameinfo are declared.
50675         * modules/netdb (Depends-on): Add warn-on-use.
50676         (Makefile.am): Include warn-on-use.h in netdb.h.
50678 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50680         build: avoid "make check" failure without .git/ directory
50681         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50682         there is no .git/ directory.
50684 2010-04-25  Bruno Haible  <bruno@clisp.org>
50686         ptsname: Fix misuse of ttyname_r.
50687         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50688         of errno.
50690 2010-04-25  Bruno Haible  <bruno@clisp.org>
50692         ttyname_r: Make it work on Solaris 10.
50693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50694         if the system function has the POSIX declaration. Test whether the
50695         function fails if the buffer is less than 128 bytes large.
50696         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50697         system's ttyname_r function. Provide a reasonably large buffer.
50698         * modules/ttyname_r (Depends-on): Add extensions.
50699         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50701 2010-04-25  Bruno Haible  <bruno@clisp.org>
50703         Use the 'extensions' module for some more functions on Solaris.
50704         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50705         module.
50706         * doc/posix-functions/ctime_r.texi: Likewise.
50707         * doc/posix-functions/getgrgid_r.texi: Likewise.
50708         * doc/posix-functions/getgrnam_r.texi: Likewise.
50709         * doc/posix-functions/getpwnam_r.texi: Likewise.
50710         * doc/posix-functions/getpwuid_r.texi: Likewise.
50711         * doc/posix-functions/readdir_r.texi: Likewise.
50712         * doc/posix-functions/sigwait.texi: Likewise.
50713         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50714         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50716 2010-04-25  Bruno Haible  <bruno@clisp.org>
50718         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50719         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50720         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50721         * lib/ttyname_r.c: Include <limits.h>.
50722         (ttyname_r): Define using the system's ttyname_r function, if it exists
50723         and not on Solaris.
50724         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50725         set.
50726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50727         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50728         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50729         Reported by Simon Josefsson.
50731 2010-04-25  Bruno Haible  <bruno@clisp.org>
50733         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50734         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50735         * doc/posix-functions/ctime_r.texi: Likewise.
50736         * doc/posix-functions/getgrgid_r.texi: Likewise.
50737         * doc/posix-functions/getgrnam_r.texi: Likewise.
50738         * doc/posix-functions/getlogin_r.texi: Likewise.
50739         * doc/posix-functions/getpwnam_r.texi: Likewise.
50740         * doc/posix-functions/getpwuid_r.texi: Likewise.
50741         * doc/posix-functions/readdir_r.texi: Likewise.
50742         * doc/posix-functions/sigwait.texi: Likewise.
50743         * doc/posix-functions/ttyname_r.texi: Likewise.
50744         Reported by Simon Josefsson.
50746 2010-04-25  Bruno Haible  <bruno@clisp.org>
50748         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
50749         * gnulib-tool (func_usage): Document that --with-*-tests options apply
50750         also to --create-testdir.
50751         (func_acceptable): Don't consider the status of *-tests modules here.
50752         (func_modules_transitive_closure): Consider it here, before including a
50753         test module.
50754         (func_import, func_create_testdir): Set inc_all_direct_tests,
50755         inc_all_indirect_tests.
50756         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
50757         --create-testdir and --create-megatestdir.
50759 2010-04-25  Bruno Haible  <bruno@clisp.org>
50761         gnulib-tool: Add --without-*-tests options.
50762         * gnulib-tool (func_usage): Document the --without-*-tests options.
50763         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
50764         excl_unportable_tests): New variables.
50765         Fail if they are specified with --import or --update.
50766         (func_acceptable): Respect the excl_*_tests variables.
50767         (func_import): Set the excl_*_tests variables to empty.
50769 2010-04-25  Simon Josefsson  <simon@josefsson.org>
50770             Bruno Haible  <bruno@clisp.org>
50772         Work around a MacOS X 10.4 bug with openpty.
50773         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
50774         * tests/test-openpty.c (main): Close the master side explicitly.
50776 2010-04-25  Bruno Haible  <bruno@clisp.org>
50778         strnlen: Fix a C++ test error on MacOS X and Solaris.
50779         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
50780         the function is not declared.
50781         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
50782         Simon Josefsson.
50784 2010-04-24  Bruno Haible  <bruno@clisp.org>
50786         Avoid a gcc warning.
50787         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
50788         of correct type for %08lx directive.
50789         Reported by Eric Blake.
50791 2010-04-24  Bruno Haible  <bruno@clisp.org>
50793         vasnprintf: Correct errno value in case of out-of-memory.
50794         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
50795         or sprintf. Use the errno value from SNPRINTF or sprintf.
50796         Reported by Ian Beckwith <ianb@erislabs.net>.
50798 2010-04-24  Bruno Haible  <bruno@clisp.org>
50800         ansi-c++-opt: Find correct compiler when cross-compiling.
50801         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
50802         AC_CHECK_PROGS.
50803         Reported by Simon Josefsson.
50805 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
50807         vc-list-files: Add support for subversion
50808         * build-aux/vc-list-files: Use "svn list" to generate the list of
50809         files controlled by subversion.
50811 2010-04-23  Jim Meyering  <meyering@redhat.com>
50813         vc-list-files tests: convert to use init.sh
50814         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
50815         path_prepend_.
50816         Use Exit, not exit.
50817         Use skip_ rather than open coding it.
50818         Remove trap set-up and compare definitions.
50819         * tests/test-vc-list-files-git.sh: Likewise.
50820         * modules/vc-list-files-tests (Files): Add tests/init.sh.
50822 2010-04-22  Simon Josefsson  <simon@josefsson.org>
50824         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
50825         backup files.
50827 2010-04-21  Simon Josefsson  <simon@josefsson.org>
50829         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
50831 2010-04-20  Eric Blake  <eblake@redhat.com>
50833         tests: be robust to ignored SIGPIPE
50834         * tests/test-select-in.sh: Consume all output.
50835         * tests/test-lseek.sh: Check correct exit status, while avoiding
50836         EPIPE.
50838 2010-04-20  Simon Josefsson  <simon@josefsson.org>
50839             Bruno Haible  <bruno@clisp.org>
50841         visibility: Don't use -fvisibility if it leads to a warning.
50842         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
50843         yes, don't pretend that visibility works if it leads to a warning.
50844         Reported by Mike Gran <spk121@yahoo.com>.
50846 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
50848         * build-aux/bootstrap: Use "git -h" for testing for supported options
50849         instead of "git --help".  The short-form option only shows a summary,
50850         and doesn't layout the full man page.  Grep for the full option name
50851         in the summary, too.
50853 2010-04-19  Bruno Haible  <bruno@clisp.org>
50855         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
50856         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
50857         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50858         mention of RELOCATABLE_STRIP.
50859         Reported by Sylvain Beucler <beuc@beuc.net>.
50861 2010-04-19  Bruno Haible  <bruno@clisp.org>
50863         * lib/diffseq.h: Fix typo in comment.
50864         Reported by Eric Blake.
50866 2010-04-19  Bruno Haible  <bruno@clisp.org>
50868         ioctl: Move autoconf macro to a .m4 file.
50869         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50870         * modules/ioctl (Files): Add it.
50871         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50872         Reported by Ian Beckwith <ianb@erislabs.net>.
50874 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50875             Bruno Haible  <bruno@clisp.org>
50877         diffseq: Accommodate use-case with abstract arrays.
50878         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50879         is not defined.
50880         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50881         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50883 2010-04-18  Bruno Haible  <bruno@clisp.org>
50885         * doc/posix-headers/stdbool.texi: More precise wording.
50887 2010-04-17  Jim Meyering  <meyering@redhat.com>
50889         maint.mk: use gnu-style indentation in an embedded perl script
50890         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50891         Rename variable: s/two/last_two_bytes/
50893 2010-04-16  Eric Blake  <eblake@redhat.com>
50895         test-stdbool: skip test that fails with Solaris CC
50896         * tests/test-stdbool.c (f): Skip test that causes compilation
50897         error under buggy C++ compiler.
50898         * lib/stdbool.in.h: Document the limitation.
50899         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50901         setenv: allow compilation with C++
50902         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50903         register keyword.
50905         stdint: allow test to pass with C++
50906         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50908         getopt: allow compilation with C++
50909         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50910         struct.
50911         * lib/getopt.c (_getopt_internal_r): Use correct type.
50912         Reported by Dagobert Michelson, via Joel E. Denny.
50914 2010-04-16  Bruno Haible  <bruno@clisp.org>
50916         Override netdb.h always.
50917         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
50918         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
50919         Reported by Ludovic Courtès <ludo@gnu.org>.
50921 2010-04-15  Bruno Haible  <bruno@clisp.org>
50923         openpty: Fix mistake from 2010-03-21.
50924         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
50925         Reported by Simon Josefsson.
50927 2010-04-15  Eric Blake  <eblake@redhat.com>
50929         test-forkpty: fix expected signature
50930         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
50931         Reported by Simon Josefsson.
50933 2010-04-15  Jim Meyering  <meyering@redhat.com>
50935         maint.mk: texinfo_suffix_re_: correct the default regexp
50936         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
50938         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
50939         make it configurable via texinfo_suffix_re_.
50941 2010-04-14  Eric Blake  <eblake@redhat.com>
50943         strtok_r: relax license to LGPLv2+
50944         * modules/strtok_r (License): Relax license.
50945         Reported by Matthias Bolte.
50947 2010-04-14  Simon Josefsson  <simon@josefsson.org>
50949         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
50950         version 1.4.4 by default instead of requiring the libgcrypt
50951         version used during build.  This makes it possible to use the
50952         application with older but still binary compatible libgcrypt
50953         versions.
50955 2010-04-13  Eric Blake  <eblake@redhat.com>
50957         getopt-gnu: match recent glibc fixes and posix ruling
50958         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
50959         '+' handling, when requesting extensions.
50960         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
50961         'W;' handling.
50962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50963         * doc/posix-functions/getopt.texi (getopt): Document this.
50964         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50965         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50966         Likewise.
50968         getopt: merge bug fixes from glibc
50969         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
50970         diagnostics.  Honor '+:' correctly.  Reject ';'.
50972         getopt-posix: detect MacOS bug
50973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
50974         optind when missing a required argument.
50975         * doc/posix-functions/getopt.texi (getopt): Document the bug.
50976         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50977         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50978         Likewise.
50980         getopt-posix: avoid spurious failure on Solaris
50981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
50982         an indicator that setting optind=1 is sufficient for reset.
50984         getopt-posix: avoid spurious failure on FreeBSD
50985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
50986         in POSIX mode, since the m4 test uses it.
50988         gnulib-tool: silence warning on BSD sh
50989         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
50991 2010-04-13  Jim Meyering  <meyering@redhat.com>
50993         doc: users.txt: GNU patch now uses gnulib
50994         * users.txt: Add patch.
50996 2010-04-12  Jim Meyering  <meyering@redhat.com>
50998         maint.mk: generate more concise timing data for syntax-check rules
50999         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
51000         " done" from each line that reports a syntax-check test duration.
51002 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
51004         git-version-gen: use "git update-index..." rather than "git status"
51005         * build-aux/git-version-gen: Use git update-index --refresh, not
51006         "git status".  With some versions of git, "git status" would fail
51007         to update the index and result in an unwarranted "-dirty" suffix.
51009 2010-04-11  Jim Meyering  <meyering@redhat.com>
51011         openat: correct formatting (no semantic change)
51012         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
51013         Suggested by Bruno Haible.
51015 2010-04-11  Bruno Haible  <bruno@clisp.org>
51017         Stricter declaration checking in testdirs.
51018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51019         If for_tests is true, augment AM_CPPFLAGS to define
51020         GNULIB_STRICT_CHECKING.
51021         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
51022         GNULIB_STRICT_CHECKING is defined, verify that the function is
51023         declared.
51025 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
51026             Bruno Haible  <bruno@clisp.org>
51028         libunistring: Improve configure output.
51029         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
51030         Don't say "consider installing GNU libunistring" when checking again
51031         with libiconv.
51033 2010-04-11  Bruno Haible  <bruno@clisp.org>
51035         libunistring: Correct value of $LTLIBUNISTRING.
51036         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
51037         correct the value of $LTLIBUNISTRING.
51039 2010-04-11  Bruno Haible  <bruno@clisp.org>
51041         havelib: Add static libraries to LIBS in the right order.
51042         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
51043         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
51045 2010-04-11  Bruno Haible  <bruno@clisp.org>
51047         libunistring: Detect libunistring also when it depends on libiconv.
51048         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
51049         the second AC_LIB_HAVE_LINKFLAGS invocation.
51051 2010-04-11  James Youngman  <jay@gnu.org>
51053         close-stream: declare local scalars to be "const"
51054         * lib/close-stream.c (close_stream): Make boolean variables const
51055         to document the fact that we set but do not change them.
51057 2010-04-11  Bruno Haible  <bruno@clisp.org>
51059         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
51061 2010-04-11  Jim Meyering  <meyering@redhat.com>
51063         maint.mk: don't include dist-check.mk
51064         * top/maint.mk: Remove bogus include directive.
51066         maint.mk: improve empty-line-at-EOF check
51067         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
51068         solution, rather than tail+Perl-based one.  The latter would read
51069         a few kilobytes from the end of each file, and did not handle empty
51070         files properly.
51072         maint.mk: print the elapsed time for each syntax-check rule
51073         * top/maint.mk (sc_m_rules_): Save start time in a file.
51074         (sc_z_rules_): New rules: remove temp file and print elapsed time.
51075         (local-check): Interpose the .z rules
51077 2010-04-11  Jim Meyering  <meyering@redhat.com>
51079         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
51080         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
51081         empty file with one that ends in an empty line.
51083 2010-04-10  Bruno Haible  <bruno@clisp.org>
51085         mkdir: Make it work on mingw64.
51086         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
51087         * lib/mkdir.c: Update comment.
51088         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
51090 2010-04-10  Bruno Haible  <bruno@clisp.org>
51092         Don't override improved macro from newer autoconf.
51093         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
51094         autoconf >= 2.62.
51095         Reported by Joel E. Denny <jdenny@clemson.edu>.
51097 2010-04-10  Jim Meyering  <meyering@redhat.com>
51099         maint.mk: new syntax-check rule: prohibit empty lines at end of file
51100         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
51102         maint.mk: correct a diagnostic
51103         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
51104         in diagnostic; now use $prohibit.
51106 2010-04-10  Bruno Haible  <address@hidden>
51108         fchownat: Fix a C++ test error on Solaris 8.
51109         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
51110         the function does not exist.
51112 2010-04-10  Bruno Haible  <bruno@clisp.org>
51114         vasnprintf: Add more tests.
51115         * tests/test-vasnprintf-posix.c: Include <errno.h>.
51116         (test_function): Test converting an invalid wide string.
51118         vasnprintf: Correct handling of unconvertible wide string arguments.
51119         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
51120         VASNPRINTF.
51121         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
51122         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
51123         smaller than the expected maximum need for the directive. Set errno to
51124         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
51125         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
51126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
51127         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
51128         * modules/vasnprintf (Files): Add m4/printf.m4.
51129         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51131 2010-04-10  Bruno Haible  <bruno@clisp.org>
51133         vasnprintf: Fix crash in %ls directive.
51134         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
51135         string is passed as argument to %ls, with no precision and no width.
51136         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51138 2010-04-10  Bruno Haible  <bruno@clisp.org>
51140         vasnprintf: Fix multiple test failures on mingw.
51141         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
51142         _snprintf, or snwprintf, not _snwprintf.
51144 2010-04-10  Bruno Haible  <bruno@clisp.org>
51146         write: Fix a C++ test error on mingw.
51147         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
51149 2010-04-10  Bruno Haible  <bruno@clisp.org>
51151         vasnprintf test: Reduce code duplication.
51152         * tests/test-vasnprintf.c (test_function): New function, extracted from
51153         test_vasnprintf.
51154         (test_vasnprintf, test_asnprintf): Invoke it.
51156 2010-04-10  Bruno Haible  <bruno@clisp.org>
51158         strnlen: Fix warning in C++ mode on MacOS X.
51159         * lib/string.in.h (strnlen): Use the modern idiom.
51160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
51161         defining strnlen as a macro already in <config.h>.
51162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51163         REPLACE_STRNLEN.
51164         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
51165         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51167 2010-04-08  James Youngman  <jay@gnu.org>
51169         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
51170         the example.
51172 2010-04-09  Jim Meyering  <meyering@redhat.com>
51174         maint.mk: print better diagnostic when there is no $(_hv_file)
51175         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
51176         announce that when $(_hv_file) (aka help-version) does not exist.
51178         init.sh: run tr in the "C" locale to avoid multibyte interpretation
51179         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
51180         not try to interpret its random input bytes.  Jarno Rajahalme reported
51181         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
51182         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
51183         (mktempd_): Likewise, just in case.
51185         ftruncate: add two years to projected module removal date: 2012
51186         * m4/ftruncate.m4: Adjust comments.
51188         ftruncate: mark module as obsolete; even MinGW provides it, now
51189         * modules/ftruncate (Status): Obsolete.
51190         (Notice): Say that.
51191         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
51192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
51194 2010-04-08  Bruno Haible  <bruno@clisp.org>
51196         Fix side effects from tests-related modules.
51197         * modules/dprintf-posix (Comment): New section.
51198         * modules/fprintf-posix (Comment): Likewise.
51199         * modules/obstack-printf-posix (Comment): Likewise.
51200         * modules/printf-posix (Comment): Likewise.
51201         * modules/snprintf-posix (Comment): Likewise.
51202         * modules/sprintf-posix (Comment): Likewise.
51203         * modules/vasnprintf-posix (Comment): Likewise.
51204         * modules/vasprintf-posix (Comment): Likewise.
51205         * modules/vdprintf-posix (Comment): Likewise.
51206         * modules/vfprintf-posix (Comment): Likewise.
51207         * modules/vprintf-posix (Comment): Likewise.
51208         * modules/vsnprintf-posix (Comment): Likewise.
51209         * modules/vsprintf-posix (Comment): Likewise.
51210         * modules/xprintf-posix (Comment): Likewise.
51211         * modules/xvasprintf-posix (Comment): Likewise.
51212         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
51213         * modules/floorf-tests (Depends-on): Likewise.
51214         * modules/round-tests (Depends-on): Likewise.
51215         * modules/roundf-tests (Depends-on): Likewise.
51216         * modules/trunc-tests (Depends-on): Likewise.
51217         * modules/truncf-tests (Depends-on): Likewise.
51218         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
51219         'fprintf-posix' module is not present.
51220         * tests/test-floorf2.c (check): Likewise.
51221         * tests/test-trunc2.c (check): Likewise.
51222         * tests/test-truncf2.c (check): Likewise.
51223         * tests/test-round2.c (equal): Likewise.
51224         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51226 2010-04-07  Karl Berry  <karl@gnu.org>
51228         * config/srclist.txt,
51229         * config/srclistvars.sh,
51230         * config/srclist-update: doc fixes.
51232 2010-04-07  Jim Meyering  <meyering@redhat.com>
51234         maint.mk: add a PATH crosschecking syntax-check rule
51235         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
51236         Useful if you use a test like the one in help-version (coreutils,
51237         diffutils, grep, gzip) that ensures $(VERSION) matches what is
51238         printed by prog --version.
51240 2010-04-06  Bruno Haible  <bruno@clisp.org>
51242         Fix link error on mingw.
51243         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
51244         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
51246 2010-04-06  Bruno Haible  <bruno@clisp.org>
51248         Assume rmdir exists.
51249         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
51251 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
51253         doc: update users.txt
51254         * users.txt: Add gcal.
51256 2010-04-06  Jim Meyering  <meyering@redhat.com>
51258         init.sh: simply unset TMPDIR rather than risking env -i
51259         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
51260         although it probably works fine on all Unix-based systems, some
51261         systems (Cygwin?) cannot tolerate a totally cleared environment.
51262         Suggestion from Eric Blake.
51264 2010-04-06  Jim Meyering  <meyering@redhat.com>
51266         init.sh: portability fix: use env's POSIX-specified -i option not -u
51267         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
51268         than unportable env -u.  Solaris 5.11's env lacks support for -u.
51270 2010-04-05  Bruno Haible  <bruno@clisp.org>
51272         btowc: Work around Cygwin 1.7.2 bug.
51273         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
51274         does not map NUL to 0.
51275         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
51277 2010-04-05  Bruno Haible  <bruno@clisp.org>
51279         Make the multithread modules work on Cygwin 1.7.2.
51280         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
51281         imported symbols can be declared weak, so that it returns "no" on
51282         Cygwin 1.7.2.
51284 2010-04-05  Bruno Haible  <bruno@clisp.org>
51286         Use the module 'strncat'.
51287         * modules/unistr/u8-strncat (Depends-on): Add strncat.
51289         Tests for module 'strncat'.
51290         * modules/strncat-tests: New file.
51291         * tests/test-strncat.c: New file.
51293         New module 'strncat'.
51294         * lib/string.in.h (strncat): New declaration.
51295         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
51296         * m4/strncat.m4: New file, based on m4/memchr.m4.
51297         * modules/strncat: New file.
51298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
51299         is declared.
51300         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
51301         REPLACE_STRNCAT.
51302         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
51303         REPLACE_STRNCAT.
51304         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
51305         module.
51306         * tests/test-string-c++.cc: Check signature of strncat.
51308 2010-04-05  Jim Meyering  <meyering@redhat.com>
51310         xstrtoumax-tests: convert to use init.sh
51311         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
51312         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51313         Use Exit, not exit.
51314         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51316         xstrtoimax-tests: convert to use init.sh
51317         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
51318         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51319         Use Exit, not exit.
51320         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51322 2010-04-05  Bruno Haible  <bruno@clisp.org>
51324         sys_socket: Avoid #define replacements in C++ mode.
51325         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
51326         warning to the function if possible, rather than #defining the symbol
51327         to a dysfunctional alias.
51329 2010-04-05  Bruno Haible  <bruno@clisp.org>
51331         fseeko: Fix C++ test error on mingw.
51332         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
51333         gl_FUNC_FSEEKO.
51334         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
51335         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
51336         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
51337         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
51339 2010-04-05  Bruno Haible  <bruno@clisp.org>
51341         duplocale: Improve test output.
51342         * tests/test-duplocale.c (main): Print reason for skipped test.
51344 2010-04-05  Bruno Haible  <bruno@clisp.org>
51346         Assume rmdir exists.
51347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
51348         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
51350 2010-04-05  Bruno Haible  <bruno@clisp.org>
51352         Fix link error on Solaris 8 with cc.
51353         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
51355 2010-04-05  Bruno Haible  <bruno@clisp.org>
51357         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51358         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
51360 2010-04-05  Bruno Haible  <bruno@clisp.org>
51362         vasprintf: Update documentation.
51363         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
51365 2010-04-05  Bruno Haible  <bruno@clisp.org>
51367         ptsname: Improve test.
51368         * tests/test-ptsname.c (main): Also try the various master names of BSD
51369         systems.
51371 2010-04-05  Bruno Haible  <bruno@clisp.org>
51373         memchr: Avoid a possible C++ test error.
51374         * lib/string.in.h (memchr): Provide declaration if function is missing.
51375         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
51376         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
51377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
51378         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
51380 2010-04-05  Bruno Haible  <bruno@clisp.org>
51382         strtok_r: Improve idiom.
51383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
51384         AC_LIBOBJ is used.
51386 2010-04-05  Bruno Haible  <bruno@clisp.org>
51388         strdup: Improve idiom.
51389         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
51390         AC_LIBOBJ is used.
51391         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
51392         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
51393         when AC_LIBOBJ is used.
51395 2010-04-05  Bruno Haible  <bruno@clisp.org>
51397         mbsinit, mbrtowc, wcrtomb: Improve idioms.
51398         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
51399         don't set REPLACE_MBSINIT to 1.
51400         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
51401         don't set REPLACE_MBRTOWC to 1.
51402         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
51403         exist, don't set REPLACE_MBSRTOWCS to 1.
51404         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
51405         exist, don't set REPLACE_MBSNRTOWCS to 1.
51406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
51407         don't set REPLACE_WCRTOMB to 1.
51408         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
51409         exist, don't set REPLACE_WCSRTOMBS to 1.
51410         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
51411         exist, don't set REPLACE_WCSNRTOMBS to 1.
51413 2010-04-05  Bruno Haible  <bruno@clisp.org>
51415         ldexpl: Improve idiom.
51416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
51417         make sure to set HAVE_DECL_LDEXPL to 0.
51419 2010-04-05  Jim Meyering  <meyering@redhat.com>
51421         xstrtol-tests: convert to use init.sh
51422         * modules/xstrtol-tests (Files): Add tests/init.sh.
51423         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51424         Use Exit, not exit.
51425         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51427         atexit-tests: convert to use init.sh
51428         * modules/atexit-tests (Files): Add tests/init.sh.
51429         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51430         Use Exit, not exit.
51431         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51433         init.sh: fix typo
51434         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
51436         init.sh: make it easier for a test script to write to the tty, ...
51437         when using automake's parallel-tests mode.
51438         * tests/init.sh (stderr_fileno_): Define overridable variable.
51439         (warn_): New function, to use it.
51440         (fail_, skip_, framework_failure_): Use warn_.
51442 2010-04-04  Bruno Haible  <bruno@clisp.org>
51444         btowc: Avoid warning.
51445         * lib/btowc.c: Include <stdlib.h>.
51446         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
51448 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51449             Bruno Haible  <bruno@clisp.org>
51451         wchar: Port to NetBSD 1.5.
51452         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
51453         * lib/wctype.in.h (WEOF): Likewise.
51455 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51456             Bruno Haible  <bruno@clisp.org>
51458         Port extended stdio to NetBSD 1.5.
51459         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
51460         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
51461         older.
51463 2010-04-04  Bruno Haible  <bruno@clisp.org>
51465         string: Remove unused substitution.
51466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51467         HAVE_DECL_STRERROR.
51468         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
51470 2010-04-04  Bruno Haible  <bruno@clisp.org>
51472         strtod: Avoid a possible C++ test error.
51473         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
51474         set REPLACE_STRTOD.
51476 2010-04-04  Bruno Haible  <bruno@clisp.org>
51478         strerror: Update documentation.
51479         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
51481 2010-04-04  Bruno Haible  <bruno@clisp.org>
51483         stdio: Fix some C++ test errors on Solaris 8 with GCC.
51484         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
51485         _GL_CXXALIAS_SYS_CAST.
51487 2010-04-04  Bruno Haible  <bruno@clisp.org>
51489         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51490         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
51491         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
51492         REPLACE_FREXPL to 1.
51493         * doc/posix-functions/frexpl.texi: Update documentation.
51495 2010-04-04  Bruno Haible  <bruno@clisp.org>
51497         math: Fix some C++ test errors on Solaris 8 and Cygwin.
51498         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
51500 2010-04-04  Bruno Haible  <bruno@clisp.org>
51502         Implement nanosleep for native Windows.
51503         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
51505 2010-04-04  Bruno Haible  <bruno@clisp.org>
51507         math: Fix some C++ test errors on Solaris 8.
51508         * lib/math.in.h (truncf, trunc): Use simpler idiom.
51510 2010-04-04  Bruno Haible  <bruno@clisp.org>
51512         math: Fix some C++ test errors on Cygwin.
51513         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
51514         truncl): Provide declaration if the system does not have it.
51515         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
51516         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
51517         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
51518         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
51519         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
51520         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
51521         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
51522         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
51523         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
51524         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
51525         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
51526         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
51527         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
51528         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
51529         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
51530         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
51531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
51532         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51533         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51534         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
51535         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51536         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51538 2010-04-04  Bruno Haible  <bruno@clisp.org>
51540         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
51541         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51542         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51543         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51544         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51545         * m4/isinf.m4 (gl_ISINF): Likewise.
51546         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51548 2010-04-04  Bruno Haible  <bruno@clisp.org>
51550         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
51551         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51553 2010-04-04  Bruno Haible  <bruno@clisp.org>
51555         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
51556         * modules/tmpfile (configure.ac): Update.
51558         tmpfile: Fix C++ test error on mingw.
51559         * lib/stdio.in.h (tmpfile): New declaration.
51560         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
51561         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
51562         * modules/tmpfile (Depends-on): Add stdio.
51563         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51564         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
51565         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
51566         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
51567         REPLACE_TMPFILE.
51568         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
51570 2010-04-04  Bruno Haible  <bruno@clisp.org>
51572         ioctl: Fix C++ test error on mingw.
51573         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
51574         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
51575         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
51577 2010-04-03  Bruno Haible  <bruno@clisp.org>
51579         wcwidth: Fix C++ test error on mingw.
51580         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
51581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
51582         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
51584 2010-04-03  Bruno Haible  <bruno@clisp.org>
51586         nanosleep: Fix C++ test error on mingw.
51587         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
51588         * lib/time.in.h (nanosleep): Use modern idiom.
51589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
51590         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
51591         REPLACE_NANOSLEEP to 1.
51592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
51593         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51595 2010-04-03  Bruno Haible  <bruno@clisp.org>
51597         strptime: Fix C++ test error on mingw.
51598         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51599         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51600         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51601         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51603         not REPLACE_STRPTIME.
51604         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51605         REPLACE_STRPTIME.
51607 2010-04-03  Bruno Haible  <bruno@clisp.org>
51609         timegm: Fix C++ test error on mingw.
51610         * lib/time.in.h (timegm): Use modern idiom.
51611         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51612         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51613         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51614         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51616 2010-04-03  Bruno Haible  <bruno@clisp.org>
51618         timegm: Assume declaration if function exists.
51619         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51620         if it exists. Don't clobber ac_cv_func_timegm.
51622 2010-04-03  Bruno Haible  <bruno@clisp.org>
51624         time_r: Fix C++ test error on mingw.
51625         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51626         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51627         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51628         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51629         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51631 2010-04-03  Bruno Haible  <bruno@clisp.org>
51633         time_r: Minor updates.
51634         * modules/time_r (Description): Mention the provided functions.
51635         * lib/time_r.c: Don't include <string.h>.
51636         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51637         * doc/posix-functions/localtime_r.texi: Likewise.
51639 2010-04-03  Bruno Haible  <bruno@clisp.org>
51641         time: Fix regression introduced on 2010-03-08.
51642         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51643         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51645 2010-04-03  Jim Meyering  <meyering@redhat.com>
51647         maint.mk: don't silently disable project-specific syntax-check rules
51648         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51649         that they need to convert their project-specific syntax-check rules
51650         to use the new _sc_search_regexp.
51652 2010-04-03  Bruno Haible  <bruno@clisp.org>
51654         fchdir: Fix regression introduced on 2010-03-08.
51655         * lib/unistd.in.h (fchdir): Fix declaration.
51656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51658         REPLACE_FCHDIR.
51659         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51660         REPLACE_FCHDIR.
51662 2010-04-03  Bruno Haible  <bruno@clisp.org>
51664         getpagesize: Fix C++ test error on mingw.
51665         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51666         system does not declare the function.
51667         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51668         declared.
51669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51670         HAVE_DECL_GETPAGESIZE.
51671         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51673 2010-04-03  Bruno Haible  <bruno@clisp.org>
51675         stdio: Make C++ tests work on mingw.
51676         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51677         does not declare the function.
51679 2010-04-03  Bruno Haible  <bruno@clisp.org>
51681         ftello: Fix C++ test error on mingw.
51682         * lib/stdio.in.h (ftello): Use modern idiom.
51683         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51684         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51685         is missing and that it needs to be replaced.
51686         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51688         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51690 2010-04-03  Bruno Haible  <bruno@clisp.org>
51692         fseeko: Fix C++ test error on mingw.
51693         * lib/stdio.in.h (fseeko): Use modern idiom.
51694         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51696         is missing and that it needs to be replaced.
51697         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51699         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51701 2010-04-03  Bruno Haible  <bruno@clisp.org>
51703         mkstemp: Fix C++ test error on mingw.
51704         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51706         function is missing and that it needs to be replaced.
51707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51708         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51710 2010-04-03  Bruno Haible  <bruno@clisp.org>
51712         stpncpy: Fix C++ test error on mingw.
51713         * lib/string.in.h (stpncpy): Use modern idiom.
51714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51715         function is missing and that it needs to be replaced.
51716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51717         REPLACE_STPNCPY.
51718         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51720 2010-04-03  Bruno Haible  <bruno@clisp.org>
51722         sys_stat: Fix C++ test error on mingw.
51723         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51724         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51726 2010-04-03  Bruno Haible  <bruno@clisp.org>
51728         pty: Update doc.
51729         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51731 2010-04-03  Bruno Haible  <bruno@clisp.org>
51733         unistd: Fix C++ test error on mingw.
51734         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51736 2010-04-03  Bruno Haible  <bruno@clisp.org>
51738         Update doc regarding mingw.
51739         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51740         * doc/glibc-functions/login_tty.texi: Likewise.
51741         * doc/glibc-functions/forkpty.texi: Likewise.
51743 2010-04-03  Bruno Haible  <bruno@clisp.org>
51745         stdlib: Avoid compilation failure of c-strtold on mingw.
51746         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
51748 2010-04-03  Bruno Haible  <bruno@clisp.org>
51750         locale: Make C++ tests work on Cygwin and mingw.
51751         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
51752         cannot provide the function.
51753         Reported by Simon Josefsson.
51755 2010-04-03  Bruno Haible  <bruno@clisp.org>
51757         localename: Port to MacOS X 10.6.
51758         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
51759         memory layout of the locales in MacOS X 10.6 as well.
51760         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
51762 2010-04-02  Bruno Haible  <bruno@clisp.org>
51764         gnulib-tool: Ensure that long-running tests are executed last.
51765         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
51766         running tests after the one for the other tests.
51768 2010-04-02  Bruno Haible  <bruno@clisp.org>
51770         gnulib-tool: Ensure the tests in the main directory are executed first.
51771         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
51772         start with the current directory.
51774 2010-04-02  Bruno Haible  <bruno@clisp.org>
51776         Tests for module 'havelib', moved here from GNU gettext.
51777         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
51778         modifications.
51779         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
51780         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
51781         with modifications.
51782         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
51783         modifications.
51784         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
51785         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
51786         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
51787         with modifications.
51788         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
51789         with modifications.
51790         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
51791         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
51792         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51793         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
51794         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
51795         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
51796         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
51797         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
51798         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
51799         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
51800         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
51801         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
51802         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
51803         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
51804         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51805         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
51806         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
51807         with modifications.
51808         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
51809         with modifications.
51810         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
51811         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
51812         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
51813         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
51814         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
51815         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
51816         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
51817         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
51818         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
51819         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
51820         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
51821         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
51822         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
51823         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
51824         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
51825         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
51826         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
51827         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
51828         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
51829         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
51830         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
51831         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
51832         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
51833         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
51834         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
51835         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
51836         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
51837         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
51838         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
51839         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
51840         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
51841         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
51842         * tests/havelib/rpathx/rpathx.c: New file, from
51843         gettext/autoconf-lib-link.
51844         * tests/havelib/rpathx/Makefile.am: New file, from
51845         gettext/autoconf-lib-link.
51846         * tests/havelib/rpathx/configure.ac: New file, from
51847         gettext/autoconf-lib-link with modifications.
51848         * tests/havelib/rpathy/rpathy.c: New file, from
51849         gettext/autoconf-lib-link.
51850         * tests/havelib/rpathy/Makefile.am: New file, from
51851         gettext/autoconf-lib-link.
51852         * tests/havelib/rpathy/configure.ac: New file, from
51853         gettext/autoconf-lib-link with modifications.
51854         * tests/havelib/rpathz/rpathz.c: New file, from
51855         gettext/autoconf-lib-link.
51856         * tests/havelib/rpathz/Makefile.am: New file, from
51857         gettext/autoconf-lib-link.
51858         * tests/havelib/rpathz/configure.ac: New file, from
51859         gettext/autoconf-lib-link with modifications.
51860         * tests/havelib/rpathlx/usex.c: New file, from
51861         gettext/autoconf-lib-link.
51862         * tests/havelib/rpathlx/Makefile.am: New file, from
51863         gettext/autoconf-lib-link.
51864         * tests/havelib/rpathlx/configure.ac: New file, from
51865         gettext/autoconf-lib-link with modifications.
51866         * tests/havelib/rpathly/usey.c: New file, from
51867         gettext/autoconf-lib-link.
51868         * tests/havelib/rpathly/Makefile.am: New file, from
51869         gettext/autoconf-lib-link.
51870         * tests/havelib/rpathly/configure.ac: New file, from
51871         gettext/autoconf-lib-link with modifications.
51872         * tests/havelib/rpathlz/usez.c: New file, from
51873         gettext/autoconf-lib-link.
51874         * tests/havelib/rpathlz/Makefile.am: New file, from
51875         gettext/autoconf-lib-link.
51876         * tests/havelib/rpathlz/configure.ac: New file, from
51877         gettext/autoconf-lib-link with modifications.
51878         * tests/havelib/rpathlyx/usey.c: New file, from
51879         gettext/autoconf-lib-link.
51880         * tests/havelib/rpathlyx/Makefile.am: New file, from
51881         gettext/autoconf-lib-link.
51882         * tests/havelib/rpathlyx/configure.ac: New file, from
51883         gettext/autoconf-lib-link with modifications.
51884         * tests/havelib/rpathlzyx/usez.c: New file, from
51885         gettext/autoconf-lib-link.
51886         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51887         gettext/autoconf-lib-link.
51888         * tests/havelib/rpathlzyx/configure.ac: New file, from
51889         gettext/autoconf-lib-link with modifications.
51890         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51891         with modifications.
51893 2010-04-02  Bruno Haible  <bruno@clisp.org>
51895         gnulib-tool: Create distributed built sources also for the tests.
51896         * gnulib-tool (func_create_testdir): Also generate distributed built
51897         sources in the tests directory.
51899 2010-04-02  Bruno Haible  <bruno@clisp.org>
51901         gnulib-tool: Obey user's environment variables.
51902         * gnulib-tool (func_create_testdir): When creating built sources,
51903         respect the environment variables for autoconf, automake, etc. given by
51904         the user.
51906 2010-04-02  Bruno Haible  <bruno@clisp.org>
51908         gnulib-tool: Provide the value of --m4-base to modules.
51909         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51910         of gl_m4_base.
51912 2010-04-02  Eric Blake  <eblake@redhat.com>
51914         maint.mk: fix some fallout
51915         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51916         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
51918 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51920         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
51921         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
51922         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
51923         (sc_cast_of_x_alloc_return_value): Likewise.
51924         (sc_cast_of_alloca_return_value): Likewise.
51925         (sc_space_tab): Likewise.
51926         (sc_prohibit_atoi_atof): Likewise.
51927         (sc_prohibit_magic_number_exit): Likewise.
51928         (sc_error_exit_success): Likewise.
51929         (sc_file_system): Likewise.
51930         (sc_prohibit_have_config_h): Likewise.
51931         (sc_require_config_h): Likewise.
51932         (sc_prohibit_HAVE_MBRTOWC): Likewise.
51933         (sc_obsolete_symbols): Likewise.
51934         (sc_changelog): Likewise.
51935         (sc_program_name): Likewise.
51936         (sc_the_the): Likewise.
51937         (sc_trailing_blank): Likewise.
51938         (sc_two_space_separator_in_usage): Likewise.
51939         (sc_useless_cpp_parens): Likewise.
51940         (sc_GPL_version): Likewise.
51941         (sc_GFDL_version): Likewise.
51942         (sc_texinfo_acronym): Likewise.
51943         (sc_prohibit_cvs_keyword): Likewise.
51944         (sc_prohibit_stat_st_blocks): Likewise.
51945         (sc_prohibit_S_IS_definition): Likewise.
51946         (sc_redundant_const): Likewise.
51947         (sc_makefile_TAB_only_indentation): Likewise.
51948         (sc_m4_quote_check): Likewise.
51949         (sc_makefile_path_separator_check): Likewise.
51950         (sc_copyright_check): Likewise.
51951         (sc_Wundef_boolean): Likewise.
51952         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
51954         maint.mk: match 0 or more whitespace-before-function-call '('
51955         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
51956         that have zero or two-and-more spaces between the function name
51957         and the open parenthesis.
51958         (sc_error_message_warn_fatal): Likewise.
51959         (sc_error_message_uppercase): Likewise.
51960         (sc_error_message_period): Likewise.
51962 2010-03-31  Eric Blake  <eblake@redhat.com>
51964         maint.mk: check for [ as well as test
51965         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
51966         Based on a libvirt report by Matthias Bolte.
51968         gnumakefile: don't squelch _version output
51969         * top/GNUmakefile (_version): Create one-shot dependency rather
51970         than using $(shell) when version must be regenerated.
51971         (_autoreconf): Run verbosely, by default.
51973         sys_time: avoid compiler warnings
51974         * lib/sys_time.in.h (includes): Ensure gcc pragma is
51975         unconditional, fixing regression from 2010-03-29.
51976         Reported by Simon Josefsson.
51978 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51980         maint.mk: s/_header_without_use/_sc_header_without_use/
51981         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
51982         (sc_prohibit_assert_without_use): Use the new name.
51983         (sc_prohibit_close_stream_without_use): Likewise.
51984         (sc_prohibit_getopt_without_use): Likewise.
51985         (sc_prohibit_quotearg_without_use): Likewise.
51986         (sc_prohibit_quote_without_use): Likewise.
51987         (sc_prohibit_long_options_without_use): Likewise.
51988         (sc_prohibit_inttostr_without_use): Likewise.
51989         (sc_prohibit_ignore_value_without_use): Likewise.
51990         (sc_prohibit_error_without_use): Likewise.
51991         (sc_prohibit_xalloc_without_use): Likewise.
51992         (sc_prohibit_hash_without_use): Likewise.
51993         (sc_prohibit_hash_pjw_without_use): Likewise.
51994         (sc_prohibit_safe_read_without_use): Likewise.
51995         (sc_prohibit_argmatch_without_use): Likewise.
51996         (sc_prohibit_canonicalize_without_use): Likewise.
51997         (sc_prohibit_root_dev_ino_without_use): Likewise.
51998         (sc_prohibit_openat_without_use): Likewise.
51999         (sc_prohibit_c_ctype_without_use): Likewise.
52000         (sc_prohibit_signal_without_use): Likewise.
52001         (sc_prohibit_intprops_without_use): Likewise.
52003 2010-03-30  Eric Blake  <eblake@redhat.com>
52005         maint: improve module indicators
52006         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
52007         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
52008         columns, and avoid extra macro expansion.
52010         fdopendir: work around FreeBSD bug
52011         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
52012         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
52013         * modules/dirent (Makefile.am): Substitute it.
52014         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
52015         declaration.
52016         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
52017         fix.
52018         Reported by Christian Weisgerber <naddy@mips.inka.de>.
52020 2010-03-29  Bruno Haible  <bruno@clisp.org>
52022         Emit #pragma system_header after the inclusion guard, not before.
52023         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
52024         guard that spans the entire file, not before. This enables an
52025         optimization in GCC's preprocessor.
52026         * lib/ctype.in.h: Likewise.
52027         * lib/dirent.in.h: Likewise.
52028         * lib/errno.in.h: Likewise.
52029         * lib/float.in.h: Likewise.
52030         * lib/getopt.in.h: Likewise.
52031         * lib/iconv.in.h: Likewise.
52032         * lib/langinfo.in.h: Likewise.
52033         * lib/locale.in.h: Likewise.
52034         * lib/math.in.h: Likewise.
52035         * lib/netdb.in.h: Likewise.
52036         * lib/netinet_in.in.h: Likewise.
52037         * lib/pty.in.h: Likewise.
52038         * lib/sched.in.h: Likewise.
52039         * lib/se-selinux.in.h: Likewise.
52040         * lib/search.in.h: Likewise.
52041         * lib/spawn.in.h: Likewise.
52042         * lib/stdarg.in.h: Likewise.
52043         * lib/stdint.in.h: Likewise.
52044         * lib/string.in.h: Likewise.
52045         * lib/strings.in.h: Likewise.
52046         * lib/sys_file.in.h: Likewise.
52047         * lib/sys_ioctl.in.h: Likewise.
52048         * lib/sys_time.in.h: Likewise.
52049         * lib/sys_times.in.h: Likewise.
52050         * lib/sys_utsname.in.h: Likewise.
52051         * lib/sys_wait.in.h: Likewise.
52052         * lib/sysexits.in.h: Likewise.
52053         * lib/wctype.in.h: Likewise.
52055 2010-03-28  James Youngman  <jay@gnu.org>
52057         save-cwd: don't leak a file descriptor when the caller execs.
52058         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
52059         saved file descriptor.
52060         * modules/save-cwd (Depends-on): Depend on cloexec.
52062 2010-03-29  Bruno Haible  <bruno@clisp.org>
52064         Remove vestiges of fts-lgpl module.
52065         * lib/fts_.h: Assume GNULIB_FTS is 1.
52066         * lib/fts.c: Likewise.
52067         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52069 2010-03-28  Bruno Haible  <bruno@clisp.org>
52071         Fix definition of tests witness macro.
52072         * gnulib-tool (func_import): Fix definition of witness macro.
52074 2010-03-28  Bruno Haible  <bruno@clisp.org>
52076         Fix ioctl's protoype on glibc systems.
52077         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
52078         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
52079         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
52080         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
52081         signature. If not, arrange to replace the ioctl function.
52082         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
52083         REPLACE_IOCTL.
52084         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
52085         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
52086         Reported by Ludovic Courtès <ludo@gnu.org>.
52088 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
52090         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
52091         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
52092         made it so grep -r --include=GLOB* ... did not work.
52094 2010-03-26  Jim Meyering  <meyering@redhat.com>
52095             Eric Blake  <eblake@redhat.com>
52097         maint.mk: prohibit use of test's -o and -a operators
52098         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
52100 2010-03-28  Bruno Haible  <bruno@clisp.org>
52102         Remove unused GNULIB_XYZ macro definitions.
52103         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
52104         invocation.
52106 2010-03-28  Bruno Haible  <bruno@clisp.org>
52108         Mark privileged tests modules.
52109         * modules/idpriv-drop-tests (Status): New section.
52110         * modules/idpriv-droptemp-tests (Status): New section.
52112 2010-03-28  Bruno Haible  <bruno@clisp.org>
52114         Split C++ tests into separate tests modules.
52115         * modules/dirent-c++-tests: New file, extracted from
52116         modules/dirent-tests.
52117         * modules/dirent-tests: Depend on it.
52118         * modules/fcntl-h-c++-tests: New file, extracted from
52119         modules/fcntl-h-tests.
52120         * modules/fcntl-h-tests: Depend on it.
52121         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
52122         * modules/glob-tests: Depend on it.
52123         * modules/iconv-h-c++-tests: New file, extracted from
52124         modules/iconv-h-tests.
52125         * modules/iconv-h-tests: Depend on it.
52126         * modules/langinfo-c++-tests: New file, extracted from
52127         modules/langinfo-tests.
52128         * modules/langinfo-tests: Depend on it.
52129         * modules/locale-c++-tests: New file, extracted from
52130         modules/locale-tests.
52131         * modules/locale-tests: Depend on it.
52132         * modules/math-c++-tests: New file, extracted from modules/math-tests.
52133         * modules/math-tests: Depend on it.
52134         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
52135         * modules/pty-tests: Depend on it.
52136         * modules/search-c++-tests: New file, extracted from
52137         modules/search-tests.
52138         * modules/search-tests: Depend on it.
52139         * modules/signal-c++-tests: New file, extracted from
52140         modules/signal-tests.
52141         * modules/signal-tests: Depend on it.
52142         * modules/spawn-c++-tests: New file, extracted from
52143         modules/spawn-tests.
52144         * modules/spawn-tests: Depend on it.
52145         * modules/stdio-c++-tests: New file, extracted from
52146         modules/stdio-tests.
52147         * modules/stdio-tests: Depend on it.
52148         * modules/stdlib-c++-tests: New file, extracted from
52149         modules/stdlib-tests.
52150         * modules/stdlib-tests: Depend on it.
52151         * modules/string-c++-tests: New file, extracted from
52152         modules/string-tests.
52153         * modules/string-tests: Depend on it.
52154         * modules/sys_ioctl-c++-tests: New file, extracted from
52155         modules/sys_ioctl-tests.
52156         * modules/sys_ioctl-tests: Depend on it.
52157         * modules/sys_select-c++-tests: New file, extracted from
52158         modules/sys_select-tests.
52159         * modules/sys_select-tests: Depend on it.
52160         * modules/sys_socket-c++-tests: New file, extracted from
52161         modules/sys_socket-tests.
52162         * modules/sys_socket-tests: Depend on it.
52163         * modules/sys_stat-c++-tests: New file, extracted from
52164         modules/sys_stat-tests.
52165         * modules/sys_stat-tests: Depend on it.
52166         * modules/sys_time-c++-tests: New file, extracted from
52167         modules/sys_time-tests.
52168         * modules/sys_time-tests: Depend on it.
52169         * modules/time-c++-tests: New file, extracted from modules/time-tests.
52170         * modules/time-tests: Depend on it.
52171         * modules/unistd-c++-tests: New file, extracted from
52172         modules/unistd-tests.
52173         * modules/unistd-tests: Depend on it.
52174         * modules/wchar-c++-tests: New file, extracted from
52175         modules/wchar-tests.
52176         * modules/wchar-tests: Depend on it.
52177         * modules/wctype-c++-tests: New file, extracted from
52178         modules/wctype-tests.
52179         * modules/wctype-tests: Depend on it.
52180         Reported by Simon Josefsson.
52182 2010-03-28  Bruno Haible  <bruno@clisp.org>
52184         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
52185         * gnulib-tool (func_exists_module): New function, extracted from
52186         func_verify_module.
52187         (func_verify_module): Use it.
52188         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
52189         'foo' only if 'foo' exists.
52190         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
52191         module.
52193 2010-03-28  Bruno Haible  <bruno@clisp.org>
52195         gnulib-tool: Add support for special categories of tests.
52196         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
52197         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
52198         (func_usage): Document them.
52199         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
52200         inc_unportable_tests, inc_all_tests): New variables.
52201         (func_acceptable): Consider these variables.
52202         (func_modules_transitive_closure): Make it work when the 'Status' field
52203         consists of multiple words.
52204         (func_import): Store and restore the values of inc_cxx_tests,
52205         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
52206         inc_all_tests in gnulib-comp.m4.
52207         (func_create_testdir): Set inc_all_tests to true.
52208         * doc/gnulib.texi (Extra tests modules): New section.
52209         Suggested by Jim Meyering.
52211 2010-03-28  Bruno Haible  <bruno@clisp.org>
52213         ansi-c++-opt: Allow turning off the C++ build by default.
52214         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
52215         gl_CXX_CHOICE_DEFAULT_NO is defined.
52216         Requested by Eric Blake.
52218 2010-03-28  Bruno Haible  <bruno@clisp.org>
52220         unistd: Avoid #define replacements in C++ mode.
52221         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
52222         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
52223         setsockopt, shutdown, select): In C++, attach a warning to the function
52224         if possible, rather than #defining the symbol to a dysfunctional alias.
52225         Reported by John W. Eaton <jwe@gnu.org>.
52227 2010-03-28  Bruno Haible  <bruno@clisp.org>
52229         Fix link errors on mingw.
52230         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
52231         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
52232         $(LIBSOCKET).
52233         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
52234         $(LIBSOCKET).
52236 2010-03-28  Bruno Haible  <bruno@clisp.org>
52237             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52239         lib-ignore: Determine different options for different compilers.
52240         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
52241         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
52242         Add comments.
52243         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
52244         * NEWS: Mention the change.
52246 2010-03-27  Bruno Haible  <bruno@clisp.org>
52248         Remove unused GNULIB_XYZ macro definitions.
52249         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52250         * modules/fseek (configure.ac): Likewise.
52251         * modules/ioctl (configure.ac): Likewise.
52252         * modules/open (configure.ac): Likewise.
52253         * modules/stdlib-safer (configure.ac): Likewise.
52255 2010-03-27  Bruno Haible  <bruno@clisp.org>
52257         Add a remark about certain modules.
52258         * modules/malloc (Comment): New section.
52259         * modules/realloc (Comment): Likewise.
52260         * modules/sigpipe (Comment): Likewise.
52262 2010-03-27  Bruno Haible  <bruno@clisp.org>
52264         Resolve conflict between the two kinds of module indicators.
52265         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
52266         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
52267         * modules/canonicalize (configure.ac): Invoke
52268         gl_MODULE_INDICATOR_FOR_TESTS.
52269         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
52270         GNULIB_XYZ.
52271         * tests/test-dirent-c++.cc: Likewise.
52272         * tests/test-dirent-safer.c: Likewise.
52273         * tests/test-dup2.c: Likewise.
52274         * tests/test-fchdir.c: Likewise.
52275         * tests/test-fcntl-h-c++.cc: Likewise.
52276         * tests/test-getopt.c: Likewise.
52277         * tests/test-getopt.h: Likewise.
52278         * tests/test-langinfo-c++.cc: Likewise.
52279         * tests/test-locale-c++.cc: Likewise.
52280         * tests/test-math-c++.cc: Likewise.
52281         * tests/test-pty-c++.cc: Likewise.
52282         * tests/test-search-c++.cc: Likewise.
52283         * tests/test-signal-c++.cc: Likewise.
52284         * tests/test-spawn-c++.cc: Likewise.
52285         * tests/test-stdio-c++.cc: Likewise.
52286         * tests/test-stdlib-c++.cc: Likewise.
52287         * tests/test-string-c++.cc: Likewise.
52288         * tests/test-sys_ioctl-c++.cc: Likewise.
52289         * tests/test-sys_select-c++.cc: Likewise.
52290         * tests/test-sys_socket-c++.cc: Likewise.
52291         * tests/test-sys_stat-c++.cc: Likewise.
52292         * tests/test-sys_time-c++.cc: Likewise.
52293         * tests/test-time-c++.cc: Likewise.
52294         * tests/test-unistd-c++.cc: Likewise.
52295         * tests/test-wchar-c++.cc: Likewise.
52296         * tests/uninorm/test-u8-nfc.c: Likewise.
52297         * tests/uninorm/test-u8-nfd.c: Likewise.
52298         * tests/uninorm/test-u8-nfkc.c: Likewise.
52299         * tests/uninorm/test-u8-nfkd.c: Likewise.
52300         * tests/uninorm/test-u16-nfc.c: Likewise.
52301         * tests/uninorm/test-u16-nfd.c: Likewise.
52302         * tests/uninorm/test-u16-nfkc.c: Likewise.
52303         * tests/uninorm/test-u16-nfkd.c: Likewise.
52304         * tests/uninorm/test-u32-nfc.c: Likewise.
52305         * tests/uninorm/test-u32-nfc-big.c: Likewise.
52306         * tests/uninorm/test-u32-nfd.c: Likewise.
52307         * tests/uninorm/test-u32-nfd-big.c: Likewise.
52308         * tests/uninorm/test-u32-nfkc.c: Likewise.
52309         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
52310         * tests/uninorm/test-u32-nfkd.c: Likewise.
52311         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
52312         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52314 2010-03-27  Bruno Haible  <bruno@clisp.org>
52316         Distinguish two kinds of module indicators.
52317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
52318         gl_MODULE_INDICATOR.
52319         (gl_MODULE_INDICATOR): New macro.
52320         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52321         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
52322         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52323         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52324         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52325         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52326         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52327         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52328         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52329         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52330         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52331         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52334         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52336         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52337         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52338         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52339         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52340         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52341         * modules/cloexec (configure.ac): Likewise.
52342         * modules/getopt-gnu (configure.ac): Likewise.
52343         * modules/uninorm/u8-normalize (configure.ac): Likewise.
52344         * modules/uninorm/u16-normalize (configure.ac): Likewise.
52345         * modules/uninorm/u32-normalize (configure.ac): Likewise.
52346         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
52348 2010-03-27  Bruno Haible  <bruno@clisp.org>
52350         New module description field 'Comment'.
52351         * gnulib-tool: New option --extract-comment.
52352         (func_usage): Document it.
52353         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
52354         (func_get_comment): New function.
52355         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
52357 2010-03-27  Bruno Haible  <bruno@clisp.org>
52359         Addendum to 2010-02-07 commit.
52360         * gnulib-tool (func_usage): Document --extract-applicability option.
52362 2010-03-27  Bruno Haible  <bruno@clisp.org>
52364         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
52365         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
52366         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
52367         rather than link errors.
52369 2010-03-27  Bruno Haible  <bruno@clisp.org>
52371         Avoid side effects from tests-related modules on the compilation of lib.
52372         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
52373         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
52374         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
52375         parameter. Emit into AM_CPPFLAGS a definition of the designated C
52376         macro.
52377         (func_import): Define a witness macro. Assign it a value that depends
52378         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
52379         tests-related modules.
52380         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
52381         Reported by Jim Meyering.
52383 2010-03-27  Bruno Haible  <bruno@clisp.org>
52385         Factorize common .m4 code.
52386         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
52387         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
52388         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
52389         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
52390         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52391         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
52392         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
52393         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52394         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52395         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52396         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
52397         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52398         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52399         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52400         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52401         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
52402         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52403         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52405         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
52406         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
52407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52408         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52409         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52410         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52411         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52412         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
52413         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
52414         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
52415         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52416         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52417         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52419 2010-03-27  Bruno Haible  <bruno@clisp.org>
52421         Fix a compilation error on Cygwin with g++ >= 4.3.
52422         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
52423         if it is undefined or if we alias it to chmod.
52424         (lstat): Don't warn about the use of this function if it is undefined
52425         or if we alias it to stat.
52426         Reported by Simon Josefsson.
52428 2010-03-27  Bruno Haible  <bruno@clisp.org>
52430         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
52431         * modules/getlogin (configure.ac): Update.
52433         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
52434         * modules/getlogin_r (configure.ac): Update.
52436         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
52437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
52438         * modules/inet_ntop (configure.ac): Update.
52440         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
52441         * modules/inet_pton (configure.ac): Update.
52443         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
52444         * modules/mbslen (configure.ac): Update.
52446         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
52447         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
52448         * modules/forkpty (configure.ac): Update.
52449         * modules/openpty (configure.ac): Update.
52451 2010-03-26  Simon Josefsson  <simon@josefsson.org>
52453         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
52454         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
52456 2010-03-25  Eric Blake  <eblake@redhat.com>
52458         maint: use pragma consistently across replacement headers
52459         * lib/ctype.in.h (system_header): Hoist for consistent placement.
52460         * lib/dirent.in.h (system_header): Likewise.
52461         * lib/errno.in.h (system_header): Likewise.
52462         * lib/float.in.h (system_header): Likewise.
52463         * lib/getopt.in.h (system_header): Likewise.
52464         * lib/iconv.in.h (system_header): Likewise.
52465         * lib/inttypes.in.h (system_header): Likewise.
52466         * lib/langinfo.in.h (system_header): Likewise.
52467         * lib/locale.in.h (system_header): Likewise.
52468         * lib/math.in.h (system_header): Likewise.
52469         * lib/netdb.in.h (system_header): Likewise.
52470         * lib/netinet_in.in.h (system_header): Likewise.
52471         * lib/pty.in.h (system_header): Likewise.
52472         * lib/sched.in.h (system_header): Likewise.
52473         * lib/se-selinux.in.h (system_header): Likewise.
52474         * lib/search.in.h (system_header): Likewise.
52475         * lib/spawn.in.h (system_header): Likewise.
52476         * lib/stdarg.in.h (system_header): Likewise.
52477         * lib/stdint.in.h (system_header): Likewise.
52478         * lib/string.in.h (system_header): Likewise.
52479         * lib/strings.in.h (system_header): Likewise.
52480         * lib/sys_file.in.h (system_header): Likewise.
52481         * lib/sys_ioctl.in.h (system_header): Likewise.
52482         * lib/sys_socket.in.h (system_header): Likewise.
52483         * lib/sys_times.in.h (system_header): Likewise.
52484         * lib/sys_utsname.in.h (system_header): Likewise.
52485         * lib/sys_wait.in.h (system_header): Likewise.
52486         * lib/sysexits.in.h (system_header): Likewise.
52487         * lib/unistd.in.h (system_header): Likewise.
52488         * lib/wctype.in.h (system_header): Likewise.
52490         arpa/inet: fix mingw compilation warning
52491         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
52492         Reported by Matthew Bolte.
52494 2010-03-25  Bruno Haible  <bruno@clisp.org>
52496         Avoid collision between gnulib wrapper and libintl wrapper.
52497         * lib/printf.c (printf): Don't define if a printf wrapper is already
52498         defined in intl/printf.c.
52499         Reported by Michel Boaventura <michel@michelboaventura.com>.
52501 2010-03-25  Bruno Haible  <bruno@clisp.org>
52503         Use ANSI C.
52504         * lib/readutmp.h (getutent): Provide ANSI C prototype.
52506 2010-03-25  Bruno Haible  <bruno@clisp.org>
52508         Minor formatting changes.
52509         * lib/acosl.c: Insert space before function argument list.
52510         * lib/argz.c: Likewise.
52511         * lib/asinl.c: Likewise.
52512         * lib/expl.c: Likewise.
52513         * lib/gen-uni-tables.c: Likewise.
52514         * lib/gettext.h: Likewise.
52515         * lib/glthread/lock.h: Likewise.
52516         * lib/tanl.c: Likewise.
52517         * lib/uniname/uniname.c: Likewise.
52518         * tests/test-idpriv-drop.c: Likewise.
52519         * tests/test-idpriv-droptemp.c: Likewise.
52520         * tests/test-lock.c: Likewise.
52521         * tests/test-tls.c: Likewise.
52522         * lib/argp-help.c: Insert space before function-like macro argument
52523         list.
52524         * lib/memcmp.c: Likewise.
52525         * tests/test-base64.c: Likewise.
52526         * lib/localename.c: Insert space before sizeof's argument list.
52527         * lib/safe-alloc.h: Likewise.
52528         * lib/file-set.h: Insert space before macro argument list.
52529         * tests/test-argp.c: Likewise.
52530         * lib/argp-namefrob.h: Insert space before function parameter list.
52531         * lib/getaddrinfo.c: Likewise.
52532         * lib/netdb.in.h: Likewise.
52533         * lib/parse-duration.h: Likewise.
52534         * lib/parse-duration.c: Likewise.
52535         * lib/poll.c: Likewise.
52536         * lib/select.c: Likewise.
52537         * lib/trim.h: Likewise.
52538         * tests/test-usleep.c: Likewise.
52539         * lib/ldexpl.c: Insert space before function parameter list and before
52540         function argument list.
52541         * lib/logl.c: Likewise.
52542         * lib/sqrtl.c: Likewise.
52543         * lib/trim.c: Likewise.
52544         * lib/cosl.c: Use GNU style indentation. Insert space before function
52545         argument list.
52546         * lib/sinl.c: Likewise.
52547         * lib/tsearch.c: Insert space after 'for'.
52548         Reported by Jim Meyering.
52550 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
52552         * maint.mk (sc_Wundef_boolean): Check for the presence of the
52553         config header before grepping, as it's not present before
52554         autoreconf/configure are run.  Reported by Simon Josefsson.
52556 2010-03-23  Bruno Haible  <bruno@clisp.org>
52558         pt_chown: Make it work with automake < 1.11.
52559         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
52560         Reported by Simon Josefsson.
52562 2010-03-23  Bruno Haible  <bruno@clisp.org>
52564         pt_chown: Don't depend on GPLed modules.
52565         * lib/pt_chown.c: Don't include idpriv.h.
52566         (main): Don't drop privileges.
52567         * modules/pt_chown (Depends-on): Remove idpriv-drop.
52568         Reported by Simon Josefsson.
52570 2010-03-24  Simon Josefsson  <simon@josefsson.org>
52572         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
52573         suggestions from karl@freefriends.org (Karl Berry).
52575 2010-03-22  Eric Blake  <eblake@redhat.com>
52577         gethostname: further tweaks
52578         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
52579         are overriding gethostname.
52580         Suggested by Bruno Haible.
52582 2010-03-21  Bruno Haible  <bruno@clisp.org>
52584         Fix comments.
52585         * lib/forkpty.c (rpl_forkpty): Fix comment.
52586         * lib/openpty.c (rpl_openpty): Likewise.
52587         Reported by Eric Blake.
52589 2010-03-22  Eric Blake  <eblake@redhat.com>
52591         gethostname: fix build on mingw
52592         * lib/unistd.in.h (includes): Work around fact that mingw
52593         <winsock2.h> re-includes <unistd.h>, by avoiding any
52594         redeclarations if we are being included by <winsock2.h>.
52595         Reported by Matthias Bolte.
52597 2010-03-21  Bruno Haible  <bruno@clisp.org>
52599         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52600         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52601         modifications.
52602         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52603         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52604         provide the replacement.
52605         * modules/forkpty (Depends-on): Add openpty, login_tty.
52606         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52607         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52608         * doc/glibc-functions/forkpty.texi: More supported platforms.
52609         * config/srclist.txt: Add forkpty.c (commented).
52611 2010-03-21  Bruno Haible  <bruno@clisp.org>
52613         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52614         (Makefile.am): Verify that PTY_LIB is defined.
52616         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52618 2010-03-21  Bruno Haible  <bruno@clisp.org>
52620         Tests for module 'login_tty'.
52621         * modules/login_tty-tests: New file.
52622         * tests/test-login_tty.c: New file.
52624         New module 'login_tty'.
52625         * lib/login_tty.c: New file.
52626         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52627         * modules/login_tty: New file.
52628         * doc/glibc-functions/login_tty.texi: Mention the new module.
52630 2010-03-21  Bruno Haible  <bruno@clisp.org>
52632         login_tty: Documentation.
52633         * doc/glibc-functions/login_tty.texi: New file.
52634         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52636 2010-03-21  Bruno Haible  <bruno@clisp.org>
52638         pty: Consistent macro naming.
52639         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52640         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52641         * modules/pty (configure.ac): Update.
52643 2010-03-21  Bruno Haible  <bruno@clisp.org>
52645         Tests for openpty: Make stricter.
52646         * tests/test-openpty.c (main): Add test of canonical processing and
52647         erase.
52648         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52650         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52651         * lib/openpty.c (openpty): New replacement function.
52652         * lib/pty.in.h: Include <termios.h>.
52653         (openpty): Update declaration. Add comments.
52654         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52655         is not declared, arrange to provide the replacement. Check for _getpty
52656         and posix_openpt.
52657         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52658         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52659         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52660         * modules/pty-tests (test_pty_c___LDADD): New variable.
52661         * doc/glibc-functions/openpty.texi: More supported platforms.
52663 2010-03-21  Bruno Haible  <bruno@clisp.org>
52665         setenv: Tweaks.
52666         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52667         the test program.
52668         * doc/posix-functions/setenv.texi: Update platforms list.
52670 2010-03-21  Bruno Haible  <bruno@clisp.org>
52672         New module 'unlockpt'.
52673         * lib/unlockpt.c: New file, from glibc with modifications.
52674         * m4/unlockpt.m4: New file.
52675         * modules/unlockpt: New file.
52676         * lib/stdlib.in.h (unlockpt): New declaration.
52677         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52678         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52679         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52680         HAVE_UNLOCKPT.
52681         * doc/posix-functions/unlockpt.texi: Mention the new module.
52682         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52683         * config/srclist.txt: Add unlockpt.c (commented).
52685 2010-03-21  Jim Meyering  <meyering@redhat.com>
52687         maint.mk: prohibit inclusion of "intprops.h" without use
52688         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52690 2010-03-21  Bruno Haible  <bruno@clisp.org>
52692         New module 'grantpt'.
52693         * lib/grantpt.c: New file, from glibc with modifications.
52694         * m4/grantpt.m4: New file.
52695         * modules/grantpt: New file.
52696         * lib/stdlib.in.h (grantpt): New declaration.
52697         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52698         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52699         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52700         HAVE_GRANTPT.
52701         * doc/posix-functions/grantpt.texi: Mention the new module.
52702         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52703         * config/srclist.txt: Add grantpt.c (commented).
52705 2010-03-21  Bruno Haible  <bruno@clisp.org>
52707         New module 'pt_chown'.
52708         * lib/pt_chown.c: New file, from glibc with modifications.
52709         * lib/pty-private.h: New file, from glibc with modifications.
52710         * modules/pt_chown: New file.
52711         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52713 2010-03-21  Bruno Haible  <bruno@clisp.org>
52715         Tests for module 'ptsname'.
52716         * modules/ptsname-tests: New file.
52717         * tests/test-ptsname.c: New file.
52719         New module 'ptsname'.
52720         * lib/ptsname.c: New file, from glibc with modifications.
52721         * m4/ptsname.m4: New file.
52722         * modules/ptsname: New file.
52723         * lib/stdlib.in.h (ptsname): New declaration.
52724         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52725         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52726         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52727         HAVE_PTSNAME.
52728         * doc/posix-functions/ptsname.texi: Mention the new module.
52729         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52730         * config/srclist.txt: Add ptsname.c (commented).
52732 2010-03-21  Bruno Haible  <bruno@clisp.org>
52734         Tests for module 'ttyname_r'.
52735         * modules/ttyname_r-tests: New file.
52736         * tests/test-ttyname_r.c: New file.
52738         New module 'ttyname_r'.
52739         * lib/ttyname_r.c: New file.
52740         * m4/ttyname_r.m4: New file.
52741         * modules/ttyname_r: New file.
52742         * lib/unistd.in.h (ttyname_r): New declaration.
52743         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
52744         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
52745         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
52746         HAVE_TTYNAME_R.
52747         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
52748         * doc/posix-functions/ttyname_r.texi: Mention the new module.
52750 2010-03-20  Bruno Haible  <bruno@clisp.org>
52752         signal: Undefine macro definitions in C++ mode.
52753         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
52754         sigfillset): Undefine macro definitions from the system header in C++
52755         mode.
52756         Reported by John W. Eaton <jwe@gnu.org>.
52758 2010-03-20  Bruno Haible  <bruno@clisp.org>
52760         Ensure no #include statements inside extern "C" { ... }.
52761         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
52762         contain #include statements.
52763         * lib/time.in.h: Likewise.
52765 2010-03-20  Bruno Haible  <bruno@clisp.org>
52767         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
52768         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
52769         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
52770         Reported by John W. Eaton <jwe@gnu.org>.
52772 2010-03-20  Bruno Haible  <bruno@clisp.org>
52774         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
52775         Reported by Jim Meyering.
52777 2010-03-20  Bruno Haible  <bruno@clisp.org>
52779         pipe: Set errno upon failure.
52780         * lib/pipe.h: Specify that when -1 is returned, errno is set.
52781         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
52782         errno value in error message.
52784 2010-03-20  Bruno Haible  <bruno@clisp.org>
52785             Jim Meyering  <meyering@redhat.com>
52787         lchown: Avoid "unused variable" warning.
52788         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
52790 2010-03-20  Bruno Haible  <bruno@clisp.org>
52792         Work around unlink() bug on MacOS X 10.5.6.
52793         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
52794         attempting to unlink a parent directory.
52795         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
52796         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
52797         activate for the replacement function.
52798         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
52800 2010-03-20  Bruno Haible  <bruno@clisp.org>
52802         Fix link errors on Solaris 8.
52803         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
52804         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
52806 2010-03-19  Jim Meyering  <meyering@redhat.com>
52808         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
52809         The _LIBC implementation of build_range_exp correctly honors the
52810         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
52811         However, the non-_LIBC implementation would ignore that syntax-bit
52812         flag and return REG_ERANGE unconditionally.
52813         This change makes it honor that flag.
52814         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
52815         Make two pointer parameters "const".
52816         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
52817         (parse_bracket_exp): Update caller.
52819         regex.m4: correct the reversed range endpoint ([b-a]) test
52820         * m4/regex.m4: When requiring that [b-a] evoke failure,
52821         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
52822         test pass once again for x86-based systems.
52824 2010-03-19  Bruno Haible  <bruno@clisp.org>
52826         scandir: Fix link error on Solaris 8.
52827         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
52828         macros.
52830 2010-03-19  Bruno Haible  <bruno@clisp.org>
52832         getusershell: Fix documentation.
52833         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
52834         module.
52835         * doc/glibc-functions/setusershell.texi: Likewise.
52837         getusershell: Provide declaration, missing on Solaris 9.
52838         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
52839         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
52840         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
52841         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
52842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52843         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
52844         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
52845         HAVE_GETUSERSHELL.
52846         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
52848 2010-03-19  Bruno Haible  <bruno@clisp.org>
52850         wctype: Provide iswblank function.
52851         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
52852         exists and is fine.
52853         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
52854         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
52855         * tests/test-wctype.c (main): Re-enable the iswblank tests.
52856         * doc/posix-functions/iswblank.texi: Update.
52858 2010-03-19  Bruno Haible  <bruno@clisp.org>
52860         Tests of module 'pty' in C++ mode.
52861         * modules/pty-tests: New file.
52862         * tests/test-pty-c++.cc: New file.
52863         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52865 2010-03-19  Eric Blake  <eblake@redhat.com>
52867         logb: fix documentation
52868         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52869         1.5 declaration bug.
52871         forkpty, openpty: prefer glibc's const-safe prototype
52872         * lib/forkpty.c (rpl_forkpty): New file.
52873         * lib/openpty.c (rpl_openpty): Likewise.
52874         * modules/forkpty (Files): Distribute it.
52875         * modules/openpty (Files): Likewise.
52876         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52877         check...
52878         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52879         replacement for non-const BSD signature.
52880         * modules/pty (Makefile.am): Substitute witnesses.
52881         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52882         * tests/test-forkpty.c: Update signature check.
52883         * tests/test-openpty.c: Likewise.
52884         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52885         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52887         forkpty, openpty: split functions into new modules
52888         * modules/pty (Makefile.am): Substitute new witnesses.
52889         (Libraries): Move library detection...
52890         * modules/forkpty: ...into new module.
52891         * modules/openpty: Another new module.
52892         * modules/pty-tests: Rename and split...
52893         * modules/forkpty-tests: ...to this...
52894         * modules/openpty-tests: ...and this.
52895         * tests/test-pty.c: Rename and split...
52896         * tests/test-forkpty.c: ...to this...
52897         * tests/test-openpty.c: ...and this.
52898         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52899         (gl_PTY): Split library searching...
52900         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52901         (gl_FORKPTY, gl_OPENPTY): New macros.
52902         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52903         * NEWS: Mention the split.
52904         * MODULES.html.sh (Misc): Document the modules.
52905         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52906         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52908         pty: improve replacement header
52909         * lib/pty.in.h: New file.
52910         * modules/pty (Files): Ship it.
52911         (Makefile.am): Always build replacement.
52912         * m4/pty.m4: Rename...
52913         * m4/pty_h.m4: ...to this.
52914         (gl_PTY): Modernize setting of witness macros; update check of
52915         forkpty to take proper advantage of cache.
52916         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
52918         getopt: avoid compiler warning
52919         * lib/getopt.c (attribute_hidden): Remove unused macro.
52921 2010-03-18  Bruno Haible  <bruno@clisp.org>
52923         Fix link errors on Solaris 8.
52924         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
52925         * modules/search-tests (test_search_c___LDADD): Likewise.
52926         * modules/signal-tests (test_signal_c___LDADD): Likewise.
52927         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
52928         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
52929         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
52930         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
52931         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
52932         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
52934 2010-03-18  Bruno Haible  <bruno@clisp.org>
52936         Fix bug introduced on 2010-03-14.
52937         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
52938         (gl_SPAWN_H): Require it.
52939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
52940         Reported by Simon Josefsson.
52942 2010-03-18  Bruno Haible  <bruno@clisp.org>
52944         Fix typo introduced on 2009-12-31.
52945         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
52946         posix_spawn_file_actions_adddup2.
52948 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
52949         and Eric Blake  <eblake@redhat.com>
52951         test-vc-list-files-git: make more robust
52952         * tests/test-vc-list-files-git.sh: Unset problematic environment
52953         variables.  Chain commands together.
52955 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
52957         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
52958         `AC_CHECK_DECL' invocation.
52960 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
52962         * lib/inttostr.c (inttostr): Make sure the invocation of verify
52963         appears before executable statements. Suggested by Petr Sumbera
52964         <Petr.Sumbera@Sun.COM>.
52966 2010-03-14  Bruno Haible  <bruno@clisp.org>
52968         * tests/test-flock.c (test_exclusive): Comment out a test that causes
52969         portability problems. Instead use a simpler test.
52970         (main): Check that invalid arguments are rejected only on Linux.
52972 2010-03-14  Bruno Haible  <bruno@clisp.org>
52974         Fix bug introduced on 2009-12-31.
52975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52976         gl_PREREQ_SYS_H_WINSOCK2 always.
52977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
52978         SYS_SOCKET_H variable.
52979         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
52980         Update comments.
52981         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
52982         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52983         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52985         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
52987 2010-03-14  Bruno Haible  <bruno@clisp.org>
52989         Fix values returned by sinl, cosl.
52990         * lib/trigl.h: Add specification comments.
52991         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
52992         that combines the values from the precomputed table with the values of
52993         the Chebyshev polynomials.
52995 2010-03-14  Bruno Haible  <bruno@clisp.org>
52997         Fix compilation error when modules 'posix_spawn[p]' are not used.
52998         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
53001 2010-03-14  Bruno Haible  <bruno@clisp.org>
53003         Fix compilation error on mingw when module 'time_r' is not used.
53004         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
53005         is 1.
53006         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
53007         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53008         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
53009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
53011 2010-03-14  Bruno Haible  <bruno@clisp.org>
53013         Fix compilation error with Sun C.
53014         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
53015         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
53016         instead of GCC specific ULONG_LONG_MAX.
53017         * lib/xstrtoll.c: Likewise.
53018         * lib/xstrtoull.c: Likewise.
53020 2010-03-13  Bruno Haible  <bruno@clisp.org>
53022         Allow the user to disable C++ code and tests.
53023         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
53024         (gl_PROG_ANSI_CXX): Require it.
53026 2010-03-13  Bruno Haible  <bruno@clisp.org>
53028         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
53029         cases.
53031 2010-03-13  Bruno Haible  <bruno@clisp.org>
53033         Test that gnulib does not break the standard C++ headers.
53034         * tests/test-locale-c++2.cc: New file.
53035         * modules/locale-tests (Files): Add it.
53036         (Makefile.am): Compile it for test-locale-c++.
53037         * tests/test-math-c++2.cc: New file.
53038         * modules/math-tests (Files): Add it.
53039         (Makefile.am): Compile it for test-math-c++.
53040         * tests/test-signal-c++2.cc: New file.
53041         * modules/signal-tests (Files): Add it.
53042         (Makefile.am): Compile it for test-signal-c++.
53043         * tests/test-stdio-c++2.cc: New file.
53044         * modules/stdio-tests (Files): Add it.
53045         (Makefile.am): Compile it for test-stdio-c++.
53046         * tests/test-stdlib-c++2.cc: New file.
53047         * modules/stdlib-tests (Files): Add it.
53048         (Makefile.am): Compile it for test-stdlib-c++.
53049         * tests/test-string-c++2.cc: New file.
53050         * modules/string-tests (Files): Add it.
53051         (Makefile.am): Compile it for test-string-c++.
53052         * tests/test-time-c++2.cc: New file.
53053         * modules/time-tests (Files): Add it.
53054         (Makefile.am): Compile it for test-time-c++.
53055         Reported by John W. Eaton <jwe@gnu.org>.
53057 2010-03-13  Bruno Haible  <bruno@clisp.org>
53059         * gnulib-tool (func_usage): Clarify which options are available for
53060         --create-testdir and --create-megatestdir.
53062 2010-03-13  Bruno Haible  <bruno@clisp.org>
53064         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
53065         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
53066         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
53067         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
53068         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
53069         when appropriate.
53070         Reported by Jim Meyering.
53072 2010-03-12  Simon Josefsson  <simon@josefsson.org>
53074         * gnulib-tool (func_import): Explain origin of code.
53076 2010-03-12  Bruno Haible  <bruno@clisp.org>
53078         Fix problem with automake's definition of CXXLINK.
53079         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
53080         Reported by Simon Josefsson and Ludovic Courtès.
53082 2010-03-12  Bruno Haible  <bruno@clisp.org>
53084         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
53085         stable releases.
53087 2010-03-11  Bruno Haible  <bruno@clisp.org>
53089         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
53090         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
53091         whether the system provides one variant or multiple variants of the
53092         function.
53093         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
53094         C++ compilers.
53095         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
53096         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
53097         Reported by Jim Meyering.
53099 2010-03-09  Simon Josefsson  <simon@josefsson.org>
53101         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
53103 2010-03-08  Bruno Haible  <bruno@clisp.org>
53105         gnulib-tool: Add support for --libtool in --create-testdir.
53106         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
53107         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
53109 2010-03-08  Eric Blake  <eblake@redhat.com>
53111         gnulib-tool.texi: mention possibility of git submodule
53112         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
53113         submodules.
53114         * doc/.gitignore: Ignore another generated file.
53116 2010-03-08  Karl Berry  <karl@gnu.org>
53118         * doc/gnulib-tool.texi (VCS Issues): Mention third option
53119         of committing gnulib files while skipping others.
53121 2010-03-07  Bruno Haible  <bruno@clisp.org>
53123         Tests of module 'wctype' in C++ mode.
53124         * tests/test-wctype-c++.cc: New file.
53125         * modules/wctype-tests (Files): Add it and tests/signature.h.
53126         (Depends-on): Add ansi-c++-opt.
53127         (Makefile.am): Arrange to compile and run test-wctype-c++.
53129         Tests of module 'wchar' in C++ mode.
53130         * tests/test-wchar-c++.cc: New file.
53131         * modules/wchar-tests (Files): Add it and tests/signature.h.
53132         (Depends-on): Add ansi-c++-opt.
53133         (Makefile.am): Arrange to compile and run test-wchar-c++.
53134         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
53135         gl_MODULE_INDICATOR.
53137         Tests of module 'unistd' in C++ mode.
53138         * tests/test-unistd-c++.cc: New file.
53139         * modules/unistd-tests (Files): Add it and tests/signature.h.
53140         (Depends-on): Add ansi-c++-opt.
53141         (Makefile.am): Arrange to compile and run test-unistd-c++.
53142         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
53143         gl_MODULE_INDICATOR.
53145         Tests of module 'time' in C++ mode.
53146         * tests/test-time-c++.cc: New file.
53147         * modules/time-tests (Files): Add it and tests/signature.h.
53148         (Depends-on): Add ansi-c++-opt.
53149         (Makefile.am): Arrange to compile and run test-time-c++.
53150         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53152         Tests of module 'sys_time' in C++ mode.
53153         * tests/test-sys_time-c++.cc: New file.
53154         * modules/sys_time-tests (Files): Add it and tests/signature.h.
53155         (Depends-on): Add ansi-c++-opt.
53156         (Makefile.am): Arrange to compile and run test-sys_time-c++.
53157         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
53158         gl_MODULE_INDICATOR.
53160         Tests of module 'sys_stat' in C++ mode.
53161         * tests/test-sys_stat-c++.cc: New file.
53162         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
53163         (Depends-on): Add ansi-c++-opt.
53164         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
53165         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
53166         gl_MODULE_INDICATOR.
53168         Tests of module 'sys_socket' in C++ mode.
53169         * tests/test-sys_socket-c++.cc: New file.
53170         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
53171         (Depends-on): Add ansi-c++-opt.
53172         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
53173         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
53174         gl_MODULE_INDICATOR.
53176         Tests of module 'sys_select' in C++ mode.
53177         * tests/test-sys_select-c++.cc: New file.
53178         * modules/sys_select-tests (Files): Add it and tests/signature.h.
53179         (Depends-on): Add ansi-c++-opt.
53180         (Makefile.am): Arrange to compile and run test-sys_select-c++.
53181         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
53182         gl_MODULE_INDICATOR.
53184         Tests of module 'sys_ioctl' in C++ mode.
53185         * tests/test-sys_ioctl-c++.cc: New file.
53186         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
53187         (Depends-on): Add ansi-c++-opt.
53188         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
53189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
53190         gl_MODULE_INDICATOR.
53192         Tests of module 'string' in C++ mode.
53193         * tests/test-string-c++.cc: New file.
53194         * modules/string-tests (Files): Add it and tests/signature.h.
53195         (Depends-on): Add ansi-c++-opt.
53196         (Makefile.am): Arrange to compile and run test-string-c++.
53197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
53198         gl_MODULE_INDICATOR.
53200         Tests of module 'stdlib' in C++ mode.
53201         * tests/test-stdlib-c++.cc: New file.
53202         * modules/stdlib-tests (Files): Add it and tests/signature.h.
53203         (Depends-on): Add ansi-c++-opt.
53204         (Makefile.am): Arrange to compile and run test-stdlib-c++.
53205         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
53206         gl_MODULE_INDICATOR.
53208         Tests of module 'stdio' in C++ mode.
53209         * tests/test-stdio-c++.cc: New file.
53210         * modules/stdio-tests (Files): Add it and tests/signature.h.
53211         (Depends-on): Add ansi-c++-opt.
53212         (Makefile.am): Arrange to compile and run test-stdio-c++.
53213         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
53214         gl_MODULE_INDICATOR.
53216         Tests of module 'spawn' in C++ mode.
53217         * tests/test-spawn-c++.cc: New file.
53218         * modules/spawn-tests (Files): Add it and tests/signature.h.
53219         (Depends-on): Add ansi-c++-opt.
53220         (Makefile.am): Arrange to compile and run test-spawn-c++.
53221         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
53222         gl_MODULE_INDICATOR.
53224         Tests of module 'signal' in C++ mode.
53225         * tests/test-signal-c++.cc: New file.
53226         * modules/signal-tests (Files): Add it and tests/signature.h.
53227         (Depends-on): Add ansi-c++-opt.
53228         (Makefile.am): Arrange to compile and run test-signal-c++.
53229         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
53230         gl_MODULE_INDICATOR.
53232         Tests of module 'search' in C++ mode.
53233         * tests/test-search-c++.cc: New file.
53234         * modules/search-tests (Files): Add it and tests/signature.h.
53235         (Depends-on): Add ansi-c++-opt.
53236         (Makefile.am): Arrange to compile and run test-search-c++.
53237         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
53238         gl_MODULE_INDICATOR.
53240         Tests of module 'math' in C++ mode.
53241         * tests/test-math-c++.cc: New file.
53242         * modules/math-tests (Files): Add it and tests/signature.h.
53243         (Depends-on): Add ansi-c++-opt.
53244         (Makefile.am): Arrange to compile and run test-math-c++.
53245         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53247         Tests of module 'locale' in C++ mode.
53248         * tests/test-locale-c++.cc: New file.
53249         * modules/locale-tests (Files): Add it and tests/signature.h.
53250         (Depends-on): Add ansi-c++-opt.
53251         (Makefile.am): Arrange to compile and run test-locale-c++.
53252         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
53253         gl_MODULE_INDICATOR.
53255         Tests of module 'langinfo' in C++ mode.
53256         * tests/test-langinfo-c++.cc: New file.
53257         * modules/langinfo-tests (Files): Add it and tests/signature.h.
53258         (Depends-on): Add ansi-c++-opt.
53259         (Makefile.am): Arrange to compile and run test-langinfo-c++.
53260         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
53261         gl_MODULE_INDICATOR.
53263         Tests of module 'iconv-h' in C++ mode.
53264         * tests/test-iconv-h-c++.cc: New file.
53265         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
53266         (Depends-on): Add ansi-c++-opt.
53267         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
53269         Tests of module 'glob' in C++ mode.
53270         * tests/test-glob-c++.cc: New file.
53271         * modules/glob-tests (Files): Add it.
53272         (Depends-on): Add ansi-c++-opt.
53273         (Makefile.am): Arrange to compile and run test-glob-c++.
53275         Tests of module 'fcntl-h' in C++ mode.
53276         * tests/test-fcntl-h-c++.cc: New file.
53277         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
53278         (Depends-on): Add ansi-c++-opt.
53279         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
53280         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
53281         gl_MODULE_INDICATOR.
53283         Tests of module 'dirent' in C++ mode.
53284         * tests/test-dirent-c++.cc: New file.
53285         * modules/dirent-tests (Files): Add it and tests/signature.h.
53286         (Depends-on): Add ansi-c++-opt.
53287         (Makefile.am): Arrange to compile and run test-dirent-c++.
53288         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
53289         gl_MODULE_INDICATOR.
53291         New module 'ansi-c++-opt'.
53292         * modules/ansi-c++-opt: New file.
53293         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
53295         Document C++ namespace mode.
53296         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
53298         wctype: Avoid #define replacements in C++ mode.
53299         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
53300         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
53301         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
53302         In C++, define a namespaced alias symbol.
53303         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
53304         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
53305         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
53306         rule.
53308         wchar: Avoid #define replacements in C++ mode.
53309         * lib/wchar.in.h: Include c++defs.h.
53310         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
53311         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
53312         symbol.
53313         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
53314         * modules/wchar (Depends-on): Add c++defs.
53315         (Makefile.am): Update wchar.h rule.
53317         unistd: Avoid #define replacements in C++ mode.
53318         * lib/unistd.in.h: Include c++defs.h.
53319         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
53320         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
53321         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
53322         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
53323         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
53324         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
53325         symbol.
53326         (environ): Update.
53327         * modules/unistd (Depends-on): Add c++defs.
53328         (Makefile.am): Update unistd.h rule.
53330         time: Avoid #define replacements in C++ mode.
53331         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
53332         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
53333         define a namespaced alias symbol.
53334         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
53335         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
53336         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
53337         * modules/time (Depends-on): Add c++defs, warn-on-use.
53338         (Makefile.am): Update time.h rule.
53339         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53340         * modules/nanosleep (configure.ac): Likewise.
53341         * modules/strptime (configure.ac): Likewise.
53342         * modules/timegm (configure.ac): Likewise.
53344         sys_time: Avoid #define replacements in C++ mode.
53345         * lib/sys_time.in.h: Include c++defs.h.
53346         (gettimeofday): In C++, define a namespaced alias symbol.
53347         * modules/sys_time (Depends-on): Add c++defs.
53348         (Makefile.am): Update sys/time.h rule.
53350         sys_stat: Avoid #define replacements in C++ mode.
53351         * lib/sys_stat.in.h: Include c++defs.h.
53352         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
53353         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
53354         namespaced alias symbol.
53355         In C++, define a namespaced alias symbol.
53356         * modules/sys_stat (Depends-on): Add c++defs.
53357         (Makefile.am): Update sys/stat.h rule.
53359         sys_socket: Avoid #define replacements in C++ mode.
53360         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
53361         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
53362         definitions also when the system has a <sys/socket.h>.
53363         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53364         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
53365         In C++, define a namespaced alias symbol.
53366         * modules/sys_socket (Depends-on): Add c++defs.
53367         (Makefile.am): Update sys/socket.h rule.
53369         sys_select: Avoid #define replacements in C++ mode.
53370         * lib/sys_select.in.h: Include c++defs.h. Enable the function
53371         definitions also when the system has a <sys/select.h>.
53372         (select): In C++, define a namespaced alias symbol.
53373         * modules/sys_select (Depends-on): Add c++defs.
53374         (Makefile.am): Update sys/select.h rule.
53376         sys_ioctl: Avoid #define replacements in C++ mode.
53377         * lib/sys_ioctl.in.h: Include c++defs.h.
53378         (ioctl): In C++, define a namespaced alias symbol.
53379         * modules/sys_ioctl (Depends-on): Add c++defs.
53380         (Makefile.am): Update sys/ioctl.h rule.
53382         string: Avoid #define replacements in C++ mode.
53383         * lib/string.in.h: Include c++defs.h.
53384         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
53385         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
53386         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
53387         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
53388         strsignal, strverscmp): In C++, define a namespaced alias symbol.
53389         * modules/string (Depends-on): Add c++defs.
53390         (Makefile.am): Update string.h rule.
53392         stdlib: Avoid #define replacements in C++ mode.
53393         * lib/stdlib.in.h: Include c++defs.h.
53394         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
53395         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
53396         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
53397         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
53398         symbol.
53399         * modules/stdlib (Depends-on): Add c++defs.
53400         (Makefile.am): Update stdlib.h rule.
53402         stdio: Avoid #define replacements in C++ mode.
53403         * lib/stdio.in.h: Include c++defs.h.
53404         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
53405         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
53406         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
53407         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
53408         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
53409         namespaced alias symbol.
53410         * modules/stdio (Depends-on): Add c++defs.
53411         (Makefile.am): Update stdio.h rule.
53413         spawn: Avoid #define replacements in C++ mode.
53414         * lib/spawn.in.h: Include c++defs.h.
53415         (posix_spawn, posix_spawnp, posix_spawnattr_init,
53416         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
53417         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
53418         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
53419         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
53420         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
53421         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
53422         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
53423         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
53424         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
53425         In C++, define a namespaced alias symbol.
53426         * modules/spawn (Depends-on): Add c++defs.
53427         (Makefile.am): Update spawn.h rule.
53429         signal: Avoid #define replacements in C++ mode.
53430         * lib/signal.in.h: Include c++defs.h.
53431         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
53432         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
53433         namespaced alias symbol.
53434         * modules/signal (Depends-on): Add c++defs.
53435         (Makefile.am): Update signal.h rule.
53437         search: Avoid #define replacements in C++ mode.
53438         * lib/search.in.h: Include c++defs.h.
53439         (_gl_search_compar_fn, _gl_search_action_fn): New types.
53440         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
53441         symbol.
53442         * modules/search (Depends-on): Add c++defs.
53443         (Makefile.am): Update search.h rule.
53445         math: Avoid #define replacements in C++ mode.
53446         * lib/math.in.h: Include c++defs.h.
53447         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
53448         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
53449         trunc, truncl): In C++, define a namespaced alias symbol.
53450         * modules/math (Depends-on): Add c++defs.
53451         (Makefile.am): Update math.h rule.
53453         locale: Avoid #define replacements in C++ mode.
53454         * lib/locale.in.h: Include c++defs.h.
53455         (duplocale): In C++, define a namespaced alias symbol.
53456         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
53457         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
53458         * modules/locale (Depends-on): Add c++defs.
53459         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
53461         langinfo: Avoid #define replacements in C++ mode.
53462         * lib/langinfo.in.h: Include c++defs.h.
53463         (nl_langinfo): In C++, define a namespaced alias symbol.
53464         * modules/langinfo (Depends-on): Add c++defs.
53465         (Makefile.am): Update langinfo.h rule.
53467         iconv-h: Avoid #define replacements in C++ mode.
53468         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
53469         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
53470         symbol.
53471         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53472         whenever iconv is present.
53473         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
53474         (Makefile.am): Update iconv.h rule.
53476         glob: Avoid #define replacements in C++ mode.
53477         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
53478         (_gl_glob_errfunc_fn): New type.
53479         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
53480         symbol.
53481         * modules/glob (Depends-on): Add c++defs, warn-on-use.
53482         (Makefile.am): Update glob.h rule.
53484         fcntl-h: Avoid #define replacements in C++ mode.
53485         * lib/fcntl.in.h: Include c++defs.h.
53486         (fcntl, open, openat): In C++, define a namespaced alias symbol.
53487         * modules/fcntl-h (Depends-on): Add c++defs.
53488         (Makefile.am): Update fcntl.h rule.
53490         dirent: Avoid #define replacements in C++ mode.
53491         * lib/dirent.in.h: Include c++defs.h.
53492         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
53493         namespaced alias symbol.
53494         (dirfd): Update declaration.
53495         * modules/dirent (Depends-on): Add c++defs.
53496         (Makefile.am): Update dirent.h rule.
53498         ctype: Make it usable in C++ code.
53499         * lib/ctype.in.h: Include c++defs.h.
53500         (isblank): Declare as extern "C".
53501         * modules/ctype (Depends-on): Add c++defs.
53502         (Makefile.am): Update ctype.h rule.
53504         New module 'c++defs'.
53505         * modules/c++defs: New file.
53506         * build-aux/c++defs.h: New file.
53507         Reported by John W. Eaton <jwe@gnu.org>.
53509 2010-03-07  Bruno Haible  <bruno@clisp.org>
53511         logb: Provide missing declaration for Cygwin.
53512         * lib/math.in.h (logb): New declaration.
53513         * m4/logb.m4: New file.
53514         * modules/logb (Files): Add m4/logb.m4.
53515         (Depends-on): Add math.
53516         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
53517         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
53518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
53519         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
53520         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
53522 2010-03-07  Bruno Haible  <bruno@clisp.org>
53524         Fix test-cond link error.
53525         * tests/test-cond.c: Include <stdio.h>.
53527 2010-03-07  Bruno Haible  <bruno@clisp.org>
53529         Fix test-dirent-safer link error.
53530         * modules/dirent-safer-tests (Makefile.am): Define
53531         test_dirent_safer_LDADD.
53533 2010-03-07  Bruno Haible  <bruno@clisp.org>
53535         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
53536         among default module list.
53538 2010-03-07  Bruno Haible  <bruno@clisp.org>
53540         Fix link error on platforms with GNU libiconv.
53541         * modules/unistr/u8-strcoll-tests (Makefile): Define
53542         test_u8_strcoll_LDADD.
53543         * modules/unistr/u16-strcoll-tests (Makefile): Define
53544         test_u16_strcoll_LDADD.
53545         * modules/unistr/u32-strcoll-tests (Makefile): Define
53546         test_u32_strcoll_LDADD.
53548 2010-03-07  Bruno Haible  <bruno@clisp.org>
53550         Use POSIX declarations for socket functions.
53551         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
53552         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
53553         rpl_sendto): Change declaration to match POSIX.
53554         * lib/connect.c (rpl_connect): Likewise.
53555         * lib/accept.c (rpl_accept): Likewise.
53556         * lib/bind.c (rpl_bind): Likewise.
53557         * lib/getpeername.c (rpl_getpeername): Likewise.
53558         * lib/getsockname.c (rpl_getsockname): Likewise.
53559         * lib/recv.c (rpl_recv): Likewise.
53560         * lib/send.c (rpl_send): Likewise.
53561         * lib/recvfrom.c (rpl_recvfrom): Likewise.
53562         * lib/sendto.c (rpl_sendto): Likewise.
53564 2010-03-06  Bruno Haible  <bruno@clisp.org>
53566         Clarify access, euidaccess, faccessat.
53567         * doc/posix-functions/faccessat.texi: Mention security problem under
53568         "Other problems", not "Portability problems".
53569         * doc/posix-functions/access.texi: Likewise. Mention a related security
53570         problem.
53571         * doc/glibc-functions/euidaccess.texi: Mention security problems.
53572         * lib/euidaccess.c: Add comments about platforms.
53573         * lib/unistd.in.h (access, euidaccess): Add warnings.
53575 2010-03-07  Bruno Haible  <bruno@clisp.org>
53577         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
53578         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
53579         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53580         (POSIX_SPAWN_USEVFORK): Define in a way that works when
53581         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53582         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
53583         declare when POSIX_SPAWN_SETSCHEDULER is zero.
53584         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53585         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
53586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
53587         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
53588         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
53589         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
53590         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
53591         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
53592         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
53593         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53594         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53595         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53596         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53597         Likewise.
53598         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53599         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53600         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53601         Likewise.
53602         * tests/test-spawn.c (main): Make it work when
53603         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53605 2010-03-07  Bruno Haible  <bruno@clisp.org>
53607         Fix incorrect Makefile.am generation in German locale.
53608         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53609         Execute sed command with character range in C locale.
53611 2010-03-06  Bruno Haible  <bruno@clisp.org>
53613         Tests for module 'iconv-h'.
53614         * modules/iconv-h-tests: New file.
53615         * tests/test-iconv-h.c: New file.
53617         New module 'iconv-h'.
53618         * modules/iconv-h: New file.
53619         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53620         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53621         (configure.ac): Remove gl_ICONV_H.
53622         (Makefile.am): Remove rule for iconv.h.
53624 2010-03-06  Bruno Haible  <bruno@clisp.org>
53626         More consistent naming of *.m4 files.
53627         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53628         * modules/wctype (Files): Update.
53630         More consistent naming of *.m4 files.
53631         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53632         * modules/wchar (Files): Update.
53634 2010-03-06  Jim Meyering  <meyering@redhat.com>
53636         euidaccess: relax license to LGPLv2+
53637         * modules/euidaccess (License): Relax to LGPLv2+.
53639 2010-03-06  Bruno Haible  <bruno@clisp.org>
53641         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53642         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53643         (Makefile.am): Augment lib_SOURCES instead.
53645 2010-03-04  Jim Meyering  <meyering@redhat.com>
53647         utime: remove obsolete module
53648         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53649         unnecessary for years, and has been marked as obsolete for 10 months.
53650         * modules/utime: Remove file.
53651         * lib/utime.c: Remove file.
53652         * m4/utime.m4: Remove file.
53653         * m4/utimes-null.m4: Remove file.
53654         * doc/posix-functions/utime.texi (utime): Remove reference to
53655         the module.  Move the sole "fixed by gnulib" item into the
53656         "problems not fixed by Gnulib" list.
53657         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53659 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53661         * modules/exit (License): Relax license to LGPLv2+.
53662         (Status): Mark as obsolete.
53663         * NEWS: Mention deprecated 'exit' module.
53664         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53665         of now obsolete 'exit'.
53667 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53669         fts-lgpl: remove unused module
53670         * modules/fts-lgpl: Remove.
53671         * MODULES.html.sh (func_all_modules): Adjust.
53672         * check-module (find_included_lib_files): Adjust.
53673         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53675 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53677         copy-acl: enhance Solaris ACL error handling
53678         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53679         * lib/set-mode-acl.c (qset_acl): Likewise.
53681 2010-03-02  Bruno Haible  <bruno@clisp.org>
53683         spawn: Don't override the system defined values on FreeBSD 8.
53684         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53685         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53686         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53687         if HAVE_POSIX_SPAWN is 1.
53688         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53690 2010-03-01  Bruno Haible  <bruno@clisp.org>
53692         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53693         regarding Automake.
53695 2010-02-25  Bruno Haible  <bruno@clisp.org>
53697         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53698         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53699         setting, not afterwards.
53700         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53702 2010-02-24  Eric Blake  <eblake@redhat.com>
53704         bootstrap, git-version-gen: use timestamp
53705         * build-aux/git-version-gen (scriptversion): Force UTC.
53706         * build-aux/bootstrap (scriptversion): New variable.
53708         bootstrap: allow older git
53709         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53710         older than 1.6.4.  Requested by the libvirt project.
53712 2010-02-23  Eric Blake  <eblake@redhat.com>
53714         warn-on-use: work with old autoconf
53715         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53716         AS_VAR semantics of autoconf 2.60.
53717         Reported by Bruno Haible.
53719         bootstrap: improve some comments
53720         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53721         clarification comments.
53723         gettimeofday: provide correct function
53724         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53725         when replacement is declared, otherwise provide gettimeofday.
53726         Reported by Michael Goffioul.
53728 2010-02-23  Jim Meyering  <meyering@redhat.com>
53730         lib-ignore: relax license to "unlimited", not LGPLv2+
53731         * modules/lib-ignore (License): Relax to "unlimited".
53733 2010-02-23  Jim Meyering  <meyering@redhat.com>
53735         lib-ignore: relax license to LGPLv2+
53736         * modules/lib-ignore (License): Relax to LGPLv2+.
53738 2010-02-22  Eric Blake  <eblake@redhat.com>
53740         lseek: avoid bash 3.2 broken pipe bug
53741         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53742         warning from bash 3.2.
53743         Reported by Ben Pfaff, with analysis from Bruno Haible.
53745         bootstrap: support non-FSF copyright holder
53746         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
53747         bootstrap.conf override of COPYRIGHT_HOLDER.
53748         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
53750         bootstrap: interoperate with gettext 0.14.1
53751         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
53753         bootstrap: allow for alternate submodule location
53754         * build-aux/bootstrap (gnulib_path): New variable; use instead of
53755         hardcoding submodule location.
53756         (gnulib_mk): Allow direct use of Makefile.am.
53758         bootstrap: use GNULIB_SRCDIR to reduce disk usage
53759         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
53760         rather than reconfiguring where the submodule points.
53762         gettimeofday: restore support for platforms that lack function
53763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
53764         replacement if function is missing.
53765         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
53766         * modules/sys_time (Makefile.am): Substitute it.
53767         * lib/sys_time.in.h (gettimeofday): Check it.
53768         Reported by Michael Goffioul.
53770 2010-02-21  Bruno Haible  <bruno@clisp.org>
53772         * lib/stdio.in.h (obstack_printf): Fix typo.
53774 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
53776         vc-list-files: use bzr ls's -R option
53777         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
53778         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
53780 2010-02-21  Jim Meyering  <meyering@redhat.com>
53782         init.sh: fix EXEEXT shims to work also for names like test-prog
53783         * tests/init.sh: Re-exec a better shell, when needed.
53784         If the current shell lacks support for posix $(...), an init.sh-using
53785         test will now try to find a shell that supports that.  If EXEEXT is
53786         nonempty, we also require support for hyphen-in-alias-name and shell
53787         substitutions like ${var#glob}.  Failure to find such a shell results
53788         in a skipped test.
53790 2010-02-21  Bruno Haible  <bruno@clisp.org>
53792         Really work around "broken pipe" error message from bash 3.2.
53793         * gnulib-tool (func_reset_sigpipe): Remove function.
53794         (echo): In bash 3.2, define to a function that uses printf.
53795         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
53797 2010-02-20  Bruno Haible  <bruno@clisp.org>
53799         Restore support for automake 1.9.6 with autoconf 2.61.
53800         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
53801         Reported by James Youngman <jay@gnu.org>.
53803 2010-02-20  Bruno Haible  <bruno@clisp.org>
53805         Improve *printf warning condition.
53806         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
53807         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
53808         and the function is overridden due to SIGPIPE emulation.
53810 2010-02-20  Bruno Haible  <bruno@clisp.org>
53812         * lib/stdio.in.h: Tweak comments.
53814 2010-02-19  Bruno Haible  <bruno@clisp.org>
53816         Make it easier to find modules. New gnulib-tool option '--find'.
53817         * gnulib-tool: New option --find.
53818         (func_usage): Document it.
53819         (func_sanitize_modulelist): New function, extracted from
53820         func_all_modules.
53821         (func_all_modules): Invoke it.
53822         * doc/gnulib-tool.texi (Which modules?): New node.
53824 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
53826         * lib/sys_select.in.h: Provide select replacement even if
53827         sys/select.h exists on a system, for Interix.
53829 2010-02-18  Jim Meyering  <meyering@redhat.com>
53831         init.sh: don't use $(...) just yet
53832         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
53833         to accommodate e.g., Solaris' /bin/sh.
53835 2010-02-17  Bruno Haible  <bruno@clisp.org>
53837         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
53838         Reported by Ludovic Courtès <ludo@gnu.org>.
53840 2010-02-16  Simon Josefsson  <simon@josefsson.org>
53842         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
53843         linking with -lintl.
53845 2010-02-17  Simon Josefsson  <simon@josefsson.org>
53847         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
53848         if not provided by the system's netdb.h.  Reported by
53849         ludo@gnu.org (Ludovic Courtès).
53851 2010-02-15  Jim Meyering  <meyering@redhat.com>
53853         init.sh: improve portability and efficiency
53854         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
53855         "dummy" in a for loop.
53856         Use '!', not '^' to select the complement of a character set used
53857         in a "case" statement.
53858         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53859         Suggestions from Eric Blake.
53861         init.sh: automatically accommodate programs with the .exe suffix
53862         Automatically arrange for an invocation of "prog" to execute the
53863         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53864         may use the simpler "prog", yet still work when built on a system
53865         that requires specifying the added suffix.
53866         Do this by constructing a function named "prog" that invokes
53867         "prog.exe" for each .exe file in selected directories.
53868         * tests/init.sh (find_exe_basenames_): New function.
53869         (create_exe_shim_functions_): New function.
53870         (path_prepend_): Use it.
53872         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53873         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53874         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53876 2010-02-14  Jim Meyering  <meyering@redhat.com>
53878         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53879         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53880         (sc_prohibit_hash_pjw_without_use): New rule.
53882         maint.mk: allow the default upload destination dir to be overridden
53883         * top/maint.mk (upload_dest_dir_): Define with a default that
53884         preserves the status quo.
53885         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53886         Reported by Peter Simons.
53888         maint.mk: prohibit inclusion of "hash.h" without_use
53889         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53891 2010-02-10  Jim Meyering  <meyering@redhat.com>
53893         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53894         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53896 2010-02-09  Eric Blake  <ebb9@byu.net>
53897         and Bruno Haible  <bruno@clisp.org>
53899         obstack-printf-posix: ensure declaration
53900         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53901         extracted from gl_FUNC_OBSTACK_PRINTF.
53902         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53903         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53904         Likewise.
53905         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53906         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53907         0.
53909 2010-02-08  Bruno Haible  <bruno@clisp.org>
53911         gnulib-tool: Fix typo in 2010-02-07 commit.
53912         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53913         Reported by Eric Blake.
53915 2010-02-07  Bruno Haible  <bruno@clisp.org>
53917         gnulib-tool: Fix up caching patches.
53918         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
53919         option --no-cache. Use associative arrays when supported by the shell.
53920         (sed_comments): New variable.
53921         (modcache): Renamed from do_cache.
53922         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
53923         abbreviate unnecessarily.
53924         (have_associative): New variable.
53925         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
53926         way also for ksh and zsh.
53927         (func_init_sed_convert_to_cache_statements): New function, extracted
53928         from func_cache_lookup_module. Add support for associative arrays.
53929         Don't set the c_MODULE_cached variable here. Ignore all lines before
53930         the first field header. Remove only the final newline, not all trailing
53931         newlines. Support empty fields correctly. Limit the use of 'eval' to
53932         assignments.
53933         (func_get_description, func_get_status, func_get_notice,
53934         func_get_applicability, func_get_filelist, func_get_dependencies,
53935         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
53936         func_get_automake_snippet, func_get_include_directive,
53937         func_get_link_directive, func_get_license, func_get_maintainer):
53938         Update documentation. List the unoptimized code first. Add support for
53939         associative arrays. Limit the use of 'eval' to assignments.
53940         (func_get_applicability): Undo stylistic pessimisations.
53941         (func_get_automake_snippet, func_get_include_directive): Reduce code
53942         duplication.
53943         (func_modules_transitive_closure, func_modules_add_dummy,
53944         func_modules_notice, func_modules_to_filelist, func_add_file,
53945         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
53946         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
53947         func_create_testdir, func_create_megatestdir): Update documentation.
53949 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53951         * gnulib-tool (func_cache_lookup_module): Store the module name
53952         belonging to the cache variable; error out if two different
53953         module names map to the same cache variable name.
53955 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53957         gnulib-tool: Make caching optional.
53958         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
53959         Update matching short versions of --no-changelog.
53960         (func_usage): Update.
53961         (sed_extract_cache_prog): Renamed from ...
53962         (sed_extract_prog): ... this; revert to old extraction script.
53963         (func_get_description, func_get_status)
53964         (func_get_notice, func_get_applicability, func_get_filelist)
53965         (func_get_dependencies, func_get_autoconf_early_snippet)
53966         (func_get_autoconf_snippet, func_get_automake_snippet)
53967         (func_get_include_directive, func_get_link_directive)
53968         (func_get_license, func_get_maintainer): If $do_cache is false,
53969         use old, non-caching extraction scripts.
53970         Suggestion by Bruno Haible.
53972 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53974         gnulib-tool: cache module metainformation.
53975         * gnulib-tool (sed_extract_prog): Match newline before each
53976         header, and rewrite header to a shell variable suffix.
53977         (func_cache_var, func_cache_lookup_module): New functions,
53978         to turn a module name into a cache variable prefix, and to
53979         look up and cache module metainformation.
53980         (func_get_description, func_get_status)
53981         (func_get_notice, func_get_applicability, func_get_filelist)
53982         (func_get_dependencies, func_get_autoconf_early_snippet)
53983         (func_get_autoconf_snippet, func_get_automake_snippet)
53984         (func_get_include_directive, func_get_link_directive)
53985         (func_get_license, func_get_maintainer): Use
53986         func_cache_lookup_module.
53988 2010-02-07  Bruno Haible  <bruno@clisp.org>
53990         fnctl: Fix missing dependency.
53991         * modules/fcntl (Depends-on): Add getdtablesize.
53992         Reported by John W. Eaton <jwe@gnu.org>.
53994 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53996         Argp: fix recognition of short alias options.
53998         * lib/argp-parse.c (convert_options): Fix improper use of
53999         `|' between character values.
54000         * tests/test-argp.c (group1_option): New alias option
54001         --read (-r).
54002         (group1_parser): Special handling for 'r'.
54003         (test15): New test case.
54004         (test_fun): Add test15.
54005         * tests/test-argp-2.sh: Update expected --help and --usage
54006         outputs.
54008 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54010         * tests/test-argp.c: Fix indentation.
54012 2010-02-04  Eric Blake  <ebb9@byu.net>
54014         gettimeofday: expose type of second argument
54015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
54016         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
54017         * tests/test-gettimeofday.c: Use it to silence warning.
54018         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
54019         the issue.
54021 2010-02-03  Jim Meyering  <meyering@redhat.com>
54023         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
54024         * lib/regcomp.c (TYPE_SIGNED): Define.
54025         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
54027         regcomp.c: avoid a new -Wshadow warning
54028         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
54030 2010-02-01  Jim Meyering  <meyering@redhat.com>
54032         removing useless parentheses in cpp #define directives
54033         For motivation, see commit c0221df4, "define STREQ(a,b)
54034         consistently, removing useless parentheses"
54035         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
54036         * lib/mountlist.c (MNT_IGNORE): Likewise.
54037         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
54039 2010-02-01  Eric Blake  <ebb9@byu.net>
54041         sys_time: use link-warning
54042         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
54043         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
54044         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
54045         * modules/sys_time (Depends-on): Add warn-on-use.
54046         (Makefile.am): Always build replacement.
54047         (configure.ac): Update substitutions.
54048         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
54049         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
54050         bother with SYS_TIME_H.
54051         * modules/gettimeofday (configure.ac): Declare indicator.
54052         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
54053         in use.
54055         closein-tests: silence compiler warning
54056         * tests/test-closein.c (main): Ignore fread result.
54057         * modules/closein-tests (Depends-on): Add ignore-value.
54059         tests: silence warning about system return
54060         * tests/test-areadlink-with-size.c (main): Ignore system result.
54061         * tests/test-areadlink.c (main): Likewise.
54062         * tests/test-areadlinkat-with-size.c (main): Likewise.
54063         * tests/test-areadlinkat.c (main): Likewise.
54064         * tests/test-canonicalize-lgpl.c (main): Likewise.
54065         * tests/test-canonicalize.c (main): Likewise.
54066         * tests/test-chown.c (main): Likewise.
54067         * tests/test-fchownat.c (main): Likewise.
54068         * tests/test-fdutimensat.c (main): Likewise.
54069         * tests/test-fstatat.c (main): Likewise.
54070         * tests/test-futimens.c (main): Likewise.
54071         * tests/test-lchown.c (main): Likewise.
54072         * tests/test-link.c (main): Likewise.
54073         * tests/test-linkat.c (main): Likewise.
54074         * tests/test-lstat.c (main): Likewise.
54075         * tests/test-mkdir.c (main): Likewise.
54076         * tests/test-mkdirat.c (main): Likewise.
54077         * tests/test-mkfifo.c (main): Likewise.
54078         * tests/test-mkfifoat.c (main): Likewise.
54079         * tests/test-mknod.c (main): Likewise.
54080         * tests/test-readlink.c (main): Likewise.
54081         * tests/test-remove.c (main): Likewise.
54082         * tests/test-rename.c (main): Likewise.
54083         * tests/test-renameat.c (main): Likewise.
54084         * tests/test-rmdir.c (main): Likewise.
54085         * tests/test-symlink.c (main): Likewise.
54086         * tests/test-symlinkat.c (main): Likewise.
54087         * tests/test-unlink.c (main): Likewise.
54088         * tests/test-unlinkat.c (main): Likewise.
54089         * tests/test-utimens.c (main): Likewise.
54090         * tests/test-utimensat.c (main): Likewise.
54091         * modules/areadlink-tests (Depends-on): Add ignore-value.
54092         * modules/areadlink-with-size-tests (Depends-on): Likewise.
54093         * modules/areadlinkat-tests (Depends-on): Likewise.
54094         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
54095         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54096         * modules/canonicalize-tests (Depends-on): Likewise.
54097         * modules/chown-tests (Depends-on): Likewise.
54098         * modules/fdutimensat-tests (Depends-on): Likewise.
54099         * modules/futimens-tests (Depends-on): Likewise.
54100         * modules/lchown-tests (Depends-on): Likewise.
54101         * modules/link-tests (Depends-on): Likewise.
54102         * modules/linkat-tests (Depends-on): Likewise.
54103         * modules/lstat-tests (Depends-on): Likewise.
54104         * modules/mkdir-tests (Depends-on): Likewise.
54105         * modules/mkfifo-tests (Depends-on): Likewise.
54106         * modules/mkfifoat-tests (Depends-on): Likewise.
54107         * modules/mknod-tests (Depends-on): Likewise.
54108         * modules/openat-tests (Depends-on): Likewise.
54109         * modules/readlink-tests (Depends-on): Likewise.
54110         * modules/remove-tests (Depends-on): Likewise.
54111         * modules/rename-tests (Depends-on): Likewise.
54112         * modules/renameat-tests (Depends-on): Likewise.
54113         * modules/rmdir-tests (Depends-on): Likewise.
54114         * modules/symlink-tests (Depends-on): Likewise.
54115         * modules/symlinkat-tests (Depends-on): Likewise.
54116         * modules/unlink-tests (Depends-on): Likewise.
54117         * modules/utimens-tests (Depends-on): Likewise.
54118         * modules/utimensat-tests (Depends-on): Likewise.
54120 2010-01-31  Bruno Haible  <bruno@clisp.org>
54122         Perform the same test for many <math.h> functions.
54123         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
54124         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
54125         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
54126         of gl_MATHFUNC.
54127         * modules/acos (configure.ac): Likewise.
54128         * modules/asin (configure.ac): Likewise.
54129         * modules/atan (configure.ac): Likewise.
54130         * modules/atan2 (configure.ac): Likewise.
54131         * modules/cbrt (configure.ac): Likewise.
54132         * modules/copysign (configure.ac): Likewise.
54133         * modules/cos (configure.ac): Likewise.
54134         * modules/cosh (configure.ac): Likewise.
54135         * modules/erf (configure.ac): Likewise.
54136         * modules/erfc (configure.ac): Likewise.
54137         * modules/exp (configure.ac): Likewise.
54138         * modules/fmod (configure.ac): Likewise.
54139         * modules/hypot (configure.ac): Likewise.
54140         * modules/j0 (configure.ac): Likewise.
54141         * modules/j1 (configure.ac): Likewise.
54142         * modules/jn (configure.ac): Likewise.
54143         * modules/lgamma (configure.ac): Likewise.
54144         * modules/log (configure.ac): Likewise.
54145         * modules/log10 (configure.ac): Likewise.
54146         * modules/log1p (configure.ac): Likewise.
54147         * modules/pow (configure.ac): Likewise.
54148         * modules/remainder (configure.ac): Likewise.
54149         * modules/sin (configure.ac): Likewise.
54150         * modules/sinh (configure.ac): Likewise.
54151         * modules/tan (configure.ac): Likewise.
54152         * modules/tanh (configure.ac): Likewise.
54153         * modules/y0 (configure.ac): Likewise.
54154         * modules/y1 (configure.ac): Likewise.
54155         * modules/yn (configure.ac): Likewise.
54156         Suggested by Paolo Bonzini.
54158 2010-01-31  Bruno Haible  <bruno@clisp.org>
54160         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
54162 2010-01-31  Bruno Haible  <bruno@clisp.org>
54164         Work around getdelim() bug on FreeBSD 8.0.
54165         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
54166         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
54167         not work.
54168         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
54169         is 1.
54170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
54171         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
54172         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
54173         a non-zero size.
54174         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
54176 2010-01-31  Bruno Haible  <bruno@clisp.org>
54178         Work around getline() bug on FreeBSD 8.0.
54179         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
54180         and a non-zero size.
54181         * tests/test-getline.c (main): Likewise.
54182         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
54183         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
54185 2010-01-28  Eric Blake  <ebb9@byu.net>
54187         regex: fix build failure
54188         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
54189         platforms.
54191 2010-01-28  Jim Meyering  <meyering@redhat.com>
54193         regex: do not ignore memory allocation failure
54194         * lib/regex_internal.c (create_cd_newstate): Detect
54195         re_node_set_init_copy failure.   Extracted from glibc commit
54196         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54198         regex: sync more white-space changes from libc
54199         * lib/regex_internal.c: White-space only changes.
54200         * lib/regexec.c: Likewise.
54202         regex: add many uses of __attribute_warn_unused_result__
54203         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
54204         * lib/regexec.c: Likewise.
54205         Extracted from a messy glibc commit.
54207         regcomp.c: spelling and merge-artifact from glibc
54208         * lib/regcomp.c: Merge remainder of glibc's
54209         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54211         regcomp.c: sync white-space changes from glibc
54212         * lib/regcomp.c: Merge to accommodate white space
54213         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54215         regcomp.c: do not ignore internal return values
54216         * lib/regcomp.c: Do not ignore internal return values.
54217         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
54218         but without its white-space changes and spelling fixes.
54220         regex_internal.h: define __attribute_warn_unused_result__
54221         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
54223         maint: add a syntax-check rule to check for vulnerable Makefile.in
54224         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
54226 2010-01-27  Jim Meyering  <meyering@redhat.com>
54228         ncftpput-ftp: clean up spaces
54229         * build-aux/ncftpput-ftp: Make Copyright line consistent.
54230         Remove trailing blanks.
54232 2010-01-27  Simon Josefsson  <simon@josefsson.org>
54234         * build-aux/git-version-gen: Fix copyright statement.
54235         * build-aux/gnupload: Likewise.
54236         * tests/test-arcfour.c: Likewise.
54237         * tests/test-arctwo.c: Likewise.
54238         * tests/test-count-one-bits.c: Likewise.
54239         * tests/test-crc.c: Likewise.
54240         * tests/test-des.c: Likewise.
54241         * tests/test-gc-arcfour.c: Likewise.
54242         * tests/test-gc-arctwo.c: Likewise.
54243         * tests/test-gc-des.c: Likewise.
54244         * tests/test-gc-hmac-md5.c: Likewise.
54245         * tests/test-gc-hmac-sha1.c: Likewise.
54246         * tests/test-gc-md2.c: Likewise.
54247         * tests/test-gc-md4.c: Likewise.
54248         * tests/test-gc-md5.c: Likewise.
54249         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54250         * tests/test-gc-rijndael.c: Likewise.
54251         * tests/test-gc-sha1.c: Likewise.
54252         * tests/test-gc.c: Likewise.
54253         * tests/test-gethostname.c: Likewise.
54254         * tests/test-gettimeofday.c: Likewise.
54255         * tests/test-hash.c: Likewise.
54256         * tests/test-hmac-md5.c: Likewise.
54257         * tests/test-hmac-sha1.c: Likewise.
54258         * tests/test-md2.c: Likewise.
54259         * tests/test-md4.c: Likewise.
54260         * tests/test-md5.c: Likewise.
54261         * tests/test-memchr.c: Likewise.
54262         * tests/test-memchr2.c: Likewise.
54263         * tests/test-memcmp.c: Likewise.
54264         * tests/test-memmem.c: Likewise.
54265         * tests/test-memrchr.c: Likewise.
54266         * tests/test-rawmemchr.c: Likewise.
54267         * tests/test-read-file.c: Likewise.
54268         * tests/test-rijndael.c: Likewise.
54269         * tests/test-sockets.c: Likewise.
54270         * tests/test-strchrnul.c: Likewise.
54271         * tests/test-strstr.c: Likewise.
54272         * tests/test-strtod.c: Likewise.
54273         * build-aux/ncftpput-ftp: Likewise.
54275 2010-01-26  Eric Blake  <ebb9@byu.net>
54277         ignore-value: update recommended header name
54278         * modules/ignore-value (Include): Only use <> for headers that
54279         exist in glibc.
54281 2010-01-26  Jim Meyering  <meyering@redhat.com>
54283         test-userspec.c: avoid compiler warnings
54284         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
54285         and "initialization discards qualifiers..." warnings.
54286         Put the first "uid" in its own scope, and make char* members "const".
54288 2010-01-25  Bruno Haible  <bruno@clisp.org>
54290         gnulib-tool: Make warning diagnostics consistent.
54291         * gnulib-tool (func_warning): New function.
54292         Use it everywhere where gnulib-tool produces output to stderr and it is
54293         not a fatal error.
54295 2010-01-25  Bruno Haible  <bruno@clisp.org>
54297         Fix test dependencies.
54298         * modules/xstrtol-tests (Depends-on): Add inttypes.
54299         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
54301 2010-01-25  Pádraig Brady  <P@draigBrady.com>
54303         syntax-check: detect incorrect boolean macro values in config.h
54304         * modules/maintainer-makefile (configure.ac): Parameterize the location
54305         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
54306         The logic is from Eric Blake and the location indicated by Jim Meyering.
54307         Note the more natural CONFIG_HEADER name is prohibited by automake
54308         for backwards compatibility reasons.
54309         * top/maint.mk (sc_Wundef_boolean): New rule.
54311 2010-01-25  Jim Meyering  <meyering@redhat.com>
54313         bootstrap: detect MacOS 10.6's shasum, too
54314         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
54315         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
54317 2010-01-23  Jim Meyering  <meyering@redhat.com>
54319         xstrtoll: new module
54320         * modules/xstrtoll: New file.
54321         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
54322         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
54323         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
54324         ./configure fails if you use this module and lack "long long".
54325         * modules/xstrtoll-tests: New module.
54326         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
54327         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
54328         new init.sh-based test framework.
54330 2010-01-24  Bruno Haible  <bruno@clisp.org>
54332         Tests for module 'yn'.
54333         * modules/yn-tests: New file.
54334         * tests/test-yn.c: New file.
54336         Tests for module 'y1'.
54337         * modules/y1-tests: New file.
54338         * tests/test-y1.c: New file.
54340         Tests for module 'y0'.
54341         * modules/y0-tests: New file.
54342         * tests/test-y0.c: New file.
54344         Tests for module 'tanh'.
54345         * modules/tanh-tests: New file.
54346         * tests/test-tanh.c: New file.
54348         Tests for module 'tan'.
54349         * modules/tan-tests: New file.
54350         * tests/test-tan.c: New file.
54352         Tests for module 'sqrt'.
54353         * modules/sqrt-tests: New file.
54354         * tests/test-sqrt.c: New file.
54356         Tests for module 'sinh'.
54357         * modules/sinh-tests: New file.
54358         * tests/test-sinh.c: New file.
54360         Tests for module 'sin'.
54361         * modules/sin-tests: New file.
54362         * tests/test-sin.c: New file.
54364         Tests for module 'rint'.
54365         * modules/rint-tests: New file.
54366         * tests/test-rint.c: New file.
54368         Tests for module 'remainder'.
54369         * modules/remainder-tests: New file.
54370         * tests/test-remainder.c: New file.
54372         Tests for module 'pow'.
54373         * modules/pow-tests: New file.
54374         * tests/test-pow.c: New file.
54376         Tests for module 'nextafter'.
54377         * modules/nextafter-tests: New file.
54378         * tests/test-nextafter.c: New file.
54380         Tests for module 'modf'.
54381         * modules/modf-tests: New file.
54382         * tests/test-modf.c: New file.
54384         Tests for module 'logb'.
54385         * modules/logb-tests: New file.
54386         * tests/test-logb.c: New file.
54388         Tests for module 'log1p'.
54389         * modules/log1p-tests: New file.
54390         * tests/test-log1p.c: New file.
54392         Tests for module 'log10'.
54393         * modules/log10-tests: New file.
54394         * tests/test-log10.c: New file.
54396         Tests for module 'log'.
54397         * modules/log-tests: New file.
54398         * tests/test-log.c: New file.
54400         Tests for module 'lgamma'.
54401         * modules/lgamma-tests: New file.
54402         * tests/test-lgamma.c: New file.
54404         Tests for module 'ldexp'.
54405         * modules/ldexp-tests: New file.
54406         * tests/test-ldexp.c: New file.
54408         Tests for module 'jn'.
54409         * modules/jn-tests: New file.
54410         * tests/test-jn.c: New file.
54412         Tests for module 'j1'.
54413         * modules/j1-tests: New file.
54414         * tests/test-j1.c: New file.
54416         Tests for module 'j0'.
54417         * modules/j0-tests: New file.
54418         * tests/test-j0.c: New file.
54420         Tests for module 'hypot'.
54421         * modules/hypot-tests: New file.
54422         * tests/test-hypot.c: New file.
54424         Tests for module 'fmod'.
54425         * modules/fmod-tests: New file.
54426         * tests/test-fmod.c: New file.
54428         Tests for module 'fabs'.
54429         * modules/fabs-tests: New file.
54430         * tests/test-fabs.c: New file.
54432         Tests for module 'exp'.
54433         * modules/exp-tests: New file.
54434         * tests/test-exp.c: New file.
54436         Tests for module 'erfc'.
54437         * modules/erfc-tests: New file.
54438         * tests/test-erfc.c: New file.
54440         Tests for module 'erf'.
54441         * modules/erf-tests: New file.
54442         * tests/test-erf.c: New file.
54444         Tests for module 'cosh'.
54445         * modules/cosh-tests: New file.
54446         * tests/test-cosh.c: New file.
54448         Tests for module 'cos'.
54449         * modules/cos-tests: New file.
54450         * tests/test-cos.c: New file.
54452         Tests for module 'copysign'.
54453         * modules/copysign-tests: New file.
54454         * tests/test-copysign.c: New file.
54456         Tests for module 'cbrt'.
54457         * modules/cbrt-tests: New file.
54458         * tests/test-cbrt.c: New file.
54460         Tests for module 'atan2'.
54461         * modules/atan2-tests: New file.
54462         * tests/test-atan2.c: New file.
54464         Tests for module 'atan'.
54465         * modules/atan-tests: New file.
54466         * tests/test-atan.c: New file.
54468         Tests for module 'asin'.
54469         * modules/asin-tests: New file.
54470         * tests/test-asin.c: New file.
54472         Tests for module 'acos'.
54473         * modules/acos-tests: New file.
54474         * tests/test-acos.c: New file.
54476 2010-01-24  Bruno Haible  <bruno@clisp.org>
54478         Fix tests for common <math.h> functions.
54479         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
54480         code snippet that references the function pointer, rather than merely
54481         calling the function. Substitute the FUNC_LIBM variable.
54482         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
54483         * modules/acos (configure.ac): Likewise.
54484         * modules/asin (configure.ac): Likewise.
54485         * modules/atan (configure.ac): Likewise.
54486         * modules/atan2 (configure.ac): Likewise.
54487         * modules/cbrt (configure.ac): Likewise.
54488         * modules/copysign (configure.ac): Likewise.
54489         * modules/cos (configure.ac): Likewise.
54490         * modules/cosh (configure.ac): Likewise.
54491         * modules/erf (configure.ac): Likewise.
54492         * modules/erfc (configure.ac): Likewise.
54493         * modules/exp (configure.ac): Likewise.
54494         * modules/fabs (configure.ac): Likewise.
54495         * modules/fmod (configure.ac): Likewise.
54496         * modules/hypot (configure.ac): Likewise.
54497         * modules/j0 (configure.ac): Likewise.
54498         * modules/j1 (configure.ac): Likewise.
54499         * modules/jn (configure.ac): Likewise.
54500         * modules/ldexp (configure.ac): Likewise.
54501         * modules/lgamma (configure.ac): Likewise.
54502         * modules/log (configure.ac): Likewise.
54503         * modules/log10 (configure.ac): Likewise.
54504         * modules/log1p (configure.ac): Likewise.
54505         * modules/logb (configure.ac): Likewise.
54506         * modules/modf (configure.ac): Likewise.
54507         * modules/nextafter (configure.ac): Likewise.
54508         * modules/pow (configure.ac): Likewise.
54509         * modules/remainder (configure.ac): Likewise.
54510         * modules/rint (configure.ac): Likewise.
54511         * modules/sin (configure.ac): Likewise.
54512         * modules/sinh (configure.ac): Likewise.
54513         * modules/tan (configure.ac): Likewise.
54514         * modules/tanh (configure.ac): Likewise.
54515         * modules/y0 (configure.ac): Likewise.
54516         * modules/y1 (configure.ac): Likewise.
54517         * modules/yn (configure.ac): Likewise.
54519 2010-01-24  Bruno Haible  <bruno@clisp.org>
54521         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
54522         * tests/test-acosl.c (x): New variable.
54523         (main): Store argument in x and fetch it from x.
54524         * tests/test-asinl.c (x): New variable.
54525         (main): Store argument in x and fetch it from x.
54526         * tests/test-atanl.c (x): New variable.
54527         (main): Store argument in x and fetch it from x.
54528         * tests/test-cosl.c (x): New variable.
54529         (main): Store argument in x and fetch it from x.
54530         * tests/test-expl.c (x): New variable.
54531         (main): Store argument in x and fetch it from x.
54532         * tests/test-logl.c (x): New variable.
54533         (main): Store argument in x and fetch it from x.
54534         * tests/test-sinl.c (x): New variable.
54535         (main): Store argument in x and fetch it from x.
54536         * tests/test-sqrtl.c (x): New variable.
54537         (main): Store argument in x and fetch it from x.
54538         * tests/test-tanl.c (x): New variable.
54539         (main): Store argument in x and fetch it from x.
54541 2010-01-24  Bruno Haible  <bruno@clisp.org>
54543         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
54544         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
54545         assignments to the initial TESTS_ENVIRONMENT.
54546         * doc/gnulib.texi (Unit test modules): Document it.
54547         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
54548         TESTS_ENVIRONMENT.
54549         * modules/btowc-tests (Makefile.am): Likewise.
54550         * modules/c-stack-tests (Makefile.am): Likewise.
54551         * modules/c-strcase-tests (Makefile.am): Likewise.
54552         * modules/copy-file-tests (Makefile.am): Likewise.
54553         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
54554         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
54555         * modules/mbrtowc-tests (Makefile.am): Likewise.
54556         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54557         * modules/mbscasestr-tests (Makefile.am): Likewise.
54558         * modules/mbschr-tests (Makefile.am): Likewise.
54559         * modules/mbscspn-tests (Makefile.am): Likewise.
54560         * modules/mbsinit-tests (Makefile.am): Likewise.
54561         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54562         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
54563         * modules/mbspbrk-tests (Makefile.am): Likewise.
54564         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54565         * modules/mbsrchr-tests (Makefile.am): Likewise.
54566         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
54567         * modules/mbsspn-tests (Makefile.am): Likewise.
54568         * modules/mbsstr-tests (Makefile.am): Likewise.
54569         * modules/nl_langinfo-tests (Makefile.am): Likewise.
54570         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
54571         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54572         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54573         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54574         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54575         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
54576         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54577         * modules/wcrtomb-tests (Makefile.am): Likewise.
54578         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
54579         * modules/wcsrtombs-tests (Makefile.am): Likewise.
54580         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
54581         assignments from TESTS_ENVIRONMENT.
54582         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
54583         augmentation.
54584         * modules/argp-version-etc-tests (Makefile.am): Likewise.
54585         * modules/atexit-tests (Makefile.am): Likewise.
54586         * modules/binary-io-tests (Makefile.am): Likewise.
54587         * modules/closein-tests (Makefile.am): Likewise.
54588         * modules/dprintf-posix-tests (Makefile.am): Likewise.
54589         * modules/exclude-tests (Makefile.am): Likewise.
54590         * modules/fflush-tests (Makefile.am): Likewise.
54591         * modules/fpending-tests (Makefile.am): Likewise.
54592         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54593         * modules/freadahead-tests (Makefile.am): Likewise.
54594         * modules/freadptr-tests (Makefile.am): Likewise.
54595         * modules/freadseek-tests (Makefile.am): Likewise.
54596         * modules/fseek-tests (Makefile.am): Likewise.
54597         * modules/fseeko-tests (Makefile.am): Likewise.
54598         * modules/ftell-tests (Makefile.am): Likewise.
54599         * modules/ftello-tests (Makefile.am): Likewise.
54600         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54601         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54602         * modules/lseek-tests (Makefile.am): Likewise.
54603         * modules/parse-duration-tests (Makefile.am): Likewise.
54604         * modules/perror-tests (Makefile.am): Likewise.
54605         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54606         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54607         * modules/pipe-tests (Makefile.am): Likewise.
54608         * modules/pread-tests (Makefile.am): Likewise.
54609         * modules/printf-posix-tests (Makefile.am): Likewise.
54610         * modules/select-tests (Makefile.am): Likewise.
54611         * modules/sigpipe-tests (Makefile.am): Likewise.
54612         * modules/tsearch-tests (Makefile.am): Likewise.
54613         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54614         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54615         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54616         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54617         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54618         * modules/version-etc-tests (Makefile.am): Likewise.
54619         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54620         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54621         * modules/xalloc-die-tests (Makefile.am): Likewise.
54622         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54623         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54624         * modules/xstrtol-tests (Makefile.am): Likewise.
54625         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54626         * modules/yesno-tests (Makefile.am): Likewise.
54627         Suggested by Jim Meyering.
54629 2010-01-24  Bruno Haible  <bruno@clisp.org>
54631         More documentation.
54632         * doc/gnulib.texi (Writing modules): New chapter.
54633         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54634         the new chapter.
54636 2010-01-24  Jim Meyering  <meyering@redhat.com>
54638         maint.mk: do not prepend "./" after filtering
54639         * top/maint.mk (_prepend_srcdir_prefix): New variable
54640         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54641         "./" when $(srcdir) is ".".
54643         define STREQ(a,b) consistently, removing useless parentheses
54644         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54645         since the only risk is that "a" or "b" contains an unparenthesized
54646         comma, but if either did that, STREQ would have 3 or more arguments.
54647         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54648         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54649         * lib/hash-triple.c (STREQ): Likewise.
54650         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54651         * lib/getugroups.c (STREQ): Likewise.
54653 2010-01-23  Jim Meyering  <meyering@redhat.com>
54655         maint.mk: fix syntax-check in a non-srcdir build directory
54656         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54657         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54659 2010-01-22  Jim Meyering  <meyering@redhat.com>
54661         userspec: add unit tests
54662         * tests/test-userspec.c: New file.
54663         * modules/userspec-tests: Likewise.
54665 2010-01-21  Jim Meyering  <meyering@redhat.com>
54667         maint.mk: handle source file names containing "." robustly
54668         * top/maint.mk (_dot_escaped_srcdir): Define.
54669         (VC_LIST): Use it in LHS of sed substitution.
54671 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54673         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54674         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54675         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54676         from a non-srcdir build.
54678 2010-01-20  Eric Blake  <ebb9@byu.net>
54680         warn-on-use: use instead of link-warning
54681         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54682         * modules/unistd (Depends-on, Makefile.am): Likewise.
54683         * modules/arpa_inet (Depends-on): Replace link-warning with
54684         warn-on-use.
54685         (Makefile.am): Update rules accordingly.
54686         * modules/ctype (Depends-on, Makefile.am): Likewise.
54687         * modules/dirent (Depends-on, Makefile.am): Likewise.
54688         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54689         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54690         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54691         * modules/locale (Depends-on, Makefile.am): Likewise.
54692         * modules/math (Depends-on, Makefile.am): Likewise.
54693         * modules/search (Depends-on, Makefile.am): Likewise.
54694         * modules/signal (Depends-on, Makefile.am): Likewise.
54695         * modules/spawn (Depends-on, Makefile.am): Likewise.
54696         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54697         * modules/string (Depends-on, Makefile.am): Likewise.
54698         * modules/strings (Depends-on, Makefile.am): Likewise.
54699         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54700         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54701         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54702         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54703         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54704         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54705         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54706         * modules/wchar (Depends-on, Makefile.am): Likewise.
54707         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54708         should be poisoned.
54709         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54710         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54711         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54712         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54713         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54714         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54715         * m4/math_h.m4 (gl_MATH_H): Likewise.
54716         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54717         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54718         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54719         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54720         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54721         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54722         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54723         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54724         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54725         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54726         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54730         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54731         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54732         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54733         GL_LINK_WARNING.
54734         * lib/ctype.in.h: Likewise.
54735         * lib/dirent.in.h: Likewise.
54736         * lib/fcntl.in.h: Likewise.
54737         * lib/inttypes.in.h: Likewise.
54738         * lib/langinfo.in.h: Likewise.
54739         * lib/locale.in.h: Likewise.
54740         * lib/math.in.h: Likewise.
54741         * lib/search.in.h: Likewise.
54742         * lib/signal.in.h: Likewise.
54743         * lib/spawn.in.h: Likewise.
54744         * lib/stdio.in.h: Likewise.
54745         * lib/stdlib.in.h: Likewise.
54746         * lib/string.in.h: Likewise.
54747         * lib/strings.in.h: Likewise.
54748         * lib/sys_file.in.h: Likewise.
54749         * lib/sys_ioctl.in.h: Likewise.
54750         * lib/sys_select.in.h: Likewise.
54751         * lib/sys_socket.in.h: Likewise.
54752         * lib/sys_stat.in.h: Likewise.
54753         * lib/sys_times.in.h: Likewise.
54754         * lib/sys_utsname.in.h: Likewise.
54755         * lib/unistd.in.h: Likewise.
54756         * lib/wchar.in.h: Likewise.
54758 2010-01-20  Bruno Haible  <bruno@clisp.org>
54760         Avoid duplicate -lm.
54761         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
54762         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
54763         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
54764         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
54765         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
54766         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
54767         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
54768         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
54769         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
54770         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
54771         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
54772         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54773         Reported by Paolo Bonzini.
54775 2010-01-19  Bruno Haible  <bruno@clisp.org>
54777         langinfo, nl_langinfo: Relicense under LGPLv2+.
54778         * modules/langinfo (License): Change to LGPLv2+.
54779         * modules/nl_langinfo (License): Likewise.
54780         Patch by David Lutterkort <lutter@redhat.com>.
54782 2010-01-19  Bruno Haible  <bruno@clisp.org>
54784         Avoid compilation error with cc on OSF/1 5.1.
54785         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
54786         statement, not before.
54787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54789 2010-01-18  Bruno Haible  <bruno@clisp.org>
54791         Avoid a link error due to the __printf__ symbol.
54792         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
54793         and 2.6.x.
54794         (__format__, __printf__): Remove definitions.
54795         * lib/argp-fmtstream.h: Likewise.
54796         * lib/argp.h: Likewise.
54797         * lib/error.h: Likewise.
54798         * lib/vasnprintf.h: Likewise.
54799         * lib/xprintf.h: Likewise.
54800         * lib/xvasprintf.h: Likewise.
54801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54803 2010-01-18  Bruno Haible  <bruno@clisp.org>
54805         Tests for module 'tanl'.
54806         * modules/tanl-tests: New file.
54807         * tests/test-tanl.c: New file.
54809         Tests for module 'sqrtl'.
54810         * modules/sqrtl-tests: New file.
54811         * tests/test-sqrtl.c: New file.
54813         Tests for module 'sinl'.
54814         * modules/sinl-tests: New file.
54815         * tests/test-sinl.c: New file.
54817         Tests for module 'logl'.
54818         * modules/logl-tests: New file.
54819         * tests/test-logl.c: New file.
54821         Tests for module 'expl'.
54822         * modules/expl-tests: New file.
54823         * tests/test-expl.c: New file.
54825         Tests for module 'cosl'.
54826         * modules/cosl-tests: New file.
54827         * tests/test-cosl.c: New file.
54829         Tests for module 'atanl'.
54830         * modules/atanl-tests: New file.
54831         * tests/test-atanl.c: New file.
54833         Tests for module 'asinl'.
54834         * modules/asinl-tests: New file.
54835         * tests/test-asinl.c: New file.
54837         Tests for module 'acosl'.
54838         * modules/acosl-tests: New file.
54839         * tests/test-acosl.c: New file.
54841         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54842         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
54843         tanl): Use the standard gnulib idiom.
54844         * lib/cosl.c: Don't include trigl.c and sincosl.c.
54845         * lib/sinl.c: Likewise.
54846         * lib/tanl.c: Don't include trigl.c.
54847         (kernel_tanl): Make static.
54848         * lib/sincosl.c: Include trigl.h first.
54849         * lib/trigl.c: Likewise.
54850         * m4/acosl.m4: New file.
54851         * m4/asinl.m4: New file.
54852         * m4/atanl.m4: New file.
54853         * m4/cosl.m4: New file.
54854         * m4/expl.m4: New file.
54855         * m4/logl.m4: New file.
54856         * m4/sinl.m4: New file.
54857         * m4/sqrtl.m4: New file.
54858         * m4/tanl.m4: New file.
54859         * m4/mathl.m4: Remove file.
54860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54861         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54862         Don't initialize GNULIB_MATHL.
54863         * modules/acosl: New file.
54864         * modules/asinl: New file.
54865         * modules/atanl: New file.
54866         * modules/cosl: New file.
54867         * modules/expl: New file.
54868         * modules/logl: New file.
54869         * modules/sinl: New file.
54870         * modules/sqrtl: New file.
54871         * modules/tanl: New file.
54872         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54873         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54874         substitute GNULIB_MATHL.
54875         * modules/mathl: Rewritten.
54876         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54877         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54878         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54879         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54880         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54881         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54882         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54883         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54884         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54886 2010-01-18  Bruno Haible  <bruno@clisp.org>
54888         sqrt: Make gl_FUNC_SQRT requirable.
54889         * m4/sqrt.m4: New file.
54890         * modules/sqrt (Files): Add it.
54891         (configure.ac): Invoke gl_FUNC_SQRT.
54893 2010-01-18  Bruno Haible  <bruno@clisp.org>
54895         New modules for common <math.h> functions.
54896         * m4/mathfunc.m4: New file.
54897         * modules/acos: New file.
54898         * modules/asin: New file.
54899         * modules/atan: New file.
54900         * modules/atan2: New file.
54901         * modules/cbrt: New file.
54902         * modules/copysign: New file.
54903         * modules/cos: New file.
54904         * modules/cosh: New file.
54905         * modules/erf: New file.
54906         * modules/erfc: New file.
54907         * modules/exp: New file.
54908         * modules/fabs: New file.
54909         * modules/fmod: New file.
54910         * modules/hypot: New file.
54911         * modules/j0: New file.
54912         * modules/j1: New file.
54913         * modules/jn: New file.
54914         * modules/ldexp: New file.
54915         * modules/lgamma: New file.
54916         * modules/log: New file.
54917         * modules/log10: New file.
54918         * modules/log1p: New file.
54919         * modules/logb: New file.
54920         * modules/modf: New file.
54921         * modules/nextafter: New file.
54922         * modules/pow: New file.
54923         * modules/remainder: New file.
54924         * modules/rint: New file.
54925         * modules/sin: New file.
54926         * modules/sinh: New file.
54927         * modules/sqrt: New file.
54928         * modules/tan: New file.
54929         * modules/tanh: New file.
54930         * modules/y0: New file.
54931         * modules/y1: New file.
54932         * modules/yn: New file.
54933         * doc/posix-functions/acos.texi: Mention the 'acos' module.
54934         * doc/posix-functions/asin.texi: Mention the 'asin' module.
54935         * doc/posix-functions/atan.texi: Mention the 'atan' module.
54936         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
54937         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
54938         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
54939         * doc/posix-functions/cos.texi: Mention the 'cos' module.
54940         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
54941         * doc/posix-functions/erf.texi: Mention the 'erf' module.
54942         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
54943         * doc/posix-functions/exp.texi: Mention the 'exp' module.
54944         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
54945         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54946         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
54947         * doc/posix-functions/j0.texi: Mention the 'j0' module.
54948         * doc/posix-functions/j1.texi: Mention the 'j1' module.
54949         * doc/posix-functions/jn.texi: Mention the 'jn' module.
54950         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
54951         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
54952         * doc/posix-functions/log.texi: Mention the 'log' module.
54953         * doc/posix-functions/log10.texi: Mention the 'log10' module.
54954         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
54955         * doc/posix-functions/logb.texi: Mention the 'logb' module.
54956         * doc/posix-functions/modf.texi: Mention the 'modf' module.
54957         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
54958         * doc/posix-functions/pow.texi: Mention the 'pow' module.
54959         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
54960         * doc/posix-functions/rint.texi: Mention the 'rint' module.
54961         * doc/posix-functions/sin.texi: Mention the 'sin' module.
54962         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
54963         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
54964         * doc/posix-functions/tan.texi: Mention the 'tan' module.
54965         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
54966         * doc/posix-functions/y0.texi: Mention the 'y0' module.
54967         * doc/posix-functions/y1.texi: Mention the 'y1' module.
54968         * doc/posix-functions/yn.texi: Mention the 'yn' module.
54970 2010-01-18  Jim Meyering  <meyering@redhat.com>
54972         ignore-value: relax license to LGPLv2+
54973         * modules/ignore-value (License): Relax to LGPLv2+.
54975         getdate: don't leak when TZ contains two or more '"'s
54976         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
54977         double quote in TZ after the first one.
54979         readtokens: do not leak internal token_lengths buffer
54980         * lib/readtokens.c (readtokens): Free the local, lengths,
54981         when the supplied "token_lengths" parameter is NULL.
54983 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54985         Fix a couple of missing LIBTHREAD link failures on AIX.
54986         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
54987         $(LIBTHREAD).
54988         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
54990         Link test-poll against INET_PTON_LIB.
54991         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
54992         for inet_pton on Solaris 10.
54994 2010-01-17  Bruno Haible  <bruno@clisp.org>
54996         unistdio/*-sprintf: Fix typo in module description.
54997         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
54998         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
54999         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
55000         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
55001         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
55002         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
55003         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
55004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55006 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55008         gnulib-tool: fix filelist for AIX, HP-UX ksh.
55009         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
55010         variables in shell case patterns, for AIX and HP-UX ksh.
55012         Split large sed scripts, for HP-UX sed.
55013         * modules/stdio: Split sed scripts around 50 sed commands,
55014         to avoid HP-UX limit of 99 commands, in the near future.
55015         * modules/string: Likewise.
55016         * modules/unistd: Likewise.
55018         gnulib-tool: avoid writing in the current directory.
55019         * gnulib-tool (func_emit_lib_Makefile_am)
55020         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
55021         not in the current directory, so concurrent gnulib-tool
55022         instances do not interfere.
55024 2010-01-16  Jim Meyering  <meyering@redhat.com>
55026         doc: update users.txt
55027         * users.txt: Add grep.
55028         (diffutils, gzip): Update URLs.
55030 2010-01-12  Bruno Haible  <bruno@clisp.org>
55032         posix_spawn: Avoid test failure on Cygwin.
55033         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
55034         characters.
55035         Reported by Simon Josefsson.
55037 2010-01-12  Bruno Haible  <bruno@clisp.org>
55039         * tests/test-cond.c (main): When skipping the test, show the reason.
55041 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55043         * lib/striconv.c (str_cd_iconv): Avoid if before free.
55045 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55047         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
55048         VC_LIST_ALWAYS_EXCLUDE_REGEX.
55050 2010-01-12  Eric Blake  <ebb9@byu.net>
55052         build: guarantee AS_VAR_IF
55053         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
55054         (gl_AS_VAR_IF): Move...
55055         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
55056         Reported by Simon Josefsson.
55058 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55060         * lib/stdio.in.h: Fix typo.
55062 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55064         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
55065         libgpg-error.
55067 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55069         * tests/test-xalloc-die.sh: Use $EXEEXT.
55071 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55072             Bruno Haible  <bruno@clisp.org>
55074         getlogin, getlogin_r: Avoid test failure.
55075         * tests/test-getlogin.c: Include <stdio.h>.
55076         (main): Skip the test when the function fails because stdin is not a
55077         tty.
55078         * tests/test-getlogin_r.c: Include <stdio.h>.
55079         (main): Skip the test when the function fails because stdin is not a
55080         tty.
55082 2010-01-11  Eric Blake  <ebb9@byu.net>
55084         tests: avoid more large file warnings
55085         * tests/test-fflush.c: Avoid warning about ftell use.
55086         * tests/test-fseek.c: Avoid warning about fseek use.
55088 2010-01-10  Bruno Haible  <bruno@clisp.org>
55090         nproc: Work better on Linux when /proc and /sys are not mounted.
55091         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
55092         as lower bound when, on glibc/Linux systems,
55093         sysconf (_SC_NPROCESSORS_CONF) returns 1.
55094         Suggested by Pádraig Brady <P@draigbrady.com>.
55095         Reported by Dmitry V. Levin <ldv@altlinux.org>.
55097         nproc: Refactor.
55098         * lib/nproc.c (num_processors_via_affinity_mask): New function,
55099         extracted from num_processors.
55100         (num_processors): Call it.
55102 2010-01-11  Jim Meyering  <meyering@redhat.com>
55104         utimecmp: avoid new warning from upcoming gcc-4.5.0
55105         * lib/utimecmp.c (BILLION): Define using #define rather than an
55106         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
55108 2010-01-11  Eric Blake  <ebb9@byu.net>
55110         math: add portability warnings for classification macros
55111         * modules/math (Depends-on): Add warn-on-use.
55112         (Makefile.am): Provide new substitutions.
55113         * m4/math_h.m4 (gl_MATH_H): Require inline.
55114         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
55115         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
55116         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
55117         implement warnings.
55119         unistd: warn on use of environ without module
55120         * modules/unistd (Depends-on): Add warn-on-use.
55121         (Makefile.am): Provide new substitutions.
55122         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
55123         * lib/unistd.in.h (environ): Wrap with a warning helper function.
55125         stdio: warn on suspicious uses
55126         * modules/stdio (Depends-on): Add warn-on-use.
55127         (Makefile.am): Provide new substitutions.
55128         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
55129         fseeko.
55130         * lib/stdio.in.h (gets): Always warn on use.
55131         (fseek, ftell): Adjust when warnings are issued, and honor
55132         _GL_NO_LARGE_FILES as a way to silence the warning.
55133         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
55134         any warning about large file offsets.
55135         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
55136         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
55137         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
55138         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
55139         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
55140         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
55141         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
55142         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
55144         warn-on-use: new module
55145         * modules/warn-on-use: New file.
55146         * build-aux/warn-on-use.h: Likewise.
55147         * m4/warn-on-use.m4: Likewise.
55148         * MODULES.html.sh (Support for building): Mention it.
55150 2010-01-10  Bruno Haible  <bruno@clisp.org>
55152         Tests for module 'unistr/u32-strdup'.
55153         * modules/unistr/u32-strdup-tests: New file.
55154         * tests/unistr/test-u32-strdup.c: New file.
55156         Tests for module 'unistr/u16-strdup'.
55157         * modules/unistr/u16-strdup-tests: New file.
55158         * tests/unistr/test-u16-strdup.c: New file.
55160         Tests for module 'unistr/u8-strdup'.
55161         * modules/unistr/u8-strdup-tests: New file.
55162         * tests/unistr/test-u8-strdup.c: New file.
55163         * tests/unistr/test-strdup.h: New file.
55165         Tests for module 'unistr/u32-strncmp'.
55166         * modules/unistr/u32-strncmp-tests: New file.
55167         * tests/unistr/test-u32-strncmp.c: New file.
55169         Tests for module 'unistr/u16-strncmp'.
55170         * modules/unistr/u16-strncmp-tests: New file.
55171         * tests/unistr/test-u16-strncmp.c: New file.
55173         Tests for module 'unistr/u8-strncmp'.
55174         * modules/unistr/u8-strncmp-tests: New file.
55175         * tests/unistr/test-u8-strncmp.c: New file.
55176         * tests/unistr/test-strncmp.h: New file.
55178         Tests for module 'unistr/u32-strcoll'.
55179         * modules/unistr/u32-strcoll-tests: New file.
55180         * tests/unistr/test-u32-strcoll.c: New file.
55182         Tests for module 'unistr/u16-strcoll'.
55183         * modules/unistr/u16-strcoll-tests: New file.
55184         * tests/unistr/test-u16-strcoll.c: New file.
55186         Tests for module 'unistr/u8-strcoll'.
55187         * modules/unistr/u8-strcoll-tests: New file.
55188         * tests/unistr/test-u8-strcoll.c: New file.
55190         Tests for module 'unistr/u32-strcmp'.
55191         * modules/unistr/u32-strcmp-tests: New file.
55192         * tests/unistr/test-u32-strcmp.c: New file.
55193         * tests/unistr/test-u32-strcmp.h: New file.
55195         Tests for module 'unistr/u16-strcmp'.
55196         * modules/unistr/u16-strcmp-tests: New file.
55197         * tests/unistr/test-u16-strcmp.c: New file.
55198         * tests/unistr/test-u16-strcmp.h: New file.
55200         Tests for module 'unistr/u8-strcmp'.
55201         * modules/unistr/u8-strcmp-tests: New file.
55202         * tests/unistr/test-u8-strcmp.c: New file.
55203         * tests/unistr/test-u8-strcmp.h: New file.
55204         * tests/unistr/test-strcmp.h: New file.
55206         Tests for module 'unistr/u32-strncat'.
55207         * modules/unistr/u32-strncat-tests: New file.
55208         * tests/unistr/test-u32-strncat.c: New file.
55210         Tests for module 'unistr/u16-strncat'.
55211         * modules/unistr/u16-strncat-tests: New file.
55212         * tests/unistr/test-u16-strncat.c: New file.
55214         Tests for module 'unistr/u8-strncat'.
55215         * modules/unistr/u8-strncat-tests: New file.
55216         * tests/unistr/test-u8-strncat.c: New file.
55217         * tests/unistr/test-strncat.h: New file.
55219         Tests for module 'unistr/u32-strcat'.
55220         * modules/unistr/u32-strcat-tests: New file.
55221         * tests/unistr/test-u32-strcat.c: New file.
55223         Tests for module 'unistr/u16-strcat'.
55224         * modules/unistr/u16-strcat-tests: New file.
55225         * tests/unistr/test-u16-strcat.c: New file.
55227         Tests for module 'unistr/u8-strcat'.
55228         * modules/unistr/u8-strcat-tests: New file.
55229         * tests/unistr/test-u8-strcat.c: New file.
55230         * tests/unistr/test-strcat.h: New file.
55232         Tests for module 'unistr/u32-stpncpy'.
55233         * modules/unistr/u32-stpncpy-tests: New file.
55234         * tests/unistr/test-u32-stpncpy.c: New file.
55236         Tests for module 'unistr/u16-stpncpy'.
55237         * modules/unistr/u16-stpncpy-tests: New file.
55238         * tests/unistr/test-u16-stpncpy.c: New file.
55240         Tests for module 'unistr/u8-stpncpy'.
55241         * modules/unistr/u8-stpncpy-tests: New file.
55242         * tests/unistr/test-u8-stpncpy.c: New file.
55243         * tests/unistr/test-stpncpy.h: New file.
55245         Tests for module 'unistr/u32-strncpy'.
55246         * modules/unistr/u32-strncpy-tests: New file.
55247         * tests/unistr/test-u32-strncpy.c: New file.
55249         Tests for module 'unistr/u16-strncpy'.
55250         * modules/unistr/u16-strncpy-tests: New file.
55251         * tests/unistr/test-u16-strncpy.c: New file.
55253         Tests for module 'unistr/u8-strncpy'.
55254         * modules/unistr/u8-strncpy-tests: New file.
55255         * tests/unistr/test-u8-strncpy.c: New file.
55256         * tests/unistr/test-strncpy.h: New file.
55258         Tests for module 'unistr/u32-stpcpy'.
55259         * modules/unistr/u32-stpcpy-tests: New file.
55260         * tests/unistr/test-u32-stpcpy.c: New file.
55262         Tests for module 'unistr/u16-stpcpy'.
55263         * modules/unistr/u16-stpcpy-tests: New file.
55264         * tests/unistr/test-u16-stpcpy.c: New file.
55266         Tests for module 'unistr/u8-stpcpy'.
55267         * modules/unistr/u8-stpcpy-tests: New file.
55268         * tests/unistr/test-u8-stpcpy.c: New file.
55269         * tests/unistr/test-stpcpy.h: New file.
55271         Tests for module 'unistr/u32-strcpy'.
55272         * modules/unistr/u32-strcpy-tests: New file.
55273         * tests/unistr/test-u32-strcpy.c: New file.
55275         Tests for module 'unistr/u16-strcpy'.
55276         * modules/unistr/u16-strcpy-tests: New file.
55277         * tests/unistr/test-u16-strcpy.c: New file.
55279         Tests for module 'unistr/u8-strcpy'.
55280         * modules/unistr/u8-strcpy-tests: New file.
55281         * tests/unistr/test-u8-strcpy.c: New file.
55282         * tests/unistr/test-strcpy.h: New file.
55284         Tests for module 'unistr/u32-strnlen'.
55285         * modules/unistr/u32-strnlen-tests: New file.
55286         * tests/unistr/test-u32-strnlen.c: New file.
55288         Tests for module 'unistr/u16-strnlen'.
55289         * modules/unistr/u16-strnlen-tests: New file.
55290         * tests/unistr/test-u16-strnlen.c: New file.
55292         Tests for module 'unistr/u8-strnlen'.
55293         * modules/unistr/u8-strnlen-tests: New file.
55294         * tests/unistr/test-u8-strnlen.c: New file.
55295         * tests/unistr/test-strnlen.h: New file.
55297         Tests for module 'unistr/u32-strlen'.
55298         * modules/unistr/u32-strlen-tests: New file.
55299         * tests/unistr/test-u32-strlen.c: New file.
55301         Tests for module 'unistr/u16-strlen'.
55302         * modules/unistr/u16-strlen-tests: New file.
55303         * tests/unistr/test-u16-strlen.c: New file.
55305         Tests for module 'unistr/u8-strlen'.
55306         * modules/unistr/u8-strlen-tests: New file.
55307         * tests/unistr/test-u8-strlen.c: New file.
55309         Tests for module 'unistr/u32-prev'.
55310         * modules/unistr/u32-prev-tests: New file.
55311         * tests/unistr/test-u32-prev.c: New file.
55313         Tests for module 'unistr/u16-prev'.
55314         * modules/unistr/u16-prev-tests: New file.
55315         * tests/unistr/test-u16-prev.c: New file.
55317         Tests for module 'unistr/u8-prev'.
55318         * modules/unistr/u8-prev-tests: New file.
55319         * tests/unistr/test-u8-prev.c: New file.
55321         Tests for module 'unistr/u32-next'.
55322         * modules/unistr/u32-next-tests: New file.
55323         * tests/unistr/test-u32-next.c: New file.
55325         Tests for module 'unistr/u16-next'.
55326         * modules/unistr/u16-next-tests: New file.
55327         * tests/unistr/test-u16-next.c: New file.
55329         Tests for module 'unistr/u8-next'.
55330         * modules/unistr/u8-next-tests: New file.
55331         * tests/unistr/test-u8-next.c: New file.
55333         Tests for module 'unistr/u32-strmbtouc'.
55334         * modules/unistr/u32-strmbtouc-tests: New file.
55335         * tests/unistr/test-u32-strmbtouc.c: New file.
55337         Tests for module 'unistr/u16-strmbtouc'.
55338         * modules/unistr/u16-strmbtouc-tests: New file.
55339         * tests/unistr/test-u16-strmbtouc.c: New file.
55341         Tests for module 'unistr/u8-strmbtouc'.
55342         * modules/unistr/u8-strmbtouc-tests: New file.
55343         * tests/unistr/test-u8-strmbtouc.c: New file.
55345         Tests for module 'unistr/u32-strmblen'.
55346         * modules/unistr/u32-strmblen-tests: New file.
55347         * tests/unistr/test-u32-strmblen.c: New file.
55349         Tests for module 'unistr/u16-strmblen'.
55350         * modules/unistr/u16-strmblen-tests: New file.
55351         * tests/unistr/test-u16-strmblen.c: New file.
55353         Tests for module 'unistr/u8-strmblen'.
55354         * modules/unistr/u8-strmblen-tests: New file.
55355         * tests/unistr/test-u8-strmblen.c: New file.
55357         Tests for module 'unistr/u32-cpy-alloc'.
55358         * modules/unistr/u32-cpy-alloc-tests: New file.
55359         * tests/unistr/test-u32-cpy-alloc.c: New file.
55361         Tests for module 'unistr/u16-cpy-alloc'.
55362         * modules/unistr/u16-cpy-alloc-tests: New file.
55363         * tests/unistr/test-u16-cpy-alloc.c: New file.
55365         Tests for module 'unistr/u8-cpy-alloc'.
55366         * modules/unistr/u8-cpy-alloc-tests: New file.
55367         * tests/unistr/test-u8-cpy-alloc.c: New file.
55368         * tests/unistr/test-cpy-alloc.h: New file.
55370         Tests for module 'unistr/u32-mbsnlen'.
55371         * modules/unistr/u32-mbsnlen-tests: New file.
55372         * tests/unistr/test-u32-mbsnlen.c: New file.
55374         Tests for module 'unistr/u16-mbsnlen'.
55375         * modules/unistr/u16-mbsnlen-tests: New file.
55376         * tests/unistr/test-u16-mbsnlen.c: New file.
55378         Tests for module 'unistr/u8-mbsnlen'.
55379         * modules/unistr/u8-mbsnlen-tests: New file.
55380         * tests/unistr/test-u8-mbsnlen.c: New file.
55382         Tests for module 'unistr/u32-chr'.
55383         * modules/unistr/u32-chr-tests: New file.
55384         * tests/unistr/test-u32-chr.c: New file.
55386         Tests for module 'unistr/u16-chr'.
55387         * modules/unistr/u16-chr-tests: New file.
55388         * tests/unistr/test-u16-chr.c: New file.
55390         Tests for module 'unistr/u8-chr'.
55391         * modules/unistr/u8-chr-tests: New file.
55392         * tests/unistr/test-u8-chr.c: New file.
55393         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
55395         Tests for module 'unistr/u32-cmp2'.
55396         * modules/unistr/u32-cmp2-tests: New file.
55397         * tests/unistr/test-u32-cmp2.c: New file.
55399         Tests for module 'unistr/u16-cmp2'.
55400         * modules/unistr/u16-cmp2-tests: New file.
55401         * tests/unistr/test-u16-cmp2.c: New file.
55403         Tests for module 'unistr/u8-cmp2'.
55404         * modules/unistr/u8-cmp2-tests: New file.
55405         * tests/unistr/test-u8-cmp2.c: New file.
55406         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
55408         Tests for module 'unistr/u32-cmp'.
55409         * modules/unistr/u32-cmp-tests: New file.
55410         * tests/unistr/test-u32-cmp.c: New file.
55412         Tests for module 'unistr/u16-cmp'.
55413         * modules/unistr/u16-cmp-tests: New file.
55414         * tests/unistr/test-u16-cmp.c: New file.
55416         Tests for module 'unistr/u8-cmp'.
55417         * modules/unistr/u8-cmp-tests: New file.
55418         * tests/unistr/test-u8-cmp.c: New file.
55419         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
55421         Tests for module 'unistr/u32-set'.
55422         * modules/unistr/u32-set-tests: New file.
55423         * tests/unistr/test-u32-set.c: New file.
55425         Tests for module 'unistr/u16-set'.
55426         * modules/unistr/u16-set-tests: New file.
55427         * tests/unistr/test-u16-set.c: New file.
55429         Tests for module 'unistr/u8-set'.
55430         * modules/unistr/u8-set-tests: New file.
55431         * tests/unistr/test-u8-set.c: New file.
55432         * tests/unistr/test-set.h: New file.
55434         Tests for module 'unistr/u32-move'.
55435         * modules/unistr/u32-move-tests: New file.
55436         * tests/unistr/test-u32-move.c: New file.
55438         Tests for module 'unistr/u16-move'.
55439         * modules/unistr/u16-move-tests: New file.
55440         * tests/unistr/test-u16-move.c: New file.
55442         Tests for module 'unistr/u8-move'.
55443         * modules/unistr/u8-move-tests: New file.
55444         * tests/unistr/test-u8-move.c: New file.
55445         * tests/unistr/test-move.h: New file.
55447         Tests for module 'unistr/u32-cpy'.
55448         * modules/unistr/u32-cpy-tests: New file.
55449         * tests/unistr/test-u32-cpy.c: New file.
55451         Tests for module 'unistr/u16-cpy'.
55452         * modules/unistr/u16-cpy-tests: New file.
55453         * tests/unistr/test-u16-cpy.c: New file.
55455         Tests for module 'unistr/u8-cpy'.
55456         * modules/unistr/u8-cpy-tests: New file.
55457         * tests/unistr/test-u8-cpy.c: New file.
55458         * tests/unistr/test-cpy.h: New file.
55460 2010-01-09  Bruno Haible  <bruno@clisp.org>
55462         Tests for module 'unistr/u32-uctomb'.
55463         * modules/unistr/u32-uctomb-tests: New file.
55464         * tests/unistr/test-u32-uctomb.c: New file.
55466         Tests for module 'unistr/u16-uctomb'.
55467         * modules/unistr/u16-uctomb-tests: New file.
55468         * tests/unistr/test-u16-uctomb.c: New file.
55470         Tests for module 'unistr/u8-uctomb'.
55471         * modules/unistr/u8-uctomb-tests: New file.
55472         * tests/unistr/test-u8-uctomb.c: New file.
55474         Tests for module 'unistr/u32-mbtoucr'.
55475         * modules/unistr/u32-mbtoucr-tests: New file.
55476         * tests/unistr/test-u32-mbtoucr.c: New file.
55478         Tests for module 'unistr/u16-mbtoucr'.
55479         * modules/unistr/u16-mbtoucr-tests: New file.
55480         * tests/unistr/test-u16-mbtoucr.c: New file.
55482         Tests for module 'unistr/u8-mbtoucr'.
55483         * modules/unistr/u8-mbtoucr-tests: New file.
55484         * tests/unistr/test-u8-mbtoucr.c: New file.
55486         Tests for module 'unistr/u32-mbtouc'.
55487         * modules/unistr/u32-mbtouc-tests: New file.
55488         * tests/unistr/test-u32-mbtouc.c: New file.
55490         Tests for module 'unistr/u16-mbtouc'.
55491         * modules/unistr/u16-mbtouc-tests: New file.
55492         * tests/unistr/test-u16-mbtouc.c: New file.
55494         Tests for module 'unistr/u8-mbtouc'.
55495         * modules/unistr/u8-mbtouc-tests: New file.
55496         * tests/unistr/test-u8-mbtouc.c: New file.
55498         Tests for module 'unistr/u32-mbtouc-unsafe'.
55499         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
55500         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
55501         * tests/unistr/test-u32-mbtouc.h: New file.
55503         Tests for module 'unistr/u16-mbtouc-unsafe'.
55504         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
55505         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
55506         * tests/unistr/test-u16-mbtouc.h: New file.
55508         Tests for module 'unistr/u8-mbtouc-unsafe'.
55509         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
55510         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
55511         * tests/unistr/test-u8-mbtouc.h: New file.
55513         Tests for module 'unistr/u32-mblen'.
55514         * modules/unistr/u32-mblen-tests: New file.
55515         * tests/unistr/test-u32-mblen.c: New file.
55517         Tests for module 'unistr/u16-mblen'.
55518         * modules/unistr/u16-mblen-tests: New file.
55519         * tests/unistr/test-u16-mblen.c: New file.
55521         Tests for module 'unistr/u8-mblen'.
55522         * modules/unistr/u8-mblen-tests: New file.
55523         * tests/unistr/test-u8-mblen.c: New file.
55525         Tests for module 'unistr/u32-to-u16'.
55526         * modules/unistr/u32-to-u16-tests: New file.
55527         * tests/unistr/test-u32-to-u16.c: New file.
55529         Tests for module 'unistr/u32-to-u8'.
55530         * modules/unistr/u32-to-u8-tests: New file.
55531         * tests/unistr/test-u32-to-u8.c: New file.
55533         Tests for module 'unistr/u16-to-u32'.
55534         * modules/unistr/u16-to-u32-tests: New file.
55535         * tests/unistr/test-u16-to-u32.c: New file.
55537         Tests for module 'unistr/u16-to-u8'.
55538         * modules/unistr/u16-to-u8-tests: New file.
55539         * tests/unistr/test-u16-to-u8.c: New file.
55541         Tests for module 'unistr/u8-to-u32'.
55542         * modules/unistr/u8-to-u32-tests: New file.
55543         * tests/unistr/test-u8-to-u32.c: New file.
55545         Tests for module 'unistr/u8-to-u16'.
55546         * modules/unistr/u8-to-u16-tests: New file.
55547         * tests/unistr/test-u8-to-u16.c: New file.
55549         Tests for module 'unistr/u32-check'.
55550         * modules/unistr/u32-check-tests: New file.
55551         * tests/unistr/test-u32-check.c: New file.
55553         Tests for module 'unistr/u16-check'.
55554         * modules/unistr/u16-check-tests: New file.
55555         * tests/unistr/test-u16-check.c: New file.
55557         Tests for module 'unistr/u8-check'.
55558         * modules/unistr/u8-check-tests: New file.
55559         * tests/unistr/test-u8-check.c: New file.
55561         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
55562         (category_equals): New function.
55563         (main): Add more tests.
55564         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
55566         * tests/unictype/test-bidi_byname.c (main): Add more tests.
55568 2010-01-10  Bruno Haible  <bruno@clisp.org>
55570         unistr/u*-strcoll: Try harder to distinguish different strings.
55571         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
55572         compare s1 and s2 to see if they are different.
55574 2010-01-10  Bruno Haible  <bruno@clisp.org>
55576         unistr/u*-stpncpy: Fix the return value.
55577         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
55578         description of the return value consistent with stpncpy in glibc.
55579         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
55580         written non-NUL unit.
55582 2010-01-10  Bruno Haible  <bruno@clisp.org>
55584         unistr/u*-next: Add missing dependencies.
55585         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
55586         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
55587         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
55589 2010-01-10  Bruno Haible  <bruno@clisp.org>
55591         unistr/u8-mbsnlen: Fix return value for incomplete character.
55592         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
55593         u8_mblen.
55594         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55595         Remove unistr/u8-mblen.
55596         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55597         u16_mblen.
55598         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55599         Remove unistr/u16-mblen.
55601 2010-01-10  Bruno Haible  <bruno@clisp.org>
55603         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55604         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55605         Reported by Brian Gough <bjg@gnu.org> and
55606         Chris Clayton <chris2553@googlemail.com> via
55607         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55609 2010-01-09  Bruno Haible  <bruno@clisp.org>
55611         unistr/u16-to-u32: Reject invalid input.
55612         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55613         u16_mbtouc.
55614         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55615         Remove unistr/u16-mbtouc.
55617         unistr/u16-to-u8: Reject invalid input.
55618         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55619         u16_mbtouc.
55620         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55621         Remove unistr/u16-mbtouc.
55623         unistr/u8-to-u32: Reject invalid input.
55624         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55625         u8_mbtouc.
55626         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55627         Remove unistr/u8-mbtouc.
55629         unistr/u8-to-u16: Reject invalid input.
55630         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55631         u8_mbtouc.
55632         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55633         Remove unistr/u8-mbtouc.
55635 2010-01-09  Bruno Haible  <bruno@clisp.org>
55637         Tests for module 'getlogin'.
55638         * modules/getlogin-tests: New file.
55639         * tests/test-getlogin.c: New file.
55641         New module 'getlogin'.
55642         * lib/unistd.in.h (getlogin): New declaration.
55643         * lib/getlogin.c: New file.
55644         * m4/getlogin.m4: New file.
55645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55646         HAVE_GETLOGIN.
55647         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55648         HAVE_GETLOGIN.
55649         * modules/getlogin: New file.
55650         * doc/posix-functions/getlogin.texi: Mention the new module.
55651         Reported by John W. Eaton <jwe@gnu.org>.
55653 2010-01-09  Bruno Haible  <bruno@clisp.org>
55655         getlogin_r: Support for native Windows.
55656         * lib/getlogin_r.c: Include <windows.h>
55657         (getlogin_r): Implement for native Windows.
55658         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55659         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55660         via John W. Eaton <jwe@gnu.org>.
55662 2010-01-09  Bruno Haible  <bruno@clisp.org>
55664         getlogin_r: Small fixes.
55665         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55666         succeeds.
55667         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55668         before testing whether getlogin_r is declared. No need to set
55669         HAVE_DECL_GETLOGIN_R to 1.
55670         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55672 2010-01-09  Bruno Haible  <bruno@clisp.org>
55674         * lib/unistd.in.h (getlogin_r): Add comment.
55676 2010-01-09  Bruno Haible  <bruno@clisp.org>
55678         Tests for module 'getlogin_r'.
55679         * modules/getlogin_r-tests: New file.
55680         * tests/test-getlogin_r.c: New file.
55682 2010-01-09  Jim Meyering  <meyering@redhat.com>
55684         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55685         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55686         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55688 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55690         * lib/dup2.c (rpl_dup2): Improve comment.
55692 2010-01-08  Eric Blake  <ebb9@byu.net>
55694         maint.mk: allow packages to add makefile @@ exceptions
55695         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55696         (sc_makefile_check): Rename...
55697         (sc_makefile_at_at_check): ...to this, and use hook.
55699         dup2: work around mingw bug
55700         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55701         Reported by Simon Josefsson.
55703 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55705         glob: Fix C++ compilation.
55706         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55707         C++.
55709 2010-01-07  Bruno Haible  <bruno@clisp.org>
55711         Fix indentation of wctype.in.h, broken since 2007-01-06.
55712         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55714 2010-01-07  Bruno Haible  <bruno@clisp.org>
55716         mbslen: Avoid collision with system function.
55717         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55718         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55719         * m4/mbslen.m4: New file.
55720         * modules/mbslen (Files): Add it.
55721         (configure.ac): Invoke gl_MBSLEN.
55722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55723         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55724         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55725         via Ian Beckwith <ianb@erislabs.net>.
55727 2010-01-07  Bruno Haible  <bruno@clisp.org>
55729         dirent: Document the last fix.
55730         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55732 2010-01-07  Bruno Haible  <bruno@clisp.org>
55734         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55735         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55736         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55737         va_list are defined.
55738         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55739         Reported by Eric Blake.
55741 2010-01-07  Bruno Haible  <bruno@clisp.org>
55743         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
55744         * modules/xlist (Depends-on): Add 'list',
55745         * modules/xoset (Depends-on): Add 'oset'.
55746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55748 2010-01-07  Bruno Haible  <bruno@clisp.org>
55750         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
55751         * doc/posix-functions/strncasecmp.texi: Likewise.
55753 2010-01-07  Bruno Haible  <bruno@clisp.org>
55755         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
55757 2010-01-07  John W. Eaton  <jwe@octave.org>
55759         wctype: allow C++ use
55760         * lib/wctype.in.h: Add extern "C" block for C++.
55762 2010-01-06  Eric Blake  <ebb9@byu.net>
55764         maint.mk: detect incorrect GFDL usage
55765         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
55767 2010-01-06  Jim Meyering  <meyering@redhat.com>
55768         and Eric Blake  <ebb9@byu.net>
55770         maint.mk: ignore multi-line copyright in NEWS
55771         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
55773 2010-01-06  Eric Blake  <ebb9@byu.net>
55775         select: add missing dependency
55776         * modules/select-tests (Depends-on): Move sockets dependency...
55777         * modules/select (Depends-on): ...here.
55778         Reported by Ian Beckwith.
55780         doc: regenerate INSTALL
55781         * doc/INSTALL: Reflect recent autoconf update.
55782         * doc/INSTALL.ISO: Likewise.
55783         * doc/INSTALL.UTF-8: Likewise.
55785         pread: fix compilation on glibc
55786         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
55787         Reported by Ralf Wildenhues.
55789         dirent: fix test failure
55790         * lib/dirent.in.h (includes): Guarantee ino_t.
55791         Reported by Ralf Wildenhues.
55793 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
55795         linkat, renameat: avoid bad free
55796         * lib/at-func2.c (at_func2): Fix typo.
55797         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
55799 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55801         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
55802         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
55803         to avoid failure of symlink test later.
55805 2010-01-06  Eric Blake  <ebb9@byu.net>
55807         stdio, unistd: guarantee ssize_t
55808         * lib/unistd.in.h (includes): Ensure that types required by POSIX
55809         2008 are exposed when needed.
55810         * lib/stdio.in.h (includes): Likewise.
55811         Reported by Ralf Wildenhues.
55813 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
55815         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
55816         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
55817         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
55819 2010-01-06  Jim Meyering  <meyering@redhat.com>
55821         readtokens: this module *does* require xalloc.h
55822         It uses only functions that were omitted by the old syntax-check rule.
55823         * lib/readtokens.c: Include "xalloc.h" once again.
55824         * modules/readtokens (Depends-on): Add xalloc.
55825         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
55827 2010-01-05  Eric Blake  <ebb9@byu.net>
55829         maint: support 'make announcement' from a VPATH build
55830         * top/maint.mk (announcement): Look for correct NEWS file.
55832 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
55834         utimens (fdutimens): ignore a negative FD, per contract
55835         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
55836         when we have a valid file descriptor.  Otherwise, using a brand
55837         new glibc (with just-patched futimens that now fails with EBADF)
55838         would cause this function to fail with ENOSYS.
55839         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
55840         See also http://bugzilla.redhat.com/552320.
55842 2010-01-05  Eric Blake  <ebb9@byu.net>
55844         strcase: document what it provides
55845         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
55846         gnulib module.
55847         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
55848         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
55850 2010-01-05  Jim Meyering  <meyering@redhat.com>
55852         maint: remove useless inclusions of "xalloc.h"
55853         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
55854         * lib/readtokens.c: Likewise.
55855         * lib/same.c: Likewise.
55856         * modules/getloadavg (Depends-on): Remove xalloc.
55857         * modules/readtokens: Likewise.
55858         * modules/same: Likewise.
55860         maint.mk: include 4 more function names in alloca.h-checking regexp
55861         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55862         regexp.  Before, we would give a false-positive (saying alloca.h
55863         is included unnecessarily) when the only uses involved omitted symbols.
55865         xalloc.h: use consistent formatting
55866         * lib/xalloc.h: Move declarations to start in the first column.
55868 2010-01-05  Eric Blake  <ebb9@byu.net>
55870         mkdir: avoid xalloc
55871         * lib/mkdir.c (includes): Drop unused header.
55872         Reported by John W. Eaton.
55874 2010-01-04  Jim Meyering  <meyering@redhat.com>
55876         nl_langinfo: avoid configure-time syntax error
55877         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55878         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55879         the empty string.  Don't let that provoke a shell syntax error.
55881         regcomp, regexec, fnmatch: avoid array bounds read error
55882         * lib/regcomp.c (build_equiv_class): From glibc:
55883         Use only the low 24 bits of a findidx return value as an index
55884         into the weights array.  Patch by Ulrich Drepper:
55885         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55886         * lib/regexec.c (check_node_accept_bytes): Likewise.
55887         * lib/fnmatch_loop.c (FCT): Likewise.
55889         regcomp: skip collseq lookup when there are no rules
55890         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55891         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55893         regcomp: recognize ill-formed { } expressions
55894         * lib/regcomp.c (parse_dup_op): From glibc:
55895         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55897         regcomp: fix typo in comment
55898         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55899         s/satisfy/satisfies/.
55901         regcomp: sync from glibc: remove dead store
55902         * lib/regcomp.c (duplicate_node_closure): Remove useless
55903         search_duplicated_node call and dead store.
55905         regcomp: sync from glibc; always use nl_langinfo
55906         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55907         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55908         * modules/regex (Depends-on): Add nl_langinfo.
55910 2010-01-04  Eric Blake  <ebb9@byu.net>
55912         fdopendir: fix configure test
55913         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55915 2010-01-01  Bruno Haible  <bruno@clisp.org>
55917         wchar: Remove unused configure check.
55918         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
55920 2010-01-01  Eric Blake  <ebb9@byu.net>
55922         headers: make check of system header explicit
55923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
55924         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
55925         ourselves.
55926         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55927         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55929         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
55930         internals.
55931         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
55932         missing.
55933         Suggested by Bruno Haible.
55935 2010-01-01  Jim Meyering  <meyering@redhat.com>
55937         ChangeLog: tweak to eliminate unnecessary copyright line
55938         * ChangeLog: Remove a copyright line that was mistakenly updated
55939         by today's update-copyright run.  Reported by Eric Blake.
55941         test-update-copyright: don't let envvar setting cause test failure
55942         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55944 2010-01-01  Bruno Haible  <bruno@clisp.org>
55946         localename: Avoid gcc warning.
55947         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
55948         function if it is not used.
55950 2010-01-01  Jim Meyering  <meyering@redhat.com>
55952         update nearly all FSF copyright year lists to include 2010
55953         Use the same procedure as for 2009, outlined in
55954         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
55956         version-etc: set COPYRIGHT_YEAR to 2010
55957         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
55959 2009-12-31  Eric Blake  <ebb9@byu.net>
55961         doc: correct availability of cygwin 1.5.x getopt
55962         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
55963         variables.
55964         * doc/posix-functions/opterr.texi (opterr): Likewise.
55965         * doc/posix-functions/optind.texi (optind): Likewise.
55966         * doc/posix-functions/optopt.texi (optopt): Likewise.
55967         * doc/posix-functions/tzname.texi (tzname): Likewise.
55969         openat: update maintainer
55970         * modules/openat (Maintainer): Add myself.
55972         utimens: avoid shadowing warning
55973         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
55974         buffers into one, to avoid shadowing, as well as avoiding a
55975         redundant stat.
55976         Reported by Jim Meyering.
55978         test-dup2: avoid compiler warning
55979         * tests/test-dup2.c (is_inheritable): Only define if used.
55981 2010-01-01  Bruno Haible  <bruno@clisp.org>
55983         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
55984         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
55985         defined, use wctomb instead of wcrtomb.
55987 2010-01-01  Bruno Haible  <bruno@clisp.org>
55989         iconv: Reject native Solaris iconv.
55990         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
55991         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
55993 2009-12-31  Bruno Haible  <bruno@clisp.org>
55995         * tests/test-signal.c (main): Remove test of 'SIG'.
55997 2009-12-31  Bruno Haible  <bruno@clisp.org>
55999         spawn: Fix incomplete fix.
56000         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56001         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56002         warnings for GNULIB_POSIXCHECK again.
56003         Reported by Eric Blake.
56005 2009-12-31  Bruno Haible  <bruno@clisp.org>
56007         Avoid namespace pollution on glibc systems.
56008         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
56009         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
56010         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
56011         glibc systems.
56013 2009-12-31  Bruno Haible  <bruno@clisp.org>
56015         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
56016         (gl_REPLACE_WCHAR_H): Turn into a no-op.
56017         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
56018         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56019         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56020         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56021         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56023 2009-12-31  Bruno Haible  <bruno@clisp.org>
56025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
56026         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
56027         afterwards.
56029 2009-12-31  Bruno Haible  <bruno@clisp.org>
56031         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
56032         SYS_UTSNAME_H.
56034 2009-12-31  Bruno Haible  <bruno@clisp.org>
56036         spawn: Fix misapplied patch.
56037         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56038         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56039         warnings for GNULIB_POSIXCHECK.
56041 2009-12-31  Bruno Haible  <bruno@clisp.org>
56043         times: Update after sys_times changed.
56044         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
56045         * modules/times (Files): Add it.
56046         (configure.ac): Invoke gl_FUNC_TIMES.
56048 2009-12-31  Bruno Haible  <bruno@clisp.org>
56050         Use AC_C_INLINE where necessary.
56051         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
56052         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56054         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56055         * m4/mbfile.m4 (gl_MBFILE): Likewise.
56056         * m4/mbiter.m4 (gl_MBITER): Likewise.
56057         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56058         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
56059         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
56060         * modules/u64 (configure.ac): Likewise.
56062 2009-12-31  Bruno Haible  <bruno@clisp.org>
56064         Use AC_C_INLINE instead of module 'inline' where possible.
56065         * modules/inline (Description): Clarify purpose.
56066         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
56067         * modules/count-one-bits (Depends-on): Remove inline.
56068         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
56069         * modules/openat (Depends-on): Remove inline.
56070         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
56071         instead of depending on module 'inline'.
56072         * modules/filevercmp (Depends-on, configure.ac): Likewise.
56073         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
56074         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
56075         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
56076         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
56077         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
56078         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
56079         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
56080         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
56081         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
56082         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
56083         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
56084         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
56085         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
56086         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
56087         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
56088         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
56089         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
56090         Likewise.
56091         * modules/unictype/property-ascii-hex-digit (Depends-on,
56092         configure.ac): Likewise.
56093         * modules/unictype/property-bidi-arabic-digit (Depends-on,
56094         configure.ac): Likewise.
56095         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
56096         configure.ac): Likewise.
56097         * modules/unictype/property-bidi-block-separator (Depends-on,
56098         configure.ac): Likewise.
56099         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
56100         configure.ac): Likewise.
56101         * modules/unictype/property-bidi-common-separator (Depends-on,
56102         configure.ac): Likewise.
56103         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
56104         Likewise.
56105         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
56106         configure.ac): Likewise.
56107         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
56108         configure.ac): Likewise.
56109         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
56110         configure.ac): Likewise.
56111         * modules/unictype/property-bidi-european-digit (Depends-on,
56112         configure.ac): Likewise.
56113         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
56114         configure.ac): Likewise.
56115         * modules/unictype/property-bidi-left-to-right (Depends-on,
56116         configure.ac): Likewise.
56117         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
56118         configure.ac): Likewise.
56119         * modules/unictype/property-bidi-other-neutral (Depends-on,
56120         configure.ac): Likewise.
56121         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
56122         Likewise.
56123         * modules/unictype/property-bidi-segment-separator (Depends-on,
56124         configure.ac): Likewise.
56125         * modules/unictype/property-bidi-whitespace (Depends-on,
56126         configure.ac): Likewise.
56127         * modules/unictype/property-combining (Depends-on, configure.ac):
56128         Likewise.
56129         * modules/unictype/property-composite (Depends-on, configure.ac):
56130         Likewise.
56131         * modules/unictype/property-currency-symbol (Depends-on,
56132         configure.ac): Likewise.
56133         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
56134         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
56135         Likewise.
56136         * modules/unictype/property-default-ignorable-code-point (Depends-on,
56137         configure.ac): Likewise.
56138         * modules/unictype/property-deprecated (Depends-on, configure.ac):
56139         Likewise.
56140         * modules/unictype/property-diacritic (Depends-on, configure.ac):
56141         Likewise.
56142         * modules/unictype/property-extender (Depends-on, configure.ac):
56143         Likewise.
56144         * modules/unictype/property-format-control (Depends-on, configure.ac):
56145         Likewise.
56146         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
56147         Likewise.
56148         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
56149         Likewise.
56150         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
56151         Likewise.
56152         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
56153         Likewise.
56154         * modules/unictype/property-hyphen (Depends-on, configure.ac):
56155         Likewise.
56156         * modules/unictype/property-id-continue (Depends-on, configure.ac):
56157         Likewise.
56158         * modules/unictype/property-id-start (Depends-on, configure.ac):
56159         Likewise.
56160         * modules/unictype/property-ideographic (Depends-on, configure.ac):
56161         Likewise.
56162         * modules/unictype/property-ids-binary-operator (Depends-on,
56163         configure.ac): Likewise.
56164         * modules/unictype/property-ids-trinary-operator (Depends-on,
56165         configure.ac): Likewise.
56166         * modules/unictype/property-ignorable-control (Depends-on,
56167         configure.ac): Likewise.
56168         * modules/unictype/property-iso-control (Depends-on, configure.ac):
56169         Likewise.
56170         * modules/unictype/property-join-control (Depends-on, configure.ac):
56171         Likewise.
56172         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
56173         Likewise.
56174         * modules/unictype/property-line-separator (Depends-on, configure.ac):
56175         Likewise.
56176         * modules/unictype/property-logical-order-exception (Depends-on,
56177         configure.ac): Likewise.
56178         * modules/unictype/property-lowercase (Depends-on, configure.ac):
56179         Likewise.
56180         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
56181         * modules/unictype/property-non-break (Depends-on, configure.ac):
56182         Likewise.
56183         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
56184         Likewise.
56185         * modules/unictype/property-numeric (Depends-on, configure.ac):
56186         Likewise.
56187         * modules/unictype/property-other-alphabetic (Depends-on,
56188         configure.ac): Likewise.
56189         * modules/unictype/property-other-default-ignorable-code-point
56190         (Depends-on, configure.ac): Likewise.
56191         * modules/unictype/property-other-grapheme-extend (Depends-on,
56192         configure.ac): Likewise.
56193         * modules/unictype/property-other-id-continue (Depends-on,
56194         configure.ac): Likewise.
56195         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
56196         Likewise.
56197         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
56198         Likewise.
56199         * modules/unictype/property-other-math (Depends-on, configure.ac):
56200         Likewise.
56201         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
56202         Likewise.
56203         * modules/unictype/property-paired-punctuation (Depends-on,
56204         configure.ac): Likewise.
56205         * modules/unictype/property-paragraph-separator (Depends-on,
56206         configure.ac): Likewise.
56207         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
56208         Likewise.
56209         * modules/unictype/property-pattern-white-space (Depends-on,
56210         configure.ac): Likewise.
56211         * modules/unictype/property-private-use (Depends-on, configure.ac):
56212         Likewise.
56213         * modules/unictype/property-punctuation (Depends-on, configure.ac):
56214         Likewise.
56215         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
56216         Likewise.
56217         * modules/unictype/property-radical (Depends-on, configure.ac):
56218         Likewise.
56219         * modules/unictype/property-sentence-terminal (Depends-on,
56220         configure.ac): Likewise.
56221         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
56222         Likewise.
56223         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
56224         * modules/unictype/property-terminal-punctuation (Depends-on,
56225         configure.ac): Likewise.
56226         * modules/unictype/property-titlecase (Depends-on, configure.ac):
56227         Likewise.
56228         * modules/unictype/property-unassigned-code-value (Depends-on,
56229         configure.ac): Likewise.
56230         * modules/unictype/property-unified-ideograph (Depends-on,
56231         configure.ac): Likewise.
56232         * modules/unictype/property-uppercase (Depends-on, configure.ac):
56233         Likewise.
56234         * modules/unictype/property-variation-selector (Depends-on,
56235         configure.ac): Likewise.
56236         * modules/unictype/property-white-space (Depends-on, configure.ac):
56237         Likewise.
56238         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
56239         Likewise.
56240         * modules/unictype/property-xid-start (Depends-on, configure.ac):
56241         Likewise.
56242         * modules/unictype/property-zero-width (Depends-on, configure.ac):
56243         Likewise.
56244         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
56245         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
56246         Likewise.
56248 2009-12-31  Bruno Haible  <bruno@clisp.org>
56250         Remove unnecessary AC_C_INLINE invocation.
56251         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
56252         since 2009-08-21.
56254 2009-12-31  Jim Meyering  <meyering@redhat.com>
56256         maint.mk: don't require explicit gpg_key_ID in cfg.mk
56257         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
56258         With this change, we can all remove the gpg_key_ID = ... definition
56259         from our respective cfg.mk files.
56261         maint.mk: create announcement template in ~/, not in /tmp
56262         * top/maint.mk (emit_upload_commands): Adjust.
56263         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
56264         Remove temporary file, .ci-msg.
56266 2009-12-31  Eric Blake  <ebb9@byu.net>
56268         link-warning: always build headers with link warnings
56269         * modules/arpa_inet (Makefile.am): Always build replacement
56270         header.
56271         * modules/ctype (Makefile.am): Likewise.
56272         * modules/dirent (Makefile.am): Likewise.
56273         * modules/inttypes (Makefile.am): Likewise.
56274         * modules/langinfo (Makefile.am): Likewise.
56275         * modules/locale (Makefile.am): Likewise.
56276         * modules/spawn (Makefile.am): Likewise.
56277         * modules/sys_file (Makefile.am): Likewise.
56278         * modules/sys_ioctl (Makefile.am): Likewise.
56279         * modules/sys_select (Makefile.am): Likewise.
56280         * modules/sys_socket (Makefile.am): Likewise.
56281         * modules/sys_times (Makefile.am): Likewise.
56282         * modules/sys_utsname (Makefile.am): Likewise.
56283         * modules/sys_wait (Makefile.am): Likewise.
56284         * modules/wchar (Makefile.am): Likewise.
56285         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
56286         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
56287         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
56288         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
56289         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
56290         Likewise.
56291         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56292         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56293         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
56294         Likewise.
56295         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
56296         Likewise.
56297         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56298         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
56299         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
56300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56301         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56302         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56303         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56304         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
56305         (gl_WCHAR_H_DEFAULTS): Likewise.
56307 2009-12-31  Eric Blake  <ebb9@byu.net>
56309         signal, spawn: use link warnings
56310         * lib/signal.in.h (sigset_t): Make unconditional.
56311         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
56312         (sigpending, sigprocmask, sigaction): Add link warnings.
56313         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
56314         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
56315         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
56316         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
56317         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
56318         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
56319         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
56320         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
56321         (posix_spawn_file_actions_destroy)
56322         (posix_spawn_file_actions_addopen)
56323         (posix_spawn_file_actions_addclose)
56324         (posix_spawn_file_actions_adddup2): Likewise.
56325         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
56326         * tests/test-signal.c (main): Enhance test.
56328         spawn: improve wrapper support
56329         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
56330         (gl_SPAWN_H_DEFAULTS): New defaults.
56331         * modules/spawn (Makefile.am): Substitute them.
56332         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
56333         Only declare if missing or broken.
56335         sys_times, sys_utsname: use include_next
56336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
56337         header.
56338         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
56339         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56340         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56341         * modules/sys_times (Depends-on): Add include_next.
56342         (Makefile.am): Substitute additional values.
56343         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56344         * lib/sys_times.in.h (includes): Include native header, if
56345         available.
56346         * lib/sys_utsname.in.h (includes): Likewise.
56347         * tests/test-sys_times.c (main): Enhance test.
56349         fdutimensat: revert prior patch
56350         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
56351         utimens.h.
56352         Reported by Bruno Haible.
56354 2009-12-30  Eric Blake  <ebb9@byu.net>
56356         sys_wait: drop link-warning dependency
56357         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
56358         link-warning efforts.
56359         * lib/sys_wait.in.h: Likewise.
56361         fdutimensat: remove bogus dependency
56362         * modules/fdutimensat (Depends-on): Drop inline.
56364         unistd: fix typo
56365         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
56367 2009-12-30  Bruno Haible  <bruno@clisp.org>
56369         Fix compilation error with Solaris cc.
56370         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
56371         * lib/unicase/u16-is-invariant.c: Likewise.
56372         * lib/unicase/u32-is-invariant.c: Likewise.
56373         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56375 2009-12-30  Bruno Haible  <bruno@clisp.org>
56377         Fix test crash.
56378         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
56379         locales.
56380         Reported by Simon Josefsson <simon@josefsson.org>.
56382 2009-12-30  Bruno Haible  <bruno@clisp.org>
56384         Fix compilation error on most platforms.
56385         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
56386         Reported by Simon Josefsson <simon@josefsson.org>
56387         and Nelson H. F. Beebe <beebe@math.utah.edu>.
56389 2009-12-30  Eric Blake  <ebb9@byu.net>
56391         futimens, utimensat: work around ntfs-3g bug
56392         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
56393         a ctime bug is present, and expand workaround to cover ntfs-3g.
56394         * lib/utimens.c (fdutimens, lutimens): Likewise.
56395         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
56396         (validate_timespec): Adjust return value.
56397         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
56398         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56399         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
56401 2009-12-29  Eric Blake  <ebb9@byu.net>
56403         link-warning: make usage consistent
56404         * modules/ctype (Depends-on): Add link-warning.
56405         (Makefile.am): Update rules accordingly.
56406         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56407         * modules/locale (Depends-on, Makefile.am): Likewise.
56408         * modules/sys_file (Makefile.am): Likewise.
56409         * modules/getopt-posix (Makefile.am): Delete unused link warning
56410         efforts.
56411         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
56412         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
56413         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
56414         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
56416         stdio: remove unused variables
56417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
56418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
56419         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
56421         tests: test more substitute headers
56422         * modules/ctype-tests: New file.
56423         * modules/dirent-tests: Likewise.
56424         * modules/spawn-tests: Likewise.
56425         * modules/sys_file-tests: Likewise.
56426         * modules/sys_ioctl-tests: Likewise.
56427         * modules/sys_wait-tests: Likewise.
56428         * tests/test-ctype.c: Likewise.
56429         * tests/test-dirent.c: Likewise.
56430         * tests/test-spawn.c: Likewise.
56431         * tests/test-sys_file.c: Likewise.
56432         * tests/test-sys_ioctl.c: Likewise.
56433         * tests/test-sys_wait.c: Likewise.
56434         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
56435         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
56436         whether or not flock is in use.
56438         tests: remove License section from module
56439         * modules/arpa_inet-tests: Remove unneeded section.
56440         * modules/byteswap-tests: Likewise.
56441         * modules/ceilf-tests: Likewise.
56442         * modules/ceill-tests: Likewise.
56443         * modules/crypto/des-tests: Likewise.
56444         * modules/crypto/gc-arcfour-tests: Likewise.
56445         * modules/crypto/gc-arctwo-tests: Likewise.
56446         * modules/crypto/gc-des-tests: Likewise.
56447         * modules/crypto/gc-hmac-md5-tests: Likewise.
56448         * modules/crypto/gc-hmac-sha1-tests: Likewise.
56449         * modules/crypto/gc-md2-tests: Likewise.
56450         * modules/crypto/gc-md4-tests: Likewise.
56451         * modules/crypto/gc-md5-tests: Likewise.
56452         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
56453         * modules/crypto/gc-rijndael-tests: Likewise.
56454         * modules/crypto/gc-sha1-tests: Likewise.
56455         * modules/crypto/gc-tests: Likewise.
56456         * modules/crypto/md2-tests: Likewise.
56457         * modules/crypto/md4-tests: Likewise.
56458         * modules/fcntl-h-tests: Likewise.
56459         * modules/floorf-tests: Likewise.
56460         * modules/floorl-tests: Likewise.
56461         * modules/frexp-nolibm-tests: Likewise.
56462         * modules/frexp-tests: Likewise.
56463         * modules/frexpl-nolibm-tests: Likewise.
56464         * modules/frexpl-tests: Likewise.
56465         * modules/getaddrinfo-tests: Likewise.
56466         * modules/inttypes-tests: Likewise.
56467         * modules/isfinite-tests: Likewise.
56468         * modules/isinf-tests: Likewise.
56469         * modules/ldexpl-tests: Likewise.
56470         * modules/locale-tests: Likewise.
56471         * modules/math-tests: Likewise.
56472         * modules/netdb-tests: Likewise.
56473         * modules/netinet_in-tests: Likewise.
56474         * modules/printf-frexp-tests: Likewise.
56475         * modules/printf-frexpl-tests: Likewise.
56476         * modules/priv-set-tests: Likewise.
56477         * modules/random_r-tests: Likewise.
56478         * modules/round-tests: Likewise.
56479         * modules/roundf-tests: Likewise.
56480         * modules/roundl-tests: Likewise.
56481         * modules/search-tests: Likewise.
56482         * modules/select-tests: Likewise.
56483         * modules/signal-tests: Likewise.
56484         * modules/stdbool-tests: Likewise.
56485         * modules/stddef-tests: Likewise.
56486         * modules/stdint-tests: Likewise.
56487         * modules/stdio-tests: Likewise.
56488         * modules/stdlib-tests: Likewise.
56489         * modules/string-tests: Likewise.
56490         * modules/strings-tests: Likewise.
56491         * modules/sys_select-tests: Likewise.
56492         * modules/sys_socket-tests: Likewise.
56493         * modules/sys_stat-tests: Likewise.
56494         * modules/sys_time-tests: Likewise.
56495         * modules/sys_utsname-tests: Likewise.
56496         * modules/sysexits-tests: Likewise.
56497         * modules/time-tests: Likewise.
56498         * modules/trunc-tests: Likewise.
56499         * modules/truncf-tests: Likewise.
56500         * modules/truncl-tests: Likewise.
56501         * modules/tsearch-tests: Likewise.
56502         * modules/unistd-tests: Likewise.
56503         * modules/wchar-tests: Likewise.
56504         * modules/wctype-tests: Likewise.
56506         tests: fix license on several tests
56507         * tests/test-des.c: Update to GPLv3+.
56508         * tests/test-flock.c: Likewise.
56509         * tests/test-fsync.c: Likewise.
56510         * tests/test-futimens.h: Likewise.
56511         * tests/test-gc-arcfour.c: Likewise.
56512         * tests/test-gc-arctwo.c: Likewise.
56513         * tests/test-gc-des.c: Likewise.
56514         * tests/test-gc-hmac-md5.c: Likewise.
56515         * tests/test-gc-hmac-sha1.c: Likewise.
56516         * tests/test-gc-md2.c: Likewise.
56517         * tests/test-gc-md4.c: Likewise.
56518         * tests/test-gc-md5.c: Likewise.
56519         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56520         * tests/test-gc-rijndael.c: Likewise.
56521         * tests/test-gc-sha1.c: Likewise.
56522         * tests/test-gc.c: Likewise.
56523         * tests/test-getcwd.c: Likewise.
56524         * tests/test-link.c: Likewise.
56525         * tests/test-link.h: Likewise.
56526         * tests/test-lutimens.h: Likewise.
56527         * tests/test-md2.c: Likewise.
56528         * tests/test-md4.c: Likewise.
56529         * tests/test-mkdir.h: Likewise.
56530         * tests/test-rename.c: Likewise.
56531         * tests/test-rename.h: Likewise.
56532         * tests/test-safe-alloc.c: Likewise.
56533         * tests/test-utimens-common.h: Likewise.
56534         * tests/test-utimens.h: Likewise.
56536         maint: sync license texts
56537         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
56538         * doc/gpl-3.0.texi: Revert copyright year update.
56539         * doc/lgpl-3.0.texi: Likewise.
56541 2009-12-29  Jim Meyering  <meyering@redhat.com>
56543         update nearly all FSF copyright year lists to include 2009
56544         The files named by the following are exempted:
56545             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
56546               test -f "$dst" && { echo "$dst"; continue; }
56547               test -d "$dst" || continue
56548               echo "$dst"/$(basename "$src")
56549             done > exempt
56550             git ls-files tests/unictype >> exempt
56551         In the remaining files, convert to all-interval notation if
56552         - there is already at least one year interval like 2000-2003
56553         - the file is maintained by me
56554         - the file is in lib/uni*/, where that style already prevails
56555         Otherwise, use update-copyright's default.
56557 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56558         and Eric Blake  <ebb9@byu.net>
56560         tests: don't require debug system() to pass
56561         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
56562         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56563         * tests/test-unlink.h (test_unlink_func): Likewise.
56564         * tests/test-fstatat.c (main): ...into callers.
56565         * tests/test-lstat.c (main): Likewise.
56566         * tests/test-rmdir.c (main): Likewise.
56567         * tests/test-unlink.c (main): Likewise.
56568         * tests/test-unlinkat.c (main): Likewise.
56569         * tests/test-areadlink-with-size.c (main): Don't require a
56570         debug-only system call to pass, aiding cross-testing to mingw.
56571         * tests/test-areadlink.c (main): Likewise.
56572         * tests/test-areadlinkat-with-size.c (main): Likewise.
56573         * tests/test-areadlinkat.c (main): Likewise.
56574         * tests/test-canonicalize-lgpl.c (main): Likewise.
56575         * tests/test-canonicalize.c (main): Likewise.
56576         * tests/test-chown.c (main): Likewise.
56577         * tests/test-fchownat.c (main): Likewise.
56578         * tests/test-lchown.c (main): Likewise.
56579         * tests/test-fdutimensat.c (main): Likewise.
56580         * tests/test-futimens.c (main): Likewise.
56581         * tests/test-link.c (main): Likewise.
56582         * tests/test-linkat.c (main): Likewise.
56583         * tests/test-mkdir.c (main): Likewise.
56584         * tests/test-mkdirat.c (main): Likewise.
56585         * tests/test-mkfifo.c (main): Likewise.
56586         * tests/test-mkfifoat.c (main): Likewise.
56587         * tests/test-mknod.c (main): Likewise.
56588         * tests/test-readlink.c (main): Likewise.
56589         * tests/test-remove.c (main): Likewise.
56590         * tests/test-rename.c (main): Likewise.
56591         * tests/test-renameat.c (main): Likewise.
56592         * tests/test-symlink.c (main): Likewise.
56593         * tests/test-symlinkat.c (main): Likewise.
56594         * tests/test-utimens.c (main): Likewise.
56595         * tests/test-utimensat.c (main): Likewise.
56597 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56599         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56600         on $(UNUSED_PARAMETER_H) to avoid build failure.
56602 2009-12-28  Jim Meyering  <meyering@redhat.com>
56604         update-copyright: you may specify a max. line length other than 72
56605         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56607         maint: use consistent FSF copyright line syntax
56608         * lib/posixtm.c: Add missing comma in FSF copyright line.
56609         * lib/posixtm.h: Likewise.
56610         * lib/getugroups.c: Add missing ", Inc.".
56612         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56613         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56614         FSF copyright line.  Remove trailing blanks.
56616 2009-12-28  Eric Blake  <ebb9@byu.net>
56618         test-dup2: reduce dependencies
56619         * modules/cloexec (Configure.ac): Set witness.
56620         * modules/dup2-tests (Depends-on): Drop cloexec.
56621         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56622         not present.
56623         Suggested by Bruno Haible.
56625 2009-12-26  Bruno Haible  <bruno@clisp.org>
56627         Remove an unneeded dependency.
56628         * modules/fseterr (Depends-on): Remove dup2.
56630 2009-12-26  Eric Blake  <ebb9@byu.net>
56632         tests: use macros.h in more places
56633         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56634         (ASSERT_STREAM): Provide default of stderr.
56635         * tests/test-dirent-safer.c: Include macros.h, using alternate
56636         stream for assertions.
56637         * tests/test-dup-safer.c: Likewise.
56638         * tests/test-freopen-safer.c: Likewise.
56639         * tests/test-getopt.c: Likewise.
56640         * tests/test-openat-safer.c: Likewise.
56641         * tests/test-pipe.c: Likewise.
56642         * tests/test-popen-safer.c: Likewise.
56643         * modules/dirent-safer-tests (Files): Include macros.h.
56644         * modules/unistd-safer-tests (Files): Likewise.
56645         * modules/freopen-safer-tests (Files): Likewise.
56646         * modules/getopt-posix-tests (Files): Likewise.
56647         * modules/openat-safer-tests (Files): Likewise.
56648         * modules/pipe-tests (Files): Likewise.
56650 2009-12-26  Bruno Haible  <bruno@clisp.org>
56652         javacomp-script: Portability fix.
56653         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56654         that it also works on Solaris.
56656 2009-12-26  Bruno Haible  <bruno@clisp.org>
56658         localename: Fix storage allocation of gl_locale_name_thread's result.
56659         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56660         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56661         all platforms that have 'uselocale'.
56662         (gl_locale_name_thread_unsafe): New function, extracted from
56663         gl_locale_name_thread.
56664         (gl_locale_name_thread): Call struniq on all platforms that have
56665         'uselocale'.
56666         * tests/test-localename.c (test_locale_name_thread): Check that the
56667         resulting strings are permanently allocated.
56668         * modules/localename-tests (Depends-on): Add strdup.
56670 2009-12-26  Bruno Haible  <bruno@clisp.org>
56672         * tests/test-localename.c (categories): Fill in the strings.
56674 2009-12-26  Jim Meyering  <meyering@redhat.com>
56676         isdir: complete the removal of m4/isdir.m4
56677         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56679         isdir: clean up, since at least grep still uses it
56680         * lib/isdir.c: Include "isdir.h".
56681         (S_ISDIR): Remove now-unneeded definition.
56682         * modules/isdir (Files): Add lib/isdir.h.
56683         * lib/isdir.h: New file, with declaration.
56684         * m4/isdir.m4: Remove file -- unneeded.
56686 2009-12-25  Bruno Haible  <bruno@clisp.org>
56688         selinux-h: Make generated .h files standalone.
56689         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56690         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56691         * lib/se-selinux.in.h: Likewise.
56692         * modules/selinux-h (Depends-on): Add unused-parameter.
56693         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56694         selinux/selinux.h and selinux/context.h.
56695         Suggested by Eric Blake.
56697 2009-12-25  Bruno Haible  <bruno@clisp.org>
56699         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56700         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56701         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56702         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56703         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56705 2009-12-24  Bruno Haible  <bruno@clisp.org>
56707         openat: Fix warning.
56708         * lib/openat-proc.c: Include <unistd.h>.
56710 2009-12-24  Bruno Haible  <bruno@clisp.org>
56712         New module 'unused-parameter'.
56713         * build-aux/unused-parameter.h: New file, extracted from earlier
56714         gnulib-common.m4.
56715         * modules/unused-parameter: New file.
56716         * lib/unistr.h: Include unused-parameter.h.
56717         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56718         _GL_UNUSED.
56719         * modules/unistr/base (Depends-on): Add unused-parameter.
56721 2009-12-24  Bruno Haible  <bruno@clisp.org>
56723         Add missing dependencies to 'extensions' module.
56724         * m4/extensions.m4: Add comment.
56725         * modules/accept4 (Depends-on): Add extensions.
56726         * modules/dup3 (Depends-on): Likewise.
56727         * modules/fcntl (Depends-on): Likewise.
56728         * modules/futimens (Depends-on): Likewise.
56729         * modules/mknod (Depends-on): Likewise.
56730         * modules/pipe2 (Depends-on): Likewise.
56731         * modules/stat-time (Depends-on): Likewise.
56732         * modules/strcasestr-simple (Depends-on): Likewise.
56733         * modules/strsignal (Depends-on): Likewise.
56734         * modules/utimensat (Depends-on): Likewise.
56735         * modules/localcharset (Depends-on): Likewise. Needed because of
56736         gl_FCNTL_O_FLAGS.
56737         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56738         AC_TYPE_MBSTATE_T.
56739         * modules/wcsnrtombs (Depends-on): Likewise.
56740         * modules/wcsrtombs (Depends-on): Likewise.
56742 2009-12-24  Bruno Haible  <bruno@clisp.org>
56744         binary-io: Avoid gcc warning due to SET_BINARY.
56745         * lib/binary-io.h (SET_BINARY): Cast the result to void.
56746         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
56748 2009-12-24  Bruno Haible  <bruno@clisp.org>
56750         Avoid future namespace pollution on glibc systems.
56751         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
56752         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
56753         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
56754         glibc systems.
56756 2009-12-24  Bruno Haible  <bruno@clisp.org>
56758         Refactor common macros used in tests.
56759         * tests/macros.h: New file.
56760         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
56761         and/or <stdlib.h>, if appropriate.
56762         (ASSERT, SIZEOF): Remove macros.
56763         * tests/test-areadlink-with-size.c: Likewise.
56764         * tests/test-areadlinkat.c: Likewise.
56765         * tests/test-areadlinkat-with-size.c: Likewise.
56766         * tests/test-argmatch.c: Likewise.
56767         * tests/test-argv-iter.c: Likewise.
56768         * tests/test-array-mergesort.c: Likewise.
56769         * tests/test-array_list.c: Likewise.
56770         * tests/test-array_oset.c: Likewise.
56771         * tests/test-avltree_list.c: Likewise.
56772         * tests/test-avltree_oset.c: Likewise.
56773         * tests/test-avltreehash_list.c: Likewise.
56774         * tests/test-base64.c: Likewise.
56775         * tests/test-binary-io.c: Likewise.
56776         * tests/test-bitrotate.c: Likewise.
56777         * tests/test-btowc.c: Likewise.
56778         * tests/test-byteswap.c: Likewise.
56779         * tests/test-c-ctype.c: Likewise.
56780         * tests/test-c-stack.c: Likewise.
56781         * tests/test-c-strcasecmp.c: Likewise.
56782         * tests/test-c-strcasestr.c: Likewise.
56783         * tests/test-c-strncasecmp.c: Likewise.
56784         * tests/test-c-strstr.c: Likewise.
56785         * tests/test-canonicalize-lgpl.c: Likewise.
56786         * tests/test-canonicalize.c: Likewise.
56787         * tests/test-carray_list.c: Likewise.
56788         * tests/test-ceilf1.c: Likewise.
56789         * tests/test-ceilf2.c: Likewise.
56790         * tests/test-ceill.c: Likewise.
56791         * tests/test-chown.c: Likewise.
56792         * tests/test-cloexec.c: Likewise.
56793         * tests/test-copy-acl.c: Likewise.
56794         * tests/test-copy-file.c: Likewise.
56795         * tests/test-count-one-bits.c: Likewise.
56796         * tests/test-dprintf-posix.c: Likewise.
56797         * tests/test-dup2.c: Likewise.
56798         * tests/test-dup3.c: Likewise.
56799         * tests/test-duplocale.c: Likewise.
56800         * tests/test-fbufmode.c: Likewise.
56801         * tests/test-fchdir.c: Likewise.
56802         * tests/test-fchownat.c: Likewise.
56803         * tests/test-fcntl-safer.c: Likewise.
56804         * tests/test-fcntl.c: Likewise.
56805         * tests/test-fdopendir.c: Likewise.
56806         * tests/test-fdutimensat.c: Likewise.
56807         * tests/test-fflush2.c: Likewise.
56808         * tests/test-file-has-acl.c: Likewise.
56809         * tests/test-filevercmp.c: Likewise.
56810         * tests/test-flock.c: Likewise.
56811         * tests/test-floorf1.c: Likewise.
56812         * tests/test-floorf2.c: Likewise.
56813         * tests/test-floorl.c: Likewise.
56814         * tests/test-fnmatch.c: Likewise.
56815         * tests/test-fopen.h: Likewise.
56816         * tests/test-fpending.c: Likewise.
56817         * tests/test-fprintf-posix.c: Likewise.
56818         * tests/test-fpurge.c: Likewise.
56819         * tests/test-freadable.c: Likewise.
56820         * tests/test-freadahead.c: Likewise.
56821         * tests/test-freading.c: Likewise.
56822         * tests/test-freadptr.c: Likewise.
56823         * tests/test-freadptr2.c: Likewise.
56824         * tests/test-freadseek.c: Likewise.
56825         * tests/test-freopen.c: Likewise.
56826         * tests/test-frexp.c: Likewise.
56827         * tests/test-frexpl.c: Likewise.
56828         * tests/test-fseek.c: Likewise.
56829         * tests/test-fseeko.c: Likewise.
56830         * tests/test-fstatat.c: Likewise.
56831         * tests/test-fstrcmp.c: Likewise.
56832         * tests/test-fsync.c: Likewise.
56833         * tests/test-ftell.c: Likewise.
56834         * tests/test-ftello.c: Likewise.
56835         * tests/test-func.c: Likewise.
56836         * tests/test-futimens.c: Likewise.
56837         * tests/test-fwritable.c: Likewise.
56838         * tests/test-fwriting.c: Likewise.
56839         * tests/test-getcwd.c: Likewise.
56840         * tests/test-getdate.c: Likewise.
56841         * tests/test-getdelim.c: Likewise.
56842         * tests/test-getdtablesize.c: Likewise.
56843         * tests/test-getgroups.c: Likewise.
56844         * tests/test-getline.c: Likewise.
56845         * tests/test-getndelim2.c: Likewise.
56846         * tests/test-glob.c: Likewise.
56847         * tests/test-hash.c: Likewise.
56848         * tests/test-i-ring.c: Likewise.
56849         * tests/test-iconv-utf.c: Likewise.
56850         * tests/test-iconv.c: Likewise.
56851         * tests/test-idpriv-drop.c: Likewise.
56852         * tests/test-idpriv-droptemp.c: Likewise.
56853         * tests/test-inet_ntop.c: Likewise.
56854         * tests/test-inet_pton.c: Likewise.
56855         * tests/test-isblank.c: Likewise.
56856         * tests/test-isfinite.c: Likewise.
56857         * tests/test-isinf.c: Likewise.
56858         * tests/test-isnan.c: Likewise.
56859         * tests/test-isnand.h: Likewise.
56860         * tests/test-isnanf.h: Likewise.
56861         * tests/test-isnanl.h: Likewise.
56862         * tests/test-lchown.c: Likewise.
56863         * tests/test-ldexpl.c: Likewise.
56864         * tests/test-link.c: Likewise.
56865         * tests/test-linkat.c: Likewise.
56866         * tests/test-linked_list.c: Likewise.
56867         * tests/test-linkedhash_list.c: Likewise.
56868         * tests/test-localename.c: Likewise.
56869         * tests/test-lseek.c: Likewise.
56870         * tests/test-lstat.c: Likewise.
56871         * tests/test-mbmemcasecmp.c: Likewise.
56872         * tests/test-mbmemcasecoll.c: Likewise.
56873         * tests/test-mbrtowc.c: Likewise.
56874         * tests/test-mbscasecmp.c: Likewise.
56875         * tests/test-mbscasestr1.c: Likewise.
56876         * tests/test-mbscasestr2.c: Likewise.
56877         * tests/test-mbscasestr3.c: Likewise.
56878         * tests/test-mbscasestr4.c: Likewise.
56879         * tests/test-mbschr.c: Likewise.
56880         * tests/test-mbscspn.c: Likewise.
56881         * tests/test-mbsinit.c: Likewise.
56882         * tests/test-mbsncasecmp.c: Likewise.
56883         * tests/test-mbsnrtowcs.c: Likewise.
56884         * tests/test-mbspbrk.c: Likewise.
56885         * tests/test-mbspcasecmp.c: Likewise.
56886         * tests/test-mbsrchr.c: Likewise.
56887         * tests/test-mbsrtowcs.c: Likewise.
56888         * tests/test-mbsspn.c: Likewise.
56889         * tests/test-mbsstr1.c: Likewise.
56890         * tests/test-mbsstr2.c: Likewise.
56891         * tests/test-mbsstr3.c: Likewise.
56892         * tests/test-memchr.c: Likewise.
56893         * tests/test-memchr2.c: Likewise.
56894         * tests/test-memcmp.c: Likewise.
56895         * tests/test-memmem.c: Likewise.
56896         * tests/test-memrchr.c: Likewise.
56897         * tests/test-mkdir.c: Likewise.
56898         * tests/test-mkdirat.c: Likewise.
56899         * tests/test-mkfifo.c: Likewise.
56900         * tests/test-mkfifoat.c: Likewise.
56901         * tests/test-mknod.c: Likewise.
56902         * tests/test-nanosleep.c: Likewise.
56903         * tests/test-nl_langinfo.c: Likewise.
56904         * tests/test-obstack-printf.c: Likewise.
56905         * tests/test-open.c: Likewise.
56906         * tests/test-openat.c: Likewise.
56907         * tests/test-pipe-filter-gi1.c: Likewise.
56908         * tests/test-pipe-filter-gi2-main.c: Likewise.
56909         * tests/test-pipe-filter-ii1.c: Likewise.
56910         * tests/test-pipe-filter-ii2-main.c: Likewise.
56911         * tests/test-pipe2.c: Likewise.
56912         * tests/test-popen.h: Likewise.
56913         * tests/test-posixtm.c: Likewise.
56914         * tests/test-pread.c: Likewise.
56915         * tests/test-printf-frexp.c: Likewise.
56916         * tests/test-printf-frexpl.c: Likewise.
56917         * tests/test-printf-posix.c: Likewise.
56918         * tests/test-priv-set.c: Likewise.
56919         * tests/test-quotearg.c: Likewise.
56920         * tests/test-random_r.c: Likewise.
56921         * tests/test-rawmemchr.c: Likewise.
56922         * tests/test-rbtree_list.c: Likewise.
56923         * tests/test-rbtree_oset.c: Likewise.
56924         * tests/test-rbtreehash_list.c: Likewise.
56925         * tests/test-readlink.c: Likewise.
56926         * tests/test-remove.c: Likewise.
56927         * tests/test-rename.c: Likewise.
56928         * tests/test-renameat.c: Likewise.
56929         * tests/test-rmdir.c: Likewise.
56930         * tests/test-round1.c: Likewise.
56931         * tests/test-roundf1.c: Likewise.
56932         * tests/test-roundl.c: Likewise.
56933         * tests/test-safe-alloc.c: Likewise.
56934         * tests/test-sameacls.c: Likewise.
56935         * tests/test-set-mode-acl.c: Likewise.
56936         * tests/test-setenv.c: Likewise.
56937         * tests/test-sigaction.c: Likewise.
56938         * tests/test-signbit.c: Likewise.
56939         * tests/test-sleep.c: Likewise.
56940         * tests/test-snprintf-posix.c: Likewise.
56941         * tests/test-snprintf.c: Likewise.
56942         * tests/test-sprintf-posix.c: Likewise.
56943         * tests/test-stat-time.c: Likewise.
56944         * tests/test-stat.c: Likewise.
56945         * tests/test-strcasestr.c: Likewise.
56946         * tests/test-strchrnul.c: Likewise.
56947         * tests/test-strerror.c: Likewise.
56948         * tests/test-striconv.c: Likewise.
56949         * tests/test-striconveh.c: Likewise.
56950         * tests/test-striconveha.c: Likewise.
56951         * tests/test-strsignal.c: Likewise.
56952         * tests/test-strstr.c: Likewise.
56953         * tests/test-strtod.c: Likewise.
56954         * tests/test-strverscmp.c: Likewise.
56955         * tests/test-symlink.c: Likewise.
56956         * tests/test-symlinkat.c: Likewise.
56957         * tests/test-trunc1.c: Likewise.
56958         * tests/test-trunc2.c: Likewise.
56959         * tests/test-truncf1.c: Likewise.
56960         * tests/test-truncf2.c: Likewise.
56961         * tests/test-truncl.c: Likewise.
56962         * tests/test-uname.c: Likewise.
56963         * tests/test-unlink.c: Likewise.
56964         * tests/test-unlinkat.c: Likewise.
56965         * tests/test-unsetenv.c: Likewise.
56966         * tests/test-usleep.c: Likewise.
56967         * tests/test-utimens.c: Likewise.
56968         * tests/test-utimensat.c: Likewise.
56969         * tests/test-vasnprintf-posix.c: Likewise.
56970         * tests/test-vasnprintf-posix2.c: Likewise.
56971         * tests/test-vasnprintf.c: Likewise.
56972         * tests/test-vasprintf-posix.c: Likewise.
56973         * tests/test-vasprintf.c: Likewise.
56974         * tests/test-vdprintf-posix.c: Likewise.
56975         * tests/test-vfprintf-posix.c: Likewise.
56976         * tests/test-vprintf-posix.c: Likewise.
56977         * tests/test-vsnprintf-posix.c: Likewise.
56978         * tests/test-vsnprintf.c: Likewise.
56979         * tests/test-vsprintf-posix.c: Likewise.
56980         * tests/test-wcrtomb.c: Likewise.
56981         * tests/test-wcsnrtombs.c: Likewise.
56982         * tests/test-wcsrtombs.c: Likewise.
56983         * tests/test-wctype.c: Likewise.
56984         * tests/test-wcwidth.c: Likewise.
56985         * tests/test-xfprintf-posix.c: Likewise.
56986         * tests/test-xmemdup0.c: Likewise.
56987         * tests/test-xprintf-posix.c: Likewise.
56988         * tests/test-xvasprintf.c: Likewise.
56989         * tests/unicase/test-locale-language.c: Likewise.
56990         * tests/unicase/test-mapping-part1.h: Likewise.
56991         * tests/unicase/test-predicate-part1.h: Likewise.
56992         * tests/unicase/test-u8-casecmp.c: Likewise.
56993         * tests/unicase/test-u8-casecoll.c: Likewise.
56994         * tests/unicase/test-u8-casefold.c: Likewise.
56995         * tests/unicase/test-u8-is-cased.c: Likewise.
56996         * tests/unicase/test-u8-is-casefolded.c: Likewise.
56997         * tests/unicase/test-u8-is-lowercase.c: Likewise.
56998         * tests/unicase/test-u8-is-titlecase.c: Likewise.
56999         * tests/unicase/test-u8-is-uppercase.c: Likewise.
57000         * tests/unicase/test-u8-tolower.c: Likewise.
57001         * tests/unicase/test-u8-totitle.c: Likewise.
57002         * tests/unicase/test-u8-toupper.c: Likewise.
57003         * tests/unicase/test-u16-casecmp.c: Likewise.
57004         * tests/unicase/test-u16-casecoll.c: Likewise.
57005         * tests/unicase/test-u16-casefold.c: Likewise.
57006         * tests/unicase/test-u16-is-cased.c: Likewise.
57007         * tests/unicase/test-u16-is-casefolded.c: Likewise.
57008         * tests/unicase/test-u16-is-lowercase.c: Likewise.
57009         * tests/unicase/test-u16-is-titlecase.c: Likewise.
57010         * tests/unicase/test-u16-is-uppercase.c: Likewise.
57011         * tests/unicase/test-u16-tolower.c: Likewise.
57012         * tests/unicase/test-u16-totitle.c: Likewise.
57013         * tests/unicase/test-u16-toupper.c: Likewise.
57014         * tests/unicase/test-u32-casecmp.c: Likewise.
57015         * tests/unicase/test-u32-casecoll.c: Likewise.
57016         * tests/unicase/test-u32-casefold.c: Likewise.
57017         * tests/unicase/test-u32-is-cased.c: Likewise.
57018         * tests/unicase/test-u32-is-casefolded.c: Likewise.
57019         * tests/unicase/test-u32-is-lowercase.c: Likewise.
57020         * tests/unicase/test-u32-is-titlecase.c: Likewise.
57021         * tests/unicase/test-u32-is-uppercase.c: Likewise.
57022         * tests/unicase/test-u32-tolower.c: Likewise.
57023         * tests/unicase/test-u32-totitle.c: Likewise.
57024         * tests/unicase/test-u32-toupper.c: Likewise.
57025         * tests/unicase/test-ulc-casecmp.c: Likewise.
57026         * tests/unicase/test-ulc-casecoll.c: Likewise.
57027         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57028         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57029         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57030         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57031         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57032         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57033         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57034         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57035         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57036         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57037         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57038         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57039         * tests/unictype/test-bidi_byname.c: Likewise.
57040         * tests/unictype/test-bidi_name.c: Likewise.
57041         * tests/unictype/test-bidi_of.c: Likewise.
57042         * tests/unictype/test-bidi_test.c: Likewise.
57043         * tests/unictype/test-block_list.c: Likewise.
57044         * tests/unictype/test-block_of.c: Likewise.
57045         * tests/unictype/test-block_test.c: Likewise.
57046         * tests/unictype/test-categ_and.c: Likewise.
57047         * tests/unictype/test-categ_and_not.c: Likewise.
57048         * tests/unictype/test-categ_byname.c: Likewise.
57049         * tests/unictype/test-categ_name.c: Likewise.
57050         * tests/unictype/test-categ_none.c: Likewise.
57051         * tests/unictype/test-categ_of.c: Likewise.
57052         * tests/unictype/test-categ_or.c: Likewise.
57053         * tests/unictype/test-categ_test_withtable.c: Likewise.
57054         * tests/unictype/test-combining.c: Likewise.
57055         * tests/unictype/test-decdigit.c: Likewise.
57056         * tests/unictype/test-digit.c: Likewise.
57057         * tests/unictype/test-mirror.c: Likewise.
57058         * tests/unictype/test-numeric.c: Likewise.
57059         * tests/unictype/test-pr_byname.c: Likewise.
57060         * tests/unictype/test-pr_test.c: Likewise.
57061         * tests/unictype/test-predicate-part1.h: Likewise.
57062         * tests/unictype/test-scripts.c: Likewise.
57063         * tests/unictype/test-sy_c_ident.c: Likewise.
57064         * tests/unictype/test-sy_java_ident.c: Likewise.
57065         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
57066         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
57067         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
57068         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
57069         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
57070         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
57071         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
57072         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
57073         * tests/uninorm/test-canonical-decomposition.c: Likewise.
57074         * tests/uninorm/test-compat-decomposition.c: Likewise.
57075         * tests/uninorm/test-composition.c: Likewise.
57076         * tests/uninorm/test-decomposing-form.c: Likewise.
57077         * tests/uninorm/test-decomposition.c: Likewise.
57078         * tests/uninorm/test-u8-nfc.c: Likewise.
57079         * tests/uninorm/test-u8-nfd.c: Likewise.
57080         * tests/uninorm/test-u8-nfkc.c: Likewise.
57081         * tests/uninorm/test-u8-nfkd.c: Likewise.
57082         * tests/uninorm/test-u8-normcmp.c: Likewise.
57083         * tests/uninorm/test-u8-normcoll.c: Likewise.
57084         * tests/uninorm/test-u16-nfc.c: Likewise.
57085         * tests/uninorm/test-u16-nfd.c: Likewise.
57086         * tests/uninorm/test-u16-nfkc.c: Likewise.
57087         * tests/uninorm/test-u16-nfkd.c: Likewise.
57088         * tests/uninorm/test-u16-normcmp.c: Likewise.
57089         * tests/uninorm/test-u16-normcoll.c: Likewise.
57090         * tests/uninorm/test-u32-nfc.c: Likewise.
57091         * tests/uninorm/test-u32-nfd.c: Likewise.
57092         * tests/uninorm/test-u32-nfkc.c: Likewise.
57093         * tests/uninorm/test-u32-nfkd.c: Likewise.
57094         * tests/uninorm/test-u32-normalize-big.c: Likewise.
57095         * tests/uninorm/test-u32-normcmp.c: Likewise.
57096         * tests/uninorm/test-u32-normcoll.c: Likewise.
57097         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
57098         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57099         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57100         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57101         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57102         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57103         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57104         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57105         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57106         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57107         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57108         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57109         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57110         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57111         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57112         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57113         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57114         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57115         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57116         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57117         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57118         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57119         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57120         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57121         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57122         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57123         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57124         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57125         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57126         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
57127         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
57128         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
57129         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
57130         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57131         * tests/uniwidth/test-u8-width.c: Likewise.
57132         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57133         * tests/uniwidth/test-u16-width.c: Likewise.
57134         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57135         * tests/uniwidth/test-u32-width.c: Likewise.
57136         * tests/uniwidth/test-uc_width.c: Likewise.
57137         * tests/uniwidth/test-uc_width2.c: Likewise.
57138         * modules/acl-tests (Files): Add tests/macros.h.
57139         * modules/areadlink-tests (Files): Likewise.
57140         * modules/areadlink-with-size-tests (Files): Likewise.
57141         * modules/areadlinkat-tests (Files): Likewise.
57142         * modules/areadlinkat-with-size-tests (Files): Likewise.
57143         * modules/argmatch-tests (Files): Likewise.
57144         * modules/argv-iter-tests (Files): Likewise.
57145         * modules/array-list-tests (Files): Likewise.
57146         * modules/array-mergesort-tests (Files): Likewise.
57147         * modules/array-oset-tests (Files): Likewise.
57148         * modules/avltree-list-tests (Files): Likewise.
57149         * modules/avltree-oset-tests (Files): Likewise.
57150         * modules/avltreehash-list-tests (Files): Likewise.
57151         * modules/base64-tests (Files): Likewise.
57152         * modules/binary-io-tests (Files): Likewise.
57153         * modules/bitrotate-tests (Files): Likewise.
57154         * modules/btowc-tests (Files): Likewise.
57155         * modules/byteswap-tests (Files): Likewise.
57156         * modules/c-ctype-tests (Files): Likewise.
57157         * modules/c-stack-tests (Files): Likewise.
57158         * modules/c-strcase-tests (Files): Likewise.
57159         * modules/c-strcasestr-tests (Files): Likewise.
57160         * modules/c-strstr-tests (Files): Likewise.
57161         * modules/canonicalize-lgpl-tests (Files): Likewise.
57162         * modules/canonicalize-tests (Files): Likewise.
57163         * modules/carray-list-tests (Files): Likewise.
57164         * modules/ceilf-tests (Files): Likewise.
57165         * modules/ceill-tests (Files): Likewise.
57166         * modules/chown-tests (Files): Likewise.
57167         * modules/cloexec-tests (Files): Likewise.
57168         * modules/copy-file-tests (Files): Likewise.
57169         * modules/count-one-bits-tests (Files): Likewise.
57170         * modules/dprintf-posix-tests (Files): Likewise.
57171         * modules/dup2-tests (Files): Likewise.
57172         * modules/dup3-tests (Files): Likewise.
57173         * modules/duplocale-tests (Files): Likewise.
57174         * modules/fbufmode-tests (Files): Likewise.
57175         * modules/fchdir-tests (Files): Likewise.
57176         * modules/fcntl-safer-tests (Files): Likewise.
57177         * modules/fcntl-tests (Files): Likewise.
57178         * modules/fdopendir-tests (Files): Likewise.
57179         * modules/fdutimensat-tests (Files): Likewise.
57180         * modules/fflush-tests (Files): Likewise.
57181         * modules/filevercmp-tests (Files): Likewise.
57182         * modules/flock-tests (Files): Likewise.
57183         * modules/floorf-tests (Files): Likewise.
57184         * modules/floorl-tests (Files): Likewise.
57185         * modules/fnmatch-tests (Files): Likewise.
57186         * modules/fopen-safer-tests (Files): Likewise.
57187         * modules/fopen-tests (Files): Likewise.
57188         * modules/fpending-tests (Files): Likewise.
57189         * modules/fprintf-posix-tests (Files): Likewise.
57190         * modules/fpurge-tests (Files): Likewise.
57191         * modules/freadable-tests (Files): Likewise.
57192         * modules/freadahead-tests (Files): Likewise.
57193         * modules/freading-tests (Files): Likewise.
57194         * modules/freadptr-tests (Files): Likewise.
57195         * modules/freadseek-tests (Files): Likewise.
57196         * modules/freopen-tests (Files): Likewise.
57197         * modules/frexp-nolibm-tests (Files): Likewise.
57198         * modules/frexp-tests (Files): Likewise.
57199         * modules/frexpl-nolibm-tests (Files): Likewise.
57200         * modules/frexpl-tests (Files): Likewise.
57201         * modules/fseek-tests (Files): Likewise.
57202         * modules/fseeko-tests (Files): Likewise.
57203         * modules/fstrcmp-tests (Files): Likewise.
57204         * modules/fsync-tests (Files): Likewise.
57205         * modules/ftell-tests (Files): Likewise.
57206         * modules/ftello-tests (Files): Likewise.
57207         * modules/func-tests (Files): Likewise.
57208         * modules/futimens-tests (Files): Likewise.
57209         * modules/fwritable-tests (Files): Likewise.
57210         * modules/fwriting-tests (Files): Likewise.
57211         * modules/getcwd-tests (Files): Likewise.
57212         * modules/getdate-tests (Files): Likewise.
57213         * modules/getdelim-tests (Files): Likewise.
57214         * modules/getdtablesize-tests (Files): Likewise.
57215         * modules/getgroups-tests (Files): Likewise.
57216         * modules/getline-tests (Files): Likewise.
57217         * modules/getndelim2-tests (Files): Likewise.
57218         * modules/glob-tests (Files): Likewise.
57219         * modules/hash-tests (Files): Likewise.
57220         * modules/i-ring-tests (Files): Likewise.
57221         * modules/iconv-tests (Files): Likewise.
57222         * modules/iconv_open-utf-tests (Files): Likewise.
57223         * modules/idpriv-drop-tests (Files): Likewise.
57224         * modules/idpriv-droptemp-tests (Files): Likewise.
57225         * modules/inet_ntop-tests (Files): Likewise.
57226         * modules/inet_pton-tests (Files): Likewise.
57227         * modules/isblank-tests (Files): Likewise.
57228         * modules/isfinite-tests (Files): Likewise.
57229         * modules/isinf-tests (Files): Likewise.
57230         * modules/isnan-tests (Files): Likewise.
57231         * modules/isnand-nolibm-tests (Files): Likewise.
57232         * modules/isnand-tests (Files): Likewise.
57233         * modules/isnanf-nolibm-tests (Files): Likewise.
57234         * modules/isnanf-tests (Files): Likewise.
57235         * modules/isnanl-nolibm-tests (Files): Likewise.
57236         * modules/isnanl-tests (Files): Likewise.
57237         * modules/lchown-tests (Files): Likewise.
57238         * modules/ldexpl-tests (Files): Likewise.
57239         * modules/link-tests (Files): Likewise.
57240         * modules/linkat-tests (Files): Likewise.
57241         * modules/linked-list-tests (Files): Likewise.
57242         * modules/linkedhash-list-tests (Files): Likewise.
57243         * modules/localename-tests (Files): Likewise.
57244         * modules/lseek-tests (Files): Likewise.
57245         * modules/lstat-tests (Files): Likewise.
57246         * modules/mbmemcasecmp-tests (Files): Likewise.
57247         * modules/mbmemcasecoll-tests (Files): Likewise.
57248         * modules/mbrtowc-tests (Files): Likewise.
57249         * modules/mbscasecmp-tests (Files): Likewise.
57250         * modules/mbscasestr-tests (Files): Likewise.
57251         * modules/mbschr-tests (Files): Likewise.
57252         * modules/mbscspn-tests (Files): Likewise.
57253         * modules/mbsinit-tests (Files): Likewise.
57254         * modules/mbsncasecmp-tests (Files): Likewise.
57255         * modules/mbsnrtowcs-tests (Files): Likewise.
57256         * modules/mbspbrk-tests (Files): Likewise.
57257         * modules/mbspcasecmp-tests (Files): Likewise.
57258         * modules/mbsrchr-tests (Files): Likewise.
57259         * modules/mbsrtowcs-tests (Files): Likewise.
57260         * modules/mbsspn-tests (Files): Likewise.
57261         * modules/mbsstr-tests (Files): Likewise.
57262         * modules/memchr-tests (Files): Likewise.
57263         * modules/memchr2-tests (Files): Likewise.
57264         * modules/memcmp-tests (Files): Likewise.
57265         * modules/memmem-tests (Files): Likewise.
57266         * modules/memrchr-tests (Files): Likewise.
57267         * modules/mkdir-tests (Files): Likewise.
57268         * modules/mkfifo-tests (Files): Likewise.
57269         * modules/mkfifoat-tests (Files): Likewise.
57270         * modules/mknod-tests (Files): Likewise.
57271         * modules/nanosleep-tests (Files): Likewise.
57272         * modules/nl_langinfo-tests (Files): Likewise.
57273         * modules/obstack-printf-tests (Files): Likewise.
57274         * modules/open-tests (Files): Likewise.
57275         * modules/openat-tests (Files): Likewise.
57276         * modules/pipe-filter-gi-tests (Files): Likewise.
57277         * modules/pipe-filter-ii-tests (Files): Likewise.
57278         * modules/pipe2-tests (Files): Likewise.
57279         * modules/popen-safer-tests (Files): Likewise.
57280         * modules/popen-tests (Files): Likewise.
57281         * modules/posixtm-tests (Files): Likewise.
57282         * modules/pread-tests (Files): Likewise.
57283         * modules/printf-frexp-tests (Files): Likewise.
57284         * modules/printf-frexpl-tests (Files): Likewise.
57285         * modules/printf-posix-tests (Files): Likewise.
57286         * modules/priv-set-tests (Files): Likewise.
57287         * modules/quotearg-tests (Files): Likewise.
57288         * modules/random_r-tests (Files): Likewise.
57289         * modules/rawmemchr-tests (Files): Likewise.
57290         * modules/rbtree-list-tests (Files): Likewise.
57291         * modules/rbtree-oset-tests (Files): Likewise.
57292         * modules/rbtreehash-list-tests (Files): Likewise.
57293         * modules/readlink-tests (Files): Likewise.
57294         * modules/remove-tests (Files): Likewise.
57295         * modules/rename-tests (Files): Likewise.
57296         * modules/renameat-tests (Files): Likewise.
57297         * modules/rmdir-tests (Files): Likewise.
57298         * modules/round-tests (Files): Likewise.
57299         * modules/roundf-tests (Files): Likewise.
57300         * modules/roundl-tests (Files): Likewise.
57301         * modules/safe-alloc-tests (Files): Likewise.
57302         * modules/setenv-tests (Files): Likewise.
57303         * modules/sigaction-tests (Files): Likewise.
57304         * modules/signbit-tests (Files): Likewise.
57305         * modules/sleep-tests (Files): Likewise.
57306         * modules/snprintf-posix-tests (Files): Likewise.
57307         * modules/snprintf-tests (Files): Likewise.
57308         * modules/sprintf-posix-tests (Files): Likewise.
57309         * modules/stat-tests (Files): Likewise.
57310         * modules/stat-time-tests (Files): Likewise.
57311         * modules/strcasestr-tests (Files): Likewise.
57312         * modules/strchrnul-tests (Files): Likewise.
57313         * modules/strerror-tests (Files): Likewise.
57314         * modules/striconv-tests (Files): Likewise.
57315         * modules/striconveh-tests (Files): Likewise.
57316         * modules/striconveha-tests (Files): Likewise.
57317         * modules/strsignal-tests (Files): Likewise.
57318         * modules/strstr-tests (Files): Likewise.
57319         * modules/strtod-tests (Files): Likewise.
57320         * modules/strverscmp-tests (Files): Likewise.
57321         * modules/symlink-tests (Files): Likewise.
57322         * modules/symlinkat-tests (Files): Likewise.
57323         * modules/trunc-tests (Files): Likewise.
57324         * modules/truncf-tests (Files): Likewise.
57325         * modules/truncl-tests (Files): Likewise.
57326         * modules/uname-tests (Files): Likewise.
57327         * modules/unicase/cased-tests (Files): Likewise.
57328         * modules/unicase/ignorable-tests (Files): Likewise.
57329         * modules/unicase/locale-language-tests (Files): Likewise.
57330         * modules/unicase/tolower-tests (Files): Likewise.
57331         * modules/unicase/totitle-tests (Files): Likewise.
57332         * modules/unicase/toupper-tests (Files): Likewise.
57333         * modules/unicase/u8-casecmp-tests (Files): Likewise.
57334         * modules/unicase/u8-casecoll-tests (Files): Likewise.
57335         * modules/unicase/u8-casefold-tests (Files): Likewise.
57336         * modules/unicase/u8-is-cased-tests (Files): Likewise.
57337         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
57338         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
57339         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
57340         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
57341         * modules/unicase/u8-tolower-tests (Files): Likewise.
57342         * modules/unicase/u8-totitle-tests (Files): Likewise.
57343         * modules/unicase/u8-toupper-tests (Files): Likewise.
57344         * modules/unicase/u16-casecmp-tests (Files): Likewise.
57345         * modules/unicase/u16-casecoll-tests (Files): Likewise.
57346         * modules/unicase/u16-casefold-tests (Files): Likewise.
57347         * modules/unicase/u16-is-cased-tests (Files): Likewise.
57348         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
57349         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
57350         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
57351         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
57352         * modules/unicase/u16-tolower-tests (Files): Likewise.
57353         * modules/unicase/u16-totitle-tests (Files): Likewise.
57354         * modules/unicase/u16-toupper-tests (Files): Likewise.
57355         * modules/unicase/u32-casecmp-tests (Files): Likewise.
57356         * modules/unicase/u32-casecoll-tests (Files): Likewise.
57357         * modules/unicase/u32-casefold-tests (Files): Likewise.
57358         * modules/unicase/u32-is-cased-tests (Files): Likewise.
57359         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
57360         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
57361         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
57362         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
57363         * modules/unicase/u32-tolower-tests (Files): Likewise.
57364         * modules/unicase/u32-totitle-tests (Files): Likewise.
57365         * modules/unicase/u32-toupper-tests (Files): Likewise.
57366         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
57367         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
57368         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
57369         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
57370         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
57371         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
57372         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
57373         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
57374         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
57375         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
57376         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
57377         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
57378         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
57379         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
57380         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
57381         * modules/unictype/bidicategory-name-tests (Files): Likewise.
57382         * modules/unictype/bidicategory-of-tests (Files): Likewise.
57383         * modules/unictype/bidicategory-test-tests (Files): Likewise.
57384         * modules/unictype/block-list-tests (Files): Likewise.
57385         * modules/unictype/block-of-tests (Files): Likewise.
57386         * modules/unictype/block-test-tests (Files): Likewise.
57387         * modules/unictype/category-C-tests (Files): Likewise.
57388         * modules/unictype/category-Cc-tests (Files): Likewise.
57389         * modules/unictype/category-Cf-tests (Files): Likewise.
57390         * modules/unictype/category-Cn-tests (Files): Likewise.
57391         * modules/unictype/category-Co-tests (Files): Likewise.
57392         * modules/unictype/category-Cs-tests (Files): Likewise.
57393         * modules/unictype/category-L-tests (Files): Likewise.
57394         * modules/unictype/category-Ll-tests (Files): Likewise.
57395         * modules/unictype/category-Lm-tests (Files): Likewise.
57396         * modules/unictype/category-Lo-tests (Files): Likewise.
57397         * modules/unictype/category-Lt-tests (Files): Likewise.
57398         * modules/unictype/category-Lu-tests (Files): Likewise.
57399         * modules/unictype/category-M-tests (Files): Likewise.
57400         * modules/unictype/category-Mc-tests (Files): Likewise.
57401         * modules/unictype/category-Me-tests (Files): Likewise.
57402         * modules/unictype/category-Mn-tests (Files): Likewise.
57403         * modules/unictype/category-N-tests (Files): Likewise.
57404         * modules/unictype/category-Nd-tests (Files): Likewise.
57405         * modules/unictype/category-Nl-tests (Files): Likewise.
57406         * modules/unictype/category-No-tests (Files): Likewise.
57407         * modules/unictype/category-P-tests (Files): Likewise.
57408         * modules/unictype/category-Pc-tests (Files): Likewise.
57409         * modules/unictype/category-Pd-tests (Files): Likewise.
57410         * modules/unictype/category-Pe-tests (Files): Likewise.
57411         * modules/unictype/category-Pf-tests (Files): Likewise.
57412         * modules/unictype/category-Pi-tests (Files): Likewise.
57413         * modules/unictype/category-Po-tests (Files): Likewise.
57414         * modules/unictype/category-Ps-tests (Files): Likewise.
57415         * modules/unictype/category-S-tests (Files): Likewise.
57416         * modules/unictype/category-Sc-tests (Files): Likewise.
57417         * modules/unictype/category-Sk-tests (Files): Likewise.
57418         * modules/unictype/category-Sm-tests (Files): Likewise.
57419         * modules/unictype/category-So-tests (Files): Likewise.
57420         * modules/unictype/category-Z-tests (Files): Likewise.
57421         * modules/unictype/category-Zl-tests (Files): Likewise.
57422         * modules/unictype/category-Zp-tests (Files): Likewise.
57423         * modules/unictype/category-Zs-tests (Files): Likewise.
57424         * modules/unictype/category-and-not-tests (Files): Likewise.
57425         * modules/unictype/category-and-tests (Files): Likewise.
57426         * modules/unictype/category-byname-tests (Files): Likewise.
57427         * modules/unictype/category-name-tests (Files): Likewise.
57428         * modules/unictype/category-none-tests (Files): Likewise.
57429         * modules/unictype/category-of-tests (Files): Likewise.
57430         * modules/unictype/category-or-tests (Files): Likewise.
57431         * modules/unictype/category-test-withtable-tests (Files): Likewise.
57432         * modules/unictype/combining-class-tests (Files): Likewise.
57433         * modules/unictype/ctype-alnum-tests (Files): Likewise.
57434         * modules/unictype/ctype-alpha-tests (Files): Likewise.
57435         * modules/unictype/ctype-blank-tests (Files): Likewise.
57436         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
57437         * modules/unictype/ctype-digit-tests (Files): Likewise.
57438         * modules/unictype/ctype-graph-tests (Files): Likewise.
57439         * modules/unictype/ctype-lower-tests (Files): Likewise.
57440         * modules/unictype/ctype-print-tests (Files): Likewise.
57441         * modules/unictype/ctype-punct-tests (Files): Likewise.
57442         * modules/unictype/ctype-space-tests (Files): Likewise.
57443         * modules/unictype/ctype-upper-tests (Files): Likewise.
57444         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
57445         * modules/unictype/decimal-digit-tests (Files): Likewise.
57446         * modules/unictype/digit-tests (Files): Likewise.
57447         * modules/unictype/mirror-tests (Files): Likewise.
57448         * modules/unictype/numeric-tests (Files): Likewise.
57449         * modules/unictype/property-alphabetic-tests (Files): Likewise.
57450         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
57451         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
57452         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
57453         Likewise.
57454         * modules/unictype/property-bidi-block-separator-tests (Files):
57455         Likewise.
57456         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
57457         Likewise.
57458         * modules/unictype/property-bidi-common-separator-tests (Files):
57459         Likewise.
57460         * modules/unictype/property-bidi-control-tests (Files): Likewise.
57461         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
57462         Likewise.
57463         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
57464         Likewise.
57465         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
57466         Likewise.
57467         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
57468         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
57469         Likewise.
57470         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
57471         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
57472         Likewise.
57473         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
57474         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
57475         * modules/unictype/property-bidi-segment-separator-tests (Files):
57476         Likewise.
57477         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
57478         * modules/unictype/property-byname-tests (Files): Likewise.
57479         * modules/unictype/property-combining-tests (Files): Likewise.
57480         * modules/unictype/property-composite-tests (Files): Likewise.
57481         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
57482         * modules/unictype/property-dash-tests (Files): Likewise.
57483         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
57484         * modules/unictype/property-default-ignorable-code-point-tests (Files):
57485         Likewise.
57486         * modules/unictype/property-deprecated-tests (Files): Likewise.
57487         * modules/unictype/property-diacritic-tests (Files): Likewise.
57488         * modules/unictype/property-extender-tests (Files): Likewise.
57489         * modules/unictype/property-format-control-tests (Files): Likewise.
57490         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
57491         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
57492         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
57493         * modules/unictype/property-hex-digit-tests (Files): Likewise.
57494         * modules/unictype/property-hyphen-tests (Files): Likewise.
57495         * modules/unictype/property-id-continue-tests (Files): Likewise.
57496         * modules/unictype/property-id-start-tests (Files): Likewise.
57497         * modules/unictype/property-ideographic-tests (Files): Likewise.
57498         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
57499         * modules/unictype/property-ids-trinary-operator-tests (Files):
57500         Likewise.
57501         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
57502         * modules/unictype/property-iso-control-tests (Files): Likewise.
57503         * modules/unictype/property-join-control-tests (Files): Likewise.
57504         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
57505         * modules/unictype/property-line-separator-tests (Files): Likewise.
57506         * modules/unictype/property-logical-order-exception-tests (Files):
57507         Likewise.
57508         * modules/unictype/property-lowercase-tests (Files): Likewise.
57509         * modules/unictype/property-math-tests (Files): Likewise.
57510         * modules/unictype/property-non-break-tests (Files): Likewise.
57511         * modules/unictype/property-not-a-character-tests (Files): Likewise.
57512         * modules/unictype/property-numeric-tests (Files): Likewise.
57513         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
57514         * modules/unictype/property-other-default-ignorable-code-point-tests
57515         (Files): Likewise.
57516         * modules/unictype/property-other-grapheme-extend-tests (Files):
57517         Likewise.
57518         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
57519         * modules/unictype/property-other-id-start-tests (Files): Likewise.
57520         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
57521         * modules/unictype/property-other-math-tests (Files): Likewise.
57522         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
57523         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
57524         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
57525         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
57526         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
57527         * modules/unictype/property-private-use-tests (Files): Likewise.
57528         * modules/unictype/property-punctuation-tests (Files): Likewise.
57529         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
57530         * modules/unictype/property-radical-tests (Files): Likewise.
57531         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
57532         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
57533         * modules/unictype/property-space-tests (Files): Likewise.
57534         * modules/unictype/property-terminal-punctuation-tests (Files):
57535         Likewise.
57536         * modules/unictype/property-test-tests (Files): Likewise.
57537         * modules/unictype/property-titlecase-tests (Files): Likewise.
57538         * modules/unictype/property-unassigned-code-value-tests (Files):
57539         Likewise.
57540         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
57541         * modules/unictype/property-uppercase-tests (Files): Likewise.
57542         * modules/unictype/property-variation-selector-tests (Files): Likewise.
57543         * modules/unictype/property-white-space-tests (Files): Likewise.
57544         * modules/unictype/property-xid-continue-tests (Files): Likewise.
57545         * modules/unictype/property-xid-start-tests (Files): Likewise.
57546         * modules/unictype/property-zero-width-tests (Files): Likewise.
57547         * modules/unictype/scripts-tests (Files): Likewise.
57548         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
57549         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
57550         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
57551         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
57552         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
57553         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
57554         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
57555         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
57556         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
57557         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
57558         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
57559         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
57560         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
57561         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
57562         * modules/uninorm/composition-tests (Files): Likewise.
57563         * modules/uninorm/decomposing-form-tests (Files): Likewise.
57564         * modules/uninorm/decomposition-tests (Files): Likewise.
57565         * modules/uninorm/filter-tests (Files): Likewise.
57566         * modules/uninorm/nfc-tests (Files): Likewise.
57567         * modules/uninorm/nfd-tests (Files): Likewise.
57568         * modules/uninorm/nfkc-tests (Files): Likewise.
57569         * modules/uninorm/nfkd-tests (Files): Likewise.
57570         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
57571         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
57572         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
57573         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
57574         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
57575         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
57576         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
57577         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
57578         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
57579         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
57580         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
57581         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
57582         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
57583         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
57584         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
57585         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
57586         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
57587         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
57588         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
57589         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
57590         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
57591         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
57592         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
57593         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57594         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57595         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57596         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57597         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57598         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57599         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57600         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57601         * modules/uniwidth/u8-width-tests (Files): Likewise.
57602         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57603         * modules/uniwidth/u16-width-tests (Files): Likewise.
57604         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57605         * modules/uniwidth/u32-width-tests (Files): Likewise.
57606         * modules/uniwidth/width-tests (Files): Likewise.
57607         * modules/unlink-tests (Files): Likewise.
57608         * modules/unsetenv-tests (Files): Likewise.
57609         * modules/usleep-tests (Files): Likewise.
57610         * modules/utimens-tests (Files): Likewise.
57611         * modules/utimensat-tests (Files): Likewise.
57612         * modules/vasnprintf-posix-tests (Files): Likewise.
57613         * modules/vasnprintf-tests (Files): Likewise.
57614         * modules/vasprintf-posix-tests (Files): Likewise.
57615         * modules/vasprintf-tests (Files): Likewise.
57616         * modules/vdprintf-posix-tests (Files): Likewise.
57617         * modules/vfprintf-posix-tests (Files): Likewise.
57618         * modules/vprintf-posix-tests (Files): Likewise.
57619         * modules/vsnprintf-posix-tests (Files): Likewise.
57620         * modules/vsnprintf-tests (Files): Likewise.
57621         * modules/vsprintf-posix-tests (Files): Likewise.
57622         * modules/wcrtomb-tests (Files): Likewise.
57623         * modules/wcsnrtombs-tests (Files): Likewise.
57624         * modules/wcsrtombs-tests (Files): Likewise.
57625         * modules/wctype-tests (Files): Likewise.
57626         * modules/wcwidth-tests (Files): Likewise.
57627         * modules/xmemdup0-tests (Files): Likewise.
57628         * modules/xprintf-posix-tests (Files): Likewise.
57629         * modules/xvasprintf-tests (Files): Likewise.
57631 2009-12-24  Eric Blake  <ebb9@byu.net>
57633         test-nanosleep: fix typo
57634         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57635         patch.
57636         Reported by Bruno Haible.
57638 2009-12-24  Bruno Haible  <bruno@clisp.org>
57640         Reduce namespace pollution on glibc systems.
57641         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57642         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57643         systems.
57644         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57645         <getopt.h> on glibc systems.
57646         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57647         systems.
57648         * lib/fcntl.c: Include <unistd.h> here instead.
57650 2009-12-24  Bruno Haible  <bruno@clisp.org>
57652         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57654 2009-12-24  Eric Blake  <ebb9@byu.net>
57656         tests: add signature checks
57657         * tests/signature.h (SIGNATURE_CHECK): New file.
57658         * modules/atexit-tests (Files): Use it.
57659         * modules/btowc-tests (Files): Likewise.
57660         * modules/canonicalize-lgpl-tests (Files): Likewise.
57661         * modules/ceilf-tests (Files): Likewise.
57662         * modules/ceill-tests (Files): Likewise.
57663         * modules/chown-tests (Files): Likewise.
57664         * modules/dprintf-posix-tests (Files): Likewise.
57665         * modules/dup2-tests (Files): Likewise.
57666         * modules/dup3-tests (Files): Likewise.
57667         * modules/duplocale-tests (Files): Likewise.
57668         * modules/fchdir-tests (Files): Likewise.
57669         * modules/fcntl-tests (Files): Likewise.
57670         * modules/fdopendir-tests (Files): Likewise.
57671         * modules/fflush-tests (Files): Likewise.
57672         * modules/flock-tests (Files): Likewise.
57673         * modules/floorf-tests (Files): Likewise.
57674         * modules/floorl-tests (Files): Likewise.
57675         * modules/fnmatch-tests (Files): Likewise.
57676         * modules/fopen-tests (Files): Likewise.
57677         * modules/fprintf-posix-tests (Files): Likewise.
57678         * modules/freopen-tests (Files): Likewise.
57679         * modules/frexp-nolibm-tests (Files): Likewise.
57680         * modules/frexp-tests (Files): Likewise.
57681         * modules/frexpl-nolibm-tests (Files): Likewise.
57682         * modules/frexpl-tests (Files): Likewise.
57683         * modules/fseek-tests (Files): Likewise.
57684         * modules/fseeko-tests (Files): Likewise.
57685         * modules/fsync-tests (Files): Likewise.
57686         * modules/ftell-tests (Files): Likewise.
57687         * modules/ftello-tests (Files): Likewise.
57688         * modules/futimens-tests (Files): Likewise.
57689         * modules/getaddrinfo-tests (Files): Likewise.
57690         * modules/getcwd-tests (Files): Likewise.
57691         * modules/getdelim-tests (Files): Likewise.
57692         * modules/getdtablesize-tests (Files): Likewise.
57693         * modules/getgroups-tests (Files): Likewise.
57694         * modules/gethostname-tests (Files): Likewise.
57695         * modules/getline-tests (Files): Likewise.
57696         * modules/getopt-posix-tests (Files): Likewise.
57697         * modules/gettimeofday-tests (Files): Likewise.
57698         * modules/glob-tests (Files): Likewise.
57699         * modules/iconv-tests (Files): Likewise.
57700         * modules/inet_ntop-tests (Files): Likewise.
57701         * modules/inet_pton-tests (Files): Likewise.
57702         * modules/isblank-tests (Files): Likewise.
57703         * modules/lchown-tests (Files): Likewise.
57704         * modules/ldexpl-tests (Files): Likewise.
57705         * modules/link-tests (Files): Likewise.
57706         * modules/linkat-tests (Files): Likewise.
57707         * modules/lseek-tests (Files): Likewise.
57708         * modules/lstat-tests (Files): Likewise.
57709         * modules/mbrtowc-tests (Files): Likewise.
57710         * modules/mbsinit-tests (Files): Likewise.
57711         * modules/mbsnrtowcs-tests (Files): Likewise.
57712         * modules/mbsrtowcs-tests (Files): Likewise.
57713         * modules/memchr-tests (Files): Likewise.
57714         * modules/memcmp-tests (Files): Likewise.
57715         * modules/memmem-tests (Files): Likewise.
57716         * modules/memrchr-tests (Files): Likewise.
57717         * modules/mkdir-tests (Files): Likewise.
57718         * modules/mkfifo-tests (Files): Likewise.
57719         * modules/mkfifoat-tests (Files): Likewise.
57720         * modules/mknod-tests (Files): Likewise.
57721         * modules/nanosleep-tests (Files): Likewise.
57722         * modules/nl_langinfo-tests (Files): Likewise.
57723         * modules/obstack-printf-tests (Files): Likewise.
57724         * modules/open-tests (Files): Likewise.
57725         * modules/openat-tests (Files): Likewise.
57726         * modules/perror-tests (Files): Likewise.
57727         * modules/pipe2-tests (Files): Likewise.
57728         * modules/poll-tests (Files): Likewise.
57729         * modules/popen-tests (Files): Likewise.
57730         * modules/posix_spawn-tests (Files): Likewise.
57731         * modules/posix_spawnp-tests (Files): Likewise.
57732         * modules/pread-tests (Files): Likewise.
57733         * modules/printf-posix-tests (Files): Likewise.
57734         * modules/pty-tests (Files): Likewise.
57735         * modules/random_r-tests (Files): Likewise.
57736         * modules/rawmemchr-tests (Files): Likewise.
57737         * modules/readlink-tests (Files): Likewise.
57738         * modules/remove-tests (Files): Likewise.
57739         * modules/rename-tests (Files): Likewise.
57740         * modules/renameat-tests (Files): Likewise.
57741         * modules/rmdir-tests (Files): Likewise.
57742         * modules/round-tests (Files): Likewise.
57743         * modules/roundf-tests (Files): Likewise.
57744         * modules/roundl-tests (Files): Likewise.
57745         * modules/select-tests (Files): Likewise.
57746         * modules/setenv-tests (Files): Likewise.
57747         * modules/sigaction-tests (Files): Likewise.
57748         * modules/sleep-tests (Files): Likewise.
57749         * modules/snprintf-posix-tests (Files): Likewise.
57750         * modules/snprintf-tests (Files): Likewise.
57751         * modules/sprintf-posix-tests (Files): Likewise.
57752         * modules/stat-tests (Files): Likewise.
57753         * modules/strcasestr-tests (Files): Likewise.
57754         * modules/strchrnul-tests (Files): Likewise.
57755         * modules/strerror-tests (Files): Likewise.
57756         * modules/strsignal-tests (Files): Likewise.
57757         * modules/strstr-tests (Files): Likewise.
57758         * modules/strtod-tests (Files): Likewise.
57759         * modules/strverscmp-tests (Files): Likewise.
57760         * modules/symlink-tests (Files): Likewise.
57761         * modules/symlinkat-tests (Files): Likewise.
57762         * modules/times-tests (Files): Likewise.
57763         * modules/trunc-tests (Files): Likewise.
57764         * modules/truncf-tests (Files): Likewise.
57765         * modules/truncl-tests (Files): Likewise.
57766         * modules/tsearch-tests (Files): Likewise.
57767         * modules/uname-tests (Files): Likewise.
57768         * modules/unlink-tests (Files): Likewise.
57769         * modules/unsetenv-tests (Files): Likewise.
57770         * modules/usleep-tests (Files): Likewise.
57771         * modules/utimensat-tests (Files): Likewise.
57772         * modules/vasprintf-tests (Files): Likewise.
57773         * modules/vdprintf-posix-tests (Files): Likewise.
57774         * modules/vfprintf-posix-tests (Files): Likewise.
57775         * modules/vprintf-posix-tests (Files): Likewise.
57776         * modules/vsnprintf-posix-tests (Files): Likewise.
57777         * modules/vsnprintf-tests (Files): Likewise.
57778         * modules/vsprintf-posix-tests (Files): Likewise.
57779         * modules/wcrtomb-tests (Files): Likewise.
57780         * modules/wcsnrtombs-tests (Files): Likewise.
57781         * modules/wcsrtombs-tests (Files): Likewise.
57782         * modules/wcwidth-tests (Files): Likewise.
57783         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
57784         * tests/test-isinf.c (isinf): Likewise.
57785         * tests/test-isnan.c (isnan): Likewise.
57786         * tests/test-signbit.c (signbit): Likewise.
57787         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
57788         declaration, either as macro or with correct signature.
57789         (select): Ensure function under test is declared with correct
57790         signature in correct header.
57791         * tests/test-atexit.c (atexit): Likewise.
57792         * tests/test-btowc.c (btowc): Likewise.
57793         * tests/test-canonicalize-lgpl.c (realpath)
57794         (canonicalize_file_name): Likewise.
57795         * tests/test-ceilf1.c (ceilf): Likewise.
57796         * tests/test-ceill.c (ceill): Likewise.
57797         * tests/test-chown.c (chown): Likewise.
57798         * tests/test-dprintf-posix.c (dprintf): Likewise.
57799         * tests/test-dup2.c (dup2): Likewise.
57800         * tests/test-dup3.c (dup3): Likewise.
57801         * tests/test-duplocale.c (duplocale): Likewise.
57802         * tests/test-fchdir.c (fchdir): Likewise.
57803         * tests/test-fchownat.c (fchownat): Likewise.
57804         * tests/test-fcntl.c (fcntl): Likewise.
57805         * tests/test-fdopendir.c (fdopendir): Likewise.
57806         * tests/test-fflush.c (fflush): Likewise.
57807         * tests/test-flock.c (flock): Likewise.
57808         * tests/test-floorf1.c (floorf): Likewise.
57809         * tests/test-floorl.c (floorl): Likewise.
57810         * tests/test-fnmatch.c (fnmatch): Likewise.
57811         * tests/test-fopen.c (fopen): Likewise.
57812         * tests/test-fprintf-posix.c (fprintf): Likewise.
57813         * tests/test-freopen.c (freopen): Likewise.
57814         * tests/test-frexp.c (frexp): Likewise.
57815         * tests/test-frexpl.c (frexpl): Likewise.
57816         * tests/test-fseek.c (fseek): Likewise.
57817         * tests/test-fseeko.c (fseeko): Likewise.
57818         * tests/test-fstatat.c (fstatat): Likewise.
57819         * tests/test-fsync.c (fsync): Likewise.
57820         * tests/test-ftell.c (ftell): Likewise.
57821         * tests/test-ftello.c (ftello): Likewise.
57822         * tests/test-futimens.c (futimens): Likewise.
57823         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
57824         (gai_strerror): Likewise.
57825         * tests/test-getcwd.c (getcwd): Likewise.
57826         * tests/test-getdelim.c (getdelim): Likewise.
57827         * tests/test-getdtablesize.c (getdtablesize): Likewise.
57828         * tests/test-getgroups.c (getgroups): Likewise.
57829         * tests/test-gethostname.c (gethostname): Likewise.
57830         * tests/test-getline.c (getline): Likewise.
57831         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
57832         Likewise.
57833         * tests/test-gettimeofday.c (gettimeofday): Likewise.
57834         * tests/test-glob.c (glob, globfree): Likewise.
57835         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
57836         * tests/test-inet_ntop.c (inet_ntop): Likewise.
57837         * tests/test-inet_pton.c (inet_pton): Likewise.
57838         * tests/test-isblank.c (isblank): Likewise.
57839         * tests/test-lchown.c (lchown): Likewise.
57840         * tests/test-ldexpl.c (ldexpl): Likewise.
57841         * tests/test-link.c (link): Likewise.
57842         * tests/test-linkat.c (linkat): Likewise.
57843         * tests/test-lseek.c (lseek): Likewise.
57844         * tests/test-lstat.c (lstat): Likewise.
57845         * tests/test-mbrtowc.c (mbrtowc): Likewise.
57846         * tests/test-mbsinit.c (mbsinit): Likewise.
57847         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
57848         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
57849         * tests/test-memchr.c (memchr): Likewise.
57850         * tests/test-memcmp.c (memcmp): Likewise.
57851         * tests/test-memmem.c (memmem): Likewise.
57852         * tests/test-memrchr.c (memrchr): Likewise.
57853         * tests/test-mkdir.c (mkdir): Likewise.
57854         * tests/test-mkdirat.c (mkdirat): Likewise.
57855         * tests/test-mkfifo.c (mkfifo): Likewise.
57856         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
57857         * tests/test-mknod.c (mknod): Likewise.
57858         * tests/test-nanosleep.c (nanosleep): Likewise.
57859         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57860         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57861         Likewise.
57862         * tests/test-open.c (open): Likewise.
57863         * tests/test-openat.c (openat): Likewise.
57864         * tests/test-perror.c (perror): Likewise.
57865         * tests/test-pipe2.c (pipe2): Likewise.
57866         * tests/test-poll.c (poll): Likewise.
57867         * tests/test-popen.c (popen, pclose): Likewise.
57868         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57869         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57870         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57871         (posix_spawn_file_actions_destroy)
57872         (posix_spawn_file_actions_addclose)
57873         (posix_spawn_file_actions_addopen)
57874         (posix_spawn_file_actions_adddup2): Likewise.
57875         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57876         * tests/test-pread.c (pread): Likewise.
57877         * tests/test-printf-posix.c (printf): Likewise.
57878         * tests/test-pty.c (openpty, forkpty): Likewise.
57879         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57880         (random_r): Likewise.
57881         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57882         * tests/test-readlink.c (readlink): Likewise.
57883         * tests/test-remove.c (remove): Likewise.
57884         * tests/test-rename.c (rename): Likewise.
57885         * tests/test-renameat.c (renameat): Likewise.
57886         * tests/test-rmdir.c (rmdir): Likewise.
57887         * tests/test-round1.c (round): Likewise.
57888         * tests/test-roundf1.c (roundf): Likewise.
57889         * tests/test-roundl.c (roundl): Likewise.
57890         * tests/test-setenv.c (setenv): Likewise.
57891         * tests/test-sigaction.c (sigaction): Likewise.
57892         * tests/test-sleep.c (sleep): Likewise.
57893         * tests/test-snprintf.c (snprintf): Likewise.
57894         * tests/test-sprintf-posix.c (sprintf): Likewise.
57895         * tests/test-stat.c (stat): Likewise.
57896         * tests/test-stpncpy.c (stpncpy): Likewise.
57897         * tests/test-strcasestr.c (strcasestr): Likewise.
57898         * tests/test-strchrnul.c (strchrnul): Likewise.
57899         * tests/test-strerror.c (strerror): Likewise.
57900         * tests/test-strsignal.c (strsignal): Likewise.
57901         * tests/test-strstr.c (strstr): Likewise.
57902         * tests/test-strtod.c (strtod): Likewise.
57903         * tests/test-strverscmp.c (strverscmp): Likewise.
57904         * tests/test-symlink.c (symlink): Likewise.
57905         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57906         * tests/test-times.c (times): Likewise.
57907         * tests/test-trunc1.c (trunc): Likewise.
57908         * tests/test-truncf1.c (truncf): Likewise.
57909         * tests/test-truncl.c (truncl): Likewise.
57910         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57911         Likewise.
57912         * tests/test-uname.c (uname): Likewise.
57913         * tests/test-unlink.c (unlink): Likewise.
57914         * tests/test-unlinkat.c (unlinkat): Likewise.
57915         * tests/test-unsetenv.c (unsetenv): Likewise.
57916         * tests/test-usleep.c (usleep): Likewise.
57917         * tests/test-utimensat.c (utimensat): Likewise.
57918         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
57919         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
57920         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
57921         * tests/test-vprintf-posix.c (vprintf): Likewise.
57922         * tests/test-vsnprintf.c (vsnprintf): Likewise.
57923         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
57924         * tests/test-wcrtomb.c (wcrtomb): Likewise.
57925         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
57926         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
57927         * tests/test-wcwidth.c (wcwidth): Likewise.
57929         build: pull in conditional headers during GNULIB_POSIXCHECK
57930         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
57931         definitions from any conditionally-included headers.
57932         * lib/stdlib.in.h (includes): Likewise.
57933         * lib/unistd.in.h (includes): Likewise.
57935 2009-12-24  Bruno Haible  <bruno@clisp.org>
57937         * tests/test-argv-iter.c: Include header file being tested immediately
57938         after config.h.
57939         * tests/test-base64.c: Likewise.
57940         * tests/test-flock.c: Likewise.
57941         * tests/test-fsync.c: Likewise.
57942         * tests/test-getdate.c: Likewise.
57943         * tests/test-getndelim2.c: Likewise.
57944         * tests/test-isfinite.c: Likewise.
57945         * tests/test-isinf.c: Likewise.
57946         * tests/test-strerror.c: Likewise.
57947         * tests/test-strsignal.c: Likewise.
57949 2009-12-23  Eric Blake  <ebb9@byu.net>
57951         unistd: work around cygwin bug
57952         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
57953         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
57954         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57956 2009-12-23  Bruno Haible  <bruno@clisp.org>
57958         localename: More tests.
57959         * tests/test-localename.c (SIZEOF): New macro.
57960         (categories): New variable.
57961         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
57962         test_locale_name_default): Add test w.r.t. thread locale.
57963         (test_locale_name_thread): New function.
57964         (main): Invoke it.
57966         localename: Make aware of thread locale.
57967         * lib/localename.h (gl_locale_name_thread): New declaration.
57968         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
57969         behaviour with respect to thread locale.
57970         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
57971         <langinfo.h>, glthread/lock.h.
57972         (SIZE_BITS): New macro.
57973         (string_hash): New function.
57974         (struct hash_node): New type.
57975         (HASH_TABLE_SIZE): New macro.
57976         (struniq_hash_table, struniq_lock): New variables.
57977         (struniq): New function.
57978         (gl_locale_name_thread): New function.
57979         (gl_locale_name): Invoke it.
57980         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
57981         * modules/localename (Depends-on): Add lock.
57982         Reported by Mike Gran <spk121@yahoo.com>.
57984 2009-12-23  Eric Blake  <ebb9@byu.net>
57986         va-args: new module
57987         * modules/va-args: New file.
57988         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
57989         * MODULES.html.sh (Core language properties): Mention it.
57991         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
57992         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
57993         named alias for __attribute__((__unused__)).
57994         * lib/chown.c: Update client.
57995         * lib/fchmodat.c: Likewise.
57996         * lib/fts.c: Likewise.
57997         * lib/getdate.y: Likewise.
57998         * lib/getgroups.c: Likewise.
57999         * lib/getopt.c: Likewise.
58000         * lib/getugroups.c: Likewise.
58001         * lib/mkdir.c: Likewise.
58002         * lib/mkfifo.c: Likewise.
58003         * lib/mkfifoat.c: Likewise.
58004         * lib/mknod.c: Likewise.
58005         * lib/mknodat.c: Likewise.
58006         * lib/readlink.c: Likewise.
58007         * lib/se-context.in.h: Likewise.
58008         * lib/se-selinux.in.h: Likewise.
58009         * lib/sockets.c: Likewise.
58010         * lib/symlink.c: Likewise.
58011         * lib/symlinkat.c: Likewise.
58012         * lib/unicodeio.c: Likewise.
58013         * lib/unistr.h: Likewise.
58014         * tests/test-areadlink.c: Likewise.
58015         * tests/test-areadlinkat.c: Likewise.
58016         * tests/test-filenamecat.c: Likewise.
58017         * tests/test-fseeko.c: Likewise.
58018         * tests/test-ftello.c: Likewise.
58019         * tests/test-getdate.c: Likewise.
58020         * tests/test-getgroups.c: Likewise.
58021         * tests/test-gethostname.c: Likewise.
58022         * tests/test-quotearg.c: Likewise.
58023         * tests/test-version-etc.c: Likewise.
58024         * tests/test-xalloc-die.c: Likewise.
58025         * tests/test-xfprintf-posix.c: Likewise.
58026         * tests/test-xprintf-posix.c: Likewise.
58027         * tests/test-xvasprintf.c: Likewise.
58029         tests: avoid compiler warnings
58030         * tests/test-fcntl.c (main): Delete unused parameters.
58031         * tests/test-freopen-safer.c (main): Likewise.
58032         * tests/test-xalloc-die.c (main): Mark unused parameters.
58033         * tests/test-fseeko.c (main): Likewise.
58034         * tests/test-ftello.c (main): Likewise.
58035         * tests/test-nanosleep.c (main): Avoid declaration warning.
58036         * tests/test-sleep.c (main): Likewise.
58037         * tests/test-unsetenv.c (main): Silence warning about string
58038         literal.
58039         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
58041 2009-12-23  Bruno Haible  <bruno@clisp.org>
58043         * tests/test-localename.c (test_locale_name): New function, extracted
58044         from main. Also test mixed situations.
58045         (test_locale_name_posix, test_locale_name_environ,
58046         test_locale_name_default): New functions.
58047         (main): Invoke them all.
58048         * modules/localename-tests (configure.ac): Test for newlocale.
58050 2009-12-23  Bruno Haible  <bruno@clisp.org>
58052         unistd: Ensure getcwd gets declared before being overridden.
58053         * lib/unistd.in.h: Conditionally include <io.h>.
58055 2009-12-22  Bruno Haible  <bruno@clisp.org>
58057         wchar: Diagnose broken combination of glibc and gcc versions and flags.
58058         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
58059         (gl_WCHAR_H): Invoke it.
58060         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
58061         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
58062         Reported by Karl Berry <karl@freefriends.org>.
58064 2009-12-22  Eric Blake  <ebb9@byu.net>
58066         math, unistd: avoid redundant includes
58067         * lib/math.in.h (isnan): No need to re-include <math.h>.
58068         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
58070         getsubopt: work around cygwin bug
58071         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
58072         avoid conflicting with system getsubopt.
58073         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
58074         bug.
58076         getopt: synchronize from glibc
58077         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
58078         parameter order.  Adjust all callers.
58079         (_getopt_internal_r, main): Adjust quoting in error messages.
58080         Drop considerations for outdated POSIX 1003.2 error message.
58081         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
58082         callers.
58083         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
58085         test-getopt: test stderr behavior
58086         * modules/getopt-posix-tests (Depends-on): Add dup2.
58087         * tests/test-getopt.c (ASSERT): Avoid stderr.
58088         (main): Move stderr to a temporary file.
58089         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
58090         Instead, add parameter to inform caller if output occurred.
58091         (test_getopt): Adjust all existing tests to expect silence, and
58092         add new tests of leading ":".
58093         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58094         glibc shortcomings with leading "-:" or "+:" in optstring.
58095         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58096         Likewise.
58097         * doc/posix-functions/getopt.texi (getopt): Likewise.
58099         test-getopt: enhance test
58100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
58101         supports optind=0.
58102         * tests/test-getopt.c (OPTIND_MIN): Move...
58103         * tests/test-getopt.h (OPTIND_MIN): ...here.
58104         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
58105         Require that optind=0 works, since modern BSD supports it in
58106         addition to optreset, and since coreutils expects it.
58107         (test_getopt_long_only): New test.
58108         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58109         glibc shortcomings with 'W;', and enforcement of optind=0.
58110         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58111         Likewise.
58113 2009-12-21  Bruno Haible  <bruno@clisp.org>
58115         localename: Improvements for MacOS X and Cygwin.
58116         * lib/localename.h (gl_locale_name_environ): New declaration.
58117         * lib/localename.c (gl_locale_name_environ): New function, extracted from
58118         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
58119         (gl_locale_name_posix): Invoke it.
58120         (gl_locale_name_default): Add comments. Use Windows native API also on
58121         Cygwin.
58123 2009-12-21  Bruno Haible  <bruno@clisp.org>
58125         Update list of Win32 locale ids.
58126         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
58127         (LANG_SAMI): Renamed from LANG_SAAMI.
58128         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
58129         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
58130         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
58131         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
58132         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
58133         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
58134         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
58135         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
58136         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
58137         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
58138         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
58139         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
58140         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
58141         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
58142         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
58143         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
58144         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
58145         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
58146         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
58147         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
58148         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
58149         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
58150         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
58151         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
58152         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
58153         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
58154         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
58155         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
58156         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
58157         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
58158         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
58159         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
58160         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
58161         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
58162         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
58163         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
58164         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
58165         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
58166         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
58167         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
58168         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
58169         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
58170         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
58171         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
58172         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
58173         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
58174         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
58175         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
58176         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
58177         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
58178         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
58179         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
58180         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
58181         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
58182         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
58183         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
58184         Add more languages and countries for Sami, Sorbian. Add more countries
58185         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
58186         for Pashto. Change country for Syriac, Tswana.
58188 2009-12-21  Eric Blake  <ebb9@byu.net>
58190         test-utimens: avoid spurious failure
58191         * tests/test-chown.h (nap): Factor...
58192         * tests/nap.h: ...into new file.
58193         * tests/test-lchown.h (nap): Avoid duplication.
58194         * tests/test-utimens-common.h (nap): Use shared implementation,
58195         necessary on file systems with 1-second resolution.
58196         * modules/chown-tests (Files): Include new file.
58197         * modules/fdutimensat-tests (Files): Likewise.
58198         * modules/futimens-tests (Files): Likewise.
58199         * modules/lchown-tests (Files): Likewise.
58200         * modules/openat-tests (Files): Likewise.
58201         * modules/utimens-tests (Files): Likewise.
58202         * modules/utimensat-tests (Files): Likewise.
58204 2009-12-19  Eric Blake  <ebb9@byu.net>
58206         futimens, utimensat: work around Linux bug
58207         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
58208         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58209         * lib/utimensat.c (rpl_utimensat): Work around it.
58210         * lib/futimens.c (rpl_futimens): Adjust comment.
58212         utimens: work around Linux ctime bug
58213         * lib/utimens.c (detect_ctime_bug): New helper function.
58214         (update_timespec): Differentiate between workaround needed for
58215         this bug vs. what is needed for systems that lack utimensat.
58216         (fdutimens, lutimens): Work around bug.
58218         utimens: check for ctime update
58219         * tests/test-utimens-common.h (check_ctime): Define.
58220         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
58221         * tests/test-futimens.h (test_futimens): Likewise.
58222         * tests/test-lutimens.h (test_lutimens): Likewise.
58223         * doc/posix-functions/futimens.texi (futimens): Document the bug.
58224         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58226 2009-12-19  Bruno Haible  <bruno@clisp.org>
58228         dprintf-posix: Check against memory leak fixed on 2009-12-15.
58229         * tests/test-dprintf-posix2.sh: New file.
58230         * tests/test-dprintf-posix2.c: New file.
58231         * modules/dprintf-posix-tests (Files): Add them.
58232         (configure.ac): Check for getrlimit and setrlimit.
58233         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58235 2009-12-19  Bruno Haible  <bruno@clisp.org>
58237         fprintf-posix: Check against memory leak fixed on 2009-12-15.
58238         * tests/test-fprintf-posix3.sh: New file.
58239         * tests/test-fprintf-posix3.c: New file.
58240         * modules/fprintf-posix-tests (Files): Add them.
58241         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58243 2009-12-19  Eric Blake  <ebb9@byu.net>
58245         dirfd: fix prototype
58246         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
58247         * lib/dirfd.c (dirfd): Likewise.
58249         canonicalize: reduce memory usage
58250         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
58251         allocation to size.
58252         Reported by Solar Designer <solar@openwall.com>.
58254 2009-12-19  Bruno Haible  <bruno@clisp.org>
58256         New module attribute 'Applicability'.
58257         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
58258         * gnulib-tool: New option --extract-applicability.
58259         (func_usage): Document it.
58260         (sed_extract_prog): Recognize it.
58261         (func_get_applicability): New function.
58262         (func_import): Generalize handling of 'link-warning' module.
58263         * modules/link-warning (Applicability): New section.
58264         * modules/arg-nonnull (Applicability): New section.
58265         Repoted by Simon Josefsson <simon@josefsson.org>.
58267 2009-12-19  Bruno Haible  <bruno@clisp.org>
58269         fflush: tweak
58270         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
58271         * lib/fseeko.c (rpl_fseeko): Likewise.
58273 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
58275         * lib/gl_list.h: Fix typo in comment.
58277 2009-12-16  Eric Blake  <ebb9@byu.net>
58279         fcntl: use to simplify other modules
58280         * modules/cloexec (Depends-on): Add fcntl.
58281         * modules/fchdir (Depends-on): Likewise.
58282         * modules/fd-safer-flag (Depends-on): Likewise.
58283         * modules/unistd-safer (Depends-on): Likewise.
58284         * modules/dup3 (configure.ac): Set module indicator.
58285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
58286         missing.
58287         * lib/fchdir.c (_gl_register_dup): Fix comment.
58288         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
58289         * lib/dup-safer.c (dup_safer): Likewise.
58290         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
58291         * lib/dup3.c (dup3): Likewise.
58292         * tests/test-fchdir.c (main): Enhance test.
58293         Fixes a dup_cloexec bug reported by Ondřej Vašík.
58295         fcntl: port portions of fcntl to mingw
58296         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
58297         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
58298         replacement for mingw.
58299         * modules/fcntl (Description): Update.
58300         (Depends-on): Add dup2.
58301         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
58302         * modules/fcntl-h (Makefile.am): Substitute it.
58303         * lib/fcntl.in.h (fcntl): Update declaration.
58304         (F_DUPFD, F_GETFD): New macros, when needed.
58305         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58306         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
58307         * tests/test-fcntl.c (check_flags, main): Enhance test for items
58308         we now guarantee.
58310         fcntl: work around cygwin bug in F_DUPFD
58311         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
58312         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
58313         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
58314         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
58315         * doc/posix-functions/fcntl.texi (fcntl): Document it.
58317         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
58318         * modules/fcntl (Files): List new files.
58319         (configure.ac): Run a test.
58320         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
58321         * lib/fcntl.c (rpl_fcntl): Likewise.
58322         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
58323         (gl_FCNTL_H): Always replace fcntl.h.
58324         * modules/fcntl-h (Makefile.am): Substitute witnesses.
58325         * lib/fcntl.in.h (fcntl): Declare replacement.
58326         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
58327         needed, plus a witness.
58328         * doc/posix-functions/fcntl.texi (fcntl): Document this.
58329         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
58330         * tests/test-fcntl.c: New file.
58331         * modules/fcntl-tests: Likewise.
58333         binary-io: avoid potential compilation warning
58334         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
58335         directives.
58337         fflush: avoid compilation error on NetBSD
58338         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
58339         between off_t and fpos_t, since the latter is sometimes a struct.
58340         * lib/fseeko.c (rpl_fseeko): Likewise.
58341         Reported by Alexander Nasonov <alnsn@yandex.ru>.
58343 2009-12-15  Eric Blake  <ebb9@byu.net>
58345         fcntl-h, stdio, sys_ioctl: fix declarations
58346         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
58347         function must not take arguments.
58348         * lib/sys_ioctl.in.h (ioctl): Likewise.
58349         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
58350         (open): Add a link warning.
58352 2009-12-15  Jim Meyering  <meyering@redhat.com>
58354         areadlink, areadlink-with-size: relax license to LGPLv2+
58355         * modules/areadlink (License): Relax to LGPLv2+.
58356         * modules/areadlink-with-size (License): Likewise.
58358 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
58359             Bruno Haible  <bruno@clisp.org>
58361         *printf: Fix memory leak.
58362         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
58363         * lib/vfprintf.c (vfprintf): Likewise.
58364         * lib/dprintf.c (dprintf): Likewise.
58365         * lib/vdprintf.c (vdprintf): Likewise.
58367 2009-12-14  Eric Blake  <ebb9@byu.net>
58369         accept4: adjust module dependencies
58370         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
58372         utimens: one more try at avoiding compiler warning
58373         * lib/utimens.c (lutimens): Lower scope of result.
58375 2009-12-13  Bruno Haible  <bruno@clisp.org>
58377         Move the malloc checking from module 'list' to new module 'xlist'.
58378         * modules/xlist: New file.
58379         * lib/gl_xlist.h: New file.
58380         * lib/gl_xlist.c: New file.
58381         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
58382         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
58383         gl_list_add_last, gl_list_add_before, gl_list_add_after,
58384         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
58385         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
58386         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
58387         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
58388         gl_sortedlist_nx_add): New declarations.
58389         (struct gl_list_implementation): Rename and change methods accordingly.
58390         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
58391         (gl_list_nx_create): Renamed from gl_list_create.
58392         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58393         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58394         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58395         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58396         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58397         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58398         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58399         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58400         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
58401         gl_list_create_empty.
58402         (gl_list_nx_create): Renamed from gl_list_create.
58403         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58404         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58405         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58406         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58407         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58408         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58409         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58410         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58411         * lib/gl_array_list.c: Don't include xalloc.h.
58412         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
58413         NULL upon out-of-memory.
58414         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
58415         out-of-memory.
58416         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
58417         Change return type to 'int'.
58418         (gl_array_nx_set_at): Renamed from gl_array_set_at.
58419         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58420         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
58421         upon out-of-memory.
58422         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
58423         upon out-of-memory.
58424         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
58425         upon out-of-memory.
58426         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
58427         upon out-of-memory.
58428         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
58429         out-of-memory.
58430         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
58431         Update.
58432         (gl_array_list_implementation): Update.
58433         * lib/gl_carray_list.c: Don't include xalloc.h.
58434         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
58435         Return NULL upon out-of-memory.
58436         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
58437         out-of-memory.
58438         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
58439         Change return type to 'int'.
58440         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
58441         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58442         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
58443         upon out-of-memory.
58444         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
58445         upon out-of-memory.
58446         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
58447         out-of-memory.
58448         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
58449         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
58450         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
58451         Update.
58452         (gl_carray_list_implementation): Update.
58453         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
58454         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
58455         gl_linked_create_empty. Return NULL upon out-of-memory.
58456         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
58457         out-of-memory.
58458         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
58459         Change return type to 'int'. Return -1 upon out-of-memory.
58460         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
58461         out-of-memory.
58462         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
58463         upon out-of-memory.
58464         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
58465         upon out-of-memory.
58466         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
58467         NULL upon out-of-memory.
58468         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
58469         upon out-of-memory.
58470         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
58471         out-of-memory.
58472         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
58473         Update.
58474         * lib/gl_linked_list.c: Don't include xalloc.h.
58475         (gl_linked_list_implementation): Update.
58476         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
58477         (add_to_bucket): Change return type to 'int'.
58478         (gl_linkedhash_list_implementation): Update.
58479         * lib/gl_anytree_list1.h (free_subtree): New function.
58480         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
58481         gl_tree_create_empty. Return NULL upon out-of-memory.
58482         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
58483         Change return type to 'int'. Return -1 upon out-of-memory.
58484         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
58485         out-of-memory.
58486         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
58487         (gl_tree_remove_node): New function, moved here from
58488         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
58489         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
58490         Update.
58491         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
58492         malloc, not xmalloc. Return NULL upon out-of-memory.
58493         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58494         out-of-memory.
58495         (gl_tree_remove_node_from_tree): New function, extracted from
58496         gl_tree_remove_node.
58497         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58498         upon out-of-memory.
58499         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58500         out-of-memory.
58501         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58502         upon out-of-memory.
58503         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58504         upon out-of-memory.
58505         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58506         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
58507         not xmalloc. Return NULL upon out-of-memory.
58508         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58509         out-of-memory.
58510         (gl_tree_remove_node_from_tree): New function, extracted from
58511         gl_tree_remove_node.
58512         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58513         upon out-of-memory.
58514         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58515         out-of-memory.
58516         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58517         upon out-of-memory.
58518         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58519         upon out-of-memory.
58520         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58521         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
58522         gl_anytree_list1.h before gl_anyavltree_list2.h.
58523         (gl_avltree_list_implementation): Update.
58524         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
58525         gl_anytree_list1.h before gl_anyavltree_list2.h.
58526         (gl_rbtree_list_implementation): Update.
58527         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
58528         Change return type to 'int'. Return -1 upon out-of-memory. Use
58529         __builtin_expect.
58530         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
58531         (gl_avltreehash_list_implementation): Update.
58532         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
58533         (gl_rbtreehash_list_implementation): Update.
58534         * modules/array-list (Depends-on): Remove xalloc.
58535         * modules/carray-list (Depends-on): Likewise.
58536         * modules/linked-list (Depends-on): Likewise.
58537         * modules/linkedhash-list (Depends-on): Likewise.
58538         * modules/avltree-list (Depends-on): Likewise.
58539         * modules/rbtree-list (Depends-on): Likewise.
58540         * modules/avltreehash-list (Depends-on): Likewise.
58541         * modules/rbtreehash-list (Depends-on): Likewise.
58543         * modules/xsublist: New file.
58544         * lib/gl_xsublist.h: New file.
58545         * lib/gl_xsublist.c: New file.
58546         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
58547         (gl_sublist_nx_create): New declaration.
58548         * lib/gl_sublist.c: Don't include xalloc.h.
58549         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
58550         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
58551         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
58552         Change return type to 'int'. Return -1 upon out-of-memory.
58553         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
58554         upon out-of-memory.
58555         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
58556         NULL upon out-of-memory.
58557         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
58558         upon out-of-memory.
58559         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
58560         NULL upon out-of-memory.
58561         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
58562         NULL upon out-of-memory.
58563         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
58564         upon out-of-memory.
58565         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
58566         (gl_sublist_list_implementation): Update.
58567         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
58568         upon out-of-memory.
58569         * modules/sublist (Depends-on): Remove xalloc.
58571         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
58572         * tests/test-carray_list.c: Likewise.
58573         * tests/test-linked_list.c: Likewise.
58574         * tests/test-linkedhash_list.c: Likewise.
58575         * tests/test-avltree_list.c: Likewise.
58576         * tests/test-rbtree_list.c: Likewise.
58577         * tests/test-avltreehash_list.c: Likewise.
58578         * tests/test-rbtreehash_list.c: Likewise.
58579         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
58580         * modules/carray-list-tests (Makefile.am): Likewise.
58581         * modules/linked-list-tests (Makefile.am): Likewise.
58582         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58583         * modules/avltree-list-tests (Makefile.am): Likewise.
58584         * modules/rbtree-list-tests (Makefile.am): Likewise.
58585         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58586         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58588         * NEWS: Mention the changes.
58590         * lib/clean-temp.c: Include gl_xlist.h.
58591         * modules/clean-temp (Depends-on): Add xlist.
58593         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58594         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58596         * tests/test-array_oset.c: Include gl_xlist.h.
58597         * modules/array-oset-tests (Depends-on): Add xlist.
58599         Reported by José E. Marchesi <jemarch@gnu.org>.
58601 2009-12-13  Bruno Haible  <bruno@clisp.org>
58603         Move the malloc checking from module 'oset' to new module 'xoset'.
58604         * modules/xoset: New file.
58605         * lib/gl_xoset.h: New file.
58606         * lib/gl_xoset.c: New file.
58607         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58608         declarations.
58609         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58610         (struct gl_oset_implementation): Rename and change methods accordingly.
58611         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58612         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58613         'int'. Mark as __warn_unused_result__.
58614         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58615         gl_oset_create_empty.
58616         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58617         'int'.
58618         * lib/gl_array_oset.c: Don't include xalloc.h.
58619         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58620         malloc, not xmalloc.
58621         (grow): Change return type to 'int'. Don't call xalloc_die.
58622         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58623         to 'int'.
58624         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58625         'int'.
58626         (gl_array_oset_implementation): Update.
58627         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58628         gl_tree_create_empty.
58629         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58630         'int'.
58631         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58632         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58633         xmalloc.
58634         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58635         not xmalloc.
58636         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58637         xmalloc.
58638         (gl_avltree_oset_implementation): Update.
58639         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58640         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58641         xmalloc.
58642         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58643         not xmalloc.
58644         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58645         xmalloc.
58646         (gl_rbtree_oset_implementation): Update.
58647         * modules/array-oset (Depends-on): Remove xalloc.
58648         * modules/avltree-oset (Depends-on): Likewise.
58649         * modules/rbtree-oset (Depends-on): Likewise.
58650         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58651         * tests/test-avltree_oset.c: Likewise.
58652         * tests/test-rbtree_oset.c: Likewise.
58653         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58654         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58655         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58656         * NEWS: Mention the change.
58658 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58660         maint.mk: allow a project to override release-prep commands
58661         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58662         commands into a new rule.
58663         (release-prep): New rule.
58664         (release-prep-hook): New overridable variable.
58666 2009-12-13  Bruno Haible  <bruno@clisp.org>
58668         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58670 2009-12-13  Jim Meyering  <meyering@redhat.com>
58672         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58673         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58675 2009-12-12  Bruno Haible  <bruno@clisp.org>
58677         duplocale: Tweak.
58678         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58680 2009-12-12  Karl Berry  <karl@gnu.org>
58682         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58684 2009-12-12  Bruno Haible  <bruno@clisp.org>
58686         * m4/po.m4: Undo incorrect untabification.
58688 2009-12-12  Bruno Haible  <bruno@clisp.org>
58690         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58691         * modules/c-strtod (Depends-on): Add locale.
58692         * modules/c-strtold (Depends-on): Likewise.
58694 2009-12-12  Bruno Haible  <bruno@clisp.org>
58696         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58698 2009-12-11  Eric Blake  <ebb9@byu.net>
58700         setenv: relax requirement in light of POSIX ruling
58701         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58702         not NULL.
58703         * tests/test-setenv.c (main): Relax test.
58704         * tests/test-unsetenv.c (main): Likewise.
58705         * doc/posix-functions/setenv.texi (setenv): Document this.
58706         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58708 2009-12-11  Bruno Haible  <bruno@clisp.org>
58710         New module 'fd-safer-flag'.
58711         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58712         * lib/dup-safer.c (dup_safer_flag): Remove function.
58713         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58714         * lib/fd-safer.c (fd_safer_flag): Remove function.
58715         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58716         * modules/cloexec (configure.ac): Drop indicator macro.
58717         * modules/fd-safer-flag: New file.
58718         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58719         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58720         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58722 2009-12-11  Bruno Haible  <bruno@clisp.org>
58724         Tests for module 'nl_langinfo'.
58725         * modules/nl_langinfo-tests: New file.
58726         * tests/test-nl_langinfo.sh: New file.
58727         * tests/test-nl_langinfo.c: New file.
58729         New module 'nl_langinfo'.
58730         * lib/nl_langinfo.c: New file.
58731         * m4/nl_langinfo.m4: New file.
58732         * modules/nl_langinfo: New file.
58733         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58735 2009-12-11  Bruno Haible  <bruno@clisp.org>
58737         Tests for module 'langinfo'.
58738         * modules/langinfo-tests: New file.
58739         * tests/test-langinfo.c: New file.
58741         New module 'langinfo'.
58742         * lib/langinfo.in.h: New file.
58743         * m4/langinfo_h.m4: New file.
58744         * modules/langinfo: New file.
58745         * doc/posix-headers/langinfo.texi: Mention the new module.
58747 2009-12-11  Bruno Haible  <bruno@clisp.org>
58749         * lib/config.charset: Untabify.
58751 2009-12-11  Bruno Haible  <bruno@clisp.org>
58753         * modules/unistd-safer (configure.ac): Drop indicator macro.
58755 2009-12-11  Bruno Haible  <bruno@clisp.org>
58757         Move pipe2-safer code to its own file.
58758         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
58759         * lib/pipe-safer.c (pipe2_safer): Remove function.
58760         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
58761         (Makefile.am): Add it to lib_SOURCES.
58763 2009-12-10  Bruno Haible  <bruno@clisp.org>
58765         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
58767 2009-12-10  Bruno Haible  <bruno@clisp.org>
58769         Declare which arguments expect non-NULL values, for GCC and clang.
58770         * build-aux/arg-nonnull.h: New file.
58771         * modules/arg-nonnull: New file.
58772         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
58773         (inet_ntop, inet_pton): Use it.
58774         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
58775         (closedir, dirfd, opendir, scandir, alphasort): Use it.
58776         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
58777         (open, openat): Use it.
58778         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
58779         (fnmatch): Use it.
58780         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
58781         (getopt, getopt_long, getopt_long_only): Use it.
58782         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
58783         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
58784         Use it.
58785         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
58786         (iconv_open): Use it.
58787         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
58788         (strtoimax, strtoumax): Use it.
58789         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
58790         (duplocale): Use it.
58791         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
58792         (frexp, frexpl): Use it.
58793         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
58794         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
58795         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
58796         (tsearch, tfind, tdelete, twalk): Use it.
58797         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
58798         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
58799         sigpending): Use it.
58800         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
58801         (posix_spawn, posix_spawnp, posix_spawnattr_init,
58802         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
58803         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
58804         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
58805         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
58806         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
58807         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
58808         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
58809         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
58810         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
58811         Use it.
58812         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
58813         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
58814         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
58815         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
58816         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
58817         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
58818         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
58819         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
58820         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
58821         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
58822         strtoull, unsetenv): Use it.
58823         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
58824         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
58825         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
58826         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
58827         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
58828         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
58829         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
58830         (strcasecmp, strncasecmp): Use it.
58831         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
58832         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
58833         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
58834         rpl_setsockopt): Use it.
58835         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
58836         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
58837         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
58838         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
58839         (gettimeofday): Use it.
58840         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
58841         (times): Use it.
58842         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
58843         (uname): Use it.
58844         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
58845         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
58846         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
58847         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
58848         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
58849         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
58850         unlinkat, write): Use it.
58851         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
58852         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
58853         * lib/argv-iter.h: Include arg-nonnull.h.
58854         (_ATTRIBUTE_NONNULL_): Remove macro.
58855         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
58856         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
58857         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58858         optimization.
58859         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58860         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58861         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58862         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58863         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58864         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58865         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58866         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58867         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58868         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58869         * modules/dirent (Depends-on): Add arg-nonnull.
58870         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58871         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58872         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58873         * modules/fnmatch (Depends-on): Add arg-nonnull.
58874         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58875         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58876         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58877         * modules/glob (Depends-on): Add arg-nonnull.
58878         (Makefile.am): Insert arg-nonnull.h into glob.h.
58879         * modules/iconv_open (Depends-on): Add arg-nonnull.
58880         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58881         * modules/inttypes (Depends-on): Add arg-nonnull.
58882         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58883         * modules/locale (Depends-on): Add arg-nonnull.
58884         (Makefile.am): Insert arg-nonnull.h into locale.h.
58885         * modules/math (Depends-on): Add arg-nonnull.
58886         (Makefile.am): Insert arg-nonnull.h into math.h.
58887         * modules/netdb (Depends-on): Add arg-nonnull.
58888         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58889         * modules/search (Depends-on): Add arg-nonnull.
58890         (Makefile.am): Insert arg-nonnull.h into search.h.
58891         * modules/signal (Depends-on): Add arg-nonnull.
58892         (Makefile.am): Insert arg-nonnull.h into signal.h.
58893         * modules/spawn (Depends-on): Add arg-nonnull.
58894         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58895         * modules/stdio (Depends-on): Add arg-nonnull.
58896         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58897         * modules/stdlib (Depends-on): Add arg-nonnull.
58898         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58899         * modules/string (Depends-on): Add arg-nonnull.
58900         (Makefile.am): Insert arg-nonnull.h into string.h.
58901         * modules/strings (Depends-on): Add arg-nonnull.
58902         (Makefile.am): Insert arg-nonnull.h into strings.h.
58903         * modules/sys_socket (Depends-on): Add arg-nonnull.
58904         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58905         * modules/sys_stat (Depends-on): Add arg-nonnull.
58906         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58907         * modules/sys_time (Depends-on): Add arg-nonnull.
58908         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58909         * modules/sys_times (Depends-on): Add arg-nonnull.
58910         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58911         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58912         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58913         * modules/time (Depends-on): Add arg-nonnull.
58914         (Makefile.am): Insert arg-nonnull.h into time.h.
58915         * modules/unistd (Depends-on): Add arg-nonnull.
58916         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58917         * modules/wchar (Depends-on): Add arg-nonnull.
58918         (Makefile.am): Insert arg-nonnull.h into wchar.h.
58919         * modules/argv-iter (Depends-on): Add arg-nonnull.
58920         * tests/test-canonicalize.c (null_ptr): New function.
58921         (main): Use it.
58922         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
58923         (main): Use it.
58924         * tests/test-memmem.c (null_ptr): New function.
58925         (main): Use it.
58926         Reported by Jim Meyering.
58928 2009-12-10  Bruno Haible  <bruno@clisp.org>
58930         Use spaces for indentation, not tabs.
58931         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58932         * m4/*.m4: Untabify.
58933         * build-aux/*.h: Untabify.
58934         * tests/**/*.[hc]: Untabify.
58935         * README: New section "Indent with spaces, not TABs", based on
58936         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
58937         * NEWS: Mention the change.
58939 2009-12-10  Bruno Haible  <bruno@clisp.org>
58941         pty test: Fix link error.
58942         * modules/pty-tests (Makefile.am): Add the default LDADD value to
58943         test_pty_LDADD.
58945 2009-12-07  Simon Josefsson  <simon@josefsson.org>
58947         * modules/pty: New file.
58948         * modules/pty-tests: New file.
58949         * m4/pty.m4: New file.
58950         * tests/test-pty.c: New file.
58951         * doc/glibc-headers/pty.texi: Modified.
58952         * doc/glibc-functions/forkpty.texi: Modified.
58953         * doc/glibc-functions/openpty.texi: Modified.
58955 2009-12-10  Bruno Haible  <bruno@clisp.org>
58957         Avoid syntax error in C++ mode.
58958         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
58960 2009-12-10  Bruno Haible  <bruno@clisp.org>
58962         Use sed with option -e.
58963         * gnulib-tool (func_version, func_emit_copyright_notice,
58964         func_emit_initmacro_end, func_import, func_create_testdir): Pass
58965         option -e to sed.
58966         * modules/link-warning (Makefile.am): Likewise.
58968 2009-12-10  Jim Meyering  <meyering@redhat.com>
58970         mgetgroups: do not write bytes beyond end of malloc'd buffer
58971         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
58972         username, we call getgroups with a one-element-shorter buffer,
58973         but still told it the length was original, max_n_groups.
58975 2009-12-09  Eric Blake  <ebb9@byu.net>
58977         cloexec: relax license
58978         * modules/cloexec (Maintainer): Add myself.
58979         (License): Use LGPL, not GPL.
58981         link-warning: optimize generation
58982         * modules/link-warning (Makefile.am): Reduce process usage.
58984 2009-12-09  Bruno Haible  <bruno@clisp.org>
58986         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
58987         workaround was added on 2009-11-17.
58989 2009-12-09  Jim Meyering  <meyering@redhat.com>
58990             Bruno Haible  <bruno@clisp.org>
58992         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
58993         * modules/link-warning (Makefile.am): Make the comment-removing sed
58994         command more robust in the face of bootstrap-prepended comment lines.
58996 2009-12-09  Bruno Haible  <bruno@clisp.org>
58998         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
58999         most one group.
59001 2009-12-09  Simon Josefsson  <simon@josefsson.org>
59002             Bruno Haible  <bruno@clisp.org>
59004         * build-aux/link-warning.h: Add copyright notice.
59005         * modules/link-warning (Makefile.am): Generate link-warning.h from
59006         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
59007         * NEWS: Mention change in link-warning module.
59008         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
59009         * modules/dirent (Makefile.am): Add dependency to dirent.h.
59010         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
59011         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
59012         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
59013         * modules/math (Makefile.am): Add dependency to math.h.
59014         * modules/search (Makefile.am): Add dependency to search.h.
59015         * modules/signal (Makefile.am): Add dependency to signal.h.
59016         * modules/spawn (Makefile.am): Add dependency to spawn.h.
59017         * modules/stdio (Makefile.am): Add dependency to stdio.h.
59018         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
59019         * modules/string (Makefile.am): Add dependency to string.h.
59020         * modules/strings (Makefile.am): Add dependency to strings.h.
59021         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
59022         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
59023         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
59024         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
59025         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
59026         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
59027         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
59028         * modules/unistd (Makefile.am): Add dependency to unistd.h.
59029         * modules/wchar (Makefile.am): Add dependency to wchar.h.
59031 2009-12-09  Bruno Haible  <bruno@clisp.org>
59033         fchdir: Optimize away rpl_fstat when possible.
59034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
59035         REPLACE_OPEN_DIRECTORY.
59036         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
59038 2009-12-09  Bruno Haible  <bruno@clisp.org>
59040         * lib/fchdir.c: Update comment.
59042 2009-12-09  Bruno Haible  <bruno@clisp.org>
59044         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
59046 2009-12-08  Eric Blake  <ebb9@byu.net>
59048         fchdir: avoid memory leak on re-registration.
59049         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
59051 2009-12-08  Jim Meyering  <meyering@redhat.com>
59053         init.sh: avoid Solaris 10 /bin/sh portability problem
59054         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
59055         sourced script:
59056           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
59057           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
59058           bar
59059         tests/init.sh relied on that, accepting a --set-path=DIR argument,
59060         and two tests used that idiom.
59061         * tests/init.sh: Update suggested usage comments.
59062         (path_prepend_): New function, to be used in place
59063         of the --src-path=DIR option.
59064         (setup_): Move PATH-prepending code into path_prepend_.
59065         * tests/test-pread.sh: Adapt to new usage.
59066         * tests/test-xalloc-die.sh: Likewise.
59068 2009-12-08  Simon Josefsson  <simon@josefsson.org>
59070         * doc/gnulib.texi (Glibc pty.h): Add.
59071         * doc/glibc-functions/forkpty.texi: Add.
59072         * doc/glibc-functions/openpty.texi: Add.
59073         Suggested by Bruno Haible.
59075 2009-12-08  Eric Blake  <ebb9@byu.net>
59077         fchdir: fix logic bugs
59078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
59079         * tests/test-fchdir.c (main): Enhance test.
59080         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
59081         is in use.
59083         dup2: fix logic bugs
59084         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
59085         REPLACE_DUP2 to decide when rpl_dup2 is needed.
59086         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
59087         exists.
59088         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
59090 2009-12-07  Eric Blake  <ebb9@byu.net>
59092         unlink: fix m4 detection
59093         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
59095         unistd-safer: add unit test
59096         * modules/unistd-safer-tests: New file.
59097         * tests/test-dup-safer.c: Likewise.
59098         * tests/test-cloexec.c (setmode): Avoid compiler warning.
59099         * tests/test-dup2.c (setmode): Likewise.
59100         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
59102         cloexec: preserve text vs. binary across dup_cloexec
59103         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
59104         mode.
59105         * modules/dup2-tests (Depends-on): Add binary-io.
59106         * modules/cloexec-tests (Depends-on): Likewise.
59107         * tests/test-dup2.c (setmode, is_mode): New helpers.
59108         (main): Add tests that translation mode is preserved.
59109         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
59110         Reported by Bruno Haible.
59112         mgetgroups: reduce duplicate listings
59113         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
59114         resulting array.
59115         * tests/test-chown.h (test_chown): Simplify client.
59116         * tests/test-lchown.h (test_lchown): Likewise.
59118 2009-12-06  Bruno Haible  <bruno@clisp.org>
59120         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
59121         value.
59123 2009-12-06  Bruno Haible  <bruno@clisp.org>
59125         * lib/progname.c: Include stdio.h, stdlib.h.
59126         (set_program_name): Reject a NULL argument.
59128 2009-12-05  Eric Blake  <ebb9@byu.net>
59130         pipe2-safer: new module
59131         * modules/pipe2-safer: New file.
59132         * lib/unistd-safer.h (pipe2_safer): New prototype.
59133         * lib/unistd--.h (pipe2): New wrapper.
59134         * lib/pipe-safer.c (pipe2_safer): New function.
59135         * modules/pipe (Depends-on): Add pipe2-safer.
59136         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
59138         stdlib-safer: preserve cloexec flag for mkostemp[s]
59139         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
59140         fd_safer_flag.
59142         unistd-safer: allow preservation of cloexec status via flag
59143         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
59144         prototypes.
59145         * lib/dup-safer.c (dup_safer_flag): New function.
59146         * lib/fd-safer.c (fd_safer_flag): Likewise.
59147         * modules/cloexec (configure.ac): Set witness.
59149         test-dup2: enhance test
59150         * modules/dup2-tests (Depends-on): Add cloexec.
59151         * tests/test-dup2.c (main): Enhance test.
59153         cloexec: add dup_cloexec
59154         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
59155         header and comments.
59156         * lib/cloexec.c (set_cloexec_flag): Add comments.
59157         (dup_cloexec): New function, with mingw implementation borrowed
59158         from...
59159         * lib/w32spawn.h (dup_noinherit): ...here.
59160         * modules/execute (Depends-on): Add cloexec.
59161         * modules/pipe (Depends-on): Likewise.
59162         * modules/cloexec (Depends-on): Add dup2.
59163         * modules/cloexec-tests (Files): New file.
59164         * tests/test-cloexec.c: Likewise.
59166         test-xalloc-die: fix test for mingw
59167         * modules/xalloc-die-tests (Files): Add tests/init.sh.
59168         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
59169         directory and .exe suffix off argv[0] output.
59171         test-fseeko: fix test for mingw
59172         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
59173         than undefining fseek, so test will pass on mingw.
59175 2009-12-05  Bruno Haible  <bruno@clisp.org>
59177         * lib/progname.h (set_program_name): Clarify specification.
59178         * lib/progname.c (set_program_name): Likewise.
59179         Reported by Jim Meyering.
59181 2009-12-05  Jim Meyering  <meyering@redhat.com>
59183         maint.mk: backslash-escape parens in default regexp
59184         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
59185         backslash-escape the literal parentheses.
59187         maint.mk: news-date-check: use grep -E
59188         * top/maint.mk (today): Define a Make variable, not a...
59189         (news-date-check): ...shell variable.
59190         (news-date-regexp): Use the Make variable.
59191         Use grep's -E option.  Change the failing diagnostic to mention
59192         the variable, $(news-date-regexp).
59194 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
59196         maintainer-makefile: allow customization of NEWS entry format
59197         * top/maint.mk (news-date-regexp): New overridable variable.
59198         (news-date-check): Use it.
59200 2009-12-04  Eric Blake  <ebb9@byu.net>
59202         mgetgroups: add xgetgroups, and avoid ENOSYS failures
59203         * lib/mgetgroups.h (xgetgroups): New prototype.
59204         * lib/mgetgroups.c (xgetgroups): New wrapper.
59205         (mgetgroups): Handle ENOSYS.
59206         * modules/mgetgroups (Depends-on): Add realloc.
59207         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
59209         mgetgroups: avoid argument promotion issues with -1
59210         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
59211         for invalid gid_t.
59212         * tests/test-chown.h (getegid, test_chown): Likewise.
59213         * tests/test-lchown.h (getegid, test_lchown): Likewise.
59215 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
59217         exclude: Fix header file problems.
59218         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
59220 2009-12-01  Jim Meyering  <meyering@redhat.com>
59222         fts: fts_open: do not let an empty string cause immediate failure
59223         This is required in support of GNU rm, for which the command
59224         "rm A '' B" must process and remove both A and B, in spite of
59225         the empty string argument.
59226         * lib/fts.c (fts_open): Do not let the presence of an empty string
59227         cause fts_open to fail immediately.  Most fts-using tools must be
59228         able to process all arguments, in order, and can be expected to
59229         diagnose such arguments themselves.
59231 2009-11-30  Eric Blake  <ebb9@byu.net>
59233         utimens: fix compilation error
59234         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
59235         Declare variable at right scope.
59237 2009-11-29  Jim Meyering  <meyering@redhat.com>
59239         bootstrap: handle perl-5.11's changed --version output
59240         * build-aux/bootstrap (get_version): Handle perl separately,
59241         since perl-5.11's --version output is different.
59243 2009-11-28  Jim Meyering  <meyering@redhat.com>
59245         userspec: depend on the inttostr module, too
59246         * modules/userspec (Depends-on): Add inttostr.
59248         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
59249         * lib/userspec.c (parse_with_separator): Do not accept a user ID
59250         number of MAXUID when it evaluates to (uid_t) -1.
59251         Likewise for group ID.  Reported by Matt McCutchen in
59252         <http://savannah.gnu.org/bugs/?28113>
59254         userspec: reformat to use spaces, not TABs
59255         * lib/userspec.c: Expand TABs to spaces.
59256         Add Emacs' "indent-tabs-mode: nil" hint.
59258 2009-11-27  Eric Blake  <ebb9@byu.net>
59260         getopt-gnu: flush out another BSD bug
59261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
59262         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
59263         flush out BSD bug.
59264         * tests/test-getopt.h (test_getopt): End lists with NULL.
59265         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59266         (test_getopt_long_posix): Enhance test.
59267         * modules/getopt-posix-tests (Depends-on): Add stdbool.
59268         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
59269         getopt-gnu.
59270         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59271         Likewise.
59273 2009-11-27  Simon Josefsson  <simon@josefsson.org>
59275         * modules/idpriv-droptemp-tests (Notice): Fix text.
59277 2009-11-27  Jim Meyering  <meyering@redhat.com>
59279         test-xalloc-die: avoid spurious failure due to libtool argv difference
59280         In a libtool-enabled project, this test would fail due to a difference
59281         in the emitted program name, e.g.,
59282         -test-xalloc-die: memory exhausted
59283         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
59284         Use program to avoid that.
59285         * modules/xalloc-die-tests (Depends-on): Add progname.
59286         * tests/test-xalloc-die.c: Include progname.h".
59287         (program_name): Remove decl.
59288         (main): Call set_program_name.
59289         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
59291 2009-11-26  Richard Jones  <rjones@redhat.com>
59293         w32sock: leave win32 error in place.
59294         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
59296 2009-11-26  Eric Blake  <ebb9@byu.net>
59298         init.sh: suggest to use skip_ and fail_ functions in comments
59299         * tests/init.sh: Add a sentence.
59301 2009-11-25  Bruno Haible  <bruno@clisp.org>
59303         init.sh: add documentation in comments
59304         * tests/init.sh: Add some developer and user documentation.
59306 2009-11-26  Jim Meyering  <meyering@redhat.com>
59308         init.sh: accommodate even those who specify bogus srcdir manually
59309         * tests/init.sh: Normally, srcdir is guaranteed by automake and
59310         configure-time tests to be sanitized, so that there is no need to
59311         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
59312         (with no double quotes) suffices.  However, since tests may be
59313         invoked manually, and since you may explicitly set srcdir to the
59314         name of a directory containing spaces, do quote its uses here.
59315         * tests/test-pread.sh: Likewise.
59316         Suggested by Bruno Haible.
59318         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
59319         * tests/test-pread.sh: Write no data into the pipe, because
59320         test-pread actually reads none.  This avoids a diagnostic,
59321         "bash: echo: write error: Broken pipe", that arises in the unusual
59322         event something is ignoring SIGPIPE, and might be interpreted
59323         as some sort of failure.  Reported by Bruno Haible.
59325 2009-11-25  Jim Meyering  <meyering@redhat.com>
59327         test-pread: cover failure with ESPIPE and EINVAL
59328         * tests/test-pread.c (main): Test for failure, too.
59329         * tests/test-pread.sh: Invoke with stdin on a pipe.
59330         Suggested by Eric Blake.
59332         pread: improvement and fix
59333         * modules/pread (Depends-on): Depend on lseek, for portability to
59334         e.g., mingw.  Suggested by Eric Blake.
59335         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
59337         unistd.in.h: correct declaration of pread
59338         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
59339         Reported by Richard W.M. Jones.
59341         test-pread.sh: distribute the test script
59342         * modules/pread-tests (Files): Include test-pread.sh.
59344         test-pread.sh: clean up
59345         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
59346         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
59347         That is unnecessary, since it's always ".".
59348         Suggestion from Eric Blake.
59350         test-pread.sh: make executable
59351         * tests/test-pread.sh: Set executable bit.
59352         Reported by Eric Blake.
59354         correct typo in test-pread.sh
59355         * tests/test-pread.sh: Add #! line.
59357         test pread
59358         * tests/test-pread.c: New file.
59359         * tests/test-pread.sh: Likewise.
59360         * modules/pread-tests: Likewise.
59362         pread: new module
59363         * modules/pread: New file.
59364         * lib/unistd.in.h (pread): Define/declare.
59365         * lib/pread.c (pread): New file.
59366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
59367         * modules/unistd (Makefile.am): Substitute witnesses.
59368         * doc/posix-functions/pread.texi (pread): Update.
59369         * MODULES.html.sh: Add pread.
59371 2009-11-25  Jim Meyering  <meyering@redhat.com>
59373         tests/init.sh: new file to be used via most *.sh tests
59374         * tests/init.sh: New file.
59376 2009-11-25  Eric Blake  <ebb9@byu.net>
59378         utimens: work around older Linux failure with symlinks
59379         * lib/utimens.c (lutimensat_works_really): New variable.
59380         (fdutimens, lutimens): Use it to manage kernels that support
59381         nanosecond times on files, but not on symlinks.
59382         Reported by Ondřej Vašík.
59384         utimes: fix configure grammar
59385         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
59387 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
59389         regex: Fix fastmap for multibyte character ranges.
59390         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
59391         characters when a multibyte character range is included.
59393 2009-11-22  Andy Wingo  <wingo@pobox.com>
59395         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
59396         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
59398 2009-11-24  Bruno Haible  <bruno@clisp.org>
59400         doc: Most *_l functions exist in MacOS X 10.5.
59401         * doc/posix-functions/duplocale.texi: Update platforms list.
59402         * doc/posix-functions/freelocale.texi: Likewise.
59403         * doc/posix-functions/newlocale.texi: Likewise.
59404         * doc/posix-functions/uselocale.texi: Likewise.
59405         * doc/posix-functions/isalnum_l.texi: Likewise.
59406         * doc/posix-functions/isalpha_l.texi: Likewise.
59407         * doc/posix-functions/isblank_l.texi: Likewise.
59408         * doc/posix-functions/iscntrl_l.texi: Likewise.
59409         * doc/posix-functions/isdigit_l.texi: Likewise.
59410         * doc/posix-functions/isgraph_l.texi: Likewise.
59411         * doc/posix-functions/islower_l.texi: Likewise.
59412         * doc/posix-functions/isprint_l.texi: Likewise.
59413         * doc/posix-functions/ispunct_l.texi: Likewise.
59414         * doc/posix-functions/isspace_l.texi: Likewise.
59415         * doc/posix-functions/isupper_l.texi: Likewise.
59416         * doc/posix-functions/iswalnum_l.texi: Likewise.
59417         * doc/posix-functions/iswalpha_l.texi: Likewise.
59418         * doc/posix-functions/iswblank_l.texi: Likewise.
59419         * doc/posix-functions/iswcntrl_l.texi: Likewise.
59420         * doc/posix-functions/iswctype_l.texi: Likewise.
59421         * doc/posix-functions/iswdigit_l.texi: Likewise.
59422         * doc/posix-functions/iswgraph_l.texi: Likewise.
59423         * doc/posix-functions/iswlower_l.texi: Likewise.
59424         * doc/posix-functions/iswprint_l.texi: Likewise.
59425         * doc/posix-functions/iswpunct_l.texi: Likewise.
59426         * doc/posix-functions/iswspace_l.texi: Likewise.
59427         * doc/posix-functions/iswupper_l.texi: Likewise.
59428         * doc/posix-functions/iswxdigit_l.texi: Likewise.
59429         * doc/posix-functions/isxdigit_l.texi: Likewise.
59430         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
59431         * doc/posix-functions/strcasecmp_l.texi: Likewise.
59432         * doc/posix-functions/strcoll_l.texi: Likewise.
59433         * doc/posix-functions/strfmon_l.texi: Likewise.
59434         * doc/posix-functions/strftime_l.texi: Likewise.
59435         * doc/posix-functions/strncasecmp_l.texi: Likewise.
59436         * doc/posix-functions/strxfrm_l.texi: Likewise.
59437         * doc/posix-functions/tolower_l.texi: Likewise.
59438         * doc/posix-functions/toupper_l.texi: Likewise.
59439         * doc/posix-functions/towctrans_l.texi: Likewise.
59440         * doc/posix-functions/towlower_l.texi: Likewise.
59441         * doc/posix-functions/towupper_l.texi: Likewise.
59442         * doc/posix-functions/wcscoll_l.texi: Likewise.
59443         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
59444         * doc/posix-functions/wctrans_l.texi: Likewise.
59445         * doc/posix-functions/wctype_l.texi: Likewise.
59446         * doc/glibc-functions/strptime_l.texi: Likewise.
59447         * doc/glibc-functions/strtod_l.texi: Likewise.
59448         * doc/glibc-functions/strtof_l.texi: Likewise.
59449         * doc/glibc-functions/strtol_l.texi: Likewise.
59450         * doc/glibc-functions/strtold_l.texi: Likewise.
59451         * doc/glibc-functions/strtoll_l.texi: Likewise.
59452         * doc/glibc-functions/strtoul_l.texi: Likewise.
59453         * doc/glibc-functions/strtoull_l.texi: Likewise.
59454         * doc/glibc-functions/wcsftime_l.texi: Likewise.
59455         * doc/glibc-functions/wcstod_l.texi: Likewise.
59456         * doc/glibc-functions/wcstof_l.texi: Likewise.
59457         * doc/glibc-functions/wcstol_l.texi: Likewise.
59458         * doc/glibc-functions/wcstold_l.texi: Likewise.
59459         * doc/glibc-functions/wcstoll_l.texi: Likewise.
59460         * doc/glibc-functions/wcstoul_l.texi: Likewise.
59461         * doc/glibc-functions/wcstoull_l.texi: Likewise.
59463 2009-11-24  Bruno Haible  <bruno@clisp.org>
59465         duplocale: Fix logic bug.
59466         * lib/duplocale.c: Don't include <langinfo.h>.
59467         (_NL_LOCALE_NAME): Remove macro.
59468         (rpl_duplocale): Use setlocale instead of nl_langinfo.
59469         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
59471 2009-11-23  Jim Meyering  <meyering@redhat.com>
59473         test-update-copyright: don't hard-code /usr/bin/perl
59474         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
59475         perl to print the current year.  Gilles Espinasse reported that
59476         the replaced use of perl was hard-coded as /usr/bin/perl.
59478 2009-11-23  Bruno Haible  <bruno@clisp.org>
59480         duplocale: Add support for glibc 2.3.x.
59481         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
59483 2009-11-22  Bruno Haible  <bruno@clisp.org>
59485         vasnprintf: Tiny optimization.
59486         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
59487         MacOS X.
59489 2009-11-22  Bruno Haible  <bruno@clisp.org>
59491         Tests for module 'duplocale'.
59492         * modules/duplocale-tests: New file.
59493         * tests/test-duplocale.c: New file.
59495         New module 'duplocale'.
59496         * m4/duplocale.m4: New file.
59497         * lib/locale.in.h (duplocale): New declaration.
59498         * lib/duplocale.c: New file.
59499         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
59500         gl_LOCALE_H_DEFAULTS): New macros.
59501         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
59502         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
59503         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
59504         REPLACE_DUPLOCALE.
59505         * modules/duplocale: New file.
59506         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
59508 2009-11-22  Bruno Haible  <bruno@clisp.org>
59510         * modules/locale-tests (configure.ac): Test for newlocale function.
59511         * tests/test-locale.c: When the system has extended locale functions,
59512         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
59514         locale: Make locale_t available when possible.
59515         * lib/locale.in.h: Include <xlocale.h> when it exists.
59516         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
59517         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
59518         * modules/locale (Depends-on): Add extensions.
59519         (Makefile.am): Also substitute HAVE_XLOCALE_H.
59520         * doc/posix-headers/locale.texi: Document the problem with locale_t.
59522 2009-11-22  Bruno Haible  <bruno@clisp.org>
59524         Add comments.
59525         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
59526         invocation.
59527         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59528         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59529         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59531 2009-11-22  Bruno Haible  <bruno@clisp.org>
59533         error: account for the possibility of freopen (stdout).
59534         * lib/error.c: Include <unistd.h>.
59535         (flush_stdout): New function, extracted from error and error_at_line.
59536         Determine stdout's fd dynamically.
59537         (error, error_at_line): Invoke flush_stdout.
59538         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
59539         * modules/error (Depends-on): Add unistd.
59541 2009-11-22  Bruno Haible  <bruno@clisp.org>
59543         diffseq: Add comment.
59544         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
59546 2009-11-22  Jim Meyering  <meyering@redhat.com>
59548         c-stack: avoid defining an unused static function
59549         * lib/c-stack.c (find_stack_direction): Do not define this function
59550         when it will not be used.
59552         diffseq: avoid spurious gcc warnings
59553         * lib/diffseq.h (IF_LINT2): Define.
59554         (compareseq): Use it to initialize two members of "part".
59555         This avoids two used-uninitialized warnings.
59557 2009-11-21  Jim Meyering  <meyering@redhat.com>
59559         c-stack: avoid "ignoring return value of `write'" warning
59560         * lib/c-stack.c: Include "ignore-value.h".
59561         (die): Explicitly ignore each write return value.
59562         * modules/c-stack (Depends-on): Add ignore-value.
59564 2009-11-21  Bruno Haible  <bruno@clisp.org>
59566         diffseq: reduce scope of variable 'best'.
59567         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
59568         variable, earlier used for two different purposes.
59570 2009-11-21  Jim Meyering  <meyering@redhat.com>
59572         diffseq: remove useless assignment to "best"
59573         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
59574         assignment.  At that point "best" is already guaranteed to be zero.
59576 2009-11-20  Eric Blake  <ebb9@byu.net>
59578         build: mention ftp redirector in release announcements
59579         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
59580         values that used to come from cfg.mk; mention FTP redirect URL.
59581         * build-aux/announce-gen: Mention the mirror list.
59582         Suggested by Karl Berry.
59584         nanosleep: improve port to mingw
59585         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
59586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
59587         LIB_NANOSLEEP, but only when needed.
59588         * modules/select (Link): Document LIBSOCKET.
59589         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
59590         enough.
59592         nanosleep: work around cygwin bug
59593         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59594         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59595         bug.
59596         (getnow): Delete, not needed.
59597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59598         LIB_CLOCK_GETTIME.
59599         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59600         clock-time, gettime.
59601         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59602         bug.
59603         * modules/nanosleep-tests: New test.
59604         * tests/test-nanosleep.c: New file.
59606         sleep: work around cygwin bug
59607         * lib/sleep.c (rpl_sleep): Work around the bug.
59608         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59609         (gl_PREREQ_SLEEP): Delete unused macro.
59610         * modules/sleep (Depends-on): Add verify.
59611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59612         * modules/unistd (Makefile.am): Substitute witness.
59613         * lib/unistd.in.h (sleep): Update prototype.
59614         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59615         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59616         * modules/sleep-tests (Depends-on): Check for alarm.
59618 2009-11-20  Jim Meyering  <meyering@redhat.com>
59620         maint.mk: improve sc_prohibit_magic_number_exit
59621         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59622         so it does not match uses like System.exit(1).
59623         Add comments showing how to correct all offenders.
59625 2009-11-19  Eric Blake  <ebb9@byu.net>
59627         xalloc-die-tests: add missing library
59628         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59630         test-xvasprintf: silence compiler warnings
59631         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59632         empty string from gcc.
59634 2009-11-19  Jim Meyering  <meyering@redhat.com>
59636         xfreopen: new module, from coreutils
59637         * modules/xfreopen: New module.
59638         * lib/xfreopen.c: New file.
59639         * lib/xfreopen.h: New file.
59640         * MODULES.html.sh (File stream based Input/Output"): Add it.
59642 2009-11-19  Eric Blake  <ebb9@byu.net>
59644         manywarnings: depend on warnings
59645         * modules/manywarnings (Depends-on): Add warnings.
59647         build: avoid compiler warnings
59648         * lib/select.c (rpl_select): Delete unused variable.
59649         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59651 2009-11-18  Eric Blake  <ebb9@byu.net>
59653         tests: avoid false negative with --with-packager
59654         * tests/test-version-etc.sh: Discard packager information.
59655         * tests/test-argp-version-etc-1.sh: Likewise.
59656         Reported by Mike Frysinger.
59658         utimens: fix regression on Solaris
59659         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59660         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59661         can only change fd timestamps via futimesat.  Instead, use an
59662         additional witness macro to avoid BSD bug.
59663         Reported by Jim Meyering.
59665 2009-11-17  Eric Blake  <ebb9@byu.net>
59667         usleep: use it to simplify tests
59668         * modules/stat-time-tests (Depends-on): Add usleep.
59669         (configure.ac): Drop usleep check.
59670         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59671         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59672         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59673         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59674         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59675         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59676         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59677         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59678         Likewise.
59679         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59680         * tests/test-lchown.h (nap): Likewise.
59681         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59682         * tests/test-stat-time.c (nap): Likewise.
59683         * tests/test-utimens-common.h (nap): Update comments.
59685         usleep: new module
59686         * modules/usleep: New file.
59687         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59688         * lib/usleep.c (usleep): Likewise.
59689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59690         * modules/unistd (Makefile.am): Substitute witnesses.
59691         * lib/unistd.in.h (usleep): Add declaration.
59692         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59693         * MODULES.html.sh (Date and time): Likewise.
59694         * modules/usleep-tests (Depends-on): New test.
59695         * tests/test-usleep.c: New file.
59697         chown: work around OpenBSD bug
59698         * lib/chown.c (rpl_chown): Work around the bug.
59699         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59700         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59701         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59702         * modules/chown (Depends-on): Add stdbool.
59703         * modules/lchown (Depends-on): Likewise.
59704         * doc/posix-functions/chown.texi (chown): Document the bug.
59705         * doc/posix-functions/lchown.texi (lchown): Likewise.
59706         * tests/test-lchown.h (test_chown): Relax test.
59708         mkstemp: avoid conflict with C++ keyword template
59709         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59710         * lib/mkostemp.c (mkostemp): Likewise.
59711         * lib/mkostemps.c (mkostemps): Likewise.
59712         * lib/mkstemp.c (mkstemp): Likewise.
59713         * lib/mkstemps.c (mkstemps): Likewise.
59715         xalloc-die-tests: optimize
59716         * tests/test-xalloc-die.sh: Reduce number of processes.
59718 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59720         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59721         patch from ludo@gnu.org (Ludovic Courtès).
59723 2009-11-17  Jim Meyering  <meyering@redhat.com>
59725         version-etc: use proper license string
59726         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59727         * modules/version-etc-fsf: Likewise.
59729 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59731         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59732         printed to stdout.  Deal with EOL differences.
59734 2009-11-17  Eric Blake  <ebb9@byu.net>
59736         unsetenv: work around Solaris bug
59737         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59738         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59739         Reported by Jim Meyering.
59741         vasnprintf: avoid compiler warnings
59742         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59743         variables.
59744         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
59746 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59748         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
59749         settings since xalloc-die is no longer the self test,
59750         xalloc-die.sh is.
59752 2009-11-17  Jim Meyering  <meyering@redhat.com>
59754         test-xalloc-die.sh: make the code agree with the commit log
59755         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
59756         at the end, just in case you happen to have a test-xalloc-die
59757         program in some other PATH directory.
59759         test-xalloc-die.sh: fix a portability bug
59760         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
59761         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
59762         Otherwise, argv[0] (as often seen in diagnostics) would be too
59763         system-dependent, sometimes with, and sometimes without the leading "./".
59765         version-etc-fsf: relax license to LGPLv3+
59766         * modules/version-etc-fsf (License): Relax license.
59768 2009-11-16  Eric Blake  <ebb9@byu.net>
59770         xalloc-die-tests: avoid printing null pointer
59771         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
59772         shell script.
59773         * tests/test-xalloc-die.c (program_name): Declare.
59774         * tests/test-xalloc-die.sh (tmpfiles): New file.
59776         setenv, unsetenv: work around various bugs
59777         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
59778         (setenv) [HAVE_SETENV]: Work around bugs.
59779         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
59780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
59781         for bugs.
59782         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
59783         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
59784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
59785         * modules/stdlib (Makefile.am): Update substitutions.
59786         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
59787         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
59788         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59789         * modules/setenv-tests: New test.
59790         * modules/unsetenv-tests: Likewise.
59791         * tests/test-setenv.c: New file.
59792         * tests/test-unsetenv.c: Likewise.
59794 2009-11-16  Jim Meyering  <meyering@redhat.com>
59796         version-etc: relax license to LGPLv3+
59797         * modules/version-etc (License): Relax license.
59799         better AC_REQUIRE expanded-before-required-warning avoidance
59800         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
59801         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
59802         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
59803         which is no longer needed.
59805 2009-11-16  Eric Blake  <ebb9@byu.net>
59807         test-freading: clean up temporary file
59808         * tests/test-freading.c (main): Remove file on success, and use
59809         ASSERT more liberally.
59810         Reported by Jim Meyering.
59812 2009-11-16  Jim Meyering  <meyering@redhat.com>
59814         avoid new AC_REQUIRE expanded-before-required warnings
59815         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
59816         merely using it.
59817         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
59818         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
59820 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59822         * tests/test-xalloc-die.c: New file.
59823         * modules/xalloc-die-tests: New file.
59824         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
59825         XFAIL_TESTS so it can be appended by modules.
59827 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59829         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
59830         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
59832 2009-11-14  Eric Blake  <ebb9@byu.net>
59834         fnmatch: avoid compiler warning
59835         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
59836         to silence compiler warning about mismatch signedness in ?:.
59837         Reported by Robert Millan.
59839         intprops: add double-inclusion guard
59840         * lib/intprops.h: Allow idempotent includes.
59841         Suggested by Bruce Korb.
59843         openat: detect Solaris fchownat bug
59844         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
59845         penalizing glibc chownat when only lchownat is broken.
59846         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
59847         trailing slash bugs.
59848         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
59849         * modules/openat-tests (Files): Include more files.
59850         (Depends-on): Add mgetgroups, sleep, stat-time.
59851         (configure.ac): Add additional checks.
59852         (Makefile.am): Build new test.
59853         * tests/test-fchownat.c: New file.
59855         lchown: detect Solaris and FreeBSD bug
59856         * lib/lchown.c (rpl_lchown): Work around bug.
59857         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59859         * modules/unistd (Makefile.am): Populate it.
59860         * lib/unistd.in.h (lchown): Update declaration.
59861         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59862         * modules/lchown-tests: New file.
59863         * tests/test-lchown.h (test_lchown): Likewise.
59864         * tests/test-lchown.c (main): Likewise.
59866         chown: detect Solaris and FreeBSD bug
59867         * lib/chown.c (rpl_chown): Work around bug.
59868         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59869         (gl_PREREQ_CHOWN): Delete.
59870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59871         * modules/unistd (Makefile.am): Populate it.
59872         * lib/unistd.in.h (chown): Update declaration.
59873         * lib/lchown.c (chown): Update client.
59874         * modules/lchown (Depends-on): Add lstat.
59875         * doc/posix-functions/chown.texi (chown): Document the bug.
59876         * doc/posix-functions/getgroups.texi (getgroups): Document
59877         getgroups pitfall.
59878         * modules/chown-tests: New file.
59879         * tests/test-chown.h (test_chown): Likewise.
59880         * tests/test-chown.c (main): Likewise.
59882 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59884         gnulib-tool: correctly detect absence of m4 directories
59885         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59887 2009-11-14  Jim Meyering  <meyering@redhat.com>
59889         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59890         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59892 2009-11-14  John W. Eaton  <jwe@gnu.org>
59894         strftime.h: wrap function declaration in extern "C" block
59895         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59897 2009-11-13  Eric Blake  <ebb9@byu.net>
59899         getgroups: avoid compiler warning
59900         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59902         getgroups: work around FreeBSD bug
59903         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59904         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59905         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59906         * tests/test-getgroups.c (main): Fix buffer overrun.
59908         getgroups: avoid compilation failure
59909         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59910         * modules/getgroups (Depends-on): Add stdint.
59912 2009-11-13  Jim Meyering  <meyering@redhat.com>
59914         test-getgroups: avoid compilation failure
59915         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59917 2009-11-13  Eric Blake  <ebb9@byu.net>
59919         mgetgroups: new module, taken from coreutils
59920         * modules/mgetgroups: New file.
59921         * lib/mgetgroups.h: Likewise.
59922         * lib/mgetgroups.c (mgetgroups): Likewise.
59923         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
59924         * MODULES.html.sh (Users and groups): Mention it.
59926         getgroups: don't expose GETGROUPS_T to user
59927         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
59928         an element at a time if GETGROUPS_T is wrong size.
59929         * lib/getugroups.h (getugroups): Change signature.
59930         * lib/unistd.in.h (getgroups): Likewise.
59931         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
59932         signature needs fixing.
59933         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
59934         AC_TYPE_GETGROUPS.
59935         * modules/group-member (Depends-on): Add getgroups.
59936         * lib/group-member.c (group_info, get_group_info): Use gid_t.
59937         (group_member): Rely on getgroups replacement.
59938         * lib/getugroups.c (getugroups): Use gid_t.
59939         * tests/test-getgroups.c (main): Likewise.
59940         * NEWS: Mention the signature change.
59941         * doc/posix-functions/getgroups.texi (getgroups): Mention the
59942         problem with signature.
59943         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
59944         GETGROUPS_T is still useful for setgroups.
59946         getgroups, getugroups: provide stubs for mingw
59947         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
59948         * lib/getugroups.c (getugroups): Likewise.
59949         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
59950         function.  Modernize replacement scheme.
59951         (gl_PREREQ_GETGROUPS): Delete.
59952         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
59953         * modules/getgroups (configure.ac): Declare witness.
59954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59955         * modules/unistd (Depends-on): Substitute witness.
59956         * lib/unistd.in.h (getgroups): Declare replacement.
59958         getgroups: avoid calling exit
59959         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
59960         drop xalloc.
59961         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
59962         dependencies.
59963         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
59964         exiting, in the rare case of malloc failure.
59966         getgroups: fix logic error
59967         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
59968         has more than 20 groups.
59969         * modules/getgroups-tests: New test.
59970         * tests/test-getgroups.c: New file.
59972 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59974         * tests/test-base64.c: Improve.
59976 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59978         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
59979         Blake <ebb9@byu.net>.
59981 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59983         * tests/test-xvasprintf.c: Add %s%s related checks.
59985 2009-11-12  Eric Blake  <ebb9@byu.net>
59987         version-etc: match standards.texi style
59988         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
59989         and use <> only for URLs.
59991 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
59993         fts: do not fail on a submount during traversal
59994         * lib/fts.c (fts_build): Read the stat info again after opening
59995         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
59996         Original report at http://bugzilla.redhat.com/501848.
59998 2009-11-12  Jim Meyering  <meyering@redhat.com>
60000         bootstrap: sync from coreutils
60001         * build-aux/bootstrap (bootstrap_epilogue): New function.
60002         Use git_modules_config in one more place.  This make bootstrap's
60003         --gnulib-srcdir option more useful for testing.
60005         bootstrap: generalize autoheader check
60006         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
60007         AC_CONFIG_HEADERS.
60009 2009-11-11  Eric Blake  <ebb9@byu.net>
60011         mkfifoat: use new modules for Solaris and BSD bugs
60012         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
60013         * lib/mkfifoat.c (mknodat): Split...
60014         * lib/mknodat.c (mknodat): ...into new file.
60015         * modules/mkfifoat (Files): Ship new file.
60016         (Depends-on): Add mkfifo, mknod.
60017         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
60018         (Depends-on): Add symlink.
60019         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
60020         redundant with test_mkfifo.h.
60021         (do_mkfifoat, do_mknodat): New helpers.
60023         mknod: new module
60024         * modules/mknod: New file.
60025         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
60026         * lib/mknod.c (mknod): Likewise.
60027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60028         defaults.
60029         * modules/sys_stat (Makefile.am): Substitute them.
60030         * lib/sys_stat.in.h (mknod): Declare replacement.
60031         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60032         Document it.
60033         * doc/posix-functions/mknod.texi (mknod): Likewise.
60034         * modules/mknod-tests: New test.
60035         * tests/test-mknod.c: Likewise.
60037         mkfifo: new module
60038         * modules/mkfifo: New file.
60039         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
60040         * lib/mkfifo.c (mkfifo): Likewise.
60041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60042         defaults.
60043         * modules/sys_stat (Makefile.am): Substitute them.
60044         * lib/sys_stat.in.h (mkfifo): Declare replacement.
60045         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60046         Document it.
60047         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
60048         * modules/mkfifo-tests: New test.
60049         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
60050         from test-mkfifoat.c.
60051         * tests/test-mkfifo.c: New file.
60053         readlink: detect FreeBSD bug
60054         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
60055         slash on symlink.
60056         * doc/posix-functions/readlink.texi (readlink): Document the bug.
60057         * tests/test-readlink.h (test_readlink): Enhance test.
60059         symlink: detect FreeBSD bug
60060         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
60061         slash on symlink.
60062         * doc/posix-functions/symlink.texi (symlink): Document the bug.
60063         * tests/test-symlink.h (test_symlink): Enhance test.
60065 2009-11-10  Eric Blake  <ebb9@byu.net>
60067         link: detect FreeBSD bug
60068         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
60069         symlink.
60070         * doc/posix-functions/link.texi (link): Document the bug.
60071         * tests/test-link.h (test_link): Enhance test.
60072         * tests/test-linkat.c (main): Update caller.
60074         unlink, remove: detect FreeBSD bug
60075         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
60076         slash on symlink.
60077         * doc/posix-functions/unlink.texi (unlink): Document the bug.
60078         * doc/posix-functions/remove.texi (remove): Likewise.
60079         * tests/test-unlink.h (test_unlink): Enhance test.
60080         * tests/test-remove.c (main): Likewise.
60082 2009-11-09  Eric Blake  <ebb9@byu.net>
60084         rename: detect FreeBSD bug
60085         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
60086         slash on symlink.
60087         * modules/renameat-tests (Depends-on): Add filenamecat.
60088         * tests/test-rename.h (test_rename): Allow one more errno.
60089         * tests/test-renameat.c (main): Likewise.
60090         * doc/posix-functions/rename.texi (rename): Document the bug.
60092         open: detect FreeBSD bug
60093         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
60094         symlink.
60095         * doc/posix-functions/open.texi (open): Document the bug.
60096         * doc/posix-functions/utimes.texi (utimes): Likewise.
60097         * tests/test-open.h (test_open): Add parameters, and test symlink
60098         handling.
60099         * tests/test-open.c (main): Adjust caller.
60100         * tests/test-fcntl-safer.c (main): Likewise.
60101         * modules/open-tests (Depends-on): Add stdbool, symlink.
60102         * modules/fcntl-safer-tests (Depends-on): Likewise.
60103         * tests/test-openat.c (main): Add test-open tests.
60105         stat: detect FreeBSD bug
60106         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
60107         symlink.
60108         * doc/posix-functions/stat.texi (stat): Document the bug.
60109         * tests/test-stat.h (test_stat_func): Add argument.
60110         * tests/test-stat.c (main): Adjust caller.
60111         * tests/test-fstatat.c (main): Likewise.
60112         * modules/stat-tests (Depends-on): Add stdbool, symlink.
60113         Reported by Jim Meyering.
60115 2009-11-09  James Youngman  <jay@gnu.org>
60117         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
60118         * lib/strftime.c: Correct placement of #include "ignore-value.h".
60120 2009-11-08  Jim Meyering  <meyering@redhat.com>
60122         utimens: remove invalid futimesat call
60123         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
60124         It used the file descriptor of the target file as the DIR_FD
60125         parameter and NULL as the file name.  That caused failure with
60126         errno == EFAULT on FreeBSD-8.0-rc2
60128 2009-11-07  Eric Blake  <ebb9@byu.net>
60130         fflush, freadseek: use fseeko, not fseek
60131         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
60132         (clear_ungetc_buffer): Avoid potential problems on large files.
60133         * lib/freadseek.c (freadseek): Likewise.
60134         * modules/freadseek (Depends-on): Add fseeko.
60135         * modules/fseek (configure.ac): Set a witness.
60136         * tests/test-fflush.c (main): Use fseeko.
60137         * tests/test-fpurge.c (fseek): Disable link warning.
60138         * tests/test-freadable.c (fseek): Likewise.
60139         * tests/test-freading.c (fseek): Likewise.
60140         * tests/test-fseeko.c (fseek): Likewise.
60141         * tests/test-ftell.c (fseek): Likewise.
60142         * tests/test-ftello.c (fseek): Likewise.
60143         * tests/test-fwritable.c (fseek): Likewise.
60144         * tests/test-fwriting.c (fseek): Likewise.
60146 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60148         * modules/memchr (Depends-on): Drop getpagesize dependency.
60150 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60152         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
60153         Reported by Ludovic Courtès.
60154         * build-aux/pmccabe2html: Improve example usage.
60155         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
60157 2009-11-06  Jim Meyering  <meyering@redhat.com>
60159         do-release-commit-and-tag: New module.
60160         Automate the release-commit and tag process.
60161         * build-aux/do-release-commit-and-tag: New script, from coreutils.
60162         * modules/do-release-commit-and-tag: New file.
60163         * MODULES.html.sh (Support for maintaining and releasing): Add it.
60165 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60167         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
60168         because test-select.c uses inet_pton.
60170 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60172         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
60173         GETADDRINFO_LIB.  Bump serial number.
60174         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
60175         Suggested by Eric Blake <ebb9@byu.net>.
60177 2009-11-05  Eric Blake  <ebb9@byu.net>
60179         strtod: detect darwin bug
60180         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
60181         Reported by Leo Davis.
60183         freopen-safer: new module
60184         * modules/freopen-safer: New module.
60185         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
60186         * lib/freopen-safer.c (freopen_safer): New file.
60187         * lib/stdio-safer.h (freopen_safer): New declaration.
60188         * lib/stdio--.h (freopen): New override.
60189         * MODULES.html.sh (File stream based Input/Output): Mention it.
60190         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
60191         freopen-safer module.
60192         * doc/posix-functions/stderr.texi (stderr): Likewise.
60193         * doc/posix-functions/stdin.texi (stdin): Likewise.
60194         * doc/posix-functions/stdout.texi (stdout): Likewise.
60195         * modules/freopen-safer-tests: New test.
60196         * tests/test-reopen-safer.c: New file.
60198 2009-11-05  Jim Meyering  <meyering@redhat.com>
60200         maint.mk: Prohibit inclusion of "close-stream.h" without use.
60201         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
60203 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60205         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
60207 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60209         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
60211 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60213         Fix link error.
60214         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60215         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60217 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60219         * tests/test-func.c: Also test value of __func__.
60221 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60223         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
60224         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
60226 2009-11-05  Bruno Haible  <bruno@clisp.org>
60228         Fix link error.
60229         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60230         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60231         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
60233 2009-11-05  Bruno Haible  <bruno@clisp.org>
60235         Tests for module 'inet_pton'.
60236         * modules/inet_pton-tests: New file.
60237         * tests/test-inet_pton.c: New file.
60239 2009-11-05  Bruno Haible  <bruno@clisp.org>
60241         Tests for module 'inet_ntop'.
60242         * modules/inet_ntop-tests: New file.
60243         * tests/test-inet_ntop.c: New file.
60245 2009-11-04  Eric Blake  <ebb9@byu.net>
60247         stdlib-safer: wrap all mkstemp variants
60248         * modules/mkostemp (configure.ac): Set witness.
60249         * modules/mkostemps (configure.ac): Likewise.
60250         * modules/mkstemps (configure.ac): Likewise.
60251         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
60252         (mkstemps_safer): Wrap more functions.
60253         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
60254         wrapping.
60255         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
60256         (mkstemps_safer): Implement the wrappers.
60258         mkstemps, mkostemps: new modules
60259         * modules/mkostemps: New module.
60260         * modules/mkstemps: Likewise.
60261         * lib/mkostemps.c (mkostemps): New file.
60262         * lib/mkstemps.c (mkstemps): Likewise.
60263         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
60264         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
60265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
60266         * modules/stdlib (Makefile.am): Substitute them.
60267         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
60268         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
60269         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60270         * doc/gnulib.texi (Glibc stdlib.h): Include them.
60271         * MODULES.html.sh (File system functions): Mention them.
60273         tempname: resync from glibc
60274         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
60275         same values for __GT_FILE as glibc.  Abort even when assertions
60276         are disabled.
60277         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
60278         match its value otherwise.  Allow idempotent inclusion.
60279         * lib/mkdtemp.c (mkdtemp): Adjust caller.
60280         * lib/mkostemp.c (mkostemp): Likewise.
60281         * lib/mkstemp.c (mkstemp): Likewise.
60282         * lib/tmpfile.c (tmpfile): Likewise.
60283         * NEWS: Document this.
60285         utimens: fix use of futimens on older Linux
60286         * lib/utimens.c (fdutimens): Use updated, rather than original,
60287         timespec to avoid bug in older Linux kernel.
60288         Reported by Simon Josefsson.
60290 2009-11-04  Bruno Haible  <bruno@clisp.org>
60292         Make num_processors more flexible and consistent.
60293         * lib/nproc.h (enum nproc_query): New type.
60294         (num_processors): Add a 'query' argument.
60295         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
60296         (num_processors): Add a 'query' argument. Test the value of the
60297         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
60298         mingw, count the number of CPUs available for the current process.
60299         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
60300         Check for sched_getaffinity and sched_getaffinity_np.
60301         * modules/nproc (Depends-on): Add c-ctype, extensions.
60302         * NEWS: Mention the change.
60304 2009-11-03  Bruno Haible  <bruno@clisp.org>
60306         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
60308 2009-11-03  Jim Meyering  <meyering@redhat.com>
60310         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
60311         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
60312         if it is defined.
60314 2009-11-02  Eric Blake  <ebb9@byu.net>
60316         mktime, timegm: share common declaration
60317         * lib/mktime-internal.h: New file.
60318         * lib/mktime.c: Use it rather than open-coding a declaration.
60319         * lib/timegm.c: Likewise.
60320         * modules/mktime (Files): Ship it.
60321         * modules/timegm (Files): Likewise.
60322         Suggested by Bruno Haible.
60324         test-update-copyright: update test to match script changes
60325         * tests/test-update-copyright.sh: Avoid hard-coding perl
60326         location.  Don't update *.bak created by earlier runs.
60328 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60329             Simon Josefsson  <simon@josefsson.org>
60330             Bruno Haible  <bruno@clisp.org>
60332         Fix link error on Solaris 8.
60333         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
60334         also in libnsl. Define also INET_PTON_LIB.
60335         * modules/inet_pton (Link): New section.
60337 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60338             Bruno Haible  <bruno@clisp.org>
60340         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
60341         * modules/inet_ntop (Link): New section.
60342         Reported by Boyan Kasarov <bkasarov@gmail.com>.
60344 2009-11-02  Eric Blake  <ebb9@byu.net>
60346         maint: avoid compiler warnings in m4 macros
60347         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
60348         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
60350 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60352         * m4/pmccabe2html.m4: Remove file.
60353         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
60354         function.  Change maintainer.
60355         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
60356         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
60357         Courtès).
60359 2009-10-31  Eric Blake  <ebb9@byu.net>
60361         fseeko: fix m4 regression
60362         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
60363         regression from 2009-10-27.
60364         Reported by Ralf Wildenhues.
60366 2009-10-31  Jim Meyering  <meyering@redhat.com>
60368         inttostr: aesthetics and improved (compile-time) safety
60369         Define inttype_is_signed rather than inttype_is_unsigned,
60370         since the sole use is via "#if inttype_is_signed".
60371         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
60372         inttype_is_unsigned.
60373         * lib/offtostr.c (inttype_is_signed): Likewise.
60374         * lib/uinttostr.c (inttype_is_signed): Likewise.
60375         * lib/umaxtostr.c (inttype_is_signed): Likewise.
60376         * lib/inttostr.c (inttostr): Use verify to cross-check the
60377         inttype_is_signed value and the signedness of the actual type.
60378         * modules/inttostr (Depends-on): Add verify.
60380 2009-10-30  Eric Blake  <ebb9@byu.net>
60382         build: avoid compiler warnings
60383         * lib/fchmodat.c (lchmod): Mark unused variables.
60384         * lib/getopt.c (_getopt_initialize): Likewise.
60385         * lib/mktime.c (__mktime_internal): Provide prototype.
60386         * lib/inttostr.c (inttostr): Avoid compiler warning even with
60387         older gcc that do not understand #pragma GCC diagnostic.
60388         * lib/uinttostr.c (inttype_is_unsigned): Define.
60389         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
60391 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
60393         stat: fix compilation on AIX
60394         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
60395         only see struct stat64.
60397 2009-10-30  Eric Blake  <ebb9@byu.net>
60399         exclude: make more robust
60400         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
60401         rather than masking a coding bug.
60402         Suggested by Bruno Haible.
60404 2009-10-30  Jim Meyering  <meyering@redhat.com>
60406         perl scripts: remove #!/usr/bin/perl in favor of more portable...
60407         Rather than putting #!/usr/bin/perl on the first line,
60408         start with a variant of what's recommended by "man perlrun" that
60409         invokes the first "perl" program from your shell's search path.
60410         * build-aux/gitlog-to-changelog: Replace #!... as above.
60411         Add a "Local Variables" perl mode setting.
60412         Prompted by a patch from Ludovic Courtès.
60413         Improved by Eric Blake.
60414         * build-aux/useless-if-before-free: Likewise.
60415         * build-aux/announce-gen: Likewise.
60416         * build-aux/update-copyright: Likewise.
60418 2009-10-29  Eric Blake  <ebb9@byu.net>
60420         filenamecat-lgpl: adjust clients
60421         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
60422         filenamecat.
60423         * modules/renameat (Depends-on): Likewise.
60425         filenamecat: split into filenamecat-lgpl
60426         * modules/filenamecat-lgpl: New module.
60427         * modules/filenamecat (Files): Move library-safe files into
60428         filenamecat-lgpl.
60429         (Depends-on): Add filenamecat-lgpl.
60430         (configure.ac): Declare witness.
60431         * lib/filenamecat.h (file_name_concat): Only declare when using
60432         GPL module.
60433         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
60434         Move...
60435         * lib/filenamecat-lgpl.c: ...into new file.
60436         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
60437         (gl_FILE_NAME_CONCAT): Use it.
60438         * MODULES.html.sh (File system functions): Mention new module.
60440         argp: avoid memory leak
60441         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
60442         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
60443         base_name, since the latter malloc()s and can call exit().
60444         Leak introduced 2006-07-03.
60446         dirname-lgpl: adjust clients that don't need full dirname
60447         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
60448         * modules/filenamecat (Depends-on): Likewise.
60449         * modules/linkat (Depends-on): Likewise.
60450         * modules/mkancesdirs (Depends-on): Likewise.
60451         * modules/mkdir (Depends-on): Likewise.
60452         * modules/openat (Depends-on): Likewise.
60453         * modules/savewd (Depends-on): Likewise.
60454         * modules/rename (Depends-on): Likewise.
60455         (License): Relax license.
60456         * modules/mkdir-tests (Depends-on): Drop progname.
60457         (Makefile.am): Delete unneeded LDADD.
60458         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
60460         dirname: split into dirname-lgpl
60461         * modules/dirname-lgpl: New module.
60462         * modules/dirname (Files): Move library-safe files into
60463         dirname-lgpl.
60464         (Depends-on): Add dirname-lgpl.
60465         (configure.ac): Declare witness.
60466         * modules/double-slash-root (License): Relax license.
60467         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
60468         module.
60469         * lib/dirname.c (dir_len, mdir_name): Move...
60470         * lib/dirname-lgpl.c: ...into new file.
60471         * lib/basename.c (last_component, base_len): Move...
60472         * lib/basename-lgpl.c: ...into new file.
60473         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
60474         (gl_DIRNAME): Use it.
60475         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
60476         Mention new module.
60477         * modules/dirname-tests (Depends-on): Add progname.
60478         * tests/test-dirname.c (program_name): Delete.
60480         mkdir: make safe for libraries
60481         * modules/mkdir (Depends-on): Drop xalloc.
60482         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
60483         exit.
60485         tests: avoid some compiler warnings
60486         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
60487         literals.
60488         * tests/test-memchr.c (main): Avoid type mismatch.
60489         * tests/test-arpa_inet.c (main): Avoid unused parameters.
60490         * tests/test-base64.c (main): Likewise.
60491         * tests/test-getdelim.c (main): Likewise.
60492         * tests/test-gethostname.c (main): Likewise.
60493         * tests/test-getline.c (main): Likewise.
60494         * tests/test-netinet_in.c (main): Likewise.
60495         * tests/test-select.c (open_server_socket, main): Likewise.
60496         * tests/test-select-stdin.c (main): Likewise.
60497         * tests/test-sockets.c (main): Likewise.
60498         * tests/test-strsignal.c (main): Likewise.
60499         * tests/test-sys_select.c (main): Likewise.
60500         * tests/test-sys_socket.c (main): Likewise.
60501         * tests/test-u64.c (main): Likewise.
60502         * tests/test-xfprintf-posix.c (main): Likewise.
60503         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
60505         sockets: avoid compiler warning
60506         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
60508         maint: detect usage(1) and other suspicious exits
60509         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
60511 2009-10-29  Jim Meyering  <meyering@redhat.com>
60513         timespec: long-to-int truncation could make timespec_cmp malfunction
60514         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
60515         a multiple of 2^32 nanoseconds as no difference.
60517 2009-10-28  Jim Meyering  <meyering@redhat.com>
60519         fprintftime: wrap macro code argument in "do {...} while(0)"
60520         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
60521         cpy macro must be a statement that can be followed by a semicolon.
60522         Now that the else clause contains a comment and is hence longer
60523         than one line, I require curly braces.  That in turn requires
60524         that we wrap this code block in the standard do...while(0).
60526         fprintftime: remove stray semicolon from previous change
60527         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
60529         fprintftime: avoid a warning about ignored fwrite return value
60530         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
60531         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
60532         that is unsafe.
60533         * modules/fprintftime (Depends-on): Add ignore-value.
60535         exclude: avoid an unwarranted warning
60536         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
60538 2009-10-27  Eric Blake  <ebb9@byu.net>
60540         fseek: avoid compilation failure when fflush is replaced
60541         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
60542         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
60543         module is in use.
60544         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
60545         module is not in use; since REPLACE_FSEEK worked otherwise.
60546         (GNULIB_FTELLO): Likewise for ftell.
60547         Reported by Ian Beckwith and others.
60549 2009-10-27  Bruno Haible  <bruno@clisp.org>
60551         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
60552         Reported by Jim Meyering.
60554 2009-10-27  Jim Meyering  <jim@meyering.net>
60555             Bruno Haible  <bruno@clisp.org>
60557         Avoid warning despite dropping the return value of fwrite.
60558         * lib/unicodeio.c: Include ignore-value.h.
60559         (fwrite_success_callback): Explicitly ignore fwrite's return value.
60560         * modules/unicodeio (Depends-on): Add ignore-value.
60562 2009-10-26  Eric Blake  <ebb9@byu.net>
60564         areadlinkat: fix fallback path
60565         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
60566         pointer and zero.
60568 2009-10-22  Pádraig Brady  <P@draigBrady.com>
60570         Use a better IO block size for modern systems
60571         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
60572         * lib/md2.c: Likewise.
60573         * lib/md4.c: Likewise.
60574         * lib/md5.c: Likewise.
60575         * lib/sha1.c: Likewise.
60576         * lib/sha256.c: Likewise.
60577         * lib/sha512.c: Likewise.
60579 2009-10-22  Eric Blake  <ebb9@byu.net>
60581         tests: avoid several compiler warnings
60582         * tests/test-getcwd.c (main): Avoid buffer underflow.
60583         * tests/test-getdate.c (main): String literals are not safe with
60584         putenv, so use setenv.  Declare unused argument.
60585         * modules/getdate-tests (Depends-on): Add setenv.
60586         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
60587         problems with string literals in char *.
60588         * tests/test-hash.c (main): Avoid shadowing declaration.
60589         (insert_new): Treat string literals as char const *.
60590         * tests/test-getopt.h (test_getopt): Likewise.
60591         (getopt_loop): Alter types to minimize casting elsewhere.
60592         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
60593         (test_getopt_long_posix): Likewise.
60594         (do_getopt_long): Add wrapper to minimize casting.
60595         * tests/test-atexit.c (clear_temp_file): Use void.
60596         * tests/test-areadlink-with-size.c (main): Declare unused
60597         arguments.
60598         * tests/test-areadlink.c (main): Likewise.
60599         * tests/test-areadlinkat-with-size.c (main): Likewise.
60600         * tests/test-areadlinkat.c (main): Likewise.
60601         * tests/test-canonicalize-lgpl.c (main): Likewise.
60602         * tests/test-canonicalize.c (main): Likewise.
60603         * tests/test-dirent-safer.c (main): Likewise.
60604         * tests/test-dirname.c (main): Likewise.
60605         * tests/test-dup2.c (main): Likewise.
60606         * tests/test-fchdir.c (main): Likewise.
60607         * tests/test-fcntl-h.c (main): Likewise.
60608         * tests/test-fcntl-safer.c (main): Likewise.
60609         * tests/test-fdopendir.c (main): Likewise.
60610         * tests/test-fdutimensat.c (main): Likewise.
60611         * tests/test-fflush.c (main): Likewise.
60612         * tests/test-filenamecat.c (main): Likewise.
60613         * tests/test-filevercmp.c (main): Likewise.
60614         * tests/test-fopen-safer.c (main): Likewise.
60615         * tests/test-fopen.c (main): Likewise.
60616         * tests/test-fpending.c (main): Likewise.
60617         * tests/test-fpurge.c (main): Likewise.
60618         * tests/test-freading.c (main): Likewise.
60619         * tests/test-fstatat.c (main): Likewise.
60620         * tests/test-fsync.c (main): Likewise.
60621         * tests/test-futimens.c (main): Likewise.
60622         * tests/test-getndelim2.c (main): Likewise.
60623         * tests/test-gettimeofday.c (main): Likewise.
60624         * tests/test-getopt.c (main): Likewise.
60625         * tests/test-i-ring.c (main): Likewise.
60626         * tests/test-inttypes.c (main): Likewise.
60627         * tests/test-link.c (main): Likewise.
60628         * tests/test-lstat.c (main): Likewise.
60629         * tests/test-math.c (main): Likewise.
60630         * tests/test-md5.c (main): Likewise.
60631         * tests/test-memchr2.c (main): Likewise.
60632         * tests/test-memrchr.c (main): Likewise.
60633         * tests/test-mkdir.c (main): Likewise.
60634         * tests/test-mkdirat.c (main): Likewise.
60635         * tests/test-mkfifoat.c (main): Likewise.
60636         * tests/test-open.c (main): Likewise.
60637         * tests/test-openat-safer.c (main): Likewise.
60638         * tests/test-openat.c (main): Likewise.
60639         * tests/test-quotearg.c (main): Likewise.
60640         * tests/test-rawmemchr.c (main): Likewise.
60641         * tests/test-readlink.c (main): Likewise.
60642         * tests/test-remove.c (main): Likewise.
60643         * tests/test-rename.c (main): Likewise.
60644         * tests/test-renameat.c (main): Likewise.
60645         * tests/test-rmdir.c (main): Likewise.
60646         * tests/test-sha1.c (main): Likewise.
60647         * tests/test-signal.c (main): Likewise.
60648         * tests/test-sigaction.c (main): Likewise.
60649         * tests/test-stat.c (main): Likewise.
60650         * tests/test-stat-time.c (main): Likewise.
60651         * tests/test-stddef.c (main): Likewise.
60652         * tests/test-stdint.c (main): Likewise.
60653         * tests/test-stdio.c (main): Likewise.
60654         * tests/test-stdlib.c (main): Likewise.
60655         * tests/test-strchrnul.c (main): Likewise.
60656         * tests/test-strerror.c (main): Likewise.
60657         * tests/test-string.c (main): Likewise.
60658         * tests/test-strtod.c (main): Likewise.
60659         * tests/test-strverscmp.c (main): Likewise.
60660         * tests/test-symlink.c (main): Likewise.
60661         * tests/test-symlinkat.c (main): Likewise.
60662         * tests/test-sys_stat.c (main): Likewise.
60663         * tests/test-sys_time.c (main): Likewise.
60664         * tests/test-time.c (main): Likewise.
60665         * tests/test-unistd.c (main): Likewise.
60666         * tests/test-unlink.c (main): Likewise.
60667         * tests/test-unlinkat.c (main): Likewise.
60668         * tests/test-utimens.c (main): Likewise.
60669         * tests/test-utimensat.c (main): Likewise.
60670         * tests/test-version-etc.c (main): Likewise.
60671         * tests/test-wchar.c (main): Likewise.
60672         * tests/test-wctype.c (main): Likewise.
60673         * tests/test-xprintf-posix.c (main): Likewise.
60674         * tests/test-posixtm.c (main): Likewise.
60675         (STREQ): Delete unused macro.
60676         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60677         shadowed variables.
60678         * tests/test-memchr.c (main): Likewise.
60680 2009-10-21  Eric Blake  <ebb9@byu.net>
60682         areadlinkat: avoid failure on older glibc
60683         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60684         rather than mis-comparing 0 against FUNC_RESULT of char*.
60686 2009-10-21  Bruno Haible  <bruno@clisp.org>
60688         * modules/stpncpy (License): Relicense under LGPLv2+.
60689         Reported by David Lutterkort <lutter@redhat.com>.
60691 2009-10-20  Eric Blake  <ebb9@byu.net>
60693         utimensat: work around Solaris 9 bug
60694         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60695         has trailing slash bugs.
60696         * tests/test-lutimens.h (test_lutimens): Enhance test.
60697         * tests/test-utimens.h (test_utimens): Likewise.
60698         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60699         * doc/posix-functions/utimes.texi (utimes): Likewise.
60700         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60701         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60702         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60703         * doc/posix-functions/futimens.texi (futimens): Likewise.
60705         fdutimensat: new module
60706         * modules/fdutimensat: New file.
60707         * lib/fdutimensat.c (fdutimensat): Likewise.
60708         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60709         * MODULES.html.sh (File system functions): Mention module.
60710         * modules/fdutimensat-tests: New test.
60711         * tests/test-fdutimensat.c: Likewise.
60713         doc: regenerate INSTALL
60714         * doc/INSTALL: Reflect recent autoconf update.
60715         * doc/INSTALL.ISO: Likewise.
60716         * doc/INSTALL.UTF-8: Likewise.
60718 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60720         acl: warn if ACL support is not detected
60721         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60723 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60725         * lib/nproc.h: Add extern "C" block for C++.
60727 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60728             Bruno Haible  <bruno@clisp.org>
60730         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60731         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60732         * doc/posix-functions/isalpha.texi: Likewise.
60733         * doc/posix-functions/isblank.texi: Likewise.
60734         * doc/posix-functions/iscntrl.texi: Likewise.
60735         * doc/posix-functions/isdigit.texi: Likewise.
60736         * doc/posix-functions/isgraph.texi: Likewise.
60737         * doc/posix-functions/islower.texi: Likewise.
60738         * doc/posix-functions/isprint.texi: Likewise.
60739         * doc/posix-functions/ispunct.texi: Likewise.
60740         * doc/posix-functions/isspace.texi: Likewise.
60741         * doc/posix-functions/isupper.texi: Likewise.
60742         * doc/posix-functions/isxdigit.texi: Likewise.
60744 2009-10-18  Bruno Haible  <bruno@clisp.org>
60746         Tests for module 'isblank'.
60747         * modules/isblank-tests: New file.
60748         * tests/test-isblank.c: New file.
60750         New module 'isblank'.
60751         * lib/isblank.c: New file.
60752         * m4/isblank.m4: New file.
60753         * modules/isblank: New file.
60754         * doc/posix-functions/isblank.texi: Mention the new module.
60756 2009-10-18  Bruno Haible  <bruno@clisp.org>
60758         New module 'ctype'.
60759         * lib/ctype.in.h: New file.
60760         * m4/ctype.m4: New file.
60761         * modules/ctype: New file.
60762         * doc/posix-headers/ctype.texi: Mention the new module.
60764 2009-10-18  Jim Meyering  <meyering@redhat.com>
60766         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
60767         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
60768         right after its initialization, rather than farther down.
60769         Keeping these in close proximity makes it easier to ensure
60770         that each such variable is initialized.  E.g.,
60772             LIB_CLOCK_GETTIME=
60773             AC_SUBST([LIB_CLOCK_GETTIME])
60775         This change also increments these serial numbers.
60776         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
60777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60780 2009-10-18  Bruno Haible  <bruno@clisp.org>
60782         Don't let environment variables perturb build.
60783         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
60784         (gl_PREREQ_GETHRXTIME): ... not here.
60786 2009-10-18  Bruno Haible  <bruno@clisp.org>
60788         Avoid symlink attack in localcharset module.
60789         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
60790         (O_NOFOLLOW): Define fallback.
60791         (get_charset_aliases): Don't open the file if it is a symbolic link.
60792         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
60793         gl_FCNTL_H.
60794         (gl_FCNTL_H): Require it.
60795         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
60796         * modules/localcharset (Files): Add m4/fcntl_h.m4.
60797         Reported by Fergal Glynn <fglynn@veracode.com>.
60799 2009-10-18  Bruno Haible  <bruno@clisp.org>
60801         Implement nproc for mingw.
60802         * lib/nproc.c: Include <windows.h>
60803         (num_processors): On native Windows platforms, try GetSystemInfo.
60805 2009-10-18  Bruno Haible  <bruno@clisp.org>
60807         Implement nproc for IRIX.
60808         * lib/nproc.c: Include <sys/sysmp.h>.
60809         (num_processors): On IRIX systems, try sysmp.
60810         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
60812 2009-10-18  Bruno Haible  <bruno@clisp.org>
60814         Implement nproc for HP-UX.
60815         * lib/nproc.c: Include <sys/pstat.h>
60816         (num_processors): On HP-UX systems, try pstat_getdynamic.
60817         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
60818         pstat_getdynamic.
60820 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
60821             Bruno Haible  <bruno@clisp.org>
60823         Implement nproc for NetBSD, OpenBSD.
60824         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
60825         (ARRAY_SIZE): New macro.
60826         (num_processors): On BSD systems, try sysctl of HW_NCPU.
60827         * m4/nproc.m4: New file.
60828         * modules/nproc (Files): Add m4/nproc.m4.
60829         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
60830         (Makefile.am): Instead, augment lib_SOURCES.
60832 2009-10-18  Bruno Haible  <bruno@clisp.org>
60834         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
60835         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
60836         sys/param.h.
60838 2009-10-16  Eric Blake  <ebb9@byu.net>
60840         utimensat: new module
60841         * modules/utimensat: New file.
60842         * lib/utimensat.c (utimensat): Likewise.
60843         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60844         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
60845         so we can work around Linux bugs.
60846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60847         * modules/sys_stat (Makefile.am): Substitute them.
60848         * lib/sys_stat.in.h (utimensat): Declare it.
60849         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60850         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60851         * modules/utimensat-tests: New test.
60852         * tests/test-utimensat.c: Likewise.
60854         utimens: let lutimens work on non-symlinks
60855         * lib/utimens.c (lutimens): Fall back to utimens rather than
60856         failing with ENOSYS, when file is not a symlink.
60857         (utimens): Reduce redirection.
60858         * tests/test-lutimens.h (test_lutimens): Update test to cover
60859         non-symlinks.
60860         * tests/test-utimens.h (test_utimens): Update test to cover
60861         symlinks.
60862         * tests/test-utimens.c (main): Update caller.
60864         utimens: cache whether utimensat syscall works
60865         * lib/utimens.c (utimensat_works_really): New cache variable.
60866         (fdutimens, lutimens): Use it to avoid failing syscall.
60868         test-stat-time, test-utimens: improve portability
60869         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60870         ext4 on alpha, and for cygwin.
60871         * tests/test-utimens-common.h: New file.
60872         (nap): Factor delays into single function.
60873         * tests/test-lutimens.h (test_lutimens): Use new header.
60874         * tests/test-futimens.h (test_futimens): Likewise.
60875         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60876         timestamps to occur from same machine, as was done previously for
60877         test_utimens.
60878         * modules/utimens-tests (Files): Ship new file.
60879         * modules/futimens-tests (Files): Likewise.
60880         Reported in part by Jim Meyering.
60882         sys_stat: sort replacement declarations
60883         * lib/sys_stat.in.h: Sort declarations.
60884         * lib/futimens.c (futimens): Fix typo.
60886 2009-10-15  Jim Meyering  <meyering@redhat.com>
60888         don't let environment settings perturb build
60889         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60890         could cause a configure-time and/or build-time malfunction.
60891         Typically, a configure-time function-in-library test is performed
60892         via code like this:
60894           LIB_VAR=
60895           AC_SUBST([LIB_VAR])
60896           prefix_saved_LIBS=$LIBS
60897             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60898                        [test "$ac_cv_search_FUNC" = "none required" ||
60899                         LIB_VAR=$ac_cv_search_FUNC])
60900           LIBS=$prefix_saved_LIBS
60902         However, in each of the files affected by this change, the LIB_VAR=
60903         initialization was omitted.  Thus, when set in the environment, its
60904         value would propagate into generated Makefiles when FUNC is not found
60905         in LIB_NAME.
60906         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60907         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60910 2009-10-14  Eric Blake  <ebb9@byu.net>
60912         fchdir: avoid infinite recursion in mingw
60913         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60914         recursing.
60916         test-stat-time: port to mingw
60917         * tests/test-stat-time.c (force_unlink): Return a value.
60918         (test_ctime) [W32]: Fix compilation error.
60919         (nap): Don't call usleep with too large an argument.  Use
60920         force_unlink.
60921         * doc/pastposix-functions/usleep.texi (usleep): Document the
60922         portability issue.
60924 2009-10-13  Jim Meyering  <meyering@redhat.com>
60926         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
60927         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
60928         * modules/pipe-filter-ii: Likewise.
60929         * modules/sys_socket-tests: Likewise.
60930         * modules/tsearch-tests: Likewise.
60931         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
60932         (check): Depend on it.
60934 2009-10-12  Eric Blake  <ebb9@byu.net>
60936         utimens-tests: port to NFS file systems
60937         * tests/test-utimens.h (test_utimens): Refactor utimecmp
60938         comparisons to avoid spurious failures from timestamp drift
60939         between NFS machines.
60941 2009-10-12  Eric Blake  <ebb9@byu.net>
60943         stat-time-tests: minor cleanups
60944         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
60945         * tests/test-stat-time.c (nap): Separate assignment from call.
60946         Suggested by Paolo Bonzini and Bruno Haible.
60948         sys_stat: guarantee struct timespec
60949         * lib/sys_stat.in.h (includes): Always include <time.h>
60950         * modules/sys_stat (Depends-on): Add time.
60951         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
60952         mode_t permission values.
60953         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
60954         get at subsecond timestamps.
60956 2009-10-10  Eric Blake  <ebb9@byu.net>
60958         futimens: new module
60959         * modules/futimens: New file.
60960         * lib/futimens.c (futimens): Likewise.
60961         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
60962         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
60963         we can work around Linux bugs.
60964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60965         * modules/sys_stat (Makefile.am): Substitute them.
60966         * lib/sys_stat.in.h (futimens): Declare it.
60967         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60968         * doc/posix-functions/futimens.texi (futimens): Likewise.
60969         * modules/futimens-tests: New test.
60970         * tests/test-futimens.c: Likewise.
60972         utimens: introduce fdutimens
60973         * lib/utimens.h (fdutimens): New prototype.
60974         * lib/utimens.c (gl_futimens): Move guts...
60975         (fdutimens): ...to new interface.
60976         * tests/test-utimens.c (do_fdutimens): Use it.
60978         utimens: add UTIME_NOW and UTIME_OMIT support
60979         * lib/utimens.c (validate_timespec, update_timespec): New helper
60980         functions.
60981         (gl_futimens, lutimens): Use them.
60982         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
60983         stdbool, sys_stat.
60984         (Link): Mention resulting library dependency.
60985         * modules/utimecmp (Link): Likewise.
60986         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
60987         (Makefile.am): Pick up library dependency.
60988         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
60989         definition.
60990         * tests/test-sys_stat.c: Test the definitions.
60991         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
60992         * NEWS: Document library dependency.
60994         utimecmp: support symlink timestamps
60995         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
60996         hashing when possible.  Use pathconf when available.
60997         (SYSCALL_RESOLUTION): Recognize tighter resolution.
60998         * modules/utimecmp (Depends-on): Add lstat.
61000         utimens: add lutimens interface
61001         * lib/utimens.c (lutimens): New function.
61002         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
61003         * lib/utimens.h (lutimens): Declare new interface.
61004         * tests/test-utimens.c (main): Enhance test.
61005         * tests/test-lutimens.h (test_lutimens): New file.
61006         * modules/utimens-tests (Files): Distribute it.
61007         (Depends-on): Add symlink.
61008         (configure.ac): Check for usleep.
61010         utimens: validate futimens usage
61011         * lib/utimens.c (gl_futimens): Require valid fd up front, using
61012         fewer syscalls on failure later on.  Avoid compiler warning on
61013         mingw.
61014         * modules/utimens (Depends-on): Add dup2.
61016         utimens: add test
61017         * modules/utimens-tests: New test.
61018         * tests/test-utimens.h: New file.
61019         * tests/test-futimens.h: Likewise.
61020         * tests/test-utimens.c: Likewise.
61022         doc: mention timestamp portability issues
61023         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
61024         instead.
61025         * doc/posix-functions/utime.texi (utime): Likewise.
61026         * doc/posix-functions/utimes.texi (utimes): Likewise.
61027         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
61028         instead.
61029         * doc/posix-functions/futimens.texi (futimens): Mention utimens
61030         module.
61031         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61032         Mention weakness with symlink timestamps.
61033         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
61034         to utimensat/futimens instead.
61035         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
61037         test-dup2: enhance test
61038         * tests/test-dup2.c (main): Also check AT_FDCWD.
61040         test-stat-time: avoid more spurious failures
61041         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
61042         xfs; and avoid race if the two timestamps cross quantization edge.
61044         relocatable: prefer 'file system' over 'filesystem'
61045         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
61046         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
61047         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
61048         * doc/relocatable.texi (Enabling Relocatability): Likewise.
61049         * lib/relocatable.c (compute_curr_prefix): Likewise.
61051 2009-10-10  Jim Meyering  <meyering@redhat.com>
61053         stat-time-tests: check for the usleep function
61054         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
61056 2009-10-10  Bruno Haible  <bruno@clisp.org>
61058         * modules/xnanosleep: Put the Link section after the Include section.
61060 2009-10-09  Eric Blake  <ebb9@byu.net>
61062         dup2: work around FreeBSD 6.1 bug
61063         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
61064         * doc/posix-functions/dup2.texi (dup2): Document it.
61065         Reported by Nelson H. F. Beebe and Jim Meyering.
61067         test-stat-time: port to buggy NFS clients
61068         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
61069         (test_ctime): Also skip test if mtime and ctime are skewed.
61071         maint: prefer 'file system' over 'filesystem'
61072         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61073         * doc/posix-functions/lstat.texi (lstat): Likewise.
61074         * lib/file-has-acl.c (file_has_acl): Likewise.
61075         * lib/fwriteerror.c [TEST]: Likewise.
61076         * tests/test-areadlink.h (test_areadlink): Likewise.
61077         * tests/test-areadlinkat-with-size.c (main): Likewise.
61078         * tests/test-areadlinkat.c (main): Likewise.
61079         * tests/test-canonicalize-lgpl.c (main): Likewise.
61080         * tests/test-canonicalize.c (main): Likewise.
61081         * tests/test-fstatat.c (main): Likewise.
61082         * tests/test-linkat.c (main): Likewise.
61083         * tests/test-lstat.h (test_lstat_func): Likewise.
61084         * tests/test-mkdir.h (test_mkdir): Likewise.
61085         * tests/test-readlink.h (test_readlink): Likewise.
61086         * tests/test-remove.c (main): Likewise.
61087         * tests/test-rename.h (test_rename): Likewise.
61088         * tests/test-renameat.c (main): Likewise.
61089         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61090         * tests/test-symlink.h (test_symlink): Likewise.
61091         * tests/test-symlinkat.c (main): Likewise.
61092         * tests/test-unlink.h (test_unlink_func): Likewise.
61093         * tests/test-unlinkat.c (main): Likewise.
61095         maint: make realtime library usage explicit
61096         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
61097         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
61098         * modules/settime (Link): Likewise.
61099         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
61101         test-stat-time: speed up execution
61102         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
61103         warning on mingw.
61104         (nap): New helper function.
61105         (prepare_test): Use it to reduce sleep time.
61106         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
61107         execution.
61108         * modules/stat-time-tests (configure.ac): Check for usleep.
61110 2009-10-09  Jim Meyering  <meyering@redhat.com>
61112         selinux-h: always use getfilecon wrappers
61113         * lib/getfilecon.c: New file.
61114         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
61115         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
61116         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
61117         (fgetfilecon): Provide a stub.
61118         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
61119         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
61120         file unconditionally.
61121         When <selinux/selinux.h> is found, arrange to use wrappers.
61122         * modules/selinux-h (Files): Add getfilecon.c.
61123         (Makefile.am): Substitute include-next-related bits
61124         into the now-always-generated selinux/selinux.h file.
61125         * doc/glibc-functions/lgetfilecon.texi: New file.
61126         * doc/glibc-functions/fgetfilecon.texi: New file.
61127         * doc/glibc-functions/getfilecon.texi: New file.
61128         * doc/glibc-functions/getfilecon-desc.texi: New file.
61129         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
61130         which to pull in the new files.
61131         * MODULES.html.sh (Misc): Add selinux-h.
61133 2009-10-08  Jim Meyering  <meyering@redhat.com>
61135         unistd: fix comment typo
61136         * lib/unistd.in.h (euidaccess): Fix a comment typo.
61138 2009-10-08  Eric Blake  <ebb9@byu.net>
61140         areadlink: use SIZE_MAX consistently
61141         * modules/areadlink (Depends-on): Add stdint.
61142         * modules/areadlink-with-size (Depends-on): Likewise.
61143         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
61144         gives NULL; drop sys/types, since unistd gives size_t; and add
61145         stdint for SIZE_MAX.
61146         (SIZE_MAX): Rely on headers.
61147         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
61148         and add stdint.
61149         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
61150         (SIZE_MAX): Likewise.
61151         (INITIAL_BUF_SIZE): Turn into enum.
61152         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
61154 2009-10-08  Jim Meyering  <meyering@redhat.com>
61156         areadlinkat: avoid compilation failure
61157         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
61158         Fix typo in comment.
61160 2009-10-07  Eric Blake  <ebb9@byu.net>
61162         areadlinkat-with-size: new module
61163         * modules/areadlinkat-with-size: New module.
61164         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
61165         * lib/areadlink.h (areadlinkat): Declare it.
61166         * MODULES.html.sh (File system functions): Mention it.
61167         * modules/areadlinkat-with-size-tests: New test.
61168         * tests/test-areadlinkat-with-size.c: New file.
61170         xreadlinkat: new module
61171         * modules/xreadlinkat: New module.
61172         * lib/xreadlinkat.c (xreadlinkat): New file.
61173         * lib/xreadlink.h (xreadlinkat): Declare it.
61174         * MODULES.html.sh (File system functions): Mention it.
61176         areadlinkat: new module
61177         * lib/at-func.c (FUNC_FAIL): New define.
61178         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
61179         * modules/areadlinkat: New module.
61180         * lib/linkat.c (areadlinkat): Move...
61181         * lib/areadlinkat.c (areadlinkat): ...to new file.
61182         * lib/areadlink.h (areadlinkat): Declare it.
61183         * modules/linkat (Depends-on): Add areadlinkat.
61184         * MODULES.html.sh (File system functions): Mention it.
61185         * modules/areadlinkat-tests: New test.
61186         * tests/test-areadlinkat.c: New file.
61188         areadlink, areadlink-with-size: add tests
61189         * modules/areadlink-tests: New test.
61190         * modules/areadlink-with-size-tests: Likewise.
61191         * tests/test-areadlink.h: New file.
61192         * tests/test-areadlink.c: Likewise.
61193         * tests/test-areadlink-with-size.c: Likewise.
61195         maint: minor cleanups
61196         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
61197         _UNUSED_PARAMETER_ instead.
61198         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
61199         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
61200         * modules/linkat-tests (Files): Distribute test-link.h.
61202         openat, utimens: whitespace cleanup
61203         * lib/openat.c: Prefer space throughout, rather than mix of 8
61204         spaces vs. tabs.
61205         * lib/at-func.c: Likewise.
61206         * lib/utimens.c: Likewise.
61208         openat: avoid using wrong fd
61209         * lib/openat.c (openat_permissive): Reject user's fd if saving the
61210         working directory chooses same fd.
61211         * lib/at-func.c (AT_FUNC_NAME): Likewise.
61213         mkdir, mkdirat: fix cygwin 1.5.x bug
61214         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
61215         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
61216         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
61217         bug.
61218         (gl_PREREQ_MKDIR): Delete unused macro.
61219         * modules/mkdir (Files): Track file rename.
61220         (configure.ac): Update macro name.
61221         * modules/openat (Depends-on): Add mkdir.
61222         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
61224         mkdir, mkdirat: add tests
61225         * modules/mkdir-tests: New test.
61226         * tests/test-mkdir.h: New file.
61227         * tests/test-mkdir.c: Likewise.
61228         * tests/test-mkdirat.c: Likewise.
61229         * modules/openat-tests (Files): Add new files.
61230         (Makefile.am): Run new test.
61232 2009-10-06  Eric Blake  <ebb9@byu.net>
61234         doc: tweak *at function documentation
61235         * doc/posix-functions/faccessat.texi (faccessat): Mention
61236         known issue with replacement.
61237         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
61238         * doc/posix-functions/linkat.texi (linkat): Likewise.
61239         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61240         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61241         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61242         * doc/posix-functions/renameat.texi (renameat): Likewise.
61243         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61245         openat: fix GNU/Hurd bug in unlinkat
61246         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
61247         broken.
61248         * doc/posix-functions/unlink.texi (unlink): Document this.
61249         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
61251         fdopendir: fix GNU/Hurd bug
61252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
61253         allowing non-directory fds.
61254         * lib/fdopendir.c (rpl_fdopendir): Work around it.
61255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
61256         * modules/dirent (Makefile.am): Substitute it.
61257         * lib/dirent.in.h (fdopendir): Declare replacement.
61258         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
61259         * tests/test-fdopendir.c (main): Test something other than
61260         /dev/null, since on Hurd that behaves like a directory.
61262         test-symlink: port to GNU/Hurd
61263         * tests/test-symlink.h (test_symlink): Relax expected errno.
61265         doc: tweak more cygwin information
61266         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
61267         now compatible with glibc.
61268         * doc/posix-functions/getopt.texi (getopt): Likewise.
61270         getopt-gnu: add another test
61271         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
61272         guarantee behavior relied on by m4.
61273         * tests/test-getopt.c (main): Use it.
61274         * modules/getopt-posix-tests (Depends-on): Add setenv.
61275         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
61277         getopt: fix compilation on darwin
61278         * lib/getopt.in.h (includes): Leave breadcrumbs during system
61279         include.
61280         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
61281         Reported by Ludovic Courtès.
61283 2009-10-06  Bruno Haible  <bruno@clisp.org>
61285         * modules/size_max (Description): Discourage its use.
61286         Reported by Simon Josefsson.
61288 2009-10-06  Jim Meyering  <meyering@redhat.com>
61290         linkat: avoid compilation failure
61291         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
61293 2009-10-05  Eric Blake  <ebb9@byu.net>
61295         linkat: support Linux 2.6.17
61296         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
61297         linkat on Linux, but allow cache variable override.
61298         * lib/linkat.c (rpl_linkat): Define override.
61299         * modules/linkat (Depends-on): Add symlinkat.
61300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
61301         * modules/unistd (Makefile.am): Substitute it.
61302         * lib/unistd.in.h (linkat): Declare replacement.
61303         Reported by Pádraig Brady.
61305         quotearg: port test to systems with C.UTF-8 locale
61306         * tests/test-quotearg.c (struct result_strings): Add another
61307         member, differentiating between C.ASCII and C.UTF-8 handling.
61308         (compare_strings): Add parameter.
61309         (main): Adjust all callers.
61311         getopt: avoid clash with FreeBSD _getopt_internal
61312         * lib/getopt.in.h (_getopt_internal): Override the name.
61313         * lib/getopt_int.h (includes): Pick up any overrides.
61314         Reported by Reuben Thomas.
61316         hash: allow C89 compilation
61317         * lib/hash.c (check_tuning): Move declaration before statement.
61318         Reported by Reuben Thomas.
61320 2009-10-05  Karl Berry  <karl@gnu.org>
61322         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
61324 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
61325             Bruno Haible  <bruno@clisp.org>
61327         * lib/uname.c (uname): Use a table-driven algorithm to compute
61328         Windows NT versions.
61330 2009-10-04  Bruno Haible  <bruno@clisp.org>
61332         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
61333         program_invocation_short_name.
61334         * modules/progname (configure.ac): Test for presence of
61335         program_invocation_short_name.
61336         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
61338 2009-10-04  Bruno Haible  <bruno@clisp.org>
61340         * lib/progname.c (set_program_name): Fix comment.
61341         Reported by Jim Meyering.
61343 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61344             Bruno Haible  <bruno@clisp.org>
61346         * lib/uname.c: Include <string.h>.
61347         (uname): Do only one call to GetVersionEx in the common case.
61349 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61350             Bruno Haible  <bruno@clisp.org>
61352         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
61353         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
61354         (uname): Add support for Windows CE and various non-x86 CPU types.
61356 2009-10-03  Bruno Haible  <bruno@clisp.org>
61358         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
61359         invocation to tests/configure.ac.
61360         Reported by Ian Beckwith <ianb@erislabs.net>.
61362 2009-10-02  Eric Blake  <ebb9@byu.net>
61364         fchdir: avoid compiler warning
61365         * lib/fchdir.c (canonicalize_file_name)
61366         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
61368         test-open: support mingw errno values
61369         * tests/test-open.h (test_open): Relax test.
61370         * tests/test-fopen.h (test_fopen): Likewise.
61371         * tests/test-openat-safer.c (main): Likewise.
61373         open: fix opening directory on mingw
61374         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
61376         test-open: on GNU/Hurd, /dev/null is a directory
61377         * tests/test-fopen.h (main): Rename...
61378         (test_fopen): ...to this.  Use a guaranteed non-directory when
61379         confirming open behavior on trailing slash.
61380         * tests/test-openat-safer.c (main): Likewise.
61381         * tests/test-open.h (main): Likewise....
61382         (test_open): ...to this.
61383         * tests/test-fopen.c (main): Adjust caller.
61384         * tests/test-fopen-safer.c (main): Likewise.
61385         * tests/test-open.c (main): Likewise.
61386         * tests/test-fcntl-safer.c (main): Likewise.
61387         Reported by Samuel Thibault.
61389         rename, fchdir: don't ignore chdir failure
61390         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
61391         * lib/rename.c (rpl_rename) [W32]: Likewise.
61392         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
61393         an empty destination directory if source cannot be renamed,
61394         although there is still possibility for failure.
61395         * doc/posix-functions/rename.texi (rename): Document the race.
61396         Reported by Jim Meyering.
61398         maint: cleanup whitespace in recent commits
61399         * lib/rename.c (rpl_rename): Remove tabs.
61400         * tests/test-link.h (test_link): Likewise.
61401         * lib/fchdir.c (get_name): Likewise.
61402         Reported by Jim Meyering.
61404 2009-10-02  Ben Pfaff  <blp@gnu.org>
61406         relocatable-prog-wrapper: Add missing dependency on
61407         double-slash-root.
61408         * modules/relocatable-prog-wrapper: Add dependency.
61409         Reported by Ian Beckwith <ianb@erislabs.net>.
61411 2009-10-02  Eric Blake  <ebb9@byu.net>
61413         renameat: fix Solaris bugs
61414         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
61415         needed fixing.
61416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
61417         * modules/stdio (Makefile.am): Substitute it.
61418         * lib/stdio.in.h (renameat): Declare replacement.
61419         * lib/renameat.c (rpl_renameat): Implement fix.
61421         renameat: new module
61422         * modules/renameat: New file.
61423         * lib/renameat.c (renameat): Likewise.
61424         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
61425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61426         * modules/stdio (Makefile.am): Substitute them.
61427         * lib/stdio.in.h (renameat): Declare it.
61428         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61429         * doc/posix-functions/renameat.texi (renameat): Likewise.
61430         * modules/renameat-tests: New test.
61431         * tests/test-renameat.c: Likewise.
61433         rename: fix mingw bugs
61434         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
61435         directory overwrite bugs.
61437         rename: fix another cygwin 1.5 bug
61438         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
61439         checks.
61440         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
61441         unnecessary cygwin workarounds.  Also work around bug with moving
61442         full directory onto an empty one.
61443         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
61445         rename-dest-slash: merge into rename module
61446         * modules/rename-dest-slash (Status): Mark obsolete.
61447         (Depends-on): Add rename.
61448         (Files): Let rename do it all.
61449         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
61450         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
61451         * m4/rename-dest-slash.m4: ...so this file can be deleted.
61452         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
61453         * lib/rename.c (rpl_rename): Update comments.
61455         rename: fix cygwin 1.5.x bugs
61456         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
61457         * lib/rename.c (rpl_rename): Work around them.
61458         * modules/rename (Depends-on): Add same-inode.
61460         rename: fix Solaris 10 bug
61461         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61462         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
61463         was the only bug.
61465         rename: fix Solaris 9 bug
61466         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
61467         on non-directory.  Avoid calling exit.
61468         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
61469         strdup.
61470         * modules/rename-tests (Depends-on): Drop lstat.
61471         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61472         (gl_PREREQ_RENAME): Delete unused macro.
61474         rename-dest-slash: fix NetBSD bug
61475         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
61476         links.
61477         * modules/rename-dest-slash (Depends-on): Add same-inode.
61479         rename-tests: new test, exposes several platform bugs
61480         * modules/rename-tests: New file.
61481         * tests/test-rename.h: Likewise.
61482         * tests/test-rename.c: Likewise.
61483         * doc/posix-functions/rename.texi (rename): Improve documentation,
61484         including bugs that will eventually be fixed in gnulib.
61486 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
61488         * lib/uname.c: Include <stdlib.h>
61489         (uname): Assume version info is available.
61491 2009-10-02  Jim Meyering  <meyering@redhat.com>
61493         gnu-web-doc-update: correct --help output
61494         * build-aux/gnu-web-doc-update: Make --help output relevant.
61496         gnu-web-doc-update: add standard options
61497         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
61499         gnu-web-doc-update: New module.
61500         Use this script to automatically update the on-line web documentation
61501         for your GNU project at http://www.gnu.org/software/$pkg/manual/
61502         * modules/gnu-web-doc-update: New file, from coreutils.
61503         * build-aux/gnu-web-doc-update: New script.
61505 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
61507         link: LoadLibrary is not needed.
61508         * lib/link.c: Use GetModuleHandle.
61510 2009-10-01  Eric Blake  <ebb9@byu.net>
61512         getopt: bump serial number
61513         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
61514         change.
61516         tests: tighten link, rmdir, and remove tests
61517         * tests/test-link.h (includes): No need to use <config.h> here.
61518         Clean up if directory hard link was created, otherwise test for
61519         trailing '.'.
61520         * tests/test-linkat.c (main): Simplify.
61521         * tests/test-remove.c (main): Enhance test for trailing '.'.
61522         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61524 2009-10-01  Jim Meyering  <meyering@redhat.com>
61526         maint.mk: requiring "make major" was annoying, for a "minor" release.
61527         What is intended is "stable", to contrast with alpha and beta,
61528         so require "make stable", not "make major".
61529         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
61530         (get_tool_versions): Likewise.
61531         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
61533 2009-09-30  Ben Pfaff  <blp@gnu.org>
61535         Fix broken build of replacement for Windows tmpfile().
61536         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61537         flags argument added along with the 'mkostemp' module.
61539 2009-09-28  Bruno Haible  <bruno@clisp.org>
61541         Avoid identifier clash with POSIX function 'remove' defined as a macro.
61542         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
61543         to 'remove_elt'.
61544         (gl_list_remove): Update.
61545         * lib/gl_list.c (gl_list_remove): Update.
61546         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
61547         to 'remove_elt'.
61548         (gl_oset_remove): Update.
61549         * lib/gl_list.c (gl_oset_remove): Update.
61550         Reported by Eric Blake.
61552 2009-09-28  Eric Blake  <ebb9@byu.net>
61554         doc: mention yet more cygwin 1.7 status
61555         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
61556         cygwin.
61557         * doc/glibc-functions/execvpe.texi (execvpe): New file.
61558         * doc/gnulib.texi (Glibc unistd.h): Mention it.
61560         argp: fix test failure
61561         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
61562         that are not upper-case.  Pass correct range to tolower.
61564 2009-09-27  Jim Meyering  <meyering@redhat.com>
61566         test-yesno: work around sparc-dash here-document infelicity
61567         Without this change, the literal \177 byte in a here document
61568         would make dash 0.5.5.1-3 access uninitialized memory.
61569         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
61570         Instead, use a marker, "@", and filter through tr to create the desired
61571         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
61573 2009-09-27  Bruno Haible  <bruno@clisp.org>
61575         Disable untested support for new flavours of ACLs on AIX.
61576         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
61577         progress.
61578         * lib/set-mode-acl.c (qset_acl): Likewise.
61580 2008-12-07  Bruno Haible  <bruno@clisp.org>
61582         Add support for new flavours of ACLs on AIX. (Untested.)
61583         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
61584         (file_has_acl): Add support for newer AIX.
61585         * lib/set-mode-acl.c (qset_acl): Likewise.
61586         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
61587         Rainer Tammer <tammer@tammer.net>.
61589 2009-09-26  Eric Blake  <ebb9@byu.net>
61591         argp: fix compilation of getopt
61592         * lib/getopt.in.h (includes): Use different guard than glibc.
61593         Reported by Sergey Poznyakoff.
61595         doc: mention more cygwin 1.7 status
61596         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61597         bug.
61598         * doc/posix-functions/execl.texi (execl): Likewise.
61599         * doc/posix-functions/execle.texi (execle): Likewise.
61600         * doc/posix-functions/execlp.texi (execlp): Likewise.
61601         * doc/posix-functions/execv.texi (execv): Likewise.
61602         * doc/posix-functions/execve.texi (execve): Likewise.
61603         * doc/posix-functions/execvp.texi (execvp): Likewise.
61604         * doc/glibc-functions/canonicalize_file_name.texi
61605         (canonicalize_file_name): Cygwin 1.7 now provides this.
61606         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61607         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61608         on AT_SYMLINK_NOFOLLOW.
61610 2009-09-24  Eric Blake  <ebb9@byu.net>
61612         test-linkat: make test more robust
61613         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61615         getopt: fix inclusion guards for cygwin
61616         * modules/getopt-posix (Depends-on): Add include-next.
61617         (Makefile.am): Substitute more items in replacement header.
61618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61619         <getopt.h>.
61620         * lib/getopt.in.h (includes): Use split inclusion guard, and
61621         prefer <getopt.h> over include <unistd.h> when one is present.
61622         (option): Also override name of 'struct option'.
61624         same-inode: revert prior change; it is not yet ready
61625         * NEWS: Undo mention of this change.
61626         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61627         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61628         * lib/cycle-check.c (cycle_check): Likewise.
61629         * lib/same.c (same_name): Likewise.
61630         * lib/at-func2.c (at_func2): Likewise.
61632 2009-09-23  Eric Blake  <ebb9@byu.net>
61634         linkat: new module
61635         * modules/linkat: New file.
61636         * lib/at-func2.c (at_func2): Likewise.
61637         * lib/linkat.c (linkat): Likewise.
61638         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61639         * lib/openat-priv.h (at_func2): Add declaration.
61640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61641         * modules/unistd (Makefile.am): Substitute them.
61642         * lib/unistd.in.h (linkat): Declare it.
61643         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61644         * doc/posix-functions/linkat.texi (linkat): Likewise.
61645         * doc/posix-functions/link.texi (link): Tweak wording.
61646         * tests/test-link.c (main): Move guts...
61647         * tests/test-link.h (test_link): ...into new file.
61648         * modules/linkat-tests: New test.
61649         * tests/test-linkat.c: Likewise.
61650         * modules/link-tests (Files): Ship new file.
61651         (Depends-on): Add stdbool.
61653         dirname: add library-safe mdir_name
61654         * lib/dirname.h (mdir_name): New prototype.
61655         * lib/dirname.c (dir_name): Move guts...
61656         (mdir_name): ...to new function that avoids xalloc_die.
61658         fchdir: another mingw fix
61659         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61660         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61661         on mingw (where it has not yet been ported), and make it optional
61662         elsewhere.
61663         (_gl_register_fd): Use it.
61665         same-inode: make SAME_INODE tri-state, to port to mingw
61666         * NEWS: Mention this change.
61667         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61668         st_ino always being 0.
61669         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61670         * lib/cycle-check.c (cycle_check): Likewise.
61671         * lib/same.c (same_name): Likewise.
61673         lstat: avoid mingw compilation error
61674         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61675         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61676         lstat ourselves.
61677         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61678         was adequate.
61679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61680         the checks for lstat.
61681         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61683         link: fix test failure on Solaris 9
61684         * lib/link.c (rpl_link): Don't assume link will catch bogus
61685         trailing slash on source.
61687         test-symlinkat: enhance test
61688         * tests/test-readlink.c (main): Move guts...
61689         * tests/test-readlink.h (test_readlink): ...into new file.
61690         * tests/test-symlink.c (main): Move guts...
61691         * tests/test-symlink.h (test_symlink): ...into new file.
61692         * tests/test-symlinkat.c (main): Use new files for further
61693         coverage.
61694         (do_symlink, do_readlink): New helper functions.
61695         * modules/symlink-tests (Files): Ship new file.
61696         (Depends-on): Add stdbool.
61697         * modules/readlink-tests (Files): Ship new file.
61698         (Depends-on): Add stdbool.
61699         * modules/symlinkat-tests (Files): Use new files.
61701 2009-09-23  Eric Blake  <ebb9@byu.net>
61703         readlink: document portability issue with symlink length
61704         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61705         systems have bogus st_size on symlinks, and mention the
61706         areadlink-with-size module.
61707         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61708         * doc/posix-functions/readlink.texi (readlink): Mention the
61709         areadlink module, and ERANGE failure.
61710         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61711         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61713         readlink: fix Solaris 9 bug with trailing slash
61714         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61715         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61716         * doc/posix-functions/readlink.texi (readlink): Document this.
61717         * modules/readlink-tests: New test.
61718         * tests/test-readlink.c: Likewise.
61720         readlink: fix cygwin 1.5.x bug with return type
61721         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61722         * lib/unistd.in.h (readlink): Use ssize_t.
61723         * lib/readlink.c (readlink): Likewise.
61724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61725         * modules/unistd (Makefile.am): Substitute it.
61726         * lib/unistd.in.h (readlink): Declare replacement.
61727         * doc/posix-functions/readlink.texi (readlink): Document this.
61729         symlink: use throughout gnulib
61730         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61731         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61732         symlink is not used.
61733         * modules/symlinkat (Depends-on): Add symlink.
61734         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61735         * modules/canonicalize-tests (Depends-on): Likewise.
61736         * modules/lstat-tests (Depends-on): Likewise.
61737         * modules/openat-tests (Depends-on): Likewise.
61738         * modules/remove-tests (Depends-on): Likewise.
61739         * modules/rmdir-tests (Depends-on): Likewise.
61740         * modules/unlink-tests (Depends-on): Likewise.
61741         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61742         * tests/test-canonicalize.c (symlink): Likewise.
61743         * tests/test-fstatat.c (symlink): Likewise.
61744         * tests/test-lstat.c (symlink): Likewise.
61745         * tests/test-remove.c (symlink): Likewise.
61746         * tests/test-rmdir.c (symlink): Likewise.
61747         * tests/test-unlink.c (symlink): Likewise.
61748         * tests/test-unlinkat.c (symlink): Likewise.
61750         symlink: new module, for Solaris 9 bug
61751         * modules/symlink: New file.
61752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61753         * lib/symlink.c: Likewise.
61754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61755         * modules/unistd (Makefile.am): Substitute them.
61756         * lib/unistd.in.h (symlink): Declare replacement.
61757         * MODULES.html.sh (File system functions): Mention it.
61758         * doc/posix-functions/symlink.texi (symlink): Likewise.
61759         * modules/symlink-tests: New test.
61760         * tests/test-symlink.c: Likewise.
61762 2009-09-23  Bruno Haible  <bruno@clisp.org>
61764         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
61765         when needed.
61766         Test case: gnulib-tool --import --with-tests atexit inttypes.
61767         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
61769 2009-09-23  Bruno Haible  <bruno@clisp.org>
61771         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
61772         subcommand, not in a subshell.
61774 2009-09-22  Eric Blake  <ebb9@byu.net>
61776         unistd: sort replacement declarations
61777         * lib/unistd.in.h: Sort declarations.
61779         open, openat: minor optimization
61780         * lib/open.c (open): If open succeeded, len is non-zero.
61781         * lib/openat.c (rpl_openat): Likewise.
61783         link-follow: ensure correct result
61784         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
61785         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
61786         distinguish between possible failures.
61788 2009-09-21  Eric Blake  <ebb9@byu.net>
61790         fts: avoid compiler warning
61791         * lib/fts.c (dirent_inode_sort_may_be_useful)
61792         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
61794 2009-09-19  Bruno Haible  <bruno@clisp.org>
61796         * lib/progreloc.c (canonicalize_file_name): New declaration.
61798 2009-09-19  Eric Blake  <ebb9@byu.net>
61800         link: fix quoting
61801         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
61803         openat: fix openat bugs on Solaris 9
61804         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
61805         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
61806         * modules/openat (Depends-on): Add open.
61807         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
61808         * modules/fcntl-h (Makefile.am): Substitute it.
61809         * lib/fcntl.in.h (openat): Declare replacement.
61810         * doc/posix-functions/openat.texi (openat): Document this.
61812         openat: move fstatat and unlinkat into correct files
61813         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
61814         compiled.
61815         * lib/openat.c (fstatat, unlinkat): Move...
61816         * lib/fstatat.c (fstatat): ...into correct files.
61817         * lib/unlinkat.c (unlinkat): Likewise.
61819         openat: fix unlinkat bugs on Solaris 9
61820         * lib/unlinkat.c (unlinkat): New file.
61821         * modules/openat (Depends-on): Add unlink.
61822         (Files): Distribute it.
61823         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
61824         trailing slash behavior is broken.
61825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61826         * modules/unistd (Makefile.am): Substitute it.
61827         * lib/unistd.in.h (unlinkat): Declare replacement.
61828         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
61830         openat: fix fstatat bugs on Solaris 9
61831         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
61832         stat.
61833         * doc/posix-functions/fstatat.texi (fstatat): Document this.
61835         test-unlinkat: enhance test, to expose Solaris 9 bug
61836         * tests/test-unlink.c (main): Factor guts...
61837         * tests/test-unlink.h (test_rmdir_func): ...into new file.
61838         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
61839         * tests/test-rmdir.c (main): Adjust caller.
61840         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
61841         (unlinker): New helper function.
61842         (rmdirat): Enhance check.
61843         * modules/rmdir-tests (Depends-on): Add stdbool.
61844         * modules/unlink-tests (Depends-on): Likewise.
61845         (Files): Add test-unlink.h.
61846         * modules/openat-tests (Files): Likewise.
61847         (Depends-on): Add unlinkdir.
61849         test-fstatat: new test, to expose Solaris 9 bugs
61850         * tests/test-stat.c (main): Factor guts...
61851         * tests/test-stat.h (test_stat_func): ...into new file.
61852         * tests/test-lstat.c (main): Factor guts...
61853         * tests/test-lstat.h (test_lstat_func): ...into new file.
61854         * tests/test-fstatat.c: New file.
61855         * modules/stat-tests (Files): Add test-stat.h.
61856         * modules/lstat-tests (Files): Add test-lstat.h.
61857         (Depends-on): Add stdbool.
61858         * modules/openat-tests (Depends-on): Add pathmax.
61859         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61860         (Makefile.am): Run new test.
61862         remove: new module, for mingw and Solaris 9 bugs
61863         * modules/remove: New file.
61864         * lib/remove.c: Likewise.
61865         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61867         * modules/stdio (Makefile.am): Use them.
61868         * lib/stdio.in.h (remove): Declare replacement.
61869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61870         * doc/posix-functions/remove.texi (remove): Likewise.
61871         * modules/remove-tests: New test.
61872         * tests/test-remove.c: Likewise.
61874         unlink: new module, for Solaris 9 bug
61875         * modules/unlink: New file.
61876         * lib/unlink.c: Likewise.
61877         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61879         * modules/unistd (Makefile.am): Use them.
61880         * lib/unistd.in.h (stat): Declare replacement.
61881         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61882         * doc/posix-functions/unlink.texi (unlink): Likewise.
61883         * modules/unlink-tests: New test.
61884         * tests/test-unlink.c: Likewise.
61886         lstat: fix Solaris 9 bug
61887         * lib/lstat.c (lstat): Also check for trailing slash on
61888         non-symlink, non-directories.  Use stat module to simplify logic.
61889         * doc/posix-functions/lstat.texi (lstat): Document it.
61890         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61891         (configure.ac): Check for symlink.
61892         * tests/test-lstat.c (main): Add more tests.
61894         stat: add as dependency to other modules
61895         * modules/chown (Depends-on): Add stat.
61896         * modules/euidaccess (Depends-on): Likewise.
61897         * modules/fchdir (Depends-on): Likewise.
61898         * modules/isdir (Depends-on): Likewise.
61899         * modules/link (Depends-on): Likewise.
61900         * modules/lstat (Depends-on): Likewise.
61901         * modules/mkdir-p (Depends-on): Likewise.
61902         * modules/modechange (Depends-on): Likewise.
61903         * modules/open (Depends-on): Likewise.
61904         * modules/readlink (Depends-on): Likewise.
61905         * modules/same (Depends-on): Likewise.
61907         stat: fix Solaris 9 bug
61908         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61909         slash.
61910         * lib/stat.c (rpl_stat): Work around it.
61911         * doc/posix-functions/stat.texi (stat): Update documentation.
61913         stat: new module, for mingw bug
61914         * modules/stat: New file.
61915         * lib/stat.c: Likewise.
61916         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61917         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61918         * modules/sys_stat (Makefile.am): Use them.
61919         * lib/sys_stat.in.h (stat): Declare replacement.
61920         * lib/openat.c (fstatat): Deal with lstat and stat being function
61921         macros.
61922         * modules/openat (Depends-on): Add inline.
61923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61924         * doc/posix-functions/stat.texi (stat): Likewise.
61925         * modules/stat-tests: New test.
61926         * tests/test-stat.c: Likewise.
61928 2009-09-19  Jim Meyering  <meyering@redhat.com>
61930         syntax-check: detect unnecessary inclusion of canonicalize.h
61931         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
61933 2009-09-19  Eric Blake  <ebb9@byu.net>
61935         canonicalize-lgpl: adjust clients to use correct header
61936         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61937         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
61938         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
61939         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
61940         * lib/progreloc.c (includes): Likewise.
61942 2009-09-19  Jim Meyering  <meyering@redhat.com>
61944         test-posixtm.c: correct a comment
61945         * tests/test-posixtm.c: Correct first-line comment.
61946         Spotted by Eric Blake.
61948 2009-09-16  Jim Meyering  <meyering@redhat.com>
61950         posixtm-tests: make T const-correct; add a test case
61951         * tests/test-posixtm.c (T): Declare const.
61952         Add a test for -(2^31+1).
61953         Remove useless can-succeed-only-in-2002 test.
61955         posixtm-tests: adjust the sole failing test
61956         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
61957         expected output matches what mktime now produces.  Cross-checked via
61958         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
61960         posixtm: move #ifdef'd tests into a new module
61961         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
61962         * tests/test-posixtm.c: ... this new file.
61963         * modules/posixtm-tests: New module.
61965 2009-09-19  Eric Blake  <ebb9@byu.net>
61967         openat: simplify use of at-func.c
61968         * lib/at-func.c (includes): Include prerequisites here, to
61969         simplify requirements on client files.
61970         * lib/openat-priv.h: Add double-inclusion guard.
61971         * lib/faccessat.c (includes): Simplify.
61972         * lib/fchmodat.c (includes): Likewise.
61973         * lib/fchownat.c (includes): Likewise.
61974         * lib/mkdirat.c (includes): Likewise.
61975         * lib/mkfifoat.c (includes): Likewise.
61976         * lib/symlinkat.c (includes): Likewise.
61978         openat: allow return of fd 0
61979         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
61980         * modules/save-cwd (Depends-on): Replace fcntl-safer with
61981         unistd-safer.
61982         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
61983         <fcntl.h>; this module does not leak fds.
61984         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
61985         must be allowed to return 0, leaving openat_safer to add the
61986         safety.
61987         (openat_permissive): Avoid writing to just-opened fd 2 if
61988         restoring the current directory fails.
61989         * lib/openat-die.c (openat_restore_fail): Add comment.
61990         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
61991         (save_cwd): Guarantee safe fd, but without use of open_safer.
61992         * tests/test-openat.c: New test.
61993         * modules/openat-tests (Files, Makefile.am): Distribute and build
61994         new file.
61996         relocatable-prog-wrapper: fix build
61997         * modules/relocatable-prog-wrapper (Files): Update name of
61998         canonicalize m4 file, broken on 2009-09-17.
61999         Reported by emad hajjar <aleppos@hotmail.com>.
62001 2009-09-19  Bruno Haible  <bruno@clisp.org>
62003         * lib/safe-alloc.h: Use the standard header with GPL copyright.
62004         * lib/safe-alloc.c: Likewise.
62005         Reported by Ian Beckwith <ianb@erislabs.net>.
62007 2009-09-18  Bruno Haible  <bruno@clisp.org>
62009         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
62010         Reported by <erobles@sensacd.com.mx>.
62012 2009-09-17  Eric Blake  <ebb9@byu.net>
62014         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
62015         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
62016         slashes when checking if last component is missing.
62017         * tests/test-canonicalize.c (main): Test this.
62019         canonicalize, canonicalize-lgpl: honor // if distinct from /
62020         * modules/canonicalize (Files): Add double-slash-root.m4.
62021         * modules/canonicalize-lgpl (Files): Likewise.
62022         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62023         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
62024         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
62025         fallback definition.
62026         (canonicalize_filename_mode): Use it to protect //.
62027         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
62028         (__realpath): Likewise.
62029         * tests/test-canonicalize.c (main): Test this.
62030         * tests/test-canonicalize-lgpl.c (main): Likewise.
62031         * modules/canonicalize-tests (Depends-on): Add same-inode.
62032         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
62034         canonicalize-lgpl: fix glibc bug with trailing slash
62035         * m4/canonicalize-lgpl.m4: Move contents...
62036         * m4/canonicalize.m4: ...here.
62037         (gl_CANONICALIZE_LGPL): Factor realpath check...
62038         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
62039         glibc 2.3.5 bug, fixed 2005-04-27.
62040         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
62041         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
62042         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
62043         * modules/canonicalize-lgpl (Files): Manage file rename.
62044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62045         * modules/stdlib (Makefile.am): Substitute witness.
62046         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
62047         is needed.
62048         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
62049         replacement is required.
62050         * lib/canonicalize.c (canonicalize_file_name): Likewise.
62051         * doc/glibc-functions/canonicalize_file_name.texi
62052         (canonicalize_file_name): Document this.
62053         * doc/posix-functions/realpath.texi (realpath): Likewise.
62055         canonicalize-lgpl: reject non-directory with trailing slash
62056         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
62057         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
62058         catches failures in glibc 2.3.5.
62059         * tests/test-canonicalize.c (main): Likewise.
62061         canonicalize-lgpl: use native realpath if it works
62062         * lib/canonicalize-lgpl.c (realpath): Guard with
62063         FUNC_REALPATH_WORKS.
62064         * lib/stdlib.in.h (realpath): Make declaration optional based on
62065         HAVE_REALPATH.
62066         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
62067         native realpath works.
62068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62069         * modules/stdlib (Makefile.am): Substitute witness.
62071         canonicalize, canonicalize-lgpl: use <stdlib.h>
62072         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
62073         (Include): Mention <stdlib.h>.
62074         (configure.ac): Mention functions we provide.
62075         * modules/canonicalize (configure.ac): Likewise.
62076         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
62077         realpath if canonicalize_file_name is missing.
62078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
62079         * modules/stdlib (Makefile.am): Substitute witnesses.
62080         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
62081         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
62082         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
62083         * NEWS: Document this.
62084         * doc/glibc-functions/canonicalize_file_name.texi
62085         (canonicalize_file_name): Likewise.
62086         * doc/posix-functions/realpath.texi (realpath): Likewise.
62087         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
62089         test-canonicalize: consolidate into single C program
62090         * tests/test-canonicalize.sh: Delete; move setup into...
62091         * tests/test-canonicalize.c (main): ...the program, making it
62092         easier to run in debugger.  Add some tests.
62093         * modules/canonicalize-tests (Files): Remove unused file.
62094         (Depends-on): Add progname.
62095         (configure.ac, Makefile.am): Simplify.
62097         test-canonicalize-lgpl: consolidate into single C program
62098         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
62099         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
62100         easier to run in debugger.  Add some tests.
62101         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
62102         (configure.ac, Makefile.am): Simplify.
62104         canonicalize: avoid resolvepath
62105         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
62106         unnecessary checks.
62107         * lib/canonicalize.c (includes): Simplify.
62108         (canonicalize_file_name): Drop resolvepath implementation.
62109         * modules/canonicalize (Depends-on): Drop filenamecat.
62111         canonicalize: don't lose errno
62112         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
62113         over calls to free.
62115         canonicalize: simplify errno handling
62116         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
62117         assignment.
62119         canonicalize, canonicalize-lgpl: update module dependencies
62120         * modules/canonicalize (Depends-on): Add extensions, lstat,
62121         pathmax, stdlib.
62122         (Files): Drop pathmax.h.
62123         (configure.ac): Adjust macro name.
62124         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
62125         lstat, stdlib, sys_stat.
62126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
62127         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
62128         extensions.
62129         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
62130         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
62131         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
62132         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
62133         declaration, if available.
62134         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
62135         we can rely on the readlink module.
62136         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
62137         (includes): Use <unistd.h> unconditionally.
62139 2009-09-17  Eric Blake  <ebb9@byu.net>
62141         maint: make Include sections of modules consistent
62142         * modules/alloca: Use only header name; no need to list #include.
62143         * modules/alloca-opt: Likewise.
62144         * modules/arpa_inet: Likewise.
62145         * modules/canon-host: Likewise.
62146         * modules/configmake: Likewise.
62147         * modules/dirent: Likewise.
62148         * modules/eealloc: Likewise.
62149         * modules/environ: Likewise.
62150         * modules/fchdir: Likewise.
62151         * modules/fcntl: Likewise.
62152         * modules/fcntl-h: Likewise.
62153         * modules/gethrxtime: Likewise.
62154         * modules/gettime: Likewise.
62155         * modules/ignore-value: Likewise.
62156         * modules/inet_ntop: Likewise.
62157         * modules/inet_pton: Likewise.
62158         * modules/inttypes: Likewise.
62159         * modules/isnand-nolibm: Likewise.
62160         * modules/isnanf-nolibm: Likewise.
62161         * modules/mbchar: Likewise.
62162         * modules/mbfile: Likewise.
62163         * modules/mbiter: Likewise.
62164         * modules/mbuiter: Likewise.
62165         * modules/netdb: Likewise.
62166         * modules/netinet_in: Likewise.
62167         * modules/nproc: Likewise.
62168         * modules/pagealign_alloc: Likewise.
62169         * modules/poll: Likewise.
62170         * modules/printf-frexp: Likewise.
62171         * modules/pthread: Likewise.
62172         * modules/putenv: Likewise.
62173         * modules/random_r: Likewise.
62174         * modules/relocatable-prog: Likewise.
62175         * modules/search: Likewise.
62176         * modules/select: Likewise.
62177         * modules/selinux-h: Likewise.
62178         * modules/settime: Likewise.
62179         * modules/signal: Likewise.
62180         * modules/size_max: Likewise.
62181         * modules/socklen: Likewise.
62182         * modules/ssize_t: Likewise.
62183         * modules/stdarg: Likewise.
62184         * modules/stdbool: Likewise.
62185         * modules/stddef: Likewise.
62186         * modules/stdint: Likewise.
62187         * modules/stdio: Likewise.
62188         * modules/stdlib: Likewise.
62189         * modules/string: Likewise.
62190         * modules/strings: Likewise.
62191         * modules/sys_file: Likewise.
62192         * modules/sys_ioctl: Likewise.
62193         * modules/sys_select: Likewise.
62194         * modules/sys_socket: Likewise.
62195         * modules/sys_stat: Likewise.
62196         * modules/sys_time: Likewise.
62197         * modules/sys_times: Likewise.
62198         * modules/sys_utsname: Likewise.
62199         * modules/sys_wait: Likewise.
62200         * modules/sysexits: Likewise.
62201         * modules/time: Likewise.
62202         * modules/times: Likewise.
62203         * modules/tmpfile: Likewise.
62204         * modules/trim: Likewise.
62205         * modules/unistd: Likewise.
62206         * modules/wchar: Likewise.
62207         * modules/wctype: Likewise.
62209 2009-09-17  Bruno Haible  <bruno@clisp.org>
62211         Make getdate.y compile on QNX and NetBSD 5 / i386.
62212         * m4/getdate.m4 (gl_GETDATE): Conditionally define
62213         TIME_T_FITS_IN_LONG_INT.
62214         * lib/getdate.y (long_time_t): New type.
62215         (relative_time): Change type of 'seconds' field to long_time_t.
62216         (get_date): Update types of local variables. Check against overflow
62217         during conversion from long_time_t to time_t.
62218         Reported by Matt Kraai <kraai@ftbfs.org>
62219         and Hasso Tepper <hasso@netbsd.org>.
62221 2009-09-17  Bruno Haible  <bruno@clisp.org>
62223         * modules/COPYING: Update copyright years.
62224         * modules/README: Likeiwse.
62225         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
62226         Reported by Ian Beckwith <ianb@erislabs.net>.
62228 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62230         * users.txt: Update references for gnuit package.
62232 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62234         * m4/getdelim.m4: Fix typo in copyright line.
62236 2009-09-17  Bruno Haible  <bruno@clisp.org>
62238         * lib/atoll.c: Use the standard header with GPL copyright.
62239         * lib/argz.in.h: Likewise.
62240         * lib/glob.c: Likewise.
62241         * lib/glob-libc.h: Likewise.
62242         * lib/random_r.c: Likewise.
62243         * lib/siglist.h: Likewise.
62244         * lib/strsignal.c: Likewise.
62245         Reported by Ian Beckwith <ianb@erislabs.net>.
62247 2009-09-17  Eric Blake  <ebb9@byu.net>
62249         rmdir: ensure correct dependency order
62250         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
62252 2009-09-17  Bruno Haible  <bruno@clisp.org>
62254         Disable assertion that fails on NetBSD 5 / i386.
62255         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
62256         Reported by Sam Steingold <sds@gnu.org>
62257         and Hasso Tepper <hasso@netbsd.org>.
62259 2009-09-16  Eric Blake  <ebb9@byu.net>
62261         unlinkdir: port to mingw
62262         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
62263         on which no one can unlink a directory.
62265         stdlib: sort witness names
62266         * modules/stdlib (Makefile.am): Sort replacements.
62267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62268         * lib/stdlib.in.h: Likewise.
62270         parse-duration-tests: avoid link failure
62271         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
62272         LIBINTL.
62273         Reported by Tom G. Christensen.
62275         openat-tests: ensure unlinkat behaves like rmdir
62276         * tests/test-rmdir.c (main): Factor guts...
62277         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
62278         * modules/rmdir-tests (Files): Ship new file.
62279         * modules/openat-tests: New test.
62280         * tests/test-unlinkat.c: Likewise.
62282         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
62283         * modules/rmdir-errno (Status, Notice): Now obsolete.
62285         rmdir: work around cygwin 1.5.x and mingw bugs
62286         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
62287         * lib/rmdir.c (rmdir): Work around it.
62288         * modules/rmdir (Status, Notice): No longer obsolete.
62289         (Files): Add dos.m4.
62290         (Depends-on): Add unistd.
62291         (configure.ac): Set witnesses.
62292         (License): Relax to LGPLv2+.
62293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
62294         * modules/unistd (Makefile.am): Substitute witnesses.
62295         * lib/unistd.in.h (rmdir): Declare replacement.
62296         * doc/posix-functions/rmdir.texi (rmdir): Document this.
62297         * modules/rmdir-tests: New tests.
62298         * tests/test-rmdir.c: Likewise.
62300 2009-09-15  Eric Blake  <ebb9@byu.net>
62302         fchdir: improve use of replacement functions
62303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
62304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
62305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
62306         REPLACE_CLOSEDIR.
62307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
62308         * modules/sys_stat (Makefile.am): Substitute correct witness.
62309         * modules/dirent (Makefile.am): Likewise.
62310         * modules/unistd (Makefile.am): Likewise.
62311         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
62312         * lib/unistd.in.h (dup): Likewise.
62313         * lib/sys_stat.in.h (fstat): Likewise.
62315         maint: ignore gnulib-tool temp files
62316         * .gitignore: Ignore files created during gnulib-tool --test.
62318 2009-09-13  Jim Meyering  <meyering@redhat.com>
62320         posixtm: don't reject a time that specify "60" as the number of seconds
62321         * lib/posixtm.c (posixtime): The code to reject invalid dates
62322         would also reject a time specified with the .60 suffix.
62323         But POSIX allows that, in order to accommodate leap seconds.
62324         So don't reject it.
62325         (main): Adjust tests accordingly.
62326         * modules/posixtm (Depends-on): Add stpcpy.
62328 2009-09-11  Jim Meyering  <meyering@redhat.com>
62330         announce-gen: include [$release_type] in emitted Subject:
62331         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
62332         e.g., [stable] in the emitted Subject: line.
62334 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62336         Remove obsolete macros from several modules.
62337         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
62338         obsolete Autoconf macros with their modern counterparts.
62339         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
62340         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
62341         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
62342         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62343         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
62344         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62346         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62347         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62348         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
62349         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
62350         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
62351         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
62352         * m4/sockets.m4 (gl_SOCKETS): Likewise.
62353         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
62354         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
62355         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62356         * m4/time_r.m4 (gl_TIME_R): Likewise.
62357         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62358         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
62359         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62361         Fix copyright header in build-aux scripts.
62362         * build-aux/git-version-gen: Fix copyright header to match GPLv3
62363         recommendation.
62364         * build-aux/ncftpput-ftp: Likewise.
62365         * build-aux/update-copyright: Likewise.
62367 2009-09-09  Eric Blake  <ebb9@byu.net>
62369         test-link: allow Linux choice of errno
62370         * tests/test-link.c (main): Relax test for alternate error.
62372         strndup: fix improper m4 caching
62373         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
62374         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
62375         (gl_PREREQ_STRNDUP): Delete.
62376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
62377         * modules/string (Makefile.am): Substitute it.
62378         * lib/string.in.h (strndup): Modernize prototype.
62380         getcwd: port to mingw
62381         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
62382         different from the POSIX assumptions made throughout the getcwd
62383         module; fortunately, the mingw getcwd does not need replacement.
62384         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
62385         * modules/getcwd-tests: New test.
62386         * tests/test-getcwd.c: Likewise.
62388         link: fix platform bugs
62389         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
62390         * lib/link.c (link): Work around them.  Fix related mingw bug.
62391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
62392         * modules/unistd (Makefile.am): Substitute it.
62393         * lib/unistd.in.h (link): Declare replacement.
62394         * doc/posix-functions/link.texi (link): Document this.
62395         * modules/link (Depends-on): Add strdup-posix, sys_stat.
62397         test-link: consolidate into single C program, test more cases
62398         * tests/test-link.sh: Delete.
62399         * tests/test-link.c: Test more error conditions.  Exposes bugs on
62400         at least Cygwin and Solaris.
62401         * modules/link-tests (Files): Remove unused file.
62402         (Depends-on): Add errno, sys_stat.
62403         (Makefile.am): Simplify.
62405 2009-09-08  Bruno Haible  <bruno@clisp.org>
62407         Work around towlower, towupper bug on mingw.
62408         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
62409         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
62410         * doc/posix-functions/towlower.texi: Mention the mingw bug.
62411         * doc/posix-functions/towupper.texi: Likewise.
62412         Reported by Eric Blake.
62414 2009-09-08  Jim Meyering  <meyering@redhat.com>
62416         build: don't try to run autoheader if we don't use it
62417         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
62418         is not used in configure.ac.
62420 2009-09-08  Eric Blake  <ebb9@byu.net>
62422         euidaccess: fix compilation error
62423         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
62425         rawmemchr: relax license
62426         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
62427         okay.
62428         Reported by Jim Meyering.
62430         mkfifoat: new module
62431         * modules/mkfifoat: New file.
62432         * lib/mkfifoat.c: Likewise.
62433         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
62434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62435         * modules/sys_stat (Makefile.am): Use them.
62436         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
62437         * MODULES.html.sh (File system functions): Mention module.
62438         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62439         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62440         * modules/mkfifoat-tests: New test.
62441         * tests/test-mkfifoat.c: Likewise.
62443         strchrnul: relax license
62444         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
62445         okay.
62446         Reported by Jim Meyering.
62448 2009-09-08  Eric Blake  <ebb9@byu.net>
62450         fstatat: fix compilation on Solaris
62451         * lib/fstatat.c (includes): Add fcntl.h.
62452         Reported by Pádraig Brady.
62454 2009-09-07  Eric Blake  <ebb9@byu.net>
62456         rename: modernize replacement
62457         * modules/rename (Depends-on): Add stdio.
62458         (configure.ac): Declare witness.
62459         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
62460         stdio take care of replacement.
62461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62462         * modules/stdio (Makefile.am): Substitute them.
62463         * lib/stdio.in.h (rename): Declare replacement.
62464         * lib/rename.c (includes): Allow cross-compilation to non-windows
62465         machines.
62466         * doc/posix-functions/rename.texi (rename): Improve
62467         documentation.
62469         stdio: sort witness names
62470         * modules/stdio (Makefile.am): Sort replacements.
62471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62472         * lib/stdio.in.h: Likewise.
62474         getcwd: minor cleanups
62475         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
62476         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
62478         openat: provide more convenience names
62479         * modules/faccessat (configure.ac): Add C witness.
62480         * lib/unistd.in.h (readlinkat): Fix typo.
62481         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
62482         convenience wrappers.
62483         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
62484         wrappers in syntax checks.
62486 2009-09-06  Eric Blake  <ebb9@byu.net>
62488         doc: fix comments in recent patches
62489         * lib/faccessat.c: Mention correct function.
62490         * lib/fchmodat.c: Likewise.
62491         * lib/fchownat.c: Likewise.
62492         * lib/symlinkat.c: Likewise.
62493         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
62494         constants.
62496         faccessat, symlinkat: continue cleanup of previous patch
62497         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
62498         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62499         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
62500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
62501         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
62502         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
62503         set.
62505 2009-09-06  Bruno Haible  <bruno@clisp.org>
62507         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
62508         (fstatat): Declare if GNULIB_FSTATAT is set.
62509         (mkdirat): Declare if GNULIB_MKDIRAT is set.
62510         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
62511         (unlinkat): Declare if GNULIB_UNLINKAT is set.
62512         * modules/fcntl-h (Files): Remove m4/openat.m4.
62513         * modules/sys_stat (Files): Remove m4/openat.m4.
62514         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
62515         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
62516         * modules/unistd (Files): Remove m4/openat.m4.
62517         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
62518         GNULIB_OPENAT.
62519         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
62520         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
62521         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
62522         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
62523         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
62524         gl_OPENAT_DEFAULTS.
62525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
62526         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
62527         Don't require gl_OPENAT_DEFAULTS.
62528         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
62529         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
62530         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
62531         (gl_OPENAT_DEFAULTS): Remove macro.
62533 2009-09-06  Bruno Haible  <bruno@clisp.org>
62535         * modules/openat (configure.ac): Remove unneeded witness.
62537 2009-09-06  Bruno Haible  <bruno@clisp.org>
62539         Set errno to ENOSYS when a function is entirely unsupported.
62540         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
62541         EOPNOTSUPP.
62542         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62543         * modules/chown (Depends-on): Remove errno.
62545 2009-09-06  Bruno Haible  <bruno@clisp.org>
62547         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
62549 2009-09-06  Bruno Haible  <bruno@clisp.org>
62551         * lib/sys_stat.in.h: Fix preprocessor command indentation.
62553 2009-09-06  Ben Pfaff  <blp@gnu.org>
62554             Bruno Haible  <bruno@clisp.org>
62556         Work around a glibc bug in strtok_r.
62557         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
62558         Undefine if UNDEFINE_STRTOK_R is set.
62559         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
62560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62561         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
62562         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
62563         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
62564         UNDEFINE_STRTOK_R.
62565         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
62567 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62569         exclude: minor fix
62570         * lib/exclude.c: Include wctype.h
62572 2009-09-06  Akim Demaille  <demaille@gostai.com>
62574         bootstrap: improve error message
62575         * build-aux/bootstrap (find_tool): Upon failure, report the list
62576         of candidates.
62577         Honor the initial value of the envvar.
62579 2009-09-05  Eric Blake  <ebb9@byu.net>
62581         symlinkat: new module
62582         * modules/symlinkat: New file.
62583         * lib/symlinkat.c: Likewise.
62584         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
62585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62586         * modules/unistd (Makefile.am): Use them.
62587         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
62588         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
62589         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
62590         * MODULES.html.sh (File system functions): Mention module.
62591         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62592         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62593         * modules/symlinkat-tests: New test.
62594         * tests/test-symlinkat.c: Likewise.
62596         test-openat-safer: add more checks
62597         * tests/test-openat-safer.c (main): Check more code paths.
62599 2009-09-05  Jim Meyering  <meyering@redhat.com>
62601         syntax-check: detect unnecessary inclusion of openat.h
62602         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62604 2009-09-05  Bruno Haible  <bruno@clisp.org>
62606         Support towlower, towupper.
62607         * doc/posix-functions/towlower.texi: Mention module wctype.
62608         * doc/posix-functions/towupper.texi: Likewise.
62609         * lib/wctype.in.h (towlower, towupper): New functions.
62610         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62611         (ASSERT): New macro.
62612         (e): New variable.
62613         (main): Test also towlower, towupper. Test WEOF argument.
62614         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62616 2009-09-05  Bruno Haible  <bruno@clisp.org>
62618         Fix conversion behaviour when the input is invalid.
62619         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62620         mark occurring in first pass of indirect conversion.
62621         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62622         input.
62623         Found by clang's static analyzer.
62625 2009-09-05  Bruno Haible  <bruno@clisp.org>
62627         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62628         where direct conversion is possible.
62630 2009-09-04  Eric Blake  <ebb9@byu.net>
62632         openat: fail with ENOENT on empty name
62633         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62634         buffer.
62636         link-follow: fix logic bug in prior patch
62637         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62638         reversed sense of yes and no in prior patch.  Avoid confusing
62639         compilation failure with desired semantics.
62641         link-follow: accommodate mingw and cross-compilation
62642         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62643         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62644         cross-compilation results to -1, to make linkat easier to
62645         implement when cross-compiling.  Trivially support mingw.
62646         * modules/link-follow (configure.ac): Call new name.
62647         * NEWS: Mention this.
62649 2009-09-03  Eric Blake  <ebb9@byu.net>
62651         faccessat: compile replacement
62652         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62653         needed.
62655         fts: fix compilation error
62656         * lib/fts.c (includes): Re-add "openat.h", for
62657         openat_needs_fchdir.
62659         faccessat: new module
62660         * modules/faccessat: New file.
62661         * lib/faccessat.c: Likewise.
62662         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62664         * modules/unistd (Makefile.am): Use it.
62665         * lib/unistd.in.h (faccessat): Declare it.
62666         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62667         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62668         * MODULES.html.sh (File system functions): Mention it.
62669         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62670         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62672         euidaccess: prefer POSIX over non-standard implementation
62673         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62674         * lib/euidaccess.c (euidaccess): Use it if available.
62676         openat: make template easier to use
62677         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62678         AT_FUNC_F2 to be undefined.
62679         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62680         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62681         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62682         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62683         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62684         Likewise.
62685         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62686         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62687         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62688         Likewise.
62690         openat: declare in POSIX headers
62691         * NEWS: Mention this.
62692         * modules/openat (configure.ac): Declare witnesses.
62693         (Depends-on): Add fcntl-h, sys_stat, unistd.
62694         (Include): Mention correct headers.
62695         * modules/fcntl-h (Depends-on): Add link-warning.
62696         (Files): Add openat.m4.
62697         (Makefile.am): Substitute witnesses.
62698         * modules/sys_stat (Files, Makefile.am): Likewise.
62699         * modules/unistd (Files, Makefile.am): Likewise.
62700         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62701         (gl_OPENAT_DEFAULTS): New macro.
62702         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62705         (SYS_STAT_H): Remove unused variable.
62706         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62707         * lib/fcntl--.h (includes): Remove unneeded header.
62708         * lib/openat-safer.c (includes): Likewise.
62709         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62710         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62711         appropriate headers.
62712         (__OPENAT_PREFIX): Delete.
62713         * lib/fcntl.in.h (openat): Provide declaration.
62714         (AT_FDCWD): Fix Solaris bug.
62715         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62716         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62717         * lib/fchmodat.c (includes):  Adjust to find declaration.
62718         * lib/fchownat.c (includes): Likewise.
62719         * lib/mkdirat.c (includes): Likewise.
62720         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62721         still visible.
62723 2009-09-02  Eric Blake  <ebb9@byu.net>
62725         errno: use consistently
62726         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62727         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62728         * lib/canonicalize.c (ELOOP): Likewise.
62729         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62730         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62731         * lib/lchown.c (EOPNOTSUPP): Likewise.
62732         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62733         * lib/savewd.c (ESTALE): Likewise.
62734         * lib/settime.c (ENOSYS): Likewise.
62735         * lib/utimens.c (ENOSYS): Likewise.
62736         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62737         * lib/chdir-safer.c (ELOOP): Likewise.
62738         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62739         * modules/c-stack (Depends-on): Add errno.
62740         * modules/canonicalize (Depends-on): Likewise.
62741         * modules/chdir-safer (Depends-on): Likewise.
62742         * modules/fdopendir (Depends-on): Likewise.
62743         * modules/inet_ntop (Depends-on): Likewise.
62744         * modules/inet_pton (Depends-on): Likewise.
62745         * modules/lchown (Depends-on): Likewise.
62746         * modules/openat (Depends-on): Likewise.
62747         * modules/savewd (Depends-on): Likewise.
62748         * modules/settime (Depends-on): Likewise.
62749         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
62751         fts: avoid leaking fds
62752         * modules/fts (Depends-on): Add cloexec.
62753         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
62754         flag.
62756         fts: make directory fds more robust
62757         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
62758         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
62760         backupfile, chdir-long, fts, savedir: make safer
62761         * lib/backupfile.c (includes): Use "dirent--.h", since
62762         numbered_backup can write to stderr during readdir.
62763         * lib/savedir.c (includes): Likewise.
62764         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
62765         emulation can write to stderr on failure.
62766         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
62767         * lib/getcwd.c: Document why opendir_safer is unused.
62768         * lib/glob.c: Likewise.
62769         * lib/scandir.c: Likewise.
62770         * lib/openat-proc.c: Likewise, for open_safer.
62771         * modules/backupfile (Depends-on): Add dirent-safer.
62772         * modules/savedir (Depends-on): Likewise.
62773         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
62774         * modules/chdir-long (Depends-on): Add openat-safer.
62776         openat-safer: new module
62777         * modules/openat-safer: New file.
62778         * lib/openat-safer.c: Likewise.
62779         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
62780         * lib/fcntl-safer.h (openat_safer): Declare.
62781         * lib/fcntl--.h (openat): Override.
62782         * MODULES.html.sh (File descriptor based I/O): Mention it.
62783         * lib/openat.h: Add double-inclusion guards.
62784         * lib/openat.c (includes): Only include "fcntl-safer.h", not
62785         "fcntl--.h", so we can implement openat.
62786         * modules/openat-safer-tests: New test.
62787         * tests/test-openat-safer.c: New file.
62789         dirent-safer: new module
62790         * modules/dirent-safer: New file.
62791         * lib/dirent--.h: Likewise.
62792         * lib/dirent-safer.h: Likewise.
62793         * lib/opendir-safer.c: Likewise.
62794         * m4/dirent-safer.m4: Likewise.
62795         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
62796         * modules/dirent-safer-tests: New test.
62797         * tests/test-dirent-safer.c: New file.
62798         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
62800         fdopendir: optimize on mingw
62801         * lib/unistd.in.h (_gl_directory_name): New prototype.
62802         * lib/fchdir.c (_gl_directory_name): Implement it.
62803         (fchdir): Use it to simplify implementation.
62804         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
62805         fchdir, when available, to avoid calling [f]chdir().
62807         fdopendir: split into its own module
62808         * lib/openat.c (fdopendir): Move...
62809         * lib/fdopendir.c: ...into new file.
62810         * modules/fdopendir: New module.
62811         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
62812         * modules/openat (Depends-on): Add fdopendir.
62813         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
62814         fdopendir here.
62815         * modules/savedir (Depends-on): Only need fdopendir, not full
62816         openat.
62817         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
62818         * lib/openat.h (fdopendir): Drop prototype.
62819         * lib/dirent.in.h (fdopendir): Provide prototype.
62820         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
62821         * modules/dirent (Makefile.am): Substitute them.
62822         * MODULES.html.sh (File system functions): Mention it.
62823         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
62824         * modules/fdopendir-tests: New file.
62825         * tests/test-fdopendir.c: Likewise.
62827         fchdir: use more consistent macro convention
62828         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
62829         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
62830         REPLACE_FCHDIR, rather than relying on config.h macros.
62831         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
62832         inside a single make-time REPLACE_FCHDIR block, rather than using
62833         the config.h FCHDIR_REPLACEMENT.
62834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62835         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
62836         Manage fstat replacement.
62837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
62838         REPLACE_FCHDIR.
62839         * modules/sys_stat (Files): Add m4/unistd_h.m4.
62840         (Makefile.am): Substitute REPLACE_FCHDIR.
62841         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
62842         FCHDIR_REPLACEMENT.
62843         * lib/dup-safer.c (dup_safer): Likewise.
62844         * lib/dup2.c (rpl_dup2): Likewise.
62845         * lib/dup3.c (rpl_dup3): Likewise.
62846         * lib/open.c (rpl_open): Likewise.
62848         fchdir: simplify error handling, and support dup3
62849         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
62850         stdbool, malloc-posix, realloc-posix.
62851         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
62852         (ensure_dirs_slot): Return false on allocation failure.
62853         (rpl_dup2): Delete.
62854         (_gl_register_dup): New function.
62855         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
62856         (_gl_register_fd): Close fd on allocation failure.
62857         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62858         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62859         prototype.
62860         (rpl_dup2_fchdir): Delete prototype.
62861         * lib/open.c (open): Update caller.
62862         * lib/dup2.c (dup2): Track fchdir metadata.
62863         * lib/dup3.c (dup3): Likewise.
62864         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62867 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62869         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62870         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62871         don't pass arguments to AC_OUTPUT.
62873 2009-09-02  Bruno Haible  <bruno@clisp.org>
62875         * modules/mkdtemp (License): Relicense under LGPLv2+.
62876         Reported by Paolo Bonzini.
62878 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62880         Replace uses of obsolete autoconf macros in Jim's modules.
62881         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62882         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62883         can evoke a warning from autoconf when run with -Wobsolete
62884         enabled.  They were declared obsolete for good reasons (see
62885         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62886         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62887         should not continue using the deprecated macros.
62888         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62889         obsolete Autoconf macros with modern counterparts.
62890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62891         * m4/dos.m4 (gl_AC_DOS): Likewise.
62892         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62893         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62894         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62895         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62896         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62897         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62898         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62899         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62900         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62901         Likewise.
62902         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62903         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62904         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62905         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62906         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62907         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62909 2009-09-01  Eric Blake  <ebb9@byu.net>
62911         fchdir: fix off-by-one bug in previous patch
62912         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62913         (_gl_unregister_fd): Delete useless if.
62915 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62917         maint.mk: sort the list of syntax-check rules
62918         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
62919         easier to get a sense of progress when the rules are run sequentially
62920         and take a long time.
62922 2009-09-01  Simon Josefsson  <simon@josefsson.org>
62924         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
62925         * modules/netinet_in: Likewise.
62926         * modules/sys_file: Likewise.
62927         * modules/sys_ioctl: Likewise.
62928         * modules/sys_select: Likewise.
62929         * modules/sys_socket: Likewise.
62930         * modules/sys_stat: Likewise.
62931         * modules/sys_time: Likewise.
62932         * modules/sys_times: Likewise.
62933         * modules/sys_utsname: Likewise.
62934         * modules/sys_wait: Likewise.
62936 2009-09-01  Jim Meyering  <meyering@redhat.com>
62938         fts: help ensure that return values are not ignored
62939         * lib/fts_.h (__GNUC_PREREQ): Define.
62940         (__attribute_warn_unused_result__): Define.
62941         (fts_children, fts_close, fts_open, fts_read): Declare with
62942         __attribute_warn_unused_result__.
62944         fts: fts_close now fails also when closing a dir file descriptor fails
62945         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
62946         and propagate to caller, along with errno.
62948         announce-gen: correct formatting in --help output
62949         * build-aux/announce-gen (usage): Move the one-line description in
62950         --help output "up", to where it belongs, just after Usage:.
62952 2009-08-31  Eric Blake  <ebb9@byu.net>
62954         fchdir: port to mingw
62955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
62956         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
62957         opened, then use a substitute.
62958         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
62959         replacement.
62960         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
62961         (_gl_register_fd): No need to check stat if open already filters
62962         all directories.
62963         (fchdir): Fix error condition to match POSIX.
62964         * modules/fchdir (Depends-on): Add sys_stat.
62965         * doc/posix-functions/open.texi (open): Document the limitation.
62966         * modules/fchdir-tests: New file.
62967         * tests/test-fchdir.c: Likewise.
62969         canonicalize: allow cross-testing from cygwin to mingw
62970         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
62971         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
62972         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
62973         Likewise.
62974         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
62975         target does not support symlinks.
62976         * tests/test-canonicalize-lgpl.sh: Likewise.
62978         chown: avoid compilation warning on mingw
62979         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
62980         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
62981         mingw.
62982         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62983         * modules/chown (Depends-on): Add errno.
62985 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62987         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
62988         command.
62990 2009-08-31  Jim Meyering  <meyering@redhat.com>
62992         canonicalize: remove useless initialization
62993         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
62994         initialization of local, "end".
62996 2009-08-30  Bruno Haible  <bruno@clisp.org>
62998         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
62999         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
63000         ENOSYS.
63002 2009-08-30  Bruno Haible  <bruno@clisp.org>
63004         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
63005         /usr/xpg4/bin/tr when it exists.
63006         * tests/test-pipe-filter-gi1.sh: Likewise.
63008 2009-08-30  Bruno Haible  <bruno@clisp.org>
63010         Work around deficient /usr/bin/id program on Solaris.
63011         * tests/test-file-has-acl.sh (ID): New variable.
63012         * tests/test-set-mode-acl.sh (ID): Likewise.
63013         * tests/test-copy-acl.sh (ID): Likewise.
63014         * tests/test-copy-file.sh (ID): Likewise.
63016 2009-08-30  Bruno Haible  <bruno@clisp.org>
63018         New module 'xstriconveh'.
63019         * lib/xstriconveh.h: New file.
63020         * lib/xstriconveh.c: New file.
63021         * modules/xstriconveh: New file.
63023 2009-08-30  Bruno Haible  <bruno@clisp.org>
63025         Make it easier to use mem_cd_iconveh.
63026         * lib/striconveh.h (iconveh_t): New type.
63027         (iconveh_open, iconveh_close): New declarations.
63028         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63029         with a single 'const iconveh_t *' argument.
63030         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
63031         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63032         with a single 'const iconveh_t *' argument.
63033         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
63034         * tests/test-striconveh.c (main): Update.
63035         * NEWS: Mention the change.
63037 2009-08-30  Bruno Haible  <bruno@clisp.org>
63039         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
63040         problem.
63042 2009-08-30  Bruno Haible  <bruno@clisp.org>
63044         Work around iconv_open problem on Solaris.
63045         * lib/iconv_open-solaris.gperf: New file.
63046         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
63047         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
63048         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
63049         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
63050         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
63051         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
63053 2009-08-29  Jim Meyering  <meyering@redhat.com>
63055         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
63056         * top/maint.mk (cvs-check): Remove target; it was just an alias
63057         to the better-named vc-diff-check.
63058         (maintainer-distcheck): Remove rule.  It was used only from
63059         the (alpha/beta/major) target, and all of its commands but one
63060         were coreutils-specific.
63061         (vc-dist): Remove rule.
63062         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
63063         Run vc-diff-check, not vc-dist.
63064         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
63066 2009-08-27  Bruno Haible  <bruno@clisp.org>
63068         * tests/test-bitrotate.c (main): Remove test that uses a shift count
63069         of 0.
63071 2009-08-27  Bruno Haible  <bruno@clisp.org>
63073         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
63074         compilers.
63075         * doc/func.texi: Document the SunPRO C bug.
63077 2009-08-27  Bruno Haible  <bruno@clisp.org>
63079         Fix link error on Solaris.
63080         * tests/test-parse-duration.c (xstrdup): Remove function.
63082 2009-08-26  Pádraig Brady  <P@draigbrady.com>
63084         ignore-value: handle pointer types, too
63085         * lib/ignore-value.h (__attribute__): Remove definition.
63086         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
63087         of a more concise and more-often effective "(void) i" statement.
63088         (ignore_ptr): New function to suppress warnings from functions that
63089         return pointers, and to make it explicit that one function doesn't
63090         handle all cases.
63092 2009-08-25  Bruno Haible  <bruno@clisp.org>
63094         dup2: work around a Linux bug.
63095         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
63096         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
63097         * doc/posix-functions/dup2.texi: Mention the Linux bug.
63098         Reported by Simon Josefsson.
63100 2009-08-25  Jim Meyering  <meyering@redhat.com>
63102         libguestfs uses gnulib
63103         * users.txt: Add libguestfs.
63105 2009-08-24  Eric Blake  <ebb9@byu.net>
63107         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
63108         * lib/pipe2.c (includes): Add binary-io.h.
63109         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
63111 2009-08-24  Bruno Haible  <bruno@clisp.org>
63113         Tolerate declared but missing accept4 syscall.
63114         * lib/accept4.c (accept4): Invoke original accept4 function first, if
63115         available.
63116         * lib/sys_socket.in.h (accept4): If the function is already present,
63117         override it.
63118         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
63119         * modules/accept4 (Makefile.am): Compile accept4.c always.
63120         Reported by Paolo Bonzini and Eric Blake.
63122 2009-08-23  Bruno Haible  <bruno@clisp.org>
63124         New module 'accept4'.
63125         * lib/sys_socket.in.h (accept4): New declaration.
63126         * lib/accept4.c: New file.
63127         * m4/accept4.m4: New file.
63128         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63129         GNULIB_ACCEPT4, HAVE_ACCEPT4.
63130         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
63131         HAVE_ACCEPT4.
63132         * modules/accept4: New file.
63133         * doc/glibc-functions/accept4.texi: Mention the new module.
63135 2009-08-24  Jim Meyering  <meyering@redhat.com>
63137         progname: also set global program_invocation_name, when possible
63138         Before this change, a libtool-enabled program that calls glibc's
63139         error function would report the program name as
63140         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
63141         * modules/progname (configure.ac): Check for a declaration of
63142         program_invocation_name.
63143         * lib/progname.c:  Include <errno.h>.
63144         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
63145         Set program_invocation_name.
63147 2009-08-23  Bruno Haible  <bruno@clisp.org>
63149         * lib/dup3.c: Include <string.h>.
63151 2009-08-23  Bruno Haible  <bruno@clisp.org>
63153         * lib/dup3.c (dup3): Test only once whether the system actually exists.
63154         * lib/pipe2.c (pipe2): Likewise.
63155         Suggested by Eric Blake.
63157 2009-08-23  Bruno Haible  <bruno@clisp.org>
63159         Tolerate declared but missing dup3 syscall.
63160         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
63161         * lib/unistd.in.h (dup3): If the function is already present,
63162         override it.
63163         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
63164         * modules/dup3 (Makefile.am): Compile dup3.c always.
63165         Reported by Paolo Bonzini.
63167 2009-08-23  Bruno Haible  <bruno@clisp.org>
63169         Tolerate declared but missing pipe2 syscall.
63170         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
63171         available.
63172         * lib/unistd.in.h (pipe2): If the function is already present,
63173         override it.
63174         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
63175         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
63176         Reported by Paolo Bonzini.
63178 2009-08-23  Bruno Haible  <bruno@clisp.org>
63180         * lib/pipe2.c (pipe2): Move #ifs inside function.
63182 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63184         quotearg: document limitations of quote_these_too
63185         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
63186         those limitations are created.
63187         * lib/quotearg.h (set_char_quoting): Document that digits and
63188         letters that are special after backslash are not permitted.
63189         (quotearg_char): Cross-reference set_char_quoting documentation.
63191 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
63193         quotearg: implement custom_quoting_style
63194         * lib/quotearg.c: (struct quoting_options): Add left_quote and
63195         right_quote fields.
63196         (set_custom_quoting): New public function.
63197         (quotearg_buffer_restyled): Add left_quote and right_quote
63198         arguments, handle them very much like locale quoting, and update
63199         all uses.
63200         (quotearg_n_custom): New public function.
63201         (quotearg_n_custom_mem): New public function.
63202         (quotearg_custom): New public function.
63203         (quotearg_custom_mem): New public function.
63204         * lib/quotearg.h: Prototype and document new public functions.
63205         (enum quoting_style): For escape_quoting_style and
63206         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
63207         ignored even though they're otherwise like c_quoting_style.
63208         Add custom_quoting_style member and document with comparison to
63209         clocale_quoting_style.
63210         * tests/test-quotearg.c (custom_quotes): New array.
63211         (custom_results): New array.
63212         (main): Extend to test custom quoting.
63214 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63216         quotearg: fix right quote escaping when it's in quote_these_too
63217         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
63218         quote, be sure to prepend only one backslash.
63219         * tests/test-quotearg.c (use_quote_double_quotes): New function.
63220         (main): Test it.
63222 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63224         quotearg-tests: test escaping of embedded locale quotes
63225         * tests/test-quotearg.c (struct result_strings): Add member for
63226         new input.
63227         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
63228         (inputs): Add new input.
63229         (results_g): Add expected results.
63230         (flag_results): Likewise.
63231         (locale_results): Likewise.
63232         (compare_strings): Check those.
63234 2009-08-23  Bruno Haible  <bruno@clisp.org>
63236         Tests for module 'dup3'.
63237         * modules/dup3-tests: New file.
63238         * tests/test-dup3.c: New file.
63240         New module 'dup3'.
63241         * lib/unistd.in.h (dup3): New declaration.
63242         * lib/dup3.c: New file.
63243         * m4/dup3.m4: New file.
63244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
63245         HAVE_DUP3.
63246         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
63247         * modules/dup3: New file.
63248         * doc/glibc-functions/dup3.texi: Mention the new module.
63250 2009-08-23  Bruno Haible  <bruno@clisp.org>
63252         Tweak the dup2 test.
63253         * tests/test-dup2.c (main): Create the test file empty. Verify that an
63254         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
63255         the test file is still empty. Fix argument order of lseek.
63257 2009-08-23  Bruno Haible  <bruno@clisp.org>
63259         Avoid test link errors when the modules getopt-gnu, gettext are used.
63260         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
63261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63263 2009-08-23  Bruno Haible  <bruno@clisp.org>
63265         Fix getdtablesize() on mingw.
63266         * lib/getdtablesize.c (getdtablesize): Implement differently.
63267         * lib/unistd.in.h (getdtablesize): Improve comment.
63269 2009-08-23  Bruno Haible  <bruno@clisp.org>
63271         New module 'mkostemp'.
63272         Based on Ulrich Drepper's 2007-08-10 change in glibc.
63273         * lib/stdlib.in.h (mksotemp): New declaration.
63274         * lib/mkostemp.c: New file, from glibc with modifications.
63275         * lib/tempname.h (GT_FILE): Remove outdated comment.
63276         (gen_tempname): Add flags argument.
63277         * lib/tempname.c (__GT_BIGFILE): Remove macro.
63278         (__GT_FILE): Map to 1.
63279         (small_open, large_open): Remove macros.
63280         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
63281         * lib/mkstemp.c (mkstemp): Update.
63282         * lib/mkdtemp.c (mkdtemp): Likewise.
63283         * m4/mkostemp.m4: New file.
63284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
63285         HAVE_MKOSTEMP.
63286         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
63287         HAVE_MKOSTEMP.
63288         * modules/mkostemp: New file, based on modules/mkstemp.
63289         * doc/glibc-functions/mkostemp.texi: Mention the new module.
63290         * NEWS: Mention the change.
63292 2009-08-23  Bruno Haible  <bruno@clisp.org>
63294         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
63295         Reported by Eric Blake.
63297 2009-08-23  Bruno Haible  <bruno@clisp.org>
63299         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
63300         Reported by Eric Blake.
63302 2009-08-23  Bruno Haible  <bruno@clisp.org>
63304         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
63305         * modules/pipe2 (Depends-on): Likewise.
63307 2009-08-23  Eric Blake  <ebb9@byu.net>
63309         fcntl-h: add O_TTY_INIT support
63310         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
63311         * tests/test-fcntl-h.c (o): Test it.
63312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63314         fcntl-h: rename from fcntl, in preparation for fcntl(2)
63315         * modules/fcntl: Move <fcntl.h> header replacement...
63316         * modules/fcntl-h: ...to new name, so as not to collide with
63317         like-named function.
63318         * tests/test-fcntl.c: Rename...
63319         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
63320         * modules/fcntl-tests: Rename...
63321         * modules/fcntl-h-tests: ...to this.  Update test file name.
63322         * modules/chdir-long (Depends-on): Update clients.
63323         * modules/chdir-safer (Depends-on): Likewise.
63324         * modules/fcntl-safer (Depends-on): Likewise.
63325         * modules/fts (Depends-on): Likewise.
63326         * modules/mkancesdirs (Depends-on): Likewise.
63327         * modules/mkdir-p (Depends-on): Likewise.
63328         * modules/open (Depends-on): Likewise.
63329         * modules/savewd (Depends-on): Likewise.
63330         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
63331         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63333 2009-08-22  Bruno Haible  <bruno@clisp.org>
63335         * modules/binary-io (License): Relicense under LGPL.
63336         * modules/pipe2 (License): Likewise.
63338 2009-08-22  Bruno Haible  <bruno@clisp.org>
63340         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
63341         return value.
63342         * lib/pipe-filter-gi.c (filter_init): Likewise.
63343         Reported by Eric Blake.
63345 2009-08-22  Bruno Haible  <bruno@clisp.org>
63347         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
63348         * modules/pipe (Depends-on): Add pipe2.
63350 2009-08-22  Bruno Haible  <bruno@clisp.org>
63352         Tests for module 'pipe2'.
63353         * modules/pipe2-tests: New file.
63354         * tests/test-pipe2.c: New file.
63356         New module 'pipe2'.
63357         * lib/unistd.in.h (pipe2): New declaration.
63358         * lib/pipe2.c: New file.
63359         * m4/pipe2.m4: New file.
63360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
63361         HAVE_PIPE2.
63362         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
63363         * modules/pipe2: New file.
63364         * doc/glibc-functions/pipe2.texi: Mention the new module.
63366 2009-08-22  Bruno Haible  <bruno@clisp.org>
63368         Reference some new glibc functions.
63369         * doc/glibc-functions/accept4.texi: New file.
63370         * doc/glibc-functions/dup3.texi: New file.
63371         * doc/glibc-functions/mkostemp.texi: New file.
63372         * doc/glibc-functions/pipe2.texi: New file.
63373         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
63374         (Glibc sys/socket.h): Refer to accept4.
63375         (Glibc unistd.h): Refer to dup3, pipe2.
63376         Reported by Eric Blake.
63378 2009-08-22  Jim Meyering  <meyering@redhat.com>
63379             Bruno Haible  <bruno@clisp.org>
63381         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
63382         This makes it so packages using automake-1.11's silent-rules option
63383         can print e.g., a single "GEN    configmake.h" line, rather than
63384         the 30+ statements that perform the job.  If you want to see the
63385         actual commands, you can still run "make V=1".
63386         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
63387         so that make output is abbreviated when those variables are defined
63388         appropriately.
63389         * modules/argz: Likewise.
63390         * modules/arpa_inet: Likewise.
63391         * modules/byteswap: Likewise.
63392         * modules/configmake: Likewise.
63393         * modules/dirent: Likewise.
63394         * modules/errno: Likewise.
63395         * modules/fcntl: Likewise.
63396         * modules/float: Likewise.
63397         * modules/fnmatch: Likewise.
63398         * modules/getopt-posix: Likewise.
63399         * modules/glob: Likewise.
63400         * modules/iconv_open: Likewise.
63401         * modules/inttypes: Likewise.
63402         * modules/localcharset: Likewise.
63403         * modules/locale: Likewise.
63404         * modules/math: Likewise.
63405         * modules/netdb: Likewise.
63406         * modules/netinet_in: Likewise.
63407         * modules/poll: Likewise.
63408         * modules/posix_spawnp-tests: Likewise.
63409         * modules/sched: Likewise.
63410         * modules/search: Likewise.
63411         * modules/selinux-h: Likewise.
63412         * modules/signal: Likewise.
63413         * modules/spawn: Likewise.
63414         * modules/stdarg: Likewise.
63415         * modules/stdbool: Likewise.
63416         * modules/stddef: Likewise.
63417         * modules/stdint: Likewise.
63418         * modules/stdio: Likewise.
63419         * modules/stdlib: Likewise.
63420         * modules/string: Likewise.
63421         * modules/strings: Likewise.
63422         * modules/sys_file: Likewise.
63423         * modules/sys_ioctl: Likewise.
63424         * modules/sys_select: Likewise.
63425         * modules/sys_socket: Likewise.
63426         * modules/sys_stat: Likewise.
63427         * modules/sys_time: Likewise.
63428         * modules/sys_times: Likewise.
63429         * modules/sys_utsname: Likewise.
63430         * modules/sys_wait: Likewise.
63431         * modules/sysexits: Likewise.
63432         * modules/time: Likewise.
63433         * modules/unistd: Likewise.
63434         * modules/wchar: Likewise.
63435         * modules/wctype: Likewise.
63437 2009-08-22  Jim Meyering  <meyering@redhat.com>
63439         announce-gen: detect write failure
63440         * build-aux/announce-gen: Add Coda at end.
63441         Remove equivalent-but-more-verbose block at top.
63443 2009-08-19  Akim Demaille  <demaille@gostai.com>
63445         bootstrap: --help to stdout.
63446         * bootstrap (usage): Don't send --help to stderr.
63447         Use a here doc instead of a long string.
63449 2009-08-21  Eric Blake  <ebb9@byu.net>
63451         test-popen-safer: split from test-popen
63452         * tests/test-popen.c (main): Move...
63453         * tests/test-popen.h: ...into new file.
63454         * tests/test-popen-safer2.c: New file.
63455         * modules/popen-tests (Files): Add test-popen.h.
63456         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
63457         Suggested by Bruno Haible.
63459         test-fcntl-safer: split from test-open
63460         * tests/test-open.c (main): Move...
63461         * tests/test-open.h: ...into new file.
63462         * tests/test-fcntl-safer.c: New file.
63463         * modules/open-tests (Files): Add test-open.h.
63464         * modules/fcntl-safer-tests: New file.
63465         Suggested by Bruno Haible.
63467         test-fopen-safer: split from test-fopen
63468         * tests/test-fopen.c (main): Move...
63469         * tests/test-fopen.h: ...into new file.
63470         * tests/test-fopen-safer.c: New file.
63471         * modules/fopen-tests (Files): Add test-fopen.h.
63472         * modules/fopen-safer-tests: New file.
63473         Suggested by Bruno Haible.
63475 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63477         popen-safer: test O_CLOEXEC at run-time.
63478         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
63480 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63482         fcntl: move more flags to the header
63483         * lib/cloexec.c: Do not define FD_CLOEXEC here.
63484         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
63485         * lib/fcntl.in.h: Do both things here.
63487 2009-08-21  Jim Meyering  <meyering@redhat.com>
63489         consistently remove $@-t before redirecting to it
63490         * modules/argz: Remove $@-t and $@ before redirecting to the former.
63491         * modules/alloca-opt: Likewise.
63492         * modules/byteswap: Likewise.
63493         * modules/fnmatch: Likewise.
63494         * modules/getopt-posix: Likewise.
63495         * modules/glob: Likewise.
63496         * modules/poll: Likewise.
63497         * modules/posix_spawnp-tests: Likewise.
63498         * modules/sys_socket: Likewise.
63499         * modules/sysexits: Likewise.
63501 2009-08-21  Eric Blake  <ebb9@byu.net>
63503         popen: simplify access to original popen
63504         * lib/popen.c (rpl_popen): No need to worry about popen being a
63505         macro.
63506         Reported by Bruno Haible.
63508 2009-08-20  Eric Blake  <ebb9@byu.net>
63510         build: avoid some compiler warnings
63511         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
63512         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
63513         type.
63514         (new_exclude_segment, excluded_file_pattern_p)
63515         (excluded_file_name_p): Reduce scope.
63516         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
63517         old-style declaration.
63519 2009-08-20  Simon Josefsson  <simon@josefsson.org>
63521         * tests/test-exclude1.sh: Handle Windows EOL.
63522         * tests/test-exclude2.sh: Likewise.
63523         * tests/test-exclude3.sh: Likewise.
63524         * tests/test-exclude4.sh: Likewise.
63525         * tests/test-exclude5.sh: Likewise.
63526         * tests/test-exclude6.sh: Likewise.
63527         * tests/test-exclude7.sh: Likewise.
63529 2009-08-19  Akim Demaille  <demaille@gostai.com>
63531         bootstrap: find sha1sum when named gsha1sum.
63532         * bootstrap (find_tool): New.
63533         ($SHA1SUM): New.
63534         Use it.
63536 2009-08-20  Jim Meyering  <meyering@redhat.com>
63538         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
63539         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
63540         expression that converts "." in a file name to "\." in the resulting
63541         regexp.  Start with a dummy statement, so that prior shell variable
63542         definitions are expanded portably.  Reported by Simon Josefsson.
63544 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
63546         Fix polling for writeability of a screen buffer.
63547         * lib/poll.c: Distinguish input and screen buffers for the
63548         Win32 implementation.
63549         * lib/select.c: Likewise.
63551 2009-08-19  Eric Blake  <ebb9@byu.net>
63553         popen-safer: prevent popen from clobbering std descriptors
63554         * modules/popen-safer: New file.
63555         * lib/popen-safer.c: Likewise.
63556         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
63557         * lib/stdio--.h (popen): Provide override.
63558         * lib/stdio-safer.h (popen_safer): Provide declaration.
63559         * tests/test-popen.c (includes): Partially test this.
63560         * modules/popen-safer-tests: New file, for more tests.
63561         * tests/test-popen-safer.c: Likewise.
63562         * MODULES.html.sh (file stream based Input/Output): Mention it.
63564         tests: test some of the *-safer modules
63565         * modules/fopen-safer (Depends-on): Add fopen.
63566         * modules/fcntl-safer (Depends-on): Add fcntl.
63567         * modules/stdlib-safer (Depends-on): Add stdlib.
63568         (configure.ac): Set indicator.
63569         * modules/unistd-safer (configure.ac): Likewise.
63570         * modules/tmpfile-safer (configure.ac): Likewise.
63571         (Depends-on): Add tmpfile.
63572         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
63573         active.
63574         * tests/test-fopen.c (includes): Test safer versions when they are
63575         in use.
63576         * tests/test-open.c (includes): Likewise.
63578         popen: fix cygwin 1.5 bug when stdin closed
63579         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
63580         * modules/popen: New file.
63581         * modules/popen-tests: Likewise.
63582         * tests/test-popen.c: Likewise.
63583         * m4/popen.m4: Likewise.
63584         * lib/popen.c: Likewise.
63585         * lib/stdio.in.h (popen): New declaration.
63586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
63587         * modules/stdio (Makefile.am): Likewise.
63588         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
63590 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
63592         maint.mk: give full control over update-copyright exclusions
63593         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63594         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63595         (update-copyright): Don't force inclusion of top-level
63596         ChangeLog.  Don't force exclusion of all COPYING files, but make
63597         them the default exclusion instead.
63599 2009-08-16  Bruno Haible  <bruno@clisp.org>
63601         Fix test failures on Solaris 10.
63602         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63603         tests when Solaris iconv() is used.
63604         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63605         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63606         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63607         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63608         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63610 2009-08-16  Bruno Haible  <bruno@clisp.org>
63612         Fix test failures on Solaris 10.
63613         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63614         'tr' program and pass it as first argument.
63615         * tests/test-pipe-filter-gi1.sh: Likewise.
63616         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63617         program as first argument.
63618         * tests/test-pipe-filter-gi1.c (main): Likewise.
63620 2009-08-16  Eric Blake  <ebb9@byu.net>
63622         fpurge: fix previous commits
63623         * modules/fpurge (Makefile.am): Make replacement conditional,
63624         partially reverting 2007-04-29 change; missed in previous
63625         attempt.
63626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63627         is missing.
63629 2009-08-16  Bruno Haible  <bruno@clisp.org>
63631         Clarify fpurge's effect on the file position.
63632         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63633         * tests/test-fpurge.c (main): Make a second pass for checking the file
63634         position.
63636 2009-08-16  Bruno Haible  <bruno@clisp.org>
63638         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63639         declaration of fpurge is missing.
63640         * tests/test-fpurge.c (main): Check that the file has not more contents
63641         than expected. Close the file before removing it.
63643 2009-08-15  Eric Blake  <ebb9@byu.net>
63645         fpurge: don't wrap working cygwin implementation
63646         * lib/fpurge.c (fpurge): Fix comment typo.
63647         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63648         1.7 to avoid replacement.
63649         * tests/test-fpurge.c (main): Enhance test.
63651 2009-08-15  Eric Blake  <ebb9@byu.net>
63652         and Jim Meyering  <meyering@redhat.com>
63654         test-update-copyright: skip if perl is insufficient
63655         * tests/test-update-copyright.sh: Failure to run maintainer tool
63656         should not cause testsuite failure on cygwin 1.5.
63658 2009-08-14  Eric Blake  <ebb9@byu.net>
63660         doc: mention more functions added in cygwin 1.7.0
63661         * doc/posix-headers/limits.texi (limits.h): Update for recent
63662         cygwin additions.
63663         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63664         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63665         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63666         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63667         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63669 2009-08-14  Eric Blake  <ebb9@byu.net>
63671         maint.mk: simplify update-copyright rule
63672         * top/maint.mk (update-copyright-local): Delete, and document how
63673         to do it in cfg.mk instead.
63674         (update-copyright-exclude-regexp): Delete, and document how to do
63675         it in .x-update-copyright instead.
63676         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63677         exclude ChangeLog.
63679 2009-08-14  Bruno Haible  <bruno@clisp.org>
63681         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63683 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63685         maint.mk: support update-copyright-env
63686         * top/maint.mk (update-copyright-env): Define place-holder.
63687         (update-copyright): Expand $(update-copyright-env) before
63688         invoking update-copyright.
63690 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63692         update-copyright: implement forced reformatting
63693         * build-aux/update-copyright: Implement and document
63694         UPDATE_COPYRIGHT_FORCE.
63695         * tests/test-update-copyright.sh: Test it.
63697 2009-08-14  Eric Blake  <ebb9@byu.net>
63698         and Bruno Haible  <bruno@clisp.org>
63700         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63701         * tests/test-locale.c: Revert previous patch related to NULL.
63702         * tests/test-stdio.c: Likewise.
63703         * tests/test-stdlib.c: Likewise.
63704         * tests/test-string.c: Likewise.
63705         * tests/test-unistd.c: Likewise.
63706         * modules/time-tests (Depends-on): Add verify.
63707         * modules/wchar-tests (Depends-on): Likewise.
63708         * tests/test-time.c: Test for NULL compliance.
63709         * tests/test-wchar.c: Likewise.
63710         * modules/locale (Depends-on): Add stddef.
63711         * modules/stdio (Depends-on): Likewise.
63712         * modules/stdlib (Depends-on): Likewise.
63713         * modules/string (Depends-on): Likewise.
63714         * modules/time (Depends-on): Likewise.
63715         * modules/unistd (Depends-on): Likewise.
63716         * modules/wchar (Depends-on): Likewise.
63717         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63718         * lib/stdlib.in.h (includes): Likewise.
63719         * lib/string.in.h (includes): Likewise.
63720         * lib/time.in.h (includes): Likewise.
63721         * lib/unistd.in.h (includes): Likewise.
63722         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63723         replaced.
63724         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63725         * m4/stddef_h.m4: New file.
63726         * modules/stddef: Likewise.
63727         * lib/stddef.in.h: Likewise.
63728         * modules/stddef-tests: Likewise.
63729         * tests/test-stddef.c: Likewise.
63730         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63731         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63732         * doc/posix-headers/locale.texi (locale.h): Likewise.
63733         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63734         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63735         * doc/posix-headers/string.texi (string.h): Likewise.
63736         * doc/posix-headers/time.texi (time.h): Likewise.
63737         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63738         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63740 2009-08-14  Eric Blake  <ebb9@byu.net>
63742         doc: improve git diff of texinfo files
63743         * .gitattributes: Add rule for *.texi files, with hint on how to
63744         use it.
63745         Copied from m4, and based on a report by Bruno Haible.
63747 2009-08-14  Bruno Haible  <bruno@clisp.org>
63749         Disable multithread support by default on Cygwin 1.5.x for real.
63750         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
63752 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63754         update-copyright: much ado about intervals
63755         * build-aux/update-copyright: Implement and document
63756         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
63757         of copyright year intervals.
63758         Also, document UPDATE_COPYRIGHT_YEAR.
63759         * tests/test-update-copyright.sh: Test it.
63761         update-copyright: convert 2-digit to 4-digit years
63762         * build-aux/update-copyright: Implement and document.
63763         * tests/test-update-copyright.sh: Update.
63765 2009-08-14  Jim Meyering  <meyering@redhat.com>
63767         test-exclude: avoid coreutils "make check" failure
63768         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
63769         just as in test-argmatch.c.
63771 2009-08-13  Eric Blake  <ebb9@byu.net>
63773         test-dup2: fix bad assumption
63774         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
63775         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
63777         test-version-etc: fix CRLF portability issue
63778         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
63779         recognize \r.
63780         * tests/test-argp-version-etc-1.sh: Likewise.
63782         getopt: update client modules
63783         * modules/argp (Depends-on): Use getopt-gnu.
63784         * modules/git-merge-changelog (Depends-on): Likewise.
63785         * modules/long-options (Depends-on): Likewise.
63786         * modules/xstrtol (Depends-on): Likewise.
63788 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63790         * tests/test-version-etc.sh: Don't fail on different
63791         project/version.  Don't fail on CRLF differences.  Rewrite to use
63792         multiple -e instead of multiple sed forks, suggested by Eric Blake
63793         <ebb9@byu.net>.
63794         * tests/test-argp-version-etc-1.sh: Likewise.
63796 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63798         * tests/test-version-etc.sh: Don't fail on different
63799         project/version.
63801 2009-08-12  Bruno Haible  <bruno@clisp.org>
63803         Tests for modules 'getopt-posix', 'getopt-gnu'.
63804         * modules/getopt-posix-tests: New file.
63805         * tests/test-getopt.c: New file.
63806         * tests/test-getopt.h: New file.
63807         * tests/test-getopt_long.h: New file.
63809         New modules 'getopt-posix', 'getopt-gnu'.
63810         * modules/getopt-gnu: New file, renamed from modules/getopt.
63811         * modules/getopt-posix: New file.
63812         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
63813         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
63814         (gl_GETOPT): Remove macro.
63815         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
63816         Disable the test against BSD systems that declare optreset. Test
63817         against mingw bug. Test against lack of support of optional arguments
63818         on many platforms.
63819         * doc/glibc-headers/getopt.texi: Update module name and list of
63820         relevant platforms.
63821         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
63822         'getopt-gnu' and more portability problems.
63823         * NEWS: Mention the changes.
63825 2009-08-12  Bruno Haible  <bruno@clisp.org>
63827         Ensure that optarg etc. get declared by <unistd.h>.
63828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
63829         AC_USE_SYSTEM_EXTENSIONS.
63830         * modules/getopt (Depends-on): Add 'extensions'.
63832 2009-08-12  Bruno Haible  <bruno@clisp.org>
63834         Avoid test link errors.
63835         * modules/pipe-filter-ii-tests (Makefile.am): Define
63836         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
63837         * modules/pipe-filter-gi-tests (Makefile.am): Define
63838         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
63839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63841 2009-08-12  Bruno Haible  <bruno@clisp.org>
63843         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
63844         gl_GETOPT_SUBSTITUTE before.
63845         (gl_GETOPT): Use it.
63846         * m4/argp.m4 (gl_ARGP): Update.
63847         Reported by Sergey Poznyakoff.
63849         * m4/getopt.m4: Reorder macros.
63850         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
63851         (gl_GETOPT_SUBSTITUTE): Remove macro.
63853 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63855         Minor improvement in gitlog-to-changelog
63857         * build-aux/gitlog-to-changelog: New option `--format' makes
63858         output format string configurable.
63860 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63862         Optimize exclude: use hash tables for non-wildcard patterns.
63864         * lib/exclude.c: Include hash.h and mbuiter.h
63865         (struct exclude_pattern, exclude_segment): New data types.
63866         (struct exclude): Rewrite.
63867         (fnmatch_pattern_has_wildcards): New function.
63868         (new_exclude_segment, free_exclude_segment): New functions.
63869         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63870         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63871         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63872         * modules/exclude: Depend on hash and mbuiter.
63874         * modules/exclude-tests: New file.
63875         * tests/test-exclude.c: New file.
63876         * tests/test-exclude1.sh: New file.
63877         * tests/test-exclude2.sh: New file.
63878         * tests/test-exclude3.sh: New file.
63879         * tests/test-exclude4.sh: New file.
63880         * tests/test-exclude5.sh: New file.
63881         * tests/test-exclude6.sh: New file.
63882         * tests/test-exclude7.sh: New file.
63884 2009-08-12  Bruno Haible  <bruno@clisp.org>
63886         Ensure that getopt() gets declared by <unistd.h>.
63887         * lib/unistd.in.h: Conditionally include getopt.h.
63888         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63889         Set GNULIB_UNISTD_H_GETOPT.
63890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63891         GNULIB_UNISTD_H_GETOPT.
63892         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63894 2009-08-12  Bruno Haible  <bruno@clisp.org>
63896         Clarify logic.
63897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63898         gl_replace_getopt instead of GETOPT_H.
63900 2009-08-12  Bruno Haible  <bruno@clisp.org>
63902         * m4/getopt.m4: Add comments.
63904 2009-08-12  Bruno Haible  <bruno@clisp.org>
63906         Disable multithread support by default on Cygwin 1.5.x.
63907         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63908         set gl_use_threads=no if not specified otherwise.
63910 2009-08-11  Bruno Haible  <bruno@clisp.org>
63912         Avoid compilation error on NetBSD 5.0.
63913         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63914         * tests/test-stdio.c: Likewise.
63915         * tests/test-stdlib.c: Likewise.
63916         * tests/test-string.c: Likewise.
63917         * tests/test-unistd.c: Likewise.
63918         Reported by Greg Troxel <gdt@ir.bbn.com>
63919         at <https://savannah.gnu.org/support/?106973>.
63921 2009-08-11  Bruno Haible  <bruno@clisp.org>
63923         * modules/dup2-tests (Depends-on): Remove close.
63925         Undo 2009-07-19 commit.
63926         * modules/acl-tests (Depends-on): Remove close.
63927         * modules/binary-io-tests (Depends-on): Likewise.
63928         * modules/closein-tests (Depends-on): Likewise.
63929         * modules/flock-tests (Depends-on): Likewise.
63930         * modules/fsync-tests (Depends-on): Likewise.
63931         * modules/lseek-tests (Depends-on): Likewise.
63932         * modules/pipe-tests (Depends-on): Likewise.
63933         * modules/posix_spawn-tests (Depends-on): Likewise.
63934         * modules/posix_spawnp-tests (Depends-on): Likewise.
63935         * modules/stat-time-tests (Depends-on): Likewise.
63936         * modules/yesno-tests (Depends-on): Likewise.
63938 2009-08-10  Bruno Haible  <bruno@clisp.org>
63940         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
63942 2009-08-10  Bruno Haible  <bruno@clisp.org>
63944         Fix a gcc warning.
63945         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
63947 2009-08-10  Bruno Haible  <bruno@clisp.org>
63949         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
63950         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
63951         not only the first time.
63952         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
63953         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
63954         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
63955         is 1, not only the first time.
63957 2009-08-10  Bruno Haible  <bruno@clisp.org>
63959         Make it possible to use module 'gethostname' without module 'close'.
63960         * lib/unistd.in.h (close): Evoke a link error only if
63961         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63963         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63964         * modules/unistd (Makefile.am): Substitute
63965         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63966         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
63967         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63968         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
63969         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63970         * modules/sys_ioctl (Makefile.am): Substitute
63971         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63972         * modules/socket (configure.ac): On native Windows, set
63973         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
63974         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63975         Reported by Sam Steingold <sds@gnu.org>.
63977 2009-08-10  Bruno Haible  <bruno@clisp.org>
63979         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
63980         * modules/ioctl (configure.ac): Likewise.
63982 2009-08-10  Bruno Haible  <bruno@clisp.org>
63984         Avoid collision between gnulib wrapper and libintl wrapper.
63985         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
63986         already defined in intl/printf.c.
63987         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
63988         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
63990 2009-08-09  Bruno Haible  <bruno@clisp.org>
63992         Make <sys/select.h> really self-contained, also on Solaris 10.
63993         * lib/sys_select.in.h: Include <string.h>.
63994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
63995         Solaris 10 problem.
63996         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
63997         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
63998         Reported by Jim Meyering.
64000 2009-08-09  Bruno Haible  <bruno@clisp.org>
64002         Avoid warnings from 'aclocal' that are due to a use of macro name
64003         AM_XGETTEXT_OPTION that is not defined in automake.
64004         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
64005         automake.
64006         * modules/error (configure.ac): Likewise.
64007         * modules/propername (configure.ac): Likewise.
64008         * modules/vasprintf (configure.ac): Likewise.
64009         * modules/verror (configure.ac): Likewise.
64010         * modules/xprintf (configure.ac): Likewise.
64011         * modules/xvasprintf (configure.ac): Likewise.
64013 2009-08-08  Bruno Haible  <bruno@clisp.org>
64015         Avoid compilation error in C++ mode.
64016         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
64017         Reported by Sam Steingold <sds@gnu.org>.
64019 2009-08-08  Bruno Haible  <bruno@clisp.org>
64021         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
64022         for the various Unix platforms.
64023         * doc/posix-headers/limits.texi: Update platforms list regarding
64024         HOST_NAME_MAX.
64025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64027 2009-08-07  Jim Meyering  <meyering@redhat.com>
64029         selinux-at: fix typo in a comment
64030         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
64031         Spotted by Paolo Bonzini.
64033         selinux-at: remove redundant m4 code, add documentation
64034         * modules/selinux-at (configure.ac): Remove redundant code.
64035         LIB_SELINUX is already set via the dependent module, selinux-h.
64036         (Include): Add quotes around selinux-at.h.
64037         * lib/selinux-at.h: Add documentation.
64038         Reported by Bruno Haible in
64039         http://marc.info/?l=gnulib-bug&m=124958988300749
64041 2009-08-07  Bruno Haible  <bruno@clisp.org>
64043         Avoid link error on MacOS X 10.3 and 10.4.
64044         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
64045         on non-ELF systems.
64046         * lib/argp-pv.c (argp_program_version): Likewise.
64047         Reported by Simon Josefsson.
64049 2009-08-07  Simon Josefsson  <simon@josefsson.org>
64051         * tests/test-version-etc.sh: Use $EXEEXT.
64053 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
64055         update-copyright: update documentation to point to maint.mk
64056         * build-aux/update-copyright: Here.
64058 2009-08-06  Jim Meyering  <meyering@redhat.com>
64060         maint.mk: support update-copyright-local
64061         * top/maint.mk (update-copyright-local): Define place-holder.
64062         (update-copyright): Depend on $(update-copyright-local).
64064 2009-08-06  Jim Meyering  <meyering@redhat.com>
64066         selinux-at: new module
64067         Initially written for coreutils, this module will soon be
64068         used by findutils, too.
64069         * MODULES.html.sh [Misc]: Add selinux-at.
64070         * lib/selinux-at.h: New file, from coreutils.
64071         * lib/selinux-at.c: Likewise.
64072         * modules/selinux-at: Likewise.
64073         (License): Change from LGPL to GPL, since it depends
64074         on the GPL'd openat module.
64076         doc: update README
64077         * README: Remove references to cogito.
64078         Remove cvs-repo-updating instructions from 2007.
64079         Don't imply that CVS is better if you have limited disk space.
64081 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64083         update-copyright: support C-style comments
64084         * build-aux/update-copyright: Implement and document.
64085         * tests/test-update-copyright.sh: Test.
64087 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64089         update-copyright: support omitted "(C)"
64090         * build-aux/update-copyright: Implement and document.  Also,
64091         allow variable whitespace before "(C)".
64092         * tests/test-update-copyright.sh: Test.
64094 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64096         update-copyright: don't trip on non-FSF copyright statements
64097         * build-aux/update-copyright: Fix so that the first correctly
64098         formatted FSF copyright statement is recognized no matter what
64099         appears before it.  Update documentation.
64100         * tests/test-update-copyright.sh: Test that.
64102 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64104         update-copyright: clean up code a little
64105         * build-aux/update-copyright: Append "_re" to the name of any
64106         variable holding a regular expression.
64107         Replace "old" and "new" with "stmt" in variable names.
64108         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
64109         handled correctly.
64110         Format code more consistently.
64112 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64114         update-copyright-tests: improve portability
64115         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
64116         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
64118 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64120         update-copyright: support @copyright{} and &copy;
64121         * build-aux/update-copyright: Implement and document.
64122         * tests/test-update-copyright.sh: Test.
64124 2009-08-04  Jim Meyering  <meyering@redhat.com>
64126         update-copyright-tests: correctly test EOL=\r\n handling
64127         * tests/test-update-copyright.sh: Put \r at the end of some lines
64128         for the dos-eol tests.  Based on a patch by Joel E. Denny.
64130         maint.mk: make update-copyright exclusion list more configurable
64131         * top/maint.mk (update-copyright): Default to excluding COPYING,
64132         but allow an override, in case someone does want to update that file.
64134         maint.mk: don't update copyright date in COPYING
64135         * top/maint.mk (update-copyright): Exclude COPYING.
64137         maint.mk: add a copyright-updating rule
64138         * top/maint.mk (update-copyright): New rule.
64139         Derived from coreutils/Makefile.am.
64141         update-copyright: rename some variables
64142         * build-aux/update-copyright: Rename a few variables for clarity.
64143         Tweak syntax.  List Joel E. Denny as coauthor.
64145 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64147         update-copyright: fix bug for 2-digit last year and add tests
64148         * build-aux/update-copyright: Fix bug.
64149         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
64150         specified.
64151         * modules/update-copyright-tests: New
64152         * tests/test-update-copyright.sh: New.
64154 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64156         update-copyright: handle leading tabs in line prefix
64157         * build-aux/update-copyright: Count leading tabs as 8 spaces
64158         when computing margin.  This helps with the formatting of
64159         ChangeLogs, for example.
64160         Fix documentation a little.
64162 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64164         update-copyright: support EOL=\r\n
64165         * build-aux/update-copyright: Implement that.
64167 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64169         update-copyright: automatically format copyright statements
64170         * build-aux/update-copyright: Implement that.
64171         Also, be a little more predictable and safer by always failing
64172         when the full copyright format is not perfectly recognized as an
64173         unbroken whole.  Discussed at
64174         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
64175         Rewrite documentation.
64177 2009-08-03  Bruno Haible  <bruno@clisp.org>
64179         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
64181 2009-08-02  Bruno Haible  <bruno@clisp.org>
64183         Tests for module 'uname'.
64184         * modules/uname-tests: New file.
64185         * tests/test-uname.c: New file.
64187         New module 'uname'.
64188         * lib/uname.c: New file.
64189         * m4/uname.m4: New file.
64190         * modules/uname: New file.
64191         * doc/posix-functions/uname.texi: Mention the new module.
64193 2009-08-02  Bruno Haible  <bruno@clisp.org>
64195         Tests for module 'sys_utsname'.
64196         * modules/sys_utsname-tests: New file.
64197         * tests/test-sys_utsname.c: New file.
64199         New module 'sys_utsname'.
64200         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
64201         * m4/sys_utsname_h.m4: New file.
64202         * modules/sys_utsname: New file.
64203         * doc/posix-headers/sys_utsname.texi: Mention the new module.
64205 2009-08-02  Bruno Haible  <bruno@clisp.org>
64207         Implicitly initialize the sockets library.
64208         * lib/gethostname.c: Include sockets.h.
64209         (rpl_gethostname): Invoke gl_sockets_startup.
64210         * lib/socket.c: Include sockets.h.
64211         (rpl_socket): Invoke gl_sockets_startup.
64212         * modules/gethostname (Depends-on): Add sockets.
64213         * modules/socket (Depends-on): Likewise.
64214         * tests/test-poll.c: Don't include sockets.h.
64215         (main): Don't invoke gl_sockets_startup.
64216         * tests/test-select.c: Don't include sockets.h.
64217         (main): Don't invoke gl_sockets_startup.
64219 2009-08-02  Bruno Haible  <bruno@clisp.org>
64221         Allow multiple calls to gl_sockets_startup.
64222         * lib/sockets.c (initialized_sockets_version): New variable.
64223         (gl_sockets_startup): Do nothing if already called for this or a higher
64224         version.
64225         (gl_sockets_cleanup): Reset initialized_sockets_version.
64227 2009-08-03  Simon Josefsson  <simon@josefsson.org>
64229         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
64230         different project/version.
64232 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
64233             Bruno Haible  <bruno@clisp.org>
64235         Tests for module 'pipe-filter-gi'.
64236         * modules/pipe-filter-gi-tests: New file.
64237         * tests/test-pipe-filter-gi1.sh: New file.
64238         * tests/test-pipe-filter-gi1.c: New file.
64239         * tests/test-pipe-filter-gi2.sh: New file.
64240         * tests/test-pipe-filter-gi2-main.c: New file.
64241         * tests/test-pipe-filter-gi2-child.c: New file.
64243         New module 'pipe-filter-gi'.
64244         * lib/pipe-filter-gi.c: New file.
64245         * modules/pipe-filter-gi: New file.
64247 2009-08-02  Bruno Haible  <bruno@clisp.org>
64248             Paolo Bonzini  <bonzini@gnu.org>
64250         Tests for module 'pipe-filter-ii'.
64251         * modules/pipe-filter-ii-tests: New file.
64252         * tests/test-pipe-filter-ii1.sh: New file.
64253         * tests/test-pipe-filter-ii1.c: New file.
64254         * tests/test-pipe-filter-ii2.sh: New file.
64255         * tests/test-pipe-filter-ii2-main.c: New file.
64256         * tests/test-pipe-filter-ii2-child.c: New file.
64258         New module 'pipe-filter-ii'.
64259         * lib/pipe-filter.h: New file.
64260         * lib/pipe-filter-ii.c: New file.
64261         * lib/pipe-filter-aux.h: New file.
64262         * modules/pipe-filter-ii: New file.
64264 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64266         * lib/gc-libgcrypt.c: Change copyright to FSF.
64267         * lib/gc-gnulib.c: Likewise.
64269 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
64271         * lib/gethostname.c: Include limits.h.
64273 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64274             Bruno Haible  <bruno@clisp.org>
64276         Ensure HOST_NAME_MAX as part of the gethostname module.
64277         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
64278         define also HOST_NAME_MAX.
64279         * tests/test-gethostname.c: Include <limits.h>.
64280         (main): Check also HOST_NAME_MAX.
64281         * doc/posix-headers/limits.texi: Document the mingw problem.
64283 2009-08-02  Bruno Haible  <bruno@clisp.org>
64285         * lib/gethostname.c (gethostname): Fix handling of large len argument.
64286         Add comments.
64288 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64290         * lib/gethostname.c: Add Windows wrapper.
64291         * m4/gethostname.m4: Look for gethostname in -lws2_32.
64292         * modules/gethostname: Depend on sys_socket & errno, for also
64293         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
64294         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
64296 2009-07-31  Jim Meyering  <meyering@redhat.com>
64298         getloadavg: fix symbol name in comment
64299         * lib/getloadavg.c: Correct a typo I introduced when adding
64300         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
64301         Matt Kraai spotted the problem.
64303 2009-07-29  Matt Kraai  <mkraai@beckman.com>
64305         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
64306         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
64307         code also if ! defined N_NAME_POINTER.
64308         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
64309         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
64310         but the n_name member is a 12-byte array.
64312 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
64314         update-copyright: generalize comment handling
64315         * build-aux/update-copyright: Handle copyright statements
64316         within more comment styles.
64317         Document usage.
64318         Report any file with an external copyright holder or parse failure.
64320 2009-07-29  Jim Meyering  <meyering@redhat.com>
64322         mktime: correct setting of REPLACE_MKTIME
64323         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
64325         update-copyright: new module
64326         * modules/update-copyright: New file.
64327         * build-aux/update-copyright: New file.
64328         * MODULES.html.sh (maint+release support): Add update-copyright.
64330 2009-07-27  Bruno Haible  <bruno@clisp.org>
64332         Fix compilation error when <ctime> is used and mktime is replaced.
64333         * lib/time.in.h (mktime): New declaration.
64334         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
64335         REPLACE_MKTIME instead of defining mktime in config.h.
64336         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
64337         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
64338         Reported by Ross McFarland <rwmcfa1@neces.com>.
64340 2009-07-27  Bruno Haible  <bruno@clisp.org>
64342         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
64343         Reported by Matt Kraai <mkraai@beckman.com>.
64345 2009-07-25  Jim Meyering  <meyering@redhat.com>
64347         maint.mk: avoid warnings about missing files
64348         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
64349         diagnostic when .prev-version does not exist.
64350         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
64351         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
64352         nonexistent cfg.mk.
64353         Suggestions from Simon Josefsson.
64355 2009-07-25  Bruno Haible  <bruno@clisp.org>
64357         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
64358         defined as macros. Needed on QNX 6.4.1.
64359         Reported by Matt Kraai <mkraai@beckman.com>.
64361 2009-07-23  Jim Meyering  <meyering@redhat.com>
64363         maint.mk: invoke "make dist" with a working value of XZ_OPT
64364         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
64366 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
64368         Make fseeko.c compile on QNX.
64369         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
64371 2009-07-22  Peter Simons  <simons@cryp.to>
64373         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
64374         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
64375         * lib/md4.h: Likewise.
64376         * lib/md5.h: Likewise.
64377         * lib/sha1.h: Likewise.
64378         * lib/sha256.h: Likewise.
64379         * lib/sha512.h: Likewise.
64381         tests-sha1: don't assign literal string to 'char *' variable
64382         * tests/test-sha1.c (main): Declare locals with "const" to match
64383         attributes of the right hand side.
64385 2009-07-21  Eric Blake  <ebb9@byu.net>
64387         dup2: fix more mingw problems
64388         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
64389         fd to itself.
64390         * doc/posix-functions/dup2.texi (dup2): Document the bug.
64391         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
64392         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
64393         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
64394         care of mingw bugs.
64396 2009-07-21  Jim Meyering  <meyering@redhat.com>
64398         vc-list-files: avoid failure when /bin/sh is dash
64399         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
64400         On some Debian based systems, /bin/sh is a symlink to dash, and running
64401         this command would omit the "/" following each 'tests' prefix:
64402           dash -x build-aux/vc-list-files -C . tests
64403         That is because bash and dash work differently:
64404           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
64405           bash ok
64406           dash odd
64408 2009-07-21  Eric Blake  <ebb9@byu.net>
64410         dup2-tests: test previous patch
64411         * modules/dup2-tests: New file.
64412         * tests/test-dup2.c: Likewise.
64413         * tests/test-open.c (main): Avoid unspecified behavior.
64414         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
64415         test.
64417         dup2: work around mingw and cygwin 1.5 bug
64418         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
64419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64420         * modules/unistd (Makefile.am): Substitute it.
64421         * lib/unistd.in.h (dup2): Declare the replacement.
64422         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
64423         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
64424         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
64425         * modules/execute (Depends-on): Add dup2.
64426         * modules/fseterr (Depends-on): Likewise.
64427         * modules/pipe (Depends-on): Likewise.
64428         * modules/posix_spawn-internal (Depends-on): Likewise.
64430 2009-07-21  Bruno Haible  <bruno@clisp.org>
64432         * modules/.gitattributes: New file.
64434 2009-07-20  Bruno Haible  <bruno@clisp.org>
64436         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
64437         (main): Use it.
64439 2009-07-20  Eric Blake  <ebb9@byu.net>
64441         test-pipe: make a bit more robust.
64442         * tests/test-pipe.c (myerr): Allow error messages regardless of
64443         what we do to stderr.
64444         (test_pipe): Rearrange to avoid deadlock.
64445         (child_main): Try a larger read, to ensure we avoided deadlock.
64446         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
64447         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
64448         if misused.
64450 2009-07-19  Jim Meyering  <meyering@redhat.com>
64452         fts: avoid false-positive cycle-detection
64453         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
64454         for each new command line argument.
64456 2009-07-19  Bruno Haible  <bruno@clisp.org>
64458         Fix build error on mingw with the modules sys_select and unistd.
64459         * modules/acl-tests (Depends-on): Add close.
64460         * modules/binary-io-tests (Depends-on): Likewise.
64461         * modules/closein-tests (Depends-on): Likewise.
64462         * modules/flock-tests (Depends-on): Likewise.
64463         * modules/fsync-tests (Depends-on): Likewise.
64464         * modules/lseek-tests (Depends-on): Likewise.
64465         * modules/pipe-tests (Depends-on): Likewise.
64466         * modules/posix_spawn-tests (Depends-on): Likewise.
64467         * modules/posix_spawnp-tests (Depends-on): Likewise.
64468         * modules/stat-time-tests (Depends-on): Likewise.
64469         * modules/yesno-tests (Depends-on): Likewise.
64471 2009-07-19  Bruno Haible  <bruno@clisp.org>
64473         Unify conditionals.
64474         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
64475         macros, not at the compiler macros.
64476         * lib/pipe.c: Likewise.
64477         * lib/execute.c: Likewise.
64478         * lib/spawni.c: Likewise.
64480 2009-07-19  Bruno Haible  <bruno@clisp.org>
64482         Fix handling of closed stdin/stdout/stderr on mingw.
64483         * lib/w32spawn.h: Include unistd.h.
64484         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
64485         file descriptor with O_NOINHERIT flag.
64486         (fd_safer_noinherit): New function, based on fd-safer.c.
64487         (dup_safer_noinherit): New function, based on dup-safer.c.
64488         (undup_safer_noinherit): New function.
64489         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
64490         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
64491         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
64492         instead of fd_safer.
64493         * tests/test-pipe.c: Include <windows.h>.
64494         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
64495         result.
64497         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
64498         from main.
64499         (test_pipe): Pass an extra argument for disambiguation.
64500         (main): Invoke parent_main or child_main.
64502         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
64503         consistently.
64505 2009-07-18  Eric Blake  <ebb9@byu.net>
64507         test-pipe: fix mingw build
64508         * tests/test-pipe.c (main): Avoid fcntl on mingw.
64510 2009-07-18  Bruno Haible  <bruno@clisp.org>
64512         * modules/pipe-tests (Makefile.am): Fix typo.
64514 2009-07-18  Eric Blake  <ebb9@byu.net>
64516         error: fix mingw build
64517         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
64518         Reported by Bruno Haible.
64520         error: avoid undefined use of stdout
64521         * lib/error.c (error, error_at_line): Check that fd 1 is open
64522         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
64523         is handling faults and the close_stdout module wants to report the
64524         detection of closed stdout as an error.
64526 2009-07-17  Eric Blake  <ebb9@byu.net>
64528         pipe: be robust in face of closed fds
64529         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
64530         should cause child to misbehave.
64531         * modules/pipe-tests: New module.
64532         * tests/test-pipe.c: New file.
64533         * tests/test-pipe.sh: New file.
64534         Reported by Akim Demaille.
64536 2009-07-14  Bruno Haible  <bruno@clisp.org>
64538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
64539         Reported by anonymous kc.
64541 2009-07-07  Jim Meyering  <meyering@redhat.com>
64543         maint.mk: don't look for translatable strings in *.m4 or *.mk
64544         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
64545         when searching for translatable strings.
64547 2009-07-05  Jim Meyering  <meyering@redhat.com>
64549         remove superfluous parentheses in STREQ definition
64550         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
64551         * lib/getugroups.c (STREQ): Likewise.
64552         * lib/fnmatch.c (STREQ): Likewise.
64553         Spotted by Bruno Haible.
64555 2009-07-04  Jim Meyering  <meyering@redhat.com>
64557         argv-iter: new module
64558         * MODULES.html.sh: Add argv-iter.
64559         * lib/argv-iter.c, lib/argv-iter.h: New files.
64560         * modules/argv-iter: New file.
64561         * modules/argv-iter-tests: New file.
64562         * tests/test-argv-iter.c: Test it.
64564 2009-07-04  Bruno Haible  <bruno@clisp.org>
64566         Fix assertion.
64567         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
64568         contains more exact copies of a given entry than file2, leave the extra
64569         copies unpaired rather than aborting.
64570         Reported by Eric Blake.
64572 2009-07-02  Bruno Haible  <bruno@clisp.org>
64574         Speedup git-merge-changelog for git cherry-pick.
64575         * lib/git-merge-changelog.c (struct entries_mapping): New type.
64576         (entries_mapping_get): New function, extracted from compute_mapping.
64577         (entries_mapping_reverse_get): New function.
64578         (compute_mapping): Add a 'full' argument. Return the result in a
64579         'struct entries_mapping'.
64580         (main): Update. Access the mappings through entries_mapping_get.
64581         Reported by Eric Blake.
64583 2009-07-02  Bruno Haible  <bruno@clisp.org>
64585         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
64586         best_i.
64588 2009-07-02  Bruno Haible  <bruno@clisp.org>
64590         Speed up approximate search for matching ChangeLog entries.
64591         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
64592         argument. Call fstrcmp_bounded instead of fstrcmp.
64593         (compute_mapping, try_split_merged_entry, main): Update callers.
64595 2009-07-02  Bruno Haible  <bruno@clisp.org>
64597         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64599 2009-06-30  Bruno Haible  <bruno@clisp.org>
64601         Reduce the number of uc_is_cased calls.
64602         * lib/unicase.h (casing_suffix_context_t): Add
64603         'first_char_except_ignorable' field.
64604         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64605         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64606         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64607         Update initializer.
64608         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64609         case-ignorable characters.
64610         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64611         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64612         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64613         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64614         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64616 2009-06-30  Bruno Haible  <bruno@clisp.org>
64618         Tests for module 'unicase/ignorable'.
64619         * modules/unicase/ignorable-tests: New file.
64620         * tests/unicase/test-ignorable.c: New file, generated by
64621         gen-uni-tables.
64623         Tests for module 'unicase/cased'.
64624         * modules/unicase/cased-tests: New file.
64625         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64626         * tests/unicase/test-predicate-part1.h: New file, derived from
64627         tests/unictype/test-predicate-part1.h.
64628         * tests/unicase/test-predicate-part2.h: New file, same as
64629         tests/unictype/test-predicate-part2.h.
64631         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64632         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64633         (output_casing_properties): New function.
64634         (main): Call it.
64635         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64636         * lib/unicase/cased.c: Include unictype/bitmap.h.
64637         (uc_is_cased): Define through a bitmap lookup.
64638         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64639         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64640         (uc_is_case_ignorable): Define through a bitmap lookup.
64641         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64642         lib/unictype/bitmap.h.
64643         (Depends-on): Add inline. Clean up.
64644         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64645         lib/unictype/bitmap.h.
64646         (Depends-on): Add inline. Clean up.
64647         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64648         recognition.
64649         * tests/unicase/test-u16-tolower.c (main): Likewise.
64650         * tests/unicase/test-u32-tolower.c (main): Likewise.
64652 2009-06-30  Bruno Haible  <bruno@clisp.org>
64654         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64655         * lib/unicase/u16-casemap.c: Likewise.
64656         * lib/unicase/u32-casemap.c: Likewise.
64658 2009-06-29  Bruno Haible  <bruno@clisp.org>
64660         Define u32_casefold as a wrapper around u32_ct_casefold.
64661         * lib/unicase/u32-casefold.c: Update.
64662         * modules/unicase/u32-casefold (Depends-on): Add
64663         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64664         unicase/empty-suffix-context. Clean up.
64666         Define u16_casefold as a wrapper around u16_ct_casefold.
64667         * lib/unicase/u16-casefold.c: Update.
64668         * modules/unicase/u16-casefold (Depends-on): Add
64669         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64670         unicase/empty-suffix-context. Clean up.
64672         Define u8_casefold as a wrapper around u8_ct_casefold.
64673         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64674         * lib/unicase/u8-casefold.c: Update.
64675         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64676         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64678         Define u32_totitle as a wrapper around u32_ct_totitle.
64679         * lib/unicase/u32-totitle.c: Update.
64680         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64681         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64683         Define u16_totitle as a wrapper around u16_ct_totitle.
64684         * lib/unicase/u16-totitle.c: Update.
64685         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64686         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64688         Define u8_totitle as a wrapper around u8_ct_totitle.
64689         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64690         functions.
64691         (FUNC): Delegate to U_CT_TOTITLE.
64692         * lib/unicase/u8-totitle.c: Update.
64693         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64694         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64696         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64697         invocation.
64698         * modules/unicase/u32-tolower (Depends-on): Add
64699         unicase/empty-prefix-context, unicase/empty-suffix-context.
64701         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64702         invocation.
64703         * modules/unicase/u16-tolower (Depends-on): Add
64704         unicase/empty-prefix-context, unicase/empty-suffix-context.
64706         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64707         * modules/unicase/u8-tolower (Depends-on): Add
64708         unicase/empty-prefix-context, unicase/empty-suffix-context.
64710         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64711         invocation.
64712         * modules/unicase/u32-toupper (Depends-on): Add
64713         unicase/empty-prefix-context, unicase/empty-suffix-context.
64715         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64716         invocation.
64717         * modules/unicase/u16-toupper (Depends-on): Add
64718         unicase/empty-prefix-context, unicase/empty-suffix-context.
64720         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64721         * modules/unicase/u8-toupper (Depends-on): Add
64722         unicase/empty-prefix-context, unicase/empty-suffix-context.
64724         New module 'unicase/u32-ct-casefold'.
64725         * lib/unicase/u32-ct-casefold.c: New file.
64726         * modules/unicase/u32-ct-casefold: New file.
64728         New module 'unicase/u16-ct-casefold'.
64729         * lib/unicase/u16-ct-casefold.c: New file.
64730         * modules/unicase/u16-ct-casefold: New file.
64732         New module 'unicase/u8-ct-casefold'.
64733         * lib/unicase/u8-ct-casefold.c: New file.
64734         * lib/unicase/u-ct-casefold.h: New file, derived from
64735         lib/unicase/u-casefold.h.
64736         * modules/unicase/u8-ct-casefold: New file.
64738         New module 'unicase/u32-ct-totitle'.
64739         * lib/unicase/u32-ct-totitle.c: New file.
64740         * modules/unicase/u32-ct-totitle: New file.
64742         New module 'unicase/u16-ct-totitle'.
64743         * lib/unicase/u16-ct-totitle.c: New file.
64744         * modules/unicase/u16-ct-totitle: New file.
64746         New module 'unicase/u8-ct-totitle'.
64747         * lib/unicase/u8-ct-totitle.c: New file.
64748         * lib/unicase/u-ct-totitle.h: New file, derived from
64749         lib/unicase/u-totitle.h.
64750         * modules/unicase/u8-ct-totitle: New file.
64752         New module 'unicase/u32-ct-tolower'.
64753         * lib/unicase/u32-ct-tolower.c: New file.
64754         * modules/unicase/u32-ct-tolower: New file.
64756         New module 'unicase/u16-ct-tolower'.
64757         * lib/unicase/u16-ct-tolower.c: New file.
64758         * modules/unicase/u16-ct-tolower: New file.
64760         New module 'unicase/u8-ct-tolower'.
64761         * lib/unicase/u8-ct-tolower.c: New file.
64762         * modules/unicase/u8-ct-tolower: New file.
64764         New module 'unicase/u32-ct-toupper'.
64765         * lib/unicase/u32-ct-toupper.c: New file.
64766         * modules/unicase/u32-ct-toupper: New file.
64768         New module 'unicase/u16-ct-toupper'.
64769         * lib/unicase/u16-ct-toupper.c: New file.
64770         * modules/unicase/u16-ct-toupper: New file.
64772         New module 'unicase/u8-ct-toupper'.
64773         * lib/unicase/u8-ct-toupper.c: New file.
64774         * modules/unicase/u8-ct-toupper: New file.
64776         Add context arguments to u*_casemap functions.
64777         * lib/unicase/unicasemap.h: Include unicase.h.
64778         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
64779         suffix_context arguments.
64780         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
64781         functions.
64782         (FUNC): Add prefix_context and suffix_context arguments. Use
64783         uc_is_cased and uc_is_case_ignorable.
64784         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
64785         * lib/unicase/u16-casemap.c: Likewise.
64786         * lib/unicase/u32-casemap.c: Likewise.
64787         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
64788         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64789         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
64790         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64791         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
64792         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64794         New module 'unicase/u32-suffix-context'.
64795         * lib/unicase/u32-suffix-context.c: New file.
64796         * modules/unicase/u32-suffix-context: New file.
64798         New module 'unicase/u16-suffix-context'.
64799         * lib/unicase/u16-suffix-context.c: New file.
64800         * modules/unicase/u16-suffix-context: New file.
64802         New module 'unicase/u8-suffix-context'.
64803         * lib/unicase/u8-suffix-context.c: New file.
64804         * lib/unicase/u-suffix-context.h: New file.
64805         * modules/unicase/u8-suffix-context: New file.
64807         New module 'unicase/empty-suffix-context'.
64808         * lib/unicase/empty-suffix-context.c: New file.
64809         * modules/unicase/empty-suffix-context: New file.
64811         New module 'unicase/u32-prefix-context'.
64812         * lib/unicase/u32-prefix-context.c: New file.
64813         * modules/unicase/u32-prefix-context: New file.
64815         New module 'unicase/u16-prefix-context'.
64816         * lib/unicase/u16-prefix-context.c: New file.
64817         * modules/unicase/u16-prefix-context: New file.
64819         New module 'unicase/u8-prefix-context'.
64820         * lib/unicase/u8-prefix-context.c: New file.
64821         * lib/unicase/u-prefix-context.h: New file.
64822         * lib/unicase/context.h: New file.
64823         * modules/unicase/u8-prefix-context: New file.
64825         New module 'unicase/empty-prefix-context'.
64826         * lib/unicase/empty-prefix-context.c: New file.
64827         * modules/unicase/empty-prefix-context: New file.
64829         New module 'unicase/ignorable'.
64830         * lib/unicase/ignorable.c: New file.
64831         * modules/unicase/ignorable: New file.
64833         New module 'unicase/cased'.
64834         * lib/unicase/caseprop.h: New file.
64835         * lib/unicase/cased.c: New file.
64836         * modules/unicase/cased: New file.
64838         New functions for case mapping of substrings.
64839         * lib/unicase.h (casing_prefix_context_t): New type.
64840         (unicase_empty_prefix_context): New variable.
64841         (u8_casing_prefix_context, u16_casing_prefix_context,
64842         u32_casing_prefix_context, u8_casing_prefixes_context,
64843         u16_casing_prefixes_context, u32_casing_prefixes_context): New
64844         declarations.
64845         (casing_suffix_context_t): New type.
64846         (unicase_empty_suffix_context): New variable.
64847         (u8_casing_suffix_context, u16_casing_suffix_context,
64848         u32_casing_suffix_context, u8_casing_suffixes_context,
64849         u16_casing_suffixes_context, u32_casing_suffixes_context,
64850         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
64851         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
64852         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
64853         declarations.
64855 2009-06-28  Jim Meyering  <meyering@redhat.com>
64857         boostrap: indent only with spaces
64858         * build-aux/bootstrap: Indent only with spaces, never TABs.
64860         bootstrap: split long lines
64861         * build-aux/bootstrap: Keep line length < 80.
64863         bootstrap: sync from coreutils
64864         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64865         just as autoreconf does.  Verify a list of prerequisite
64866         package-name,version-number pairs if defined in bootstrap.conf.
64867         Refer to README-prereq, if prerequisites are not satisfied.
64869 2009-06-27  Eric Blake  <ebb9@byu.net>
64871         tests: add test for bogus NULL definition
64872         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64873         * tests/test-stdlib.c: Likewise.
64874         * tests/test-string.c: Likewise.
64875         * tests/test-locale.c: Likewise.
64876         * tests/test-unistd.c: Likewise.
64877         * modules/stdio-tests (Depends-on): Add verify.
64878         * modules/stdlib-tests (Depends-on): Likewise.
64879         * modules/string-tests (Depends-on): Likewise.
64880         * modules/locale-tests (Depends-on): Likewise.
64881         * modules/unistd-tests (Depends-on): Likewise.
64883 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64885         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64886         self-explaining comment.
64887         * m4/selinux-selinux-h: Update serial.
64888         (gl_LIBSELINUX): New macro, adding a warning for missing development
64889         packages to code extracted from...
64890         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64891         Add warning for missing development packages here, too.
64893 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64895         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64897 2009-06-25  Eric Blake  <ebb9@byu.net>
64899         version-etc: fix regression
64900         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64901         gcc.
64902         (version_etc): Use it, to catch bugs with trailing NULL.
64903         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64904         (version_etc_va): Fix logic bug.
64905         * modules/version-etc-tests: Add test.
64906         * tests/test-version-etc.c: New file.
64907         * tests/test-version-etc.sh: Likewise.
64909 2009-06-25  Sam Steingold  <sds@gnu.org>
64911         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64912         mbtowc declaration.
64914 2009-06-25  Eric Blake  <ebb9@byu.net>
64916         fpurge: migrate into <stdio.h>
64917         * lib/fpurge.h: Delete...
64918         * lib/stdio.in.h (fpurge): ...and declare here, instead.
64919         * lib/fpurge.c (fpurge): Change declaring header.
64920         * modules/fpurge (Files): Drop deleted file.
64921         (Depends-on): Add stdio.
64922         (configure.ac): Set witness.
64923         * modules/stdio (Makefile.am): Support fpurge macros.
64924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64925         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
64926         * lib/fflush.c: Update client.
64927         * tests/test-fpurge.c: Likewise.
64928         * NEWS: Mention the change.
64930 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64932         * lib/argp-version-etc.c (program_authors): Add const
64933         qualifier.
64934         * lib/version-etc.c: Fix typos in the comments.
64935         * modules/argp-version-etc: Depends on version-etc.
64937 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64939         argp-version-etc: new module.
64941         * lib/argp-version-etc.c: New file.
64942         * lib/argp-version-etc.h: New file.
64943         * modules/argp-version-etc: New file.
64944         * modules/argp-version-etc-tests: New file.
64945         * tests/test-argp-version-etc.c: New test.
64946         * tests/test-argp-version-etc-1.sh: New test.
64948 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64950         Provide additional interfaces and documentation for version-etc
64951         module.
64953         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
64954         interfaces.
64955         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
64956         prototypes.
64958 2009-06-24  Bruno Haible  <bruno@clisp.org>
64960         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
64961         HAVE_LIB${NAME} macro.
64962         Reported by Sam Steingold <sds@gnu.org>.
64964 2009-06-23  Simon Josefsson  <simon@josefsson.org>
64966         * modules/hash-tests (test_hash_LDADD): Link to libintl when
64967         needed.
64969 2009-06-21  Bruno Haible  <bruno@clisp.org>
64971         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
64972         work.
64973         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
64974         together with LIB${NAME}, LTLIB${NAME}.
64975         Reported by Sam Steingold <sds@gnu.org>.
64977 2009-06-20  Jim Meyering  <meyering@redhat.com>
64979         tests: make sc_require_test_exit_idiom more generic
64980         * top/maint.mk (Exit_witness_file): New overridable variable.
64981         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
64982         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
64984 2009-06-19  Jim Meyering  <meyering@redhat.com>
64986         hash: reverse order of src/dst parameters in an internal interface
64987         * lib/hash.c (transfer_entries): Reverse order of parameters to
64988         put DST before SRC.  Adjust callers.
64990         tests: test-hash: avoid wholesale duplication
64991         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
64992         Instead, use a loop and add a single conditional.
64994         tests: test-hash: allow seed selection via a command line argument
64995         * tests/test-hash.c (get_seed): New function.
64996         (main): Use it.
64998 2009-06-19  Eric Blake  <ebb9@byu.net>
65000         hash: avoid memory leak on allocation failure
65001         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
65002         failure.  Factor repeated algorithm...
65003         (transfer_entries): ...into new helper routine.
65004         (hash_delete): React to hash_rehash return value.
65006         hash: reduce memory pressure in hash_rehash no-op case
65007         * lib/hash.c (next_prime): Avoid overflow.
65008         (hash_initialize): Factor bucket size computation...
65009         (compute_bucket_size): ...into new helper function.
65010         (hash_rehash): Use new function and open coding to reduce memory
65011         pressure, and avoid a memory leak in USE_OBSTACK code.
65012         Reported by Jim Meyering.
65014 2009-06-18  Eric Blake  <ebb9@byu.net>
65016         hash: make rotation more obvious
65017         * modules/hash (Depends-on): Add bitrotate and stdint.
65018         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
65019         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
65020         (SIZE_MAX): Rely on headers for definition.
65021         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
65022         (raw_hasher): Use rotr_sz.
65023         Suggested by Jim Meyering.
65025         hash: fix memory leak in last patch
65026         * lib/hash.c (hash_rehash): Avoid memory leak.
65028         hash: avoid no-op rehashing
65029         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
65031         hash: provide default callback functions
65032         * lib/hash.c (raw_hasher, raw_comparator): New functions.
65033         (hash_initialize): Use them as defaults.
65034         * tests/test-hash.c (main): Test this.
65036         hash: minor optimization
65037         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
65038         when possible.
65039         (hash_initialize): Document this promise.
65040         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
65041         * tests/test-hash.c (hash_compare_strings): Test this.
65043 2009-06-18  Bruno Haible  <bruno@clisp.org>
65045         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
65046         going to be replaced anyway.
65048 2009-06-18  Bruno Haible  <bruno@clisp.org>
65050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
65051         in one place.
65052         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
65053         be replaced anyway.
65055 2009-06-18  Eric Blake  <ebb9@byu.net>
65057         hash: check for resize before insertion
65058         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
65059         threshold before insertion, so that a pathological hash_rehash
65060         that fills every bucket can still trigger another rehash.
65062 2009-06-18  Jim Meyering  <meyering@redhat.com>
65064         hash-tests: add a loop around the small tests
65065         * tests/test-hash.c (main): Repeat small tests with selected
65066         small initial table sizes.
65068 2009-06-17  Eric Blake  <ebb9@byu.net>
65070         hash: minor cleanups
65071         * lib/hash.h (hash_entry): Make opaque, by moving...
65072         * lib/hash.c (hash_entry): ...here.
65073         (hash_insert): Clarify restrictions on what can be inserted.
65074         (hash_get_next): Clarify when it is safe to remove an element
65075         during traversal.
65076         (check_tuning): Skip verification when tuning is known safe.
65077         (hash_initialize): Clarify restrictions on tuning.
65079 2009-06-17  Jim Meyering  <jim@meyering.net>
65080         and Eric Blake  <ebb9@byu.net>
65082         hash-tests: new module
65083         * modules/hash-tests: New file.
65084         * tests/test-hash.c: New file.
65086 2009-06-17  Eric Blake  <ebb9@byu.net>
65088         strstr-simple: document new module
65089         * MODULES.html.sh: Document new module.
65091         strstr, strcasestr: replace on platforms with broken memchr
65092         * modules/strstr: Split into...
65093         * modules/strstr-simple: ...new module that does not care about
65094         performance, but does care about glibc bug.
65095         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
65096         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
65097         if platform memchr is broken, per Debian bug 521737.
65098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
65099         memchr.
65100         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
65101         * doc/posix-functions/strstr.texi (strstr): Document the fix.
65102         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
65103         * modules/mountlist (Depends-on): Add strstr-simple.
65104         * modules/gen-uni-tables (Depends-on): Likewise.
65105         * modules/argz (Depends-on): Add strstr.
65107 2009-06-17  Bruno Haible  <bruno@clisp.org>
65109         * modules/posix_spawn-internal (Depends-on): Add errno.
65111 2009-06-17  Bruno Haible  <bruno@clisp.org>
65113         Define missing ESTALE on Interix 3.5.
65114         * lib/errno.in.h (ESTALE): Assign a value if missing.
65115         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
65116         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
65117         missing.
65118         * doc/posix-headers/errno.texi: Mention the Interix bug.
65119         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
65121 2009-06-15  Eric Blake  <ebb9@byu.net>
65123         memchr, memchr2: add valgrind exception
65124         * lib/memchr.valgrind: New file.
65125         * lib/memchr2.valgrind: New file.
65126         * modules/memchr (Files): Distribute valgrind file.
65127         * modules/memchr2 (Files): Likewise.
65129         docs: memchr is no longer obsolete
65130         * MODULES.html.sh: Move memchr from obsolete to string.h section.
65131         * lib/string.in.h (memchr): Simplify logic.
65133 2009-06-14  Jim Meyering  <meyering@redhat.com>
65135         link-follow: fix the "checking..." message to not mention trailing slash
65136         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
65137         never considered trailing slashes.
65139 2009-06-14  Bruno Haible  <bruno@clisp.org>
65141         * m4/memchr.m4: Mention also the bug on IA-64.
65142         * doc/posix-functions/memchr.texi: Likewise.
65144 2009-06-12  Eric Blake  <ebb9@byu.net>
65146         memchr: detect broken x86_64 and alpha implementations
65147         * modules/memchr-tests (Depends-on): Move mmap detection...
65148         * modules/memchr (Depends-on): ...here.
65149         (configure.ac): Set indicator.
65150         * lib/string.in.h (memchr): Declare replacement.
65151         * modules/string (Makefile.am): Trigger replacement.
65152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
65153         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
65154         bugs.
65155         * doc/posix-functions/memchr.texi (memchr): Document the bug.
65156         * modules/getpagesize (License): Relax license.
65158 2009-06-11  Bruno Haible  <bruno@clisp.org>
65160         * lib/idpriv.h: Add more references.
65162 2009-06-08  Bruno Haible  <bruno@clisp.org>
65164         Tests for module 'idpriv-droptemp'.
65165         * modules/idpriv-droptemp-tests: New file.
65166         * tests/test-idpriv-droptemp.sh: New file.
65167         * tests/test-idpriv-droptemp.su.sh: New file.
65168         * tests/test-idpriv-droptemp.c: New file.
65170         New module 'idpriv-droptemp'.
65171         * lib/idpriv-droptemp.c: New file.
65172         * modules/idpriv-droptemp: New file.
65174 2009-06-08  Bruno Haible  <bruno@clisp.org>
65176         Tests for module 'idpriv-drop'.
65177         * modules/idpriv-drop-tests: New file.
65178         * tests/test-idpriv-drop.sh: New file.
65179         * tests/test-idpriv-drop.su.sh: New file.
65180         * tests/test-idpriv-drop.c: New file.
65182         New module 'idpriv-drop'.
65183         * lib/idpriv.h: New file.
65184         * lib-idpriv-drop.c: New file.
65185         * m4/idpriv.m4: New file.
65186         * modules/idpriv-drop: New file.
65188 2009-06-08  Bruno Haible  <bruno@clisp.org>
65190         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
65191         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65192         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65193         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65194         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65195         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65196         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65198 2009-06-08  Eric Blake  <ebb9@byu.net>
65200         test-strstr: use memory fence, when possible
65201         * tests/test-strstr.c (main): Use memory fence, in order to be
65202         more likely to trigger Debian bug 521737.
65203         * modules/strstr-tests (Files): Pull in additional files.
65205         memchr: no longer obsolete, for wider field testing
65206         * modules/memchr (Status, Notice): Delete, this module is no
65207         longer obsolete.
65208         * modules/vasnprintf (Depends-on): Add memchr.
65210 2009-06-07  Jim Meyering  <meyering@redhat.com>
65212         hash: declare some functions with the warn_unused_result attribute
65213         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
65215 2009-06-07  Bruno Haible  <bruno@clisp.org>
65217         * tests/test-alignof.c: Don't test int64_t if it does not exist.
65218         Reported by Eric Blake.
65220 2009-06-06  Eric Blake  <ebb9@byu.net>
65222         test-alignof: fix typo with long double
65223         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
65224         compiler error.
65226 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
65228         Escape non-texinfo { and }s.
65229         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
65230         markup error.
65232 2009-06-04  Jim Meyering  <meyering@redhat.com>
65234         gitlog-to-changelog: don't infloop on an empty commit log
65235         * build-aux/gitlog-to-changelog: Warn about an empty log message.
65236         Reported by Boris Petersen <transacid@centerim.org>.
65238 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
65240         version-etc: extend for packagers
65241         Add three new configure options, intended for packagers:
65242           --with-packager="packager name"
65243           --with-packager-version="packager-specific version"
65244           --with-packager-bug-reports="packager bug reporting"
65245         An example with coreutils:
65246           $ ./configure \
65247             --with-packager=Gentoo \
65248             --with-packager-bug-report=http://bugs.gentoo.org/ \
65249             --with-packager-version="patchset 1.6"
65250           $ ./src/ls --version | head -n2
65251           ls (GNU coreutils) 7.1-dirty
65252           Packaged by Gentoo (patchset 1.6)
65253         Note that the bug reporting info via --help doesn't show up because
65254         coreutils uses its own custom emit_bug_reporting_address() implementation
65255         in src/system.h.  If it didn't, it'd look like:
65256           $ ./src/ls --help | tail -n4
65257           Report bugs to <bug-coreutils@gnu.org>.
65258           Report Gentoo bugs to <http://bugs.gentoo.org/>.
65259           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
65260           General help using GNU software: <http://www.gnu.org/gethelp/>.
65261         * lib/version-etc.c: Print new information, if provided.
65262         * m4/version-etc.m4: New file.
65263         * modules/version-etc (Files): Add m4/version-etc.m4.
65264         (configure.ac): Add gl_VERSION_ETC.
65266 2009-05-31  Bruno Haible  <bruno@clisp.org>
65268         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
65269         and 'int64_t'.
65270         * modules/alignof-tests (Dependencies): Add stdint.
65271         Reported by Eric Blake.
65273 2009-05-31  Bruno Haible  <bruno@clisp.org>
65275         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
65276         restriction due to compiler bugs.
65277         Reported by Eric Blake.
65279 2009-05-31  Simon Josefsson  <simon@josefsson.org>
65280             Bruno Haible  <bruno@clisp.org>
65282         Fix test-alignof failure.
65283         * lib/alignof.h (alignof_slot): New macro.
65284         (alignof_type): New macro, with the same semantics as the previous
65285         'alignof'.
65286         (alignof): Alias to alignof_slot.
65287         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
65288         check that the results are usable as constant expressions.
65290 2009-05-31  Bruno Haible  <bruno@clisp.org>
65292         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
65293         * tests/test-memchr.c (main): Check that memchr does not read past the
65294         first occurrence of the byte.
65295         * tests/test-strstr.c (main): Update comment.
65296         Suggested by Eric Blake.
65298 2009-05-30  Bruno Haible  <bruno@clisp.org>
65300         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
65301         detail how to use dumpbin.
65302         Reported by David Byron <dbyron@dbyron.com>.
65304 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65306         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
65308 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65310         * m4/manywarnings.m4: Add GCC 4.4 warnings.
65312 2009-05-28  Bruno Haible  <bruno@clisp.org>
65314         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
65315         build-aux/ files.
65317 2009-05-28  Simon Josefsson  <simon@josefsson.org>
65319         * gnulib-tool (func_import): Transform license on build-aux/ files too.
65321 2009-05-27  Simon Josefsson  <simon@josefsson.org>
65323         * gnulib-tool (sed_transform_main_lib_file)
65324         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
65325         regexps.
65327 2009-05-26  Simon Josefsson  <simon@josefsson.org>
65329         * tests/test-strstr.c: Add another self-test.
65330         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
65331         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
65333 2009-05-23  Bruno Haible  <bruno@clisp.org>
65335         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
65336         change.
65338 2009-05-21  Bruno Haible  <bruno@clisp.org>
65340         Simplify use of mode_t varargs.
65341         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
65342         uses 'mode_t' or 'int'.
65343         * lib/openat.c (openat): Likewise.
65344         * lib/open-safer.c (open_safer): Likewise.
65345         * m4/mode_t.m4: New file.
65346         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
65347         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
65348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
65349         * modules/open (Files): Add m4/mode_t.m4.
65350         * modules/openat (Files): Likewise.
65351         * modules/fcntl-safer (Files): Likewise.
65352         Suggested by Eric Blake.
65354 2009-05-21  Pádraig Brady  <P@draigbrady.com>
65356         * doc/glibc-functions/fallocate.texi: New file.
65357         * doc/gnulib.texi: Include it.
65359 2009-05-21  Eric Blake  <ebb9@byu.net>
65360             Bruno Haible  <bruno@clisp.org>
65362         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
65363         invocations.
65364         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
65366 2009-05-21  Eric Blake  <ebb9@byu.net>
65367             Bruno Haible  <bruno@clisp.org>
65369         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
65370         include_next. Fix of 2008-11-20 commit.
65371         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
65372         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
65373         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
65374         NEXT_MATH_H.
65375         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
65376         instead of NEXT_MATH_H.
65378 2009-05-21  Bruno Haible  <bruno@clisp.org>
65380         Avoid redefinition warnings for SIZE_MAX.
65381         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
65382         Reported by Simon Josefsson.
65384 2009-05-21  Bruno Haible  <bruno@clisp.org>
65386         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
65387         AC_CACHE_VAL.
65389 2009-05-20  Bruno Haible  <bruno@clisp.org>
65391         Make zeroptr.h work on mingw.
65392         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
65393         mprotect.
65394         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
65395         * modules/memchr2-tests (configure.ac): Likewise.
65396         * modules/memcmp-tests (configure.ac): Likewise.
65397         * modules/memmem-tests (configure.ac): Likewise.
65398         * modules/memrchr-tests (configure.ac): Likewise.
65399         Reported by Simon Josefsson.
65401 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65403         * tests/test-glob.c: Include string.h for strcmp prototype.
65405 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65407         * modules/getdelim (Depends-on): Add explicit stdint, although it
65408         was implicitly already pulled in via realloc-posix.
65409         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
65411 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65413         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
65414         G. Christensen" <tgc@jupiterrise.com>.
65415         * m4/sys_socket_h.m4: Check for sa_family_t.
65416         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
65417         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
65418         * tests/test-sys_socket.c: Check that sa_family_t works.
65420 2009-05-18  Eric Blake  <ebb9@byu.net>
65422         maint.mk: allow gnulib_dir in VPATH build
65423         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
65425 2009-05-15  Jim Meyering  <meyering@redhat.com>
65427         maint.mk: Give gnulib_dir a default definition.
65428         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
65429         Thus, most packages no longer need to specify this variable in cfg.mk
65431 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
65433         rename.m4: fix typos that would make non-mingw cross-configure fail
65434         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
65436 2009-05-13  Eric Blake  <ebb9@byu.net>
65438         mmap-anon: avoid out-of-order autoconf expansion
65439         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
65440         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
65441         * modules/memchr-tests (Depends-on): Add extensions.
65442         * modules/memchr2-tests (Depends-on): Add extensions.
65443         * modules/memcmp-tests (Depends-on): Add extensions.
65444         * modules/memmem-tests (Depends-on): Add extensions.
65445         * modules/memrchr-tests (Depends-on): Add extensions.
65447 2009-05-13  Bruno Haible  <bruno@clisp.org>
65449         Make some tests ISO C 99 compliant.
65450         * tests/zerosize-ptr.h: New file.
65451         * tests/test-memchr.c: Include zerosize-ptr.h.
65452         (main): Use a zero-size object pointer instead of NULL.
65453         * tests/test-memchr2.c: Include zerosize-ptr.h.
65454         (main): Use a zero-size object pointer instead of NULL.
65455         * tests/test-memcmp.c: Include zerosize-ptr.h.
65456         (main): Use a zero-size object pointer instead of NULL.
65457         * tests/test-memmem.c: Include zerosize-ptr.h.
65458         (main): Use a zero-size object pointer instead of NULL.
65459         * tests/test-memrchr.c: Include zerosize-ptr.h.
65460         (main): Use a zero-size object pointer instead of NULL.
65461         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
65462         m4/mmap-anon.m4.
65463         (Depends-on): Add getpagesize.
65464         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65465         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
65466         m4/mmap-anon.m4.
65467         (Depends-on): Add getpagesize.
65468         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65469         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
65470         m4/mmap-anon.m4.
65471         (Depends-on): Add getpagesize.
65472         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65473         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
65474         m4/mmap-anon.m4.
65475         (Depends-on): Add getpagesize.
65476         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65477         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
65478         m4/mmap-anon.m4.
65479         (Depends-on): Add getpagesize.
65480         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65482 2009-05-12  Bruno Haible  <bruno@clisp.org>
65484         Tests for module 'alignof'.
65485         * modules/alignof-tests: New file.
65486         * tests/test-alignof.c: New file.
65488 2009-05-12  Bruno Haible  <bruno@clisp.org>
65490         Fix alignof macro.
65491         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
65492         vendor compilers that are always correct.
65494 2009-05-12  Bruno Haible  <bruno@clisp.org>
65496         Make the MAP_ANONYMOUS detection work on HP-UX 11.
65497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
65498         not whether its fully works.
65500 2009-05-12  Bruno Haible  <bruno@clisp.org>
65502         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
65504 2009-05-12  Jim Meyering  <meyering@redhat.com>
65506         * top/maint.mk: Adjust backslash alignment.
65508 2009-05-11  Simon Josefsson  <simon@josefsson.org>
65510         * top/maint.mk: Make $(srcdir)/build-aux configurable.
65512 2009-05-11  Eric Blake  <ebb9@byu.net>
65514         argp: avoid undefined behavior
65515         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
65516         macros.
65518 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65520         * tests/test-vc-list-files-git.sh: Do git config of user.email and
65521         user.name to prevent git commit from complaining.
65523 2009-05-10  Bruno Haible  <bruno@clisp.org>
65525         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
65526         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
65527         it rewrites every file name only once.
65528         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
65530 2009-05-08  Bruno Haible  <bruno@clisp.org>
65532         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
65533         instead of 'max'.
65535 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65537         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
65538         sockaddr_storage test.
65540 2009-05-07  Simon Josefsson  <simon@josefsson.org>
65542         * modules/sys_socket (Makefile.am): Substitute
65543         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
65544         * m4/sys_socket_h.m4: Check for sockaddr_storage.
65545         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
65546         * tests/test-sys_socket.c: Check sockaddr_storage.
65548 2009-05-08  Bruno Haible  <bruno@clisp.org>
65550         New module 'alignof'.
65551         * lib/alignof.h: New file.
65552         * modules/alignof: New file.
65554 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65555             Bruno Haible  <bruno@clisp.org>
65557         Fix test-file-has-acl on FreeBSD.
65558         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
65559         mask is implicitly added.
65560         * tests/test-file-has-acl.c: Include <signal.h>.
65561         (main): Terminate the test after 5 seconds.
65562         * modules/acl-tests (configure.ac): Check for alarm function.
65564 2009-05-04  Bruno Haible  <bruno@clisp.org>
65566         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
65567         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
65568         * modules/errno (configure.ac): Drop AC_REQUIRE.
65569         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
65570         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
65572 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65574         * modules/glob-tests: New module.
65575         * tests/test-glob.c: Add.
65577 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65579         * modules/fnmatch-tests: New module.
65580         * tests/test-fnmatch.c: Add.
65582 2009-05-04  Eric Blake  <ebb9@byu.net>
65584         maint: make the new no-submodule-changes rule VPATH-safe
65585         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
65587 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65588             Bruno Haible  <bruno@clisp.org>
65590         acl: Fix infinite loop on FreeBSD.
65591         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
65592         of return value from acl_get_entry.
65593         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65594         Likewise.
65596 2009-05-03  Bruno Haible  <bruno@clisp.org>
65598         * lib/acl-internal.h (acl_entries): Clarify return value.
65599         * lib/acl_entries.c (acl_entries): Likewise.
65601 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65603         Bug fix in acl module.
65604         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65606 2009-05-03  Bruno Haible  <bruno@clisp.org>
65608         Create gperf-generated file in the source dir, not in the build dir.
65609         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65610         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65611         * modules/unicase/locale-language (unicase/locale-languages.h):
65612         Likewise.
65613         * modules/unicase/special-casing (unicase/special-casing-table.h):
65614         Likewise.
65615         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65616         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65617         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65618         Reported by Ralf Wildenhues.
65620 2009-05-03  Bruno Haible  <bruno@clisp.org>
65622         * modules/fnmatch (Description, configure.ac): Taken from
65623         fnmatch-posix.
65624         * modules/fnmatch-posix: Turn into a symbolic reference to the
65625         'fnmatch' module, and deprecate.
65626         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65628 2009-05-03  Bruno Haible  <bruno@clisp.org>
65630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65631         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65632         Reported by Ralf Wildenhues.
65634 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65636         * m4/fnmatch.m4: Fix fnmatch re-define.
65638 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65640         priv-set: new module and tests; adapt write-any-file
65641         * lib/priv-set.c: New file.
65642         * lib/priv-set.h: New file.
65643         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65644         * lib/write-any-file.c: Simplify by using priv-set module.
65645         * m4/priv-set.m4: New file.
65646         * modules/priv-set: New file.
65647         * modules/unlinkdir: Add dependency on priv-set module.
65648         * modules/write-any-file: Likewise.
65650         Tests for module 'priv-set'.
65651         * modules/priv-set-tests: New file.
65652         * tests/test-priv-set.c: New file.
65654 2009-05-03  Jim Meyering  <meyering@redhat.com>
65655             Bruno Haible  <bruno@clisp.org>
65657         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65658         use the converted UTF-8 variant of the name instead.
65660 2009-05-03  Jim Meyering  <meyering@redhat.com>
65662         tests: tighten some getdate tests
65663         * tests/test-getdate.c (main): Tighten tests: require equality,
65664         not just greater than.  Set TZ envvar to UTC0.
65666 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65668         getdate: correctly interpret "next monday" when run on a Monday
65669         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65670         that e.g., "next tues" (when run on a tuesday) results in a date
65671         that is one week in the future, and not today's date.
65672         I.e., add a week when the wday is the same as the current one.
65673         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65674         and earlier by Martin Bernreuther and Jan Minář.
65675         * tests/test-getdate.c (main): Check that "next DAY" is always in
65676         the future and that "last DAY" is always in the past.
65678 2009-05-02  Jim Meyering  <meyering@redhat.com>
65680         build: ensure that a release build fails when a submodule is unclean
65681         * top/maint.mk (no-submodule-changes): New rule.
65682         (alpha beta major): Depend on it.
65684 2009-05-02  Bruno Haible  <bruno@clisp.org>
65686         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65687         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65688         shell variable gl_fnmatch_required to detect which variant is
65689         requested.
65690         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65691         gl_FUNC_FNMATCH_POSIX.
65692         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65693         exclude fnmatch-posix.
65695 2009-05-02  Bruno Haible  <bruno@clisp.org>
65697         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65698         * modules/mbsrtowcs (License): Change to LGPLv2+.
65699         * modules/strnlen1 (License): Likewise.
65700         Reported by Simon Josefsson.
65702 2009-05-02  Bruno Haible  <bruno@clisp.org>
65704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65705         "cross".
65706         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65707         gnulib-tool was called with option --source-base=lib.
65709 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65711         Use automake *-local hooks without commands, for extensibility.
65712         * modules/localcharset (Makefile.am): Rename install-exec-local
65713         rule to install-exec-localcharset, and make it a prerequisite of
65714         install-exec-local.  Likewise, rename the uninstall-local rule to
65715         uninstall-localcharset, and make it a prerequisite of the former.
65717 2009-05-01  Bruno Haible  <bruno@clisp.org>
65719         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65720         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65721         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65723         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65724         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65725         m4/locale-zh.m4, m4/codeset.m4.
65727         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65728         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65729         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65730         m4/locale-zh.m4.
65732         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65733         REPLACE_WCRTOMB if mbstate_t must be replaced.
65734         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65735         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65737 2009-05-01  Bruno Haible  <bruno@clisp.org>
65739         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65740         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65741         dngettext, dcngettext, textdomain, bindtextdomain,
65742         bind_textdomain_codeset): Undefine before redefining.
65744 2009-04-30  Bruno Haible  <bruno@clisp.org>
65746         Fix bug introduced on 2009-04-25.
65747         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
65748         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
65749         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
65750         is defined.
65751         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
65752         is defined.
65753         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
65754         is defined.
65755         Reported by Elbert_Pol <elbert.pol@gmail.com>.
65757 2009-04-28  Bruno Haible  <bruno@clisp.org>
65759         Comment tweaks.
65760         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
65761         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
65762         * lib/unicase.h (u*_casexfrm): Likewise.
65763         Reported by Paolo Bonzini.
65765 2009-04-28  Bruno Haible  <bruno@clisp.org>
65767         Fix a compilation error.
65768         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
65769         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65770         Reported by Jim Meyering.
65772 2009-04-27  Bruno Haible  <bruno@clisp.org>
65774         New module 'libunistring'.
65775         * modules/libunistring: New file.
65776         * m4/libunistring.m4: New file.
65777         * MODULES.html.sh (Unicode string functions): Add it.
65779 2009-04-27  Eric Blake  <ebb9@byu.net>
65781         maint.mk: allow package-specific header to provide <config.h>
65782         * top/maint.mk (sc_require_config_h): New variable.
65783         (sc_require_config_h, sc_require_config_h_first): Use it.
65785 2009-04-27  Simon Josefsson  <simon@josefsson.org>
65787         * top/maint.mk (sc_avoid_if_before_free): Except
65788         useless-if-before-free script.
65790 2009-04-27  Eric Blake  <ebb9@byu.net>
65792         maintainer-makefile: depend on all required helper scripts
65793         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
65794         useless-if-before-free.
65795         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
65796         version, rather than assuming gnulib checkout is available.
65797         Reported by Simen Josefsson.
65799 2009-04-26  Bruno Haible  <bruno@clisp.org>
65801         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
65802         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
65803         "../" or "..".
65805 2009-04-26  Bruno Haible  <bruno@clisp.org>
65807         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65808         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
65809         AC_LIB_HAVE_LINKFLAGS.
65811 2009-04-26  Bruno Haible  <bruno@clisp.org>
65813         Simplify calling convention of u*_conv_from_encoding.
65814         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
65815         u32_conv_from_encoding): Expect a resultbuf argument and return the
65816         result directly as a pointer.
65817         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
65818         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
65819         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
65820         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
65821         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
65822         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65823         Update.
65824         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
65825         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
65826         * lib/vasnprintf.c (VASNPRINTF): Update.
65827         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
65828         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
65829         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
65830         * NEWS: Mention the change.
65832 2009-04-26  Bruno Haible  <bruno@clisp.org>
65834         Simplify calling convention of u*_conv_to_encoding.
65835         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65836         u32_conv_to_encoding): Expect a resultbuf argument and return the
65837         result directly as a pointer.
65838         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65839         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
65840         freeing scaled_offsets if mem_iconveha failed.
65841         * lib/unicase/u-casexfrm.h (FUNC): Update.
65842         * lib/uninorm/u-normxfrm.h (FUNC): Update.
65843         * lib/vasnprintf.c (VASNPRINTF): Update.
65844         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
65845         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
65846         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
65847         * NEWS: Mention the change.
65849 2009-04-26  Bruno Haible  <bruno@clisp.org>
65851         Avoid test failures on AIX and OSF/1.
65852         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
65853         malloc(0).
65854         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65855         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65856         Likewise.
65857         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65858         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65859         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65860         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65861         * doc/posix-functions/malloc.texi: Document the portability problem
65862         related to malloc(0).
65864 2009-04-26  Bruno Haible  <bruno@clisp.org>
65866         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65867         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65868         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65870 2009-04-25  Bruno Haible  <bruno@clisp.org>
65872         Avoid link error when creating a namespace clean library.
65873         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65874         as macro with arguments if already defined as an alias.
65875         * lib/signbitf.c (gl_signbitf): Don't undefine.
65876         * lib/signbitd.c (gl_signbitd): Don't undefine.
65877         * lib/signbitl.c (gl_signbitl): Don't undefine.
65879 2009-04-25  Jim Meyering  <meyering@redhat.com>
65881         vc-list-files: fix another quoting bug
65882         * build-aux/vc-list-files: Avoid sed backslash expansion
65883         of pathological directory names.
65885 2009-04-25  Eric Blake  <ebb9@byu.net>
65887         vc-list-files: fix shell quoting error
65888         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65889         timestamp.
65891 2009-04-25  Jim Meyering  <meyering@redhat.com>
65893         vc-list-files: restore lost functionality with subdir argument
65894         * build-aux/vc-list-files: When given a non-"." sub-directory
65895         argument, substitute the $dir/ prefix back onto each resulting name.
65896         Otherwise, coreutils' root_tests check would fail.
65898 2009-04-24  Eric Blake  <ebb9@byu.net>
65900         vc-list-files: ignore git symlinks
65901         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65902         than ls-files, to ignore git symlinks.
65904         maint.mk: import improvements from m4
65905         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65906         (move_if_change): Delete unused macro.
65907         (news-date-check, vc-diff-check): Support VPATH builds.
65908         (announcement): Likewise.  Split --bootstrap-tools list...
65909         (boostrap-tools): ...into separate list, which can be overridden
65910         in cfg.mk.
65911         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65912         requiring dependency on useless-if-before-free module.
65913         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65914         Support VPATH builds.
65916 2009-04-24  Jim Meyering  <meyering@redhat.com>
65918         maint.mk: remove coreutils-specific rules and variables
65919         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
65920         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
65921         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
65923         maint.mk: remove obsolete rule
65924         * top/maint.mk (rel-check): Remove rule.
65925         (WGET, WGETFLAGS): Remove now-unused variables.
65927 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65929         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
65930         consistency.
65932         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
65933         '$(PATH_SEPARATOR)' instead of ':'.
65935 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65937         * lib/getopt1.c (main): Use 'const' for static array.
65939 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65941         * top/maint.mk: Sync with coreutils.
65942         * NEWS: Explain incompatibilities.
65944 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65945             Bruno Haible  <bruno@clisp.org>
65947         Fix cross-compilation results.
65948         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
65949         statement, as third argument of AC_TRY_RUN.
65950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65952         Likewise.
65953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65954         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65955         Likewise.
65956         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65957         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
65958         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
65960 2009-04-20  Bruno Haible  <bruno@clisp.org>
65962         Avoid test failure on mingw.
65963         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
65965 2009-04-20  Bruno Haible  <bruno@clisp.org>
65967         Avoid compilation error on mingw.
65968         * modules/localename-tests (Depends-on): Add locale.
65970 2009-04-19  Bruno Haible  <bruno@clisp.org>
65972         Support for building a shared library on Windows platforms.
65973         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
65974         (main): Test the presence of UNINORM_NFC here.
65975         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
65976         (main): Test the presence of UNINORM_NFD here.
65977         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
65978         (main): Test the presence of UNINORM_NFKC here.
65979         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
65980         (main): Test the presence of UNINORM_NFKD here.
65982 2009-04-19  Bruno Haible  <bruno@clisp.org>
65984         Avoid a compiler warning.
65985         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
65986         Change type of variable 'sequence'.
65988 2009-04-19  Bruno Haible  <bruno@clisp.org>
65990         * modules/configmake (Makefile.am): When the contents of configmake.h
65991         does not change, arrange to preserve its modification time.
65993 2009-04-17  Simon Josefsson  <simon@josefsson.org>
65995         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
65996         gettext domain.
65998 2009-04-16  Jim Meyering  <meyering@redhat.com>
66000         useless-if-before-free: improve conversion code
66001         * build-aux/useless-if-before-free: Adjust code-in-comment to match
66002         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
66004 2009-04-14  Bruno Haible  <bruno@clisp.org>
66006         * modules/fcntl (Depends-on): Add extensions.
66007         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
66009 2009-04-12  Ben Pfaff  <blp@gnu.org>
66011         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
66012         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
66014 2009-03-20  Ben Pfaff  <blp@gnu.org>
66016         Make rename replace existing destinations on Windows.
66017         * m4/rename.m4: Add test for Mingw.
66018         * lib/rename.c: Add rename replacement that uses MoveFileEx with
66019         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
66020         * doc/posix-functions/rename.texi: Document.
66022 2009-04-10  Bruno Haible  <bruno@clisp.org>
66024         New include file "iconveh.h".
66025         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
66026         * lib/striconveh.h: Include it.
66027         (enum iconv_ilseq_handler): Remove definition.
66028         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
66029         striconveh.h.
66030         * lib/striconveha.c: Include striconveh.h.
66031         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
66032         * modules/striconveh (Files): Add lib/iconveh.h.
66033         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
66034         lib/striconveh.h.
66036 2009-04-10  Bruno Haible  <bruno@clisp.org>
66038         * lib/uniconv.h: Update comment.
66040 2009-04-10  Bruno Haible  <bruno@clisp.org>
66042         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
66043         always.
66044         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66045         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66046         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66047         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
66048         "unistring-notinline.h", so that the function gets defined always.
66049         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66050         * lib/unistr/u8-uctomb.c: Likewise.
66051         * lib/unistr/u16-mbtouc.c: Likewise.
66052         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66053         * lib/unistr/u16-uctomb.c: Likewise.
66054         * lib/unistr/u32-mbtouc.c: Likewise.
66055         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66056         * lib/unistr/u32-uctomb.c: Likewise.
66058 2009-04-10  Bruno Haible  <bruno@clisp.org>
66060         Mark 'utime' obsolete.
66061         * modules/utime (Status, Notice): New sections.
66062         Suggested by Jim Meyering.
66064         Fix cross-compile guess for utime test.
66065         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
66066         autoconf.
66067         * doc/posix-functions/utime.texi: Give more precisions.
66068         Reported by Jan <ipif@ymail.com>.
66070 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
66072         filevercmp: correct today's change
66073         * lib/filevercmp.c: Also handle coreutils' test inputs.
66074         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
66076         Fix regression in 'filevercmp' module. Thanks Sven Joachim
66077         for reporting it.
66078         * lib/filevercmp.c: Special handle for "", "." and "..".
66079         * tests/test-filevercmp.c: Enlarge the set suite.
66081 2009-04-07  Jim Meyering  <meyering@redhat.com>
66083         useless-if-before-free: show how to remove braced useless free, too
66084         * build-aux/useless-if-before-free: still only in a comment, though.
66086 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
66088         maint.mk: import changes to syntax-check macros from coreutils
66089         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
66090         Use them in the relevant macros.
66092 2009-04-06  Bruno Haible  <bruno@clisp.org>
66094         Fix unportable use of bit-fields.
66095         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
66096         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
66097         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
66099 2009-04-06  Bruno Haible  <bruno@clisp.org>
66101         Avoid test failures on AIX and OSF/1.
66102         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
66103         that malloc(0) = NULL.
66104         * tests/unicase/test-u8-tolower.c (check): Likewise.
66105         * tests/unicase/test-u8-totitle.c (check): Likewise.
66106         * tests/unicase/test-u8-toupper.c (check): Likewise.
66107         * tests/unicase/test-u16-casefold.c (check): Likewise.
66108         * tests/unicase/test-u16-tolower.c (check): Likewise.
66109         * tests/unicase/test-u16-totitle.c (check): Likewise.
66110         * tests/unicase/test-u16-toupper.c (check): Likewise.
66111         * tests/unicase/test-u32-casefold.c (check): Likewise.
66112         * tests/unicase/test-u32-tolower.c (check): Likewise.
66113         * tests/unicase/test-u32-totitle.c (check): Likewise.
66114         * tests/unicase/test-u32-toupper.c (check): Likewise.
66115         * tests/uninorm/test-u8-nfc.c (check): Likewise.
66116         * tests/uninorm/test-u8-nfd.c (check): Likewise.
66117         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
66118         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
66119         * tests/uninorm/test-u16-nfc.c (check): Likewise.
66120         * tests/uninorm/test-u16-nfd.c (check): Likewise.
66121         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
66122         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
66123         * tests/uninorm/test-u32-nfc.c (check): Likewise.
66124         * tests/uninorm/test-u32-nfd.c (check): Likewise.
66125         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
66126         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
66128 2009-04-05  Bruno Haible  <bruno@clisp.org>
66130         Work around an autoconf limitation.
66131         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
66132         comment line if it would be longer than 3 KB.
66134 2009-04-05  Bruno Haible  <bruno@clisp.org>
66136         Avoid test failure with libiconv-1.13.
66137         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
66138         of the expected test results.
66140 2009-04-05  Bruno Haible  <bruno@clisp.org>
66142         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
66143         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
66144         that it should be installed.
66146 2009-04-05  Bruno Haible  <bruno@clisp.org>
66148         * gnulib-tool: New option --copy-file.
66149         (func_usage): Document it.
66150         (func_dest_tmpfilename): Moved out of func_import.
66151         (func_add_file, func_update_file): New functions, extracted from
66152         func_import.
66153         (func_import): Update.
66155 2009-04-05  Karl Berry  <karl@gnu.org>
66157         * README: prominently mention gnulib-tool.
66158         Rearrange sections so getting the code is near the top.
66160 2009-04-05  Bruno Haible  <bruno@clisp.org>
66162         * lib/unicase.h: Mention u*_cmp2.
66163         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66164         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
66165         * lib/unicase/ulc-casecmp.c: Likewise.
66166         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
66167         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
66168         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
66169         unistr/u8-cmp.
66170         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
66171         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
66172         unistr/u16-cmp.
66173         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
66174         unistr/u32-cmp.
66176         * lib/uninorm.h: Mention u*_cmp2.
66177         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66178         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
66179         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
66180         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
66181         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
66182         unistr/u8-cmp.
66183         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
66184         unistr/u16-cmp.
66185         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
66186         unistr/u32-cmp.
66188         New module 'unistr/u32-cmp2'.
66189         * lib/unistr/u32-cmp2.c: New file.
66190         * modules/unistr/u32-cmp2: New file.
66192         New module 'unistr/u16-cmp2'.
66193         * lib/unistr/u16-cmp2.c: New file.
66194         * modules/unistr/u16-cmp2: New file.
66196         New module 'unistr/u8-cmp2'.
66197         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
66198         * lib/unistr/u8-cmp2.c: New file.
66199         * lib/unistr/u-cmp2.h: New file.
66200         * modules/unistr/u8-cmp2: New file.
66202 2009-04-05  Bruno Haible  <bruno@clisp.org>
66204         * lib/unictype.h (uc_property_is_valid): New macro.
66205         * tests/unictype/test-pr_byname.c (main): Use it.
66207         * lib/unistr.h: Doc fixes.
66208         * lib/uniconv.h: Doc fixes.
66209         * lib/unictype.h: Doc fixes.
66211 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
66213         Port coreutils 7.2 to Solaris 8.
66215         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
66216         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
66217         for Solaris 8.  This is a bit of a hack, as it means it's the
66218         caller's responsibility to add -lnsl if needed, but most likely it
66219         won't be needed since only getaddrinfo uses this and getaddrinfo
66220         isn't needed on Solaris 8.
66222         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
66223         problem to Solaris 8 encountered with coreutils 7.2, which
66224         resulted in a message "fnmatch.c:292: warning: passing argument 4
66225         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
66226         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
66228 2009-04-03  Simon Josefsson  <simon@josefsson.org>
66230         * m4/ld-version-script.m4: Add FIXME comment.
66232 2009-04-02  Simon Josefsson  <simon@josefsson.org>
66234         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
66235         SOVERSION variable.
66237 2009-04-02  Bruno Haible  <bruno@clisp.org>
66239         * Makefile (info, html, dvi, pdf): Combine the rules.
66240         Suggested by Jim Meyering.
66242 2009-04-01  Bruno Haible  <bruno@clisp.org>
66244         * Makefile (info, html, dvi, pdf): New targets.
66245         Reported by Reuben Thomas <rrt@sc3d.org>.
66247 2009-04-01  Bruno Haible  <bruno@clisp.org>
66249         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
66250         can be put into PATH.
66251         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
66253 2009-04-01  Bruno Haible  <bruno@clisp.org>
66255         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
66257 2009-04-01  Bruno Haible  <bruno@clisp.org>
66259         Rename module 'visibility'.
66260         * modules/lib-symbol-visibility: Renamed from modules/visibility.
66261         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
66262         * doc/gnulib.texi: Update.
66263         * MODULES.html.sh (Misc): Update.
66264         * NEWS: Mention the change.
66266 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66268         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
66269         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
66270         Eric Blake <ebb9@byu.net> for review.
66271         * MODULES.html.sh: Add lib-msvc-compat.
66272         * doc/gnulib.texi: Link to new section.
66273         * m4/ld-output-def.m4: New file.
66274         * doc/ld-output-def.texi: New file.
66276 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66278         Rename ld-version-script to lib-symbol-versions.  Suggested by
66279         Bruno Haible <bruno@clisp.org>.
66280         * modules/ld-version-script: Renamed to lib-symbol-versions.
66281         * doc/ld-version-script.texi: Fix module name.
66282         * MODULES.html.sh: Add lib-symbol-versions.
66284 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66286         * modules/u64-tests: New file.
66287         * tests/test-u64.c: New file.
66289 2009-03-04  Simon Josefsson  <simon@josefsson.org>
66291         * MODULES.html.sh: Mention u64.
66292         * modules/u64: New module.
66293         * modules/crypto/sha512: Depend on u64 module instead of providing
66294         u64.h.
66296 2009-03-27  Eric Blake  <ebb9@byu.net>
66298         test-strerror: make debugging EAI_SYSTEM easier
66299         * modules/getaddrinfo-tests (Depends-on): Add strerror.
66300         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
66301         failure was EAI_SYSTEM.
66303 2009-03-25  Bruno Haible  <bruno@clisp.org>
66305         Fix a problem with --enable-relocatable on Solaris 7.
66306         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
66307         since 2008-02-24.
66309 2009-03-25  Eric Blake  <ebb9@byu.net>
66311         test-sockets: avoid gcc warning
66312         * tests/test-sockets.c (main): Silence compiler warning.
66314 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66316         New modules nproc, pthread, contributed by Glen Lenker.
66318         * MODULES.html.sh: Add pthread, nproc.
66319         * lib/nproc.c: New file.
66320         * lib/nproc.h: New file.
66321         * lib/pthread.in.h: New file.
66322         * m4/pthread.m4: New file.
66323         * modules/nproc: New file.
66324         * modules/pthread: New file.
66326 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66328         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
66329         New variable.
66331 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
66333         filevercmp: handle simple~ and numbered.~3~ backup suffixes
66334         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
66335         * tests/test-filevercmp.c: Add tests for backup suffixes.
66337 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66339         * modules/stdlib (Depends-on): Add stdint, needed when defining
66340         struct random_data on, for example, HP-UX 10.20.  Reported by
66341         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66343 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66345         * lib/readline.c (readline): Call fflush on stdout after printing
66346         prompt.
66348 2009-03-20  Bruno Haible  <bruno@clisp.org>
66350         Remove dependency from 'close' module to -lws2_32 on native Windows.
66351         * lib/close-hook.h: New file.
66352         * lib/close-hook.c: New file.
66353         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
66354         w32sock.h.
66355         (_gl_close_fd_maybe_socket): Remove function.
66356         (rpl_close): Invoke execute_all_close_hooks instead of
66357         _gl_close_fd_maybe_socket.
66358         * lib/sockets.c: Include close-hook.h, w32sock.h.
66359         (close_fd_maybe_socket): New function, essentially from lib/close.c.
66360         (close_sockets_hook): New variable.
66361         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
66362         (gl_sockets_cleanup): Unregister it.
66363         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
66364         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
66365         * modules/close-hook: New file.
66366         * modules/close (Files): Remove lib/w32sock.h.
66367         (Depends-on): Add close-hook.
66368         (Link): Remove section.
66369         * modules/sockets (Files): Add lib/w32sock.h.
66370         (Depends-on): Add close-hook.
66371         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
66372         invocation.
66373         * NEWS: Mention that LIB_CLOSE is gone.
66375 2009-03-23  Eric Blake  <ebb9@byu.net>
66377         signal-tests: test previous patch
66378         * tests/test-signal.c: New file.
66379         * modules/signal-tests: Likewise.
66381         signal.h: always support 'volatile sig_atomic_t'
66382         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
66383         (gl_SIGNAL_H_DEFAULTS): Add a default.
66384         * modules/signal (Makefile.am): Substitute if needed.
66385         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
66386         users can blindly add volatile.
66387         * doc/posix-headers/signal.texi (signal.h): Document it.
66388         Reported by Matthew Woehlke.
66390 2009-03-23  Jim Meyering  <meyering@redhat.com>
66392         pathmax: PATH_MAX: use pathconf only when available
66393         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
66394         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
66395         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
66396         This avoids a link failure in a PSP cross-compilation environment
66397         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
66399         * lib/vasnprintf.c (divide): Fix typo in comment.
66401 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66403         * gnulib-tool (func_filter_filelist): Fix comment.
66405 2009-03-20  Bruno Haible  <bruno@clisp.org>
66407         Make sockets.h self-contained.
66408         * lib/sockets.c: Include sockets.h first.
66409         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
66411 2009-03-19  Eric Blake  <ebb9@byu.net>
66413         doc: mention more functions added in cygwin 1.7.0
66414         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
66415         addition.
66416         * doc/posix-functions/log2f.texi: Likewise.
66418 2009-03-19  Jim Meyering  <meyering@redhat.com>
66420         fsusage: avoid syntax error due to statement-before-declaration
66421         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
66422         after all declarations.  Reported by Matthew Woehlke in
66423         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
66425 2009-03-18  Eric Blake  <ebb9@byu.net>
66427         build-aux/compile: sync from automake
66428         * build-aux/compile: New file, from automake.
66429         * config/srclist.txt: Mention build-aux/compile.
66431 2009-03-17  Bruno Haible  <bruno@clisp.org>
66433         * lib/git-merge-changelog.c: Fix typo in comment.
66434         Reported by Reuben Thomas <rrt@sc3d.org>.
66436 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
66438         * m4/regex.m4: update and improve help for
66439         --without-included-regex.
66441 2009-03-17  Simon Josefsson  <simon@josefsson.org>
66443         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
66444         failure on missing include files.
66446 2009-03-17  Eric Blake  <ebb9@byu.net>
66448         doc: mention more functions added in cygwin 1.7.0
66449         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
66450         addition.
66451         * doc/posix-functions/fwscanf.texi: Likewise.
66452         * doc/posix-functions/swprintf.texi: Likewise.
66453         * doc/posix-functions/swscanf.texi: Likewise.
66454         * doc/posix-functions/vfwprintf.texi: Likewise.
66455         * doc/posix-functions/vfwscanf.texi: Likewise.
66456         * doc/posix-functions/vswprintf.texi: Likewise.
66457         * doc/posix-functions/vswscanf.texi: Likewise.
66458         * doc/posix-functions/vwprintf.texi: Likewise.
66459         * doc/posix-functions/vwscanf.texi: Likewise.
66460         * doc/posix-functions/wcscasecmp.texi: Likewise.
66461         * doc/posix-functions/wcsdup.texi: Likewise.
66462         * doc/posix-functions/wcsftime.texi: Likewise.
66463         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66464         * doc/posix-functions/wprintf.texi: Likewise.
66465         * doc/posix-functions/wscanf.texi: Likewise.
66466         * doc/glibc-functions/gethostbyname2.texi: Likewise.
66468 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66470         maint.mk: really add $(AM_MAKEFLAGS)
66471         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
66472         was inadvertently omitted in the last commit.
66473         Spotted by Bruno Haible.
66475         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
66476         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
66477         $(AM_MAKEFLAGS)' rather than plain `make'.
66479         gnulib-tool: execute $MAKE not make
66480         * gnulib-tool: Default $MAKE to 'make'.
66481         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
66482         than make.  Initialize $MAKE in the do-autobuild script.
66484         gnulib-tool: use $MAKE not make in generated files
66485         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
66486         make, in generated files.  Initialize $MAKE in the do-autobuild
66487         script.
66489         * top/GNUmakefile (_have-git-version-gen): Fix typo.
66491         GNUmakefile: disable parallelism only for multiple, recursive targets
66492         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
66493         additions in the Makefile.
66494         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
66495         by Automake.
66496         (.NOTPARALLEL): Only disable parallel builds if multiple targets
66497         are listed on the command line and at least one of them is
66498         listed in $(ALL_RECURSIVE_TARGETS).
66500 2009-03-14  Bruno Haible  <bruno@clisp.org>
66502         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
66503         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
66504         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
66505         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
66506         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
66507         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
66508         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
66509         unistr/u8-uctomb.
66510         * modules/unistr/u8-strchr (Depends-on): Likewise.
66511         * modules/unistr/u8-strrchr (Depends-on): Likewise.
66512         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
66513         unistr/u16-uctomb.
66514         * modules/unistr/u16-strchr (Depends-on): Likewise.
66515         * modules/unistr/u16-strrchr (Depends-on): Likewise.
66517 2009-03-12  Bruno Haible  <bruno@clisp.org>
66519         Work around select() bug on Interix 3.5.
66520         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
66521         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
66522         * m4/select.m4: New file.
66523         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
66524         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
66525         * modules/select (Files): Add m4/select.m4.
66526         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
66527         * modules/nanosleep (Depends-on): Add select.
66528         * modules/poll (Depends-on): Likewise.
66529         * doc/posix-functions/select.texi: Mention the Interix bug.
66530         Reported by Markus Duft <mduft@gentoo.org>.
66532         * lib/select.c: Renamed from lib/winsock-select.c.
66533         * modules/select (Files): Add lib/select.c, remove
66534         lib/winsock-select.c.
66535         (configure.ac): Update.
66537 2009-03-12  Jim Meyering  <meyering@redhat.com>
66539         avoid gcc warnings about unused macro definitions
66540         * lib/readtokens.c (STREQ): Remove unused definition.
66541         * lib/xmalloc.c (SIZE_MAX): Likewise.
66542         * lib/openat-die.c (N_): Likewise.
66543         * lib/mountlist.c (SIZE_MAX): Remove definition.
66544         Instead, include <stdint.h>.
66545         * lib/readutmp.c: Likewise.
66546         * modules/readutmp (Depends-on): Add stdint.
66547         * modules/mountlist (Depends-on): Add stdint.
66548         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
66550 2009-03-10  Bruno Haible  <bruno@clisp.org>
66552         Tests for module 'mbmemcasecoll'.
66553         * modules/mbmemcasecoll-tests: New file.
66554         * tests/test-mbmemcasecoll1.sh: New file.
66555         * tests/test-mbmemcasecoll2.sh: New file.
66556         * tests/test-mbmemcasecoll3.sh: New file.
66557         * tests/test-mbmemcasecoll.c: New file.
66559         New module 'mbmemcasecoll'.
66560         * lib/mbmemcasecoll.h: New file.
66561         * lib/mbmemcasecoll.c: New file.
66562         * modules/mbmemcasecoll: New file.
66564         * tests/test-mbmemcasecmp.h: New file, extracted from
66565         tests/test-mbmemcasecmp.c.
66566         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
66567         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
66568         (main): Update.
66569         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
66571 2009-03-09  Bruno Haible  <bruno@clisp.org>
66573         Tests for module 'mbmemcasecmp'.
66574         * modules/mbmemcasecmp-tests: New file.
66575         * tests/test-mbmemcasecmp1.sh: New file.
66576         * tests/test-mbmemcasecmp2.sh: New file.
66577         * tests/test-mbmemcasecmp3.sh: New file.
66578         * tests/test-mbmemcasecmp.c: New file.
66580         New module 'mbmemcasecmp'.
66581         * lib/mbmemcasecmp.h: New file.
66582         * lib/mbmemcasecmp.c: New file.
66583         * modules/mbmemcasecmp: New file.
66585 2009-03-09  Bruno Haible  <bruno@clisp.org>
66587         Tests for module 'unicase/ulc-casecoll'.
66588         * modules/unicase/ulc-casecoll-tests: New file.
66589         * tests/unicase/test-ulc-casecoll1.sh: New file.
66590         * tests/unicase/test-ulc-casecoll2.sh: New file.
66591         * tests/unicase/test-ulc-casecoll.c: New file.
66593         New module 'unicase/ulc-casecoll'.
66594         * lib/unicase.h (ulc_casecoll): New declaration.
66595         * lib/unicase/ulc-casecoll.c: New file.
66596         * modules/unicase/ulc-casecoll: New file.
66598         New module 'unicase/ulc-casexfrm'.
66599         * lib/unicase.h (ulc_casexfrm): New declaration.
66600         * lib/unicase/ulc-casexfrm.c: New file.
66601         * modules/unicase/ulc-casexfrm: New file.
66603 2009-03-09  Bruno Haible  <bruno@clisp.org>
66605         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66606         invocations.
66608         * m4/mbscasecmp.m4: Remove file.
66609         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66610         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66612         * m4/mbscasestr.m4: Remove file.
66613         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66614         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66616         * m4/mbschr.m4: Remove file.
66617         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66618         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66620         * m4/mbscspn.m4: Remove file.
66621         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66622         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66624         * m4/mbslen.m4: Remove file.
66625         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66626         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66628         * m4/mbsncasecmp.m4: Remove file.
66629         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66630         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66632         * m4/mbsnlen.m4: Remove file.
66633         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66634         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66636         * m4/mbspbrk.m4: Remove file.
66637         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66638         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66640         * m4/mbspcasecmp.m4: Remove file.
66641         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66642         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66644         * m4/mbsrchr.m4: Remove file.
66645         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66646         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66648         * m4/mbssep.m4: Remove file.
66649         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66650         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66652         * m4/mbsspn.m4: Remove file.
66653         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66654         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66656         * m4/mbsstr.m4: Remove file.
66657         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66658         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66660         * m4/mbstok_r.m4: Remove file.
66661         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66662         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66664         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66666         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66667         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66669         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66671 2009-03-08  Bruno Haible  <bruno@clisp.org>
66673         Tests for module 'unicase/ulc-casecmp'.
66674         * modules/unicase/ulc-casecmp-tests: New file.
66675         * tests/unicase/test-ulc-casecmp1.sh: New file.
66676         * tests/unicase/test-ulc-casecmp2.sh: New file.
66677         * tests/unicase/test-ulc-casecmp.c: New file.
66679         New module 'unicase/ulc-casecmp'.
66680         * lib/unicase.h (ulc_casecmp): New declaration.
66681         * lib/unicase/ulc-casecmp.c: New file.
66682         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66683         'const SRC_UNIT *'.
66684         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66685         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66686         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66687         * modules/unicase/ulc-casecmp: New file.
66689         Tests for module 'unicase/u32-is-cased'.
66690         * modules/unicase/u32-is-cased-tests: New file.
66691         * tests/unicase/test-u32-is-cased.c: New file.
66693         Tests for module 'unicase/u16-is-cased'.
66694         * modules/unicase/u16-is-cased-tests: New file.
66695         * tests/unicase/test-u16-is-cased.c: New file.
66697         Tests for module 'unicase/u8-is-cased'.
66698         * modules/unicase/u8-is-cased-tests: New file.
66699         * tests/unicase/test-u8-is-cased.c: New file.
66700         * tests/unicase/test-is-cased.h: New file.
66702         New module 'unicase/u32-is-cased'.
66703         * lib/unicase/u32-is-cased.c: New file.
66704         * modules/unicase/u32-is-cased: New file.
66706         New module 'unicase/u16-is-cased'.
66707         * lib/unicase/u16-is-cased.c: New file.
66708         * modules/unicase/u16-is-cased: New file.
66710         New module 'unicase/u8-is-cased'.
66711         * lib/unicase/u8-is-cased.c: New file.
66712         * lib/unicase/u-is-cased.h: New file.
66713         * modules/unicase/u8-is-cased: New file.
66715         Tests for module 'unicase/u32-is-casefolded'.
66716         * modules/unicase/u32-is-casefolded-tests: New file.
66717         * tests/unicase/test-u32-is-casefolded.c: New file.
66719         Tests for module 'unicase/u16-is-casefolded'.
66720         * modules/unicase/u16-is-casefolded-tests: New file.
66721         * tests/unicase/test-u16-is-casefolded.c: New file.
66723         Tests for module 'unicase/u8-is-casefolded'.
66724         * modules/unicase/u8-is-casefolded-tests: New file.
66725         * tests/unicase/test-u8-is-casefolded.c: New file.
66726         * tests/unicase/test-is-casefolded.h: New file.
66728         New module 'unicase/u32-is-casefolded'.
66729         * lib/unicase/u32-is-casefolded.c: New file.
66730         * modules/unicase/u32-is-casefolded: New file.
66732         New module 'unicase/u16-is-casefolded'.
66733         * lib/unicase/u16-is-casefolded.c: New file.
66734         * modules/unicase/u16-is-casefolded: New file.
66736         New module 'unicase/u8-is-casefolded'.
66737         * lib/unicase/u8-is-casefolded.c: New file.
66738         * modules/unicase/u8-is-casefolded: New file.
66740         Tests for module 'unicase/u32-is-titlecase'.
66741         * modules/unicase/u32-is-titlecase-tests: New file.
66742         * tests/unicase/test-u32-is-titlecase.c: New file.
66744         Tests for module 'unicase/u16-is-titlecase'.
66745         * modules/unicase/u16-is-titlecase-tests: New file.
66746         * tests/unicase/test-u16-is-titlecase.c: New file.
66748         Tests for module 'unicase/u8-is-titlecase'.
66749         * modules/unicase/u8-is-titlecase-tests: New file.
66750         * tests/unicase/test-u8-is-titlecase.c: New file.
66751         * tests/unicase/test-is-titlecase.h: New file.
66753         New module 'unicase/u32-is-titlecase'.
66754         * lib/unicase/u32-is-titlecase.c: New file.
66755         * modules/unicase/u32-is-titlecase: New file.
66757         New module 'unicase/u16-is-titlecase'.
66758         * lib/unicase/u16-is-titlecase.c: New file.
66759         * modules/unicase/u16-is-titlecase: New file.
66761         New module 'unicase/u8-is-titlecase'.
66762         * lib/unicase/u8-is-titlecase.c: New file.
66763         * modules/unicase/u8-is-titlecase: New file.
66765         Tests for module 'unicase/u32-is-lowercase'.
66766         * modules/unicase/u32-is-lowercase-tests: New file.
66767         * tests/unicase/test-u32-is-lowercase.c: New file.
66769         Tests for module 'unicase/u16-is-lowercase'.
66770         * modules/unicase/u16-is-lowercase-tests: New file.
66771         * tests/unicase/test-u16-is-lowercase.c: New file.
66773         Tests for module 'unicase/u8-is-lowercase'.
66774         * modules/unicase/u8-is-lowercase-tests: New file.
66775         * tests/unicase/test-u8-is-lowercase.c: New file.
66776         * tests/unicase/test-is-lowercase.h: New file.
66778         New module 'unicase/u32-is-lowercase'.
66779         * lib/unicase/u32-is-lowercase.c: New file.
66780         * modules/unicase/u32-is-lowercase: New file.
66782         New module 'unicase/u16-is-lowercase'.
66783         * lib/unicase/u16-is-lowercase.c: New file.
66784         * modules/unicase/u16-is-lowercase: New file.
66786         New module 'unicase/u8-is-lowercase'.
66787         * lib/unicase/u8-is-lowercase.c: New file.
66788         * modules/unicase/u8-is-lowercase: New file.
66790         Tests for module 'unicase/u32-is-uppercase'.
66791         * modules/unicase/u32-is-uppercase-tests: New file.
66792         * tests/unicase/test-u32-is-uppercase.c: New file.
66794         Tests for module 'unicase/u16-is-uppercase'.
66795         * modules/unicase/u16-is-uppercase-tests: New file.
66796         * tests/unicase/test-u16-is-uppercase.c: New file.
66798         Tests for module 'unicase/u8-is-uppercase'.
66799         * modules/unicase/u8-is-uppercase-tests: New file.
66800         * tests/unicase/test-u8-is-uppercase.c: New file.
66801         * tests/unicase/test-is-uppercase.h: New file.
66803         New module 'unicase/u32-is-uppercase'.
66804         * lib/unicase/u32-is-uppercase.c: New file.
66805         * modules/unicase/u32-is-uppercase: New file.
66807         New module 'unicase/u16-is-uppercase'.
66808         * lib/unicase/u16-is-uppercase.c: New file.
66809         * modules/unicase/u16-is-uppercase: New file.
66811         New module 'unicase/u8-is-uppercase'.
66812         * lib/unicase/u8-is-uppercase.c: New file.
66813         * modules/unicase/u8-is-uppercase: New file.
66815         New module 'unicase/u32-is-invariant'.
66816         * lib/unicase/u32-is-invariant.c: New file.
66817         * modules/unicase/u32-is-invariant: New file.
66819         New module 'unicase/u16-is-invariant'.
66820         * lib/unicase/u16-is-invariant.c: New file.
66821         * modules/unicase/u16-is-invariant: New file.
66823         New module 'unicase/u8-is-invariant'.
66824         * lib/unicase/u8-is-invariant.c: New file.
66825         * lib/unicase/invariant.h: New file.
66826         * lib/unicase/u-is-invariant.h: New file.
66827         * modules/unicase/u8-is-invariant: New file.
66829         Tests for module 'unicase/u32-casecoll'.
66830         * modules/unicase/u32-casecoll-tests: New file.
66831         * tests/unicase/test-u32-casecoll.c: New file.
66833         Tests for module 'unicase/u16-casecoll'.
66834         * modules/unicase/u16-casecoll-tests: New file.
66835         * tests/unicase/test-u16-casecoll.c: New file.
66837         Tests for module 'unicase/u8-casecoll'.
66838         * modules/unicase/u8-casecoll-tests: New file.
66839         * tests/unicase/test-u8-casecoll.c: New file.
66841         New module 'unicase/u32-casecoll'.
66842         * lib/unicase/u32-casecoll.c: New file.
66843         * modules/unicase/u32-casecoll: New file.
66845         New module 'unicase/u16-casecoll'.
66846         * lib/unicase/u16-casecoll.c: New file.
66847         * modules/unicase/u16-casecoll: New file.
66849         New module 'unicase/u8-casecoll'.
66850         * lib/unicase/u8-casecoll.c: New file.
66851         * lib/unicase/u-casecoll.h: New file.
66852         * modules/unicase/u8-casecoll: New file.
66854         New module 'unicase/u32-casexfrm'.
66855         * lib/unicase/u32-casexfrm.c: New file.
66856         * modules/unicase/u32-casexfrm: New file.
66858         New module 'unicase/u16-casexfrm'.
66859         * lib/unicase/u16-casexfrm.c: New file.
66860         * modules/unicase/u16-casexfrm: New file.
66862         New module 'unicase/u8-casexfrm'.
66863         * lib/unicase/u8-casexfrm.c: New file.
66864         * lib/unicase/u-casexfrm.h: New file.
66865         * modules/unicase/u8-casexfrm: New file.
66867         Tests for module 'unicase/u32-casecmp'.
66868         * modules/unicase/u32-casecmp-tests: New file.
66869         * tests/unicase/test-u32-casecmp.c: New file.
66871         Tests for module 'unicase/u16-casecmp'.
66872         * modules/unicase/u16-casecmp-tests: New file.
66873         * tests/unicase/test-u16-casecmp.c: New file.
66875         Tests for module 'unicase/u8-casecmp'.
66876         * modules/unicase/u8-casecmp-tests: New file.
66877         * tests/unicase/test-u8-casecmp.c: New file.
66878         * tests/unicase/test-casecmp.h: New file.
66880         New module 'unicase/u32-casecmp'.
66881         * lib/unicase/u32-casecmp.c: New file.
66882         * modules/unicase/u32-casecmp: New file.
66884         New module 'unicase/u16-casecmp'.
66885         * lib/unicase/u16-casecmp.c: New file.
66886         * modules/unicase/u16-casecmp: New file.
66888         New module 'unicase/u8-casecmp'.
66889         * lib/unicase/u8-casecmp.c: New file.
66890         * lib/unicase/u-casecmp.h: New file.
66891         * modules/unicase/u8-casecmp: New file.
66893         Tests for module 'unicase/u32-casefold'.
66894         * modules/unicase/u32-casefold-tests: New file.
66895         * tests/unicase/test-u32-casefold.c: New file.
66897         Tests for module 'unicase/u16-casefold'.
66898         * modules/unicase/u16-casefold-tests: New file.
66899         * tests/unicase/test-u16-casefold.c: New file.
66901         Tests for module 'unicase/u8-casefold'.
66902         * modules/unicase/u8-casefold-tests: New file.
66903         * tests/unicase/test-u8-casefold.c: New file.
66905         New module 'unicase/u32-casefold'.
66906         * lib/unicase/u32-casefold.c: New file.
66907         * modules/unicase/u32-casefold: New file.
66909         New module 'unicase/u16-casefold'.
66910         * lib/unicase/u16-casefold.c: New file.
66911         * modules/unicase/u16-casefold: New file.
66913         New module 'unicase/u8-casefold'.
66914         * lib/unicase/u8-casefold.c: New file.
66915         * lib/unicase/u-casefold.h: New file.
66916         * modules/unicase/u8-casefold: New file.
66918         New module 'unicase/tocasefold'.
66919         * lib/unicase/casefold.h: New file.
66920         * lib/unicase/tocasefold.c: New file.
66921         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
66922         * modules/unicase/tocasefold: New file.
66924         Tests for module 'unicase/u32-totitle'.
66925         * modules/unicase/u32-totitle-tests: New file.
66926         * tests/unicase/test-u32-totitle.c: New file.
66928         Tests for module 'unicase/u16-totitle'.
66929         * modules/unicase/u16-totitle-tests: New file.
66930         * tests/unicase/test-u16-totitle.c: New file.
66932         Tests for module 'unicase/u8-totitle'.
66933         * modules/unicase/u8-totitle-tests: New file.
66934         * tests/unicase/test-u8-totitle.c: New file.
66936         New module 'unicase/u32-totitle'.
66937         * lib/unicase/u32-totitle.c: New file.
66938         * modules/unicase/u32-totitle: New file.
66940         New module 'unicase/u16-totitle'.
66941         * lib/unicase/u16-totitle.c: New file.
66942         * modules/unicase/u16-totitle: New file.
66944         New module 'unicase/u8-totitle'.
66945         * lib/unicase/u8-totitle.c: New file.
66946         * lib/unicase/u-totitle.h: New file.
66947         * modules/unicase/u8-totitle: New file.
66949         Tests for module 'unicase/u32-tolower'.
66950         * modules/unicase/u32-tolower-tests: New file.
66951         * tests/unicase/test-u32-tolower.c: New file.
66953         Tests for module 'unicase/u16-tolower'.
66954         * modules/unicase/u16-tolower-tests: New file.
66955         * tests/unicase/test-u16-tolower.c: New file.
66957         Tests for module 'unicase/u8-tolower'.
66958         * modules/unicase/u8-tolower-tests: New file.
66959         * tests/unicase/test-u8-tolower.c: New file.
66961         New module 'unicase/u32-tolower'.
66962         * lib/unicase/u32-tolower.c: New file.
66963         * modules/unicase/u32-tolower: New file.
66965         New module 'unicase/u16-tolower'.
66966         * lib/unicase/u16-tolower.c: New file.
66967         * modules/unicase/u16-tolower: New file.
66969         New module 'unicase/u8-tolower'.
66970         * lib/unicase/u8-tolower.c: New file.
66971         * modules/unicase/u8-tolower: New file.
66973         Tests for module 'unicase/u32-toupper'.
66974         * modules/unicase/u32-toupper-tests: New file.
66975         * tests/unicase/test-u32-toupper.c: New file.
66977         Tests for module 'unicase/u16-toupper'.
66978         * modules/unicase/u16-toupper-tests: New file.
66979         * tests/unicase/test-u16-toupper.c: New file.
66981         Tests for module 'unicase/u8-toupper'.
66982         * modules/unicase/u8-toupper-tests: New file.
66983         * tests/unicase/test-u8-toupper.c: New file.
66985         New module 'unicase/u32-toupper'.
66986         * lib/unicase/u32-toupper.c: New file.
66987         * modules/unicase/u32-toupper: New file.
66989         New module 'unicase/u16-toupper'.
66990         * lib/unicase/u16-toupper.c: New file.
66991         * modules/unicase/u16-toupper: New file.
66993         New module 'unicase/u8-toupper'.
66994         * lib/unicase/u8-toupper.c: New file.
66995         * modules/unicase/u8-toupper: New file.
66997         New module 'unicase/u32-casemap'.
66998         * lib/unicase/u32-casemap.c: New file.
66999         * modules/unicase/u32-casemap: New file.
67001         New module 'unicase/u16-casemap'.
67002         * lib/unicase/u16-casemap.c: New file.
67003         * modules/unicase/u16-casemap: New file.
67005         New module 'unicase/u8-casemap'.
67006         * lib/unicase/unicasemap.h: New file.
67007         * lib/unicase/u8-casemap.c: New file.
67008         * lib/unicase/u-casemap.h: New file.
67009         * modules/unicase/u8-casemap: New file.
67011         New module 'unicase/special-casing'.
67012         * lib/unicase/special-casing.h: New file.
67013         * lib/unicase/special-casing.c: New file.
67014         * lib/unicase/special-casing-table.gperf: New file, generated by
67015         gen-uni-tables.c.
67016         * modules/unicase/special-casing: New file.
67018         Tests for module 'unicase/locale-language'.
67019         * modules/unicase/locale-language-tests: New file.
67020         * tests/unicase/test-locale-language.sh: New file.
67021         * tests/unicase/test-locale-language.c: New file.
67023         New module 'unicase/locale-language'.
67024         * lib/unicase/locale-language.c: New file.
67025         * lib/unicase/locale-languages.gperf: New file.
67026         * modules/unicase/locale-language: New file.
67028         Generate more tables for case conversion and case folding.
67029         * lib/gen-uni-tables.c (SCC_*): New enum items.
67030         (struct special_casing_rule): New type.
67031         (casing_rules, num_casing_rules, allocated_casing_rules): New
67032         variables.
67033         (add_casing_rule, fill_casing_rules): New functions.
67034         (struct casefold_rule): New type.
67035         (casefolding_rules, num_casefolding_rules,
67036         allocated_casefolding_rules): New variables.
67037         (fill_casefolding_rules): New function.
67038         (unicode_casefold): New variable.
67039         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
67040         sort_casing_rules, output_casing_rules): New functions.
67041         (main): Accept to more arguments: SpecialCasing.txt and
67042         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
67043         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
67044         Output mapping for casefolding.
67046         * lib/unicase.h: Include stdbool.h, uninorm.h.
67047         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
67048         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
67049         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
67050         arguments.
67051         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
67052         resultp arguments.
67053         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
67054         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
67055         resultp arguments.
67056         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
67057         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
67058         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
67059         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
67060         declarations.
67061         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
67063 2009-03-08  Bruno Haible  <bruno@clisp.org>
67065         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67066         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
67067         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
67068         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67070 2009-03-07  Bruno Haible  <bruno@clisp.org>
67072         Adjust u*_normcmp, u*_normcoll API.
67073         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67074         u16_normcoll, u32_normcoll): Change failure conventions.
67075         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
67076         errno and return -1.
67077         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67079 2009-03-07  Bruno Haible  <bruno@clisp.org>
67081         Tests for module 'uninorm/u32-normcoll'.
67082         * modules/uninorm/u32-normcoll-tests: New file.
67083         * tests/uninorm/test-u32-normcoll.c: New file.
67085         Tests for module 'uninorm/u16-normcoll'.
67086         * modules/uninorm/u16-normcoll-tests: New file.
67087         * tests/uninorm/test-u16-normcoll.c: New file.
67089         Tests for module 'uninorm/u8-normcoll'.
67090         * modules/uninorm/u8-normcoll-tests: New file.
67091         * tests/uninorm/test-u8-normcoll.c: New file.
67093 2009-03-07  Bruno Haible  <bruno@clisp.org>
67095         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
67096         tests/uninorm/test-u32-normcmp.c.
67097         * tests/uninorm/test-u32-normcmp.c: Include it.
67098         (test_nonascii): New function, extracted from main. Add some more
67099         tests.
67100         (main): Invoke test_ascii and test_nonascii.
67101         * modules/uninorm/u32-normcmp-tests (Files): Add
67102         tests/uninorm/test-u32-normcmp.h.
67103         (Depends-on): Remove uninorm/u32-normcmp.
67105         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
67106         tests/uninorm/test-u16-normcmp.c.
67107         * tests/uninorm/test-u16-normcmp.c: Include it.
67108         (test_nonascii): New function, extracted from main. Add some more
67109         tests.
67110         (main): Invoke test_ascii and test_nonascii.
67111         * modules/uninorm/u16-normcmp-tests (Files): Add
67112         tests/uninorm/test-u16-normcmp.h.
67113         (Depends-on): Remove uninorm/u16-normcmp.
67115         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
67116         tests/uninorm/test-u8-normcmp.c.
67117         * tests/uninorm/test-u8-normcmp.c: Include it.
67118         (test_nonascii): New function, extracted from main. Add some more
67119         tests.
67120         (main): Invoke test_ascii and test_nonascii.
67121         * modules/uninorm/u8-normcmp-tests (Files): Add
67122         tests/uninorm/test-u8-normcmp.h.
67123         (Depends-on): Remove uninorm/u8-normcmp.
67125 2009-03-07  Bruno Haible  <bruno@clisp.org>
67127         New module 'uninorm/u32-normcoll'.
67128         * lib/uninorm/u32-normcoll.c: New file.
67129         * modules/uninorm/u32-normcoll: New file.
67131         New module 'uninorm/u16-normcoll'.
67132         * lib/uninorm/u16-normcoll.c: New file.
67133         * modules/uninorm/u16-normcoll: New file.
67135         New module 'uninorm/u8-normcoll'.
67136         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
67137         declarations.
67138         * lib/uninorm/u8-normcoll.c: New file.
67139         * lib/uninorm/u-normcoll.h: New file.
67140         * modules/uninorm/u8-normcoll: New file.
67142         New module 'uninorm/u32-normxfrm'.
67143         * lib/uninorm/u32-normxfrm.c: New file.
67144         * modules/uninorm/u32-normxfrm: New file.
67146         New module 'uninorm/u16-normxfrm'.
67147         * lib/uninorm/u16-normxfrm.c: New file.
67148         * modules/uninorm/u16-normxfrm: New file.
67150         New module 'uninorm/u8-normxfrm'.
67151         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
67152         declarations.
67153         * lib/uninorm/u8-normxfrm.c: New file.
67154         * lib/uninorm/u-normxfrm.h: New file.
67155         * modules/uninorm/u8-normxfrm: New file.
67157 2009-03-07  Bruno Haible  <bruno@clisp.org>
67159         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
67160         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
67161         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
67163 2009-03-07  Bruno Haible  <bruno@clisp.org>
67165         New module 'memxfrm'.
67166         * lib/memxfrm.h: New file.
67167         * lib/memxfrm.c: New file.
67168         * modules/memxfrm: New file.
67170 2009-03-07  Bruno Haible  <bruno@clisp.org>
67172         New module 'memcmp2'.
67173         * lib/memcmp2.h: New file.
67174         * lib/memcmp2.c: New file.
67175         * modules/memcmp2: New file.
67177 2009-03-07  Bruno Haible  <bruno@clisp.org>
67179         Tests for module 'uninorm/decomposing-form'.
67180         * modules/uninorm/decomposing-form-tests: New file.
67181         * tests/uninorm/test-decomposing-form.c: New file.
67183         New module 'uninorm/decomposing-form'.
67184         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
67185         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
67186         Add 'decomposing_variant' field.
67187         * lib/uninorm/decomposing-form.c: New file.
67188         * lib/uninorm/nfc.c (uninorm_nfc): Update.
67189         * lib/uninorm/nfd.c (uninorm_nfd): Update.
67190         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
67191         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
67192         * modules/uninorm/decomposing-form: New file.
67193         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
67194         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
67196 2009-03-07  Bruno Haible  <bruno@clisp.org>
67198         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
67199         strings.
67201 2009-03-06  Bruno Haible  <bruno@clisp.org>
67203         Tests for module 'uninorm/u32-normcmp'.
67204         * tests/uninorm/test-u32-normcmp.c: New file.
67205         * modules/uninorm/u32-normcmp-tests: New file.
67207         Tests for module 'uninorm/u16-normcmp'.
67208         * tests/uninorm/test-u16-normcmp.c: New file.
67209         * modules/uninorm/u16-normcmp-tests: New file.
67211         Tests for module 'uninorm/u8-normcmp'.
67212         * tests/uninorm/test-u8-normcmp.c: New file.
67213         * modules/uninorm/u8-normcmp-tests: New file.
67215         New module 'uninorm/u32-normcmp'.
67216         * lib/uninorm/u32-normcmp.c: New file.
67217         * modules/uninorm/u32-normcmp: New file.
67219         New module 'uninorm/u16-normcmp'.
67220         * lib/uninorm/u16-normcmp.c: New file.
67221         * modules/uninorm/u16-normcmp: New file.
67223         New module 'uninorm/u8-normcmp'.
67224         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
67225         declarations.
67226         * lib/uninorm/u8-normcmp.c: New file.
67227         * lib/uninorm/u-normcmp.h: New file.
67228         * modules/uninorm/u8-normcmp: New file.
67230 2009-03-06  Bruno Haible  <bruno@clisp.org>
67232         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
67233         Reported by Eric Blake.
67235 2009-03-06  Eric Blake  <ebb9@byu.net>
67236             Bruno Haible  <bruno@clisp.org>
67238         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
67239         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
67240         condition.
67241         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67242         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
67243         condition.
67244         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67246 2009-03-06  Eric Blake  <ebb9@byu.net>
67248         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
67249         to avoid compiler warnings.
67250         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
67252 2009-03-05  Bruno Haible  <bruno@clisp.org>
67254         * tests/test-ftell.c (main): Disable test beyond end of file on
67255         FreeMiNT.
67256         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67258 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
67260         * lib/filevercmp.c: Move hidden files up in ordering.
67261         * tests/test-filevercmp.c: Add tests for hidden files.
67263 2009-03-04  Bruno Haible  <bruno@clisp.org>
67265         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
67266         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
67267         AM_CFLAGS.
67268         Reported by Simon Josefsson.
67270 2009-03-03  Bruno Haible  <bruno@clisp.org>
67272         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
67273         Reported by Simon Josefsson.
67275         * doc/ld-version-script.texi: Update node reference.
67277 2009-03-03  Bruno Haible  <bruno@clisp.org>
67279         * modules/visibility (License): Change to 'unlimited'.
67280         Suggested by Simon Josefsson.
67282 2009-03-03  Jim Meyering  <meyering@redhat.com>
67284         unlinkdir: cannot_unlink_dir may modify process state
67285         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
67286         it's neither thread-safe nor appropriate for use in a library.
67288 2009-03-03  Eric Blake  <ebb9@byu.net>
67290         test-closein: silence test under Darwin
67291         * tests/test-closein.sh: Ignore stderr from cat, since we don't
67292         care if it dies from EPIPE or EBADF.
67294 2009-03-03  Bruno Haible  <bruno@clisp.org>
67296         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
67297         earlier.
67298         * doc/visibility.texi: Fix @node and @section.
67300 2009-03-03  Simon Josefsson  <simon@josefsson.org>
67302         * doc/gnulib.texi: Link to sections for ld version script and
67303         visibility.
67304         * doc/visibility.texi: Add @node and @section.
67305         * modules/ld-version-script: New module.
67306         * m4/ld-version-script.m4: New file.
67307         * doc/ld-version-script.texi: New file.
67309 2009-03-02  David Lutterkort  <lutter@redhat.com>
67311         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
67312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67314 2009-03-02  Bruno Haible  <bruno@clisp.org>
67316         * doc/visibility.texi: Mention libtool's -export-symbols option.
67318 2009-03-02  Jim Meyering  <meyering@redhat.com>
67320         announce-gen: new option: --no-print-checksums
67321         * build-aux/announce-gen (usage): Describe it.
67322         (print_checksums): Print a newline here, not in the [*] footnote.
67323         (main): Honor it.
67325 2009-03-01  Bruno Haible  <bruno@clisp.org>
67327         Use socklen_t in the native Windows replacements prototypes.
67328         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
67329         instead of 'int'.
67330         * lib/getsockopt.c (rpl_getsockopt): Likewise.
67331         * lib/setsockopt.c (rpl_setsockopt): Likewise.
67332         * modules/getsockopt (Depends-on): Add socklen.
67333         * modules/setsockopt (Depends-on): Add socklen.
67335 2009-03-01  Bruno Haible  <bruno@clisp.org>
67337         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
67338         least 4.2.
67340 2009-03-01  Eric Blake  <ebb9@byu.net>
67341             Bruno Haible  <bruno@clisp.org>
67343         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
67344         error messages.
67345         * lib/wait-process.c (wait_subprocess): Omit error message about
67346         deadly signal sent to the child of termsigp != NULL.
67348 2009-03-01  Eric Blake  <ebb9@byu.net>
67350         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
67352 2009-03-01  Bruno Haible  <bruno@clisp.org>
67354         Avoid a gcc warning.
67355         * tests/test-sched.c (b): Make global.
67356         Reported by Eric Blake.
67358 2009-01-19  Martin Lambers  <marlam@marlam.de>
67360         Provide POSIX semantics for socket timeout options on W32.
67361         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
67362         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
67363         * modules/setsockopt: Depend on sys_time module for struct timeval.
67364         * modules/getsockopt: Depend on sys_time module for struct timeval.
67366 2009-03-01  Simon Josefsson  <simon@josefsson.org>
67368         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
67369         __USE_GNU, for consistency with netdb.in.h.
67370         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67372 2009-03-01  Bruno Haible  <bruno@clisp.org>
67374         More support for FreeMiNT.
67375         * lib/fseeko.c (rpl_fseeko): Complete last commit.
67376         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67378 2009-03-01  Bruno Haible  <bruno@clisp.org>
67380         More support for FreeMiNT.
67381         * lib/fpurge.c (fpurge): Correct last commit.
67382         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67384 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67386         Fix unportable awk script in vc-list-files.
67387         * build-aux/vc-list-files: In the replacement awk script, use
67388         substr with a second argument of 1, not zero.
67389         Report by Simon Josefsson.
67391 2009-02-28  Bruno Haible  <bruno@clisp.org>
67393         More support for FreeMiNT.
67394         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
67395         to FreeMiNT today.
67396         * lib/fwriting.c (fwriting): Likewise.
67397         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
67399 2009-02-28  Bruno Haible  <bruno@clisp.org>
67401         * tests/test-freadseek.c (main): Disable test beyond end of file on
67402         FreeMiNT.
67403         * tests/test-ftello.c (main): Likewise.
67404         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67406 2009-02-28  Bruno Haible  <bruno@clisp.org>
67408         Add tentative support for FreeMiNT.
67409         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
67410         * lib/fpurge.c (fpurge): Likewise.
67411         * lib/freadable.c (freadable): Likewise.
67412         * lib/freading.c (freading): Likewise.
67413         * lib/freadptr.c (freadptr): Likewise.
67414         * lib/freadseek.c (freadptrinc): Likewise.
67415         * lib/fseeko.c (rpl_fseeko): Likewise.
67416         * lib/fseterr.c (fseterr): Likewise.
67417         * lib/fwritable.c (fwritable): Likewise.
67418         * lib/fwriting.c (fwriting): Likewise.
67419         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
67420         Hourihane.
67421         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67423 2009-02-28  Bruno Haible  <bruno@clisp.org>
67425         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
67426         SIGCHLD.
67427         Reported by Jim Meyering.
67429 2009-02-28  Bruno Haible  <bruno@clisp.org>
67431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
67432         Mention the results of these tests on various platforms.
67433         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
67434         order.
67435         * doc/posix-functions/printf.texi: Likewise.
67436         * doc/posix-functions/snprintf.texi: Likewise.
67437         * doc/posix-functions/sprintf.texi: Likewise.
67438         * doc/posix-functions/vfprintf.texi: Likewise.
67439         * doc/posix-functions/vprintf.texi: Likewise.
67440         * doc/posix-functions/vsnprintf.texi: Likewise.
67441         * doc/posix-functions/vsprintf.texi: Likewise.
67442         * doc/glibc-functions/obstack_printf.texi: Likewise.
67443         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
67445 2009-02-28  Bruno Haible  <bruno@clisp.org>
67447         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
67448         Reported by Loïc Minier <lool@dooz.org>.
67450 2009-02-27  Bruno Haible  <bruno@clisp.org>
67452         * gnulib-tool (func_import): Make the sed expression used to create the
67453         sed script for updating the .gitignore file POSIX compliant.
67454         Reported by Eric Blake.
67456 2009-02-27  Bruno Haible  <bruno@clisp.org>
67458         * gnulib-tool (sed): Don't alias as "sed --posix".
67459         Reported by Eric Blake.
67461 2009-02-27  Bruno Haible  <bruno@clisp.org>
67463         Avoid test link errors.
67464         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
67465         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
67466         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
67467         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
67468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67470 2009-02-27  Bruno Haible  <bruno@clisp.org>
67472         Avoid spurious "(cached)" in configure output.
67473         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
67474         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
67475         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
67476         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
67477         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
67478         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
67479         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
67480         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
67481         Reported by Eric Blake.
67483 2009-02-27  Eric Blake  <ebb9@byu.net>
67485         printf: fix regression in previous patch
67486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
67488 2009-02-27  Bruno Haible  <bruno@clisp.org>
67490         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
67491         value.
67492         * lib/stdint.in.h: Likewise.
67493         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
67495 2009-02-27  Eric Blake  <ebb9@byu.net>
67497         doc: mention more functions added in cygwin 1.7.0
67498         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
67499         addition.
67500         * doc/posix-functions/open_wmemstream.texi: Likewise.
67501         * doc/posix-functions/wcsnlen.texi: Likewise.
67502         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67503         * doc/posix-functions/wcstod.texi: Likewise.
67504         * doc/posix-functions/wcstof.texi: Likewise.
67505         * doc/posix-functions/wcstoimax.texi: Likewise.
67506         * doc/posix-functions/wcstok.texi: Likewise.
67507         * doc/posix-functions/wcstoumax.texi: Likewise.
67509         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
67510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
67511         * doc/posix-functions/fprintf.texi: Update.
67512         * doc/posix-functions/printf.texi: Update.
67513         * doc/posix-functions/snprintf.texi: Update.
67514         * doc/posix-functions/sprintf.texi: Update.
67515         * doc/posix-functions/vfprintf.texi: Update.
67516         * doc/posix-functions/vprintf.texi: Update.
67517         * doc/posix-functions/vsnprintf.texi: Update.
67518         * doc/posix-functions/vsprintf.texi: Update.
67519         * doc/glibc-functions/obstack_printf.texi: Update.
67520         * doc/glibc-functions/obstack_vprintf.texi: Update.
67522 2009-02-26  Eric Blake  <ebb9@byu.net>
67524         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
67525         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
67526         compilation bug by using runtime conversion.
67527         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67528         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
67529         * modules/ceill-tests (Files): Use nan.h.
67530         * modules/floorl-tests (Files): Likewise.
67531         * modules/frexpl-tests (Files): Likewise.
67532         * modules/isnanl-tests (Files): Likewise.
67533         * modules/ldexpl-tests (Files): Likewise.
67534         * modules/roundl-tests (Files): Likewise.
67535         * modules/truncl-tests (Files): Likewise.
67536         * tests/test-ceill.c (main): Use a working NaN.
67537         * tests/test-floorl.c (main): Likewise.
67538         * tests/test-frexpl.c (main): Likewise.
67539         * tests/test-isnan.c (test_long_double): Likewise.
67540         * tests/test-isnanl.h (main): Likewise.
67541         * tests/test-ldexpl.h (main): Likewise.
67542         * tests/test-roundl.h (main): Likewise.
67543         * tests/test-truncl.h (main): Likewise.
67544         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
67546 2009-02-26  Eric Blake  <ebb9@byu.net>
67547             Bruno Haible  <bruno@clisp.org>
67549         Work around a *printf bug with %ls on Solaris.
67550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
67551         precision is specified, sprintf stops converting the wide string
67552         argument when the number of bytes that have been produced by this
67553         conversion equals or exceeds the precision.
67554         * doc/posix-functions/fprintf.texi: Update.
67555         * doc/posix-functions/printf.texi: Update.
67556         * doc/posix-functions/snprintf.texi: Update.
67557         * doc/posix-functions/sprintf.texi: Update.
67558         * doc/posix-functions/vfprintf.texi: Update.
67559         * doc/posix-functions/vprintf.texi: Update.
67560         * doc/posix-functions/vsnprintf.texi: Update.
67561         * doc/posix-functions/vsprintf.texi: Update.
67562         * doc/glibc-functions/obstack_printf.texi: Update.
67563         * doc/glibc-functions/obstack_vprintf.texi: Update.
67565 2009-02-26  Eric Blake  <ebb9@byu.net>
67567         stdlib: favor compiler check of random.h
67568         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
67569         to avoid an ObjC random.h installed by Swarm.
67571 2009-02-26  Bruno Haible  <bruno@clisp.org>
67573         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
67574         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
67575         Reported by Gary V. Vaughan <gary@gnu.org>.
67577 2009-02-26  Bruno Haible  <bruno@clisp.org>
67579         Fix *printf behaviour regarding the %ls directive.
67580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
67581         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
67582         NEED_PRINTF_DIRECTIVE_LS.
67583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
67584         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
67585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67586         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
67587         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
67588         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
67589         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
67590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67591         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67592         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67593         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67594         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67598         * doc/posix-functions/fprintf.texi: Update.
67599         * doc/posix-functions/printf.texi: Update.
67600         * doc/posix-functions/snprintf.texi: Update.
67601         * doc/posix-functions/sprintf.texi: Update.
67602         * doc/posix-functions/vfprintf.texi: Update.
67603         * doc/posix-functions/vprintf.texi: Update.
67604         * doc/posix-functions/vsnprintf.texi: Update.
67605         * doc/posix-functions/vsprintf.texi: Update.
67606         * doc/glibc-functions/obstack_printf.texi: Update.
67607         * doc/glibc-functions/obstack_vprintf.texi: Update.
67608         Reported by Eric Blake.
67610 2009-02-25  Bruno Haible  <bruno@clisp.org>
67612         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67613         with known value.
67614         Reported by Gary V. Vaughan <gary@gnu.org>.
67616 2009-02-25  Bruno Haible  <bruno@clisp.org>
67618         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67619         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67620         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67621         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67622         Reported by Gary V. Vaughan <gary@gnu.org>.
67624 2009-02-25  Bruno Haible  <bruno@clisp.org>
67626         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67627         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67628         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67629         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67630         Reported by Gary V. Vaughan <gary@gnu.org>.
67632 2009-02-25  Eric Blake  <ebb9@byu.net>
67634         tests: skip fseek/ftell tests if ungetc is broken
67635         * m4/ungetc.m4: New file.
67636         * modules/fseek-tests: Split test, so ungetc dependency is
67637         separate from rest of test.
67638         * modules/fseeko-tests: Likewise.
67639         * modules/ftell-tests: Likewise.
67640         * modules/ftello-tests: Likewise.
67641         * tests/test-fseek.c (main): Isolate ungetc dependency.
67642         * tests/test-fseeko.c (main): Likewise.
67643         * tests/test-ftell.c (main): Likewise.
67644         * tests/test-ftello.c (main): Likewise.
67645         * tests/test-fseek2.sh: New file.
67646         * tests/test-fseeko2.sh: Likewise.
67647         * tests/test-ftell2.sh: Likewise.
67648         * tests/test-ftello2.sh: Likewise.
67650 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67652         test-getaddrinfo: fix usage of skip return code 77
67653         * tests/test-gettaddrinfo.c: Return skip code 77 only
67654         for first occurrence of skip (4x77 is not 77)
67656 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67658         strtod: avoid C99 decl-after-statement
67659         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67661 2009-02-24  Eric Blake  <ebb9@byu.net>
67663         strtod: detect HP-UX 11.31 bug
67664         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67665         Reported by Gary V. Vaughan.
67667 2009-02-23  Bruno Haible  <bruno@clisp.org>
67669         Fix invalid read past end of memory block.
67670         * lib/vasnprintf.c (DCHAR_SET): Define.
67671         (local_wcslen): Define only when needed.
67672         (local_strnlen, local_wcsnlen): New functions.
67673         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67674         directives that involve a conversion ourselves.
67675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67676         wcsnlen, mbrtowc, wcrtomb.
67677         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67678         * tests/test-vasprintf-posix.c (test_function): Likewise.
67679         * tests/test-snprintf-posix.h (test_function): Likewise.
67680         * tests/test-sprintf-posix.h (test_function): Likewise.
67681         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67683 2009-02-22  Bruno Haible  <bruno@clisp.org>
67685         Implement new clarified decomposition of Hangul syllables.
67686         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67687         of type LTV, return only a pairwise decomposition.
67688         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67689         Likewise.
67690         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67691         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67692         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67694 2009-02-22  Bruno Haible  <bruno@clisp.org>
67696         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67697         zero-length results and shrink excess allocated memory.
67698         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67699         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67700         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67701         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67702         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67703         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67704         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67705         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67706         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67707         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67708         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67709         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67711 2009-02-21  Bruno Haible  <bruno@clisp.org>
67713         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67714         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67715         spaces after a period. Put a space between a macro name and its
67716         argument list. Trivial rewordings.
67717         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67718         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67719         (main): Return 0 explicitly.
67721 2009-02-21  Bruno Haible  <bruno@clisp.org>
67723         Tests for module 'uninorm/filter'.
67724         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67725         * modules/uninorm/filter-tests: New file.
67727         New module 'uninorm/filter'.
67728         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67729         uninorm_filter_flush, uninorm_filter_free): New declarations.
67730         * lib/uninorm/uninorm-filter.c: New file.
67731         * modules/uninorm/filter: New file.
67733 2009-02-21  Bruno Haible  <bruno@clisp.org>
67735         Tests for module 'uninorm/nfkc'.
67736         * tests/uninorm/test-nfkc.c: New file.
67737         * tests/uninorm/test-u8-nfkc.c: New file.
67738         * tests/uninorm/test-u16-nfkc.c: New file.
67739         * tests/uninorm/test-u32-nfkc.c: New file.
67740         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67741         * tests/uninorm/test-u32-nfkc-big.c: New file.
67742         * modules/uninorm/nfkc-tests: New file.
67744         New module 'uninorm/nfkc'.
67745         * lib/uninorm/nfkc.c: New file.
67746         * modules/uninorm/nfkc: New file.
67748         Tests for module 'uninorm/nfkd'.
67749         * tests/uninorm/test-nfkd.c: New file.
67750         * tests/uninorm/test-u8-nfkd.c: New file.
67751         * tests/uninorm/test-u16-nfkd.c: New file.
67752         * tests/uninorm/test-u32-nfkd.c: New file.
67753         * tests/uninorm/test-u32-nfkd-big.sh: New file.
67754         * tests/uninorm/test-u32-nfkd-big.c: New file.
67755         * modules/uninorm/nfkd-tests: New file.
67757         New module 'uninorm/nfkd'.
67758         * lib/uninorm/nfkd.c: New file.
67759         * modules/uninorm/nfkd: New file.
67761         Tests for module 'uninorm/nfc'.
67762         * tests/uninorm/test-nfc.c: New file.
67763         * tests/uninorm/test-u8-nfc.c: New file.
67764         * tests/uninorm/test-u16-nfc.c: New file.
67765         * tests/uninorm/test-u32-nfc.c: New file.
67766         * tests/uninorm/test-u32-nfc-big.sh: New file.
67767         * tests/uninorm/test-u32-nfc-big.c: New file.
67768         * modules/uninorm/nfc-tests: New file.
67770         New module 'uninorm/nfc'.
67771         * lib/uninorm/nfc.c: New file.
67772         * modules/uninorm/nfc: New file.
67774         Tests for module 'uninorm/nfd'.
67775         * tests/uninorm/test-nfd.c: New file.
67776         * tests/uninorm/test-u8-nfd.c: New file.
67777         * tests/uninorm/test-u16-nfd.c: New file.
67778         * tests/uninorm/test-u32-nfd.c: New file.
67779         * tests/uninorm/test-u32-nfd-big.sh: New file.
67780         * tests/uninorm/test-u32-nfd-big.c: New file.
67781         * tests/uninorm/test-u32-normalize-big.h: New file.
67782         * tests/uninorm/test-u32-normalize-big.c: New file.
67783         * tests/uninorm/NormalizationTest.txt: New file, created from
67784         Unicode 5.1.0 NormalizationTest.txt.
67785         * modules/uninorm/nfd-tests: New file.
67787         New module 'uninorm/nfd'.
67788         * lib/uninorm/nfd.c: New file.
67789         * modules/uninorm/nfd: New file.
67791         New module 'uninorm/u32-normalize'.
67792         * lib/uninorm/u32-normalize.c: New file.
67793         * modules/uninorm/u32-normalize: New file.
67795         New module 'uninorm/u16-normalize'.
67796         * lib/uninorm/u16-normalize.c: New file.
67797         * modules/uninorm/u16-normalize: New file.
67799         New module 'uninorm/u8-normalize'.
67800         * lib/uninorm/u8-normalize.c: New file.
67801         * lib/uninorm/normalize-internal.h: New file.
67802         * lib/uninorm/u-normalize-internal.h: New file.
67803         * modules/uninorm/u8-normalize: New file.
67805         New module 'uninorm/decompose-internal'.
67806         * lib/uninorm/decompose-internal.c: New file.
67807         * modules/uninorm/decompose-internal: New file.
67809         Tests for module 'uninorm/composition'.
67810         * tests/uninorm/test-composition.c: New file.
67811         * modules/uninorm/composition-tests: New file.
67813         New module 'uninorm/composition'.
67814         * lib/uninorm/composition.c: New file.
67815         * lib/uninorm/composition-table.gperf: New file, generated by
67816         gen-uni-tables.
67817         * modules/uninorm/composition: New file.
67819         Tests for module 'uninorm/compat-decomposition'.
67820         * tests/uninorm/test-compat-decomposition.c: New file.
67821         * modules/uninorm/compat-decomposition-tests: New file.
67823         New module 'uninorm/compat-decomposition'.
67824         * lib/uninorm/decompose-internal.h: New file.
67825         * lib/uninorm/compat-decomposition.c: New file.
67826         * modules/uninorm/compat-decomposition: New file.
67828         Tests for module 'uninorm/canonical-decomposition'.
67829         * tests/uninorm/test-canonical-decomposition.c: New file.
67830         * modules/uninorm/canonical-decomposition-tests: New file.
67832         New module 'uninorm/canonical-decomposition'.
67833         * lib/uninorm/canonical-decomposition.c: New file.
67834         * modules/uninorm/canonical-decomposition: New file.
67836         Tests for module 'uninorm/decomposition'.
67837         * tests/uninorm/test-decomposition.c: New file.
67838         * modules/uninorm/decomposition-tests: New file.
67840         New module 'uninorm/decomposition'.
67841         * lib/uninorm/decomposition.c: New file.
67842         * modules/uninorm/decomposition: New file.
67844         New module 'uninorm/decomposition-table'.
67845         * lib/uninorm/decomposition-table.h: New file.
67846         * lib/uninorm/decomposition-table.c: New file.
67847         * lib/uninorm/decomposition-table1.h: New file, generated by
67848         gen-uni-tables.
67849         * lib/uninorm/decomposition-table2.h: New file, generated by
67850         gen-uni-tables.
67851         * modules/uninorm/decomposition-table: New file.
67853         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
67854         (UC_DECOMP_*): New enumeration items.
67855         (get_decomposition): New function.
67856         (struct decomp_table): New type.
67857         (output_decomposition, output_decomposition_tables): New functions.
67858         (unicode_composition_exclusions): New variable.
67859         (fill_composition_exclusions, debug_output_composition_tables): New
67860         functions.
67861         (main): Accept one more argument. Invoke fill_composition_exclusions.
67862         Output decomposition and composition tables.
67864         New module 'uninorm/base'.
67865         * lib/uninorm.h: New file.
67866         * lib/unictype.h: Update comment.
67867         * modules/uninorm/base: New file.
67869 2009-02-21  David Lutterkort  <lutter@redhat.com>
67871         Tests for module 'safe-alloc'.
67872         * tests/test-safe-alloc.c: New file.
67873         * modules/safe-alloc-tests: New file.
67875         New module 'safe-alloc'.
67876         * lib/safe-alloc.h: New file.
67877         * lib/safe-alloc.c: New file.
67878         * m4/safe-alloc.m4: New file.
67879         * modules/safe-alloc: New file.
67880         * doc/safe-alloc.texi: New file.
67881         * doc/gnulib.texi: Include it.
67882         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67883         safe-alloc.
67885 2009-02-18  Bruno Haible  <bruno@clisp.org>
67887         Fix link error on non-glibc systems.
67888         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67889         variable.
67890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67892 2009-02-18  Jim Meyering  <meyering@redhat.com>
67894         fts: avoid used-uninitialized error due to recent change
67895         * lib/fts.c (fts_read): Guard uses of the new member,
67896         parent->fts_n_dirs_remaining, since it's not relevant for
67897         the parent of a directory specified on the command-line.
67899 2009-02-17  James Youngman  <jay@gnu.org>
67900             Bruno Haible  <bruno@clisp.org>
67902         * m4/include_next.m4: Reformulate comment.
67904 2009-02-16  Jim Meyering  <meyering@redhat.com>
67906         fts: add #if guards so that the fts_lgpl module still builds
67907         * lib/fts.c: Guard just-added hash-table-using parts with
67908         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67909         Reported by Simon Josefsson.
67911 2009-02-15  Bruno Haible  <bruno@clisp.org>
67913         * modules/array-mergesort-tests: New file.
67914         * tests/test-array-mergesort.c: New file.
67916         New module 'array-mergesort'.
67917         * modules/array-mergesort: New file.
67918         * lib/array-mergesort.h: New file.
67920 2009-02-15  Bruno Haible  <bruno@clisp.org>
67922         Fix 2009-02-07 commit.
67923         * lib/gen-uni-tables.c (output_predicate, output_category,
67924         output_combclass, output_bidi_category, output_decimal_digit,
67925         output_digit, output_numeric, output_mirror, output_scripts,
67926         output_ident_category, output_simple_mapping): Fix format directives.
67927         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
67929 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
67931         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
67932         fixes are available from IBM.
67934 2009-02-13  Jim Meyering  <meyering@redhat.com>
67936         fts: arrange not to stat non-directories in more cases
67937         This makes GNU find (when it doesn't need to stat each file)
67938         *much* more efficient at traversing reiserfs file systems.
67939         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
67940         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
67941         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
67942         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
67943         (leaf_optimization_applies): New function.
67944         (LCO_hash, LCO_compare): New helper functions.
67945         (link_count_optimize_ok): New function.
67946         (fts_stat): Initialize new member (if dir).
67947         (fts_read): Decrement parent's fts_n_dirs_remaining count if
67948         we've just stat'ed a directory.  Skip the stat call when possible.
67949         ---
67950         Note this AFS-related exchange:
67951         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
67952         and note find's pioctl call in find/fstype.c.
67953         But that is necessary only if you want to enable the
67954         optimization for AFS, and for now, I don't.
67956         fts: move a function definition "up" (no semantic change)
67957         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
67958         "up" to precede upcoming use of a related function.
67960 2009-02-11  Jim Meyering  <meyering@redhat.com>
67962         fts: correct internal computation of nlinks (optimization-related)
67963         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
67964         whether the current entry is a directory, so don't test it.
67966 2009-02-10  Bruno Haible  <bruno@clisp.org>
67968         Tests for module 'uniwbrk/ulc-wordbreaks'.
67969         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
67970         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
67971         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
67973         Tests for module 'uniwbrk/u32-wordbreaks'.
67974         * modules/uniwbrk/u32-wordbreaks-tests: New file.
67975         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
67977         Tests for module 'uniwbrk/u16-wordbreaks'.
67978         * modules/uniwbrk/u16-wordbreaks-tests: New file.
67979         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
67981         Tests for module 'uniwbrk/u8-wordbreaks'.
67982         * modules/uniwbrk/u8-wordbreaks-tests: New file.
67983         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
67985 2009-02-10  Bruno Haible  <bruno@clisp.org>
67987         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
67988         property.
67989         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
67990         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
67991         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
67993 2009-02-10  Simon Josefsson  <simon@josefsson.org>
67995         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
67996         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
67998 2009-02-10  Bruno Haible  <bruno@clisp.org>
68000         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
68001         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
68002         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
68003         * lib/unilbrk/u8-possible-linebreaks.c: Update.
68004         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
68005         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
68007 2009-02-09  Simon Josefsson  <simon@josefsson.org>
68009         * lib/sockets.h (gl_fd_to_handle): New function.
68011         * tests/test-sockets.c: Call gl_fd_to_handle.
68013 2009-02-09  Bruno Haible  <bruno@clisp.org>
68015         * doc/havelib.texi: Document the conventions on bi-arch systems.
68017 2009-02-08  Bruno Haible  <bruno@clisp.org>
68019         Document the AC_LIB_LINKFLAGS macro.
68020         * doc/havelib.texi: New file, mostly written on 2005-05-24.
68021         * doc/gnulib.texi: Include it.
68023 2009-02-08  Bruno Haible  <bruno@clisp.org>
68025         Fix wrong order of sections, compared to TOC.
68026         * doc/gnulib.texi: Include relocatable-maint.texi after the
68027         "Regular expressions" node, not before.
68029 2009-02-08  Bruno Haible  <bruno@clisp.org>
68031         Tests for module 'unicase/totitle'.
68032         * modules/unicase/totitle-tests: New file.
68034         Tests for module 'unicase/tolower'.
68035         * modules/unicase/tolower-tests: New file.
68037         Tests for module 'unicase/toupper'.
68038         * modules/unicase/toupper-tests: New file.
68039         * tests/unicase/test-mapping-part1.h: New file.
68040         * tests/unicase/test-mapping-part2.h: New file.
68042         New module 'unicase/totitle'.
68043         * modules/unicase/totitle: New file.
68044         * lib/unicase/totitle.c: New file.
68046         New module 'unicase/tolower'.
68047         * modules/unicase/tolower: New file.
68048         * lib/unicase/tolower.c: New file.
68050         New module 'unicase/toupper'.
68051         * modules/unicase/toupper: New file.
68052         * lib/unicase/toupper.c: New file.
68053         * lib/unicase/simple-mapping.h: New file.
68055         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
68056         (mapping_table): New structure.
68057         (output_simple_mapping): New function.
68058         (main): Invoke output_simple_mapping_test and output_simple_mapping.
68059         * modules/gen-uni-tables (Description): Update.
68060         * lib/unicase/toupper.h: New file, automatically generated by
68061         gen-uni-tables.
68062         * lib/unicase/tolower.h: New file, automatically generated by
68063         gen-uni-tables.
68064         * lib/unicase/totitle.h: New file, automatically generated by
68065         gen-uni-tables.
68066         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
68067         gen-uni-tables.
68068         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
68069         gen-uni-tables.
68070         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
68071         gen-uni-tables.
68073         New module 'unicase/base'.
68074         * modules/unicase/base: New file.
68075         * lib/unicase.h: New file.
68077 2009-02-08  Bruno Haible  <bruno@clisp.org>
68079         New module 'uniwbrk/ulc-wordbreaks'.
68080         * modules/uniwbrk/ulc-wordbreaks: New file.
68081         * lib/uniwbrk/ulc-wordbreaks.c: New file.
68083         New module 'uniwbrk/u32-wordbreaks'.
68084         * modules/uniwbrk/u32-wordbreaks: New file.
68085         * lib/uniwbrk/u32-wordbreaks.c: New file.
68087         New module 'uniwbrk/u16-wordbreaks'.
68088         * modules/uniwbrk/u16-wordbreaks: New file.
68089         * lib/uniwbrk/u16-wordbreaks.c: New file.
68091         New module 'uniwbrk/u8-wordbreaks'.
68092         * modules/uniwbrk/u8-wordbreaks: New file.
68093         * lib/uniwbrk/u8-wordbreaks.c: New file.
68094         * lib/uniwbrk/u-wordbreaks.h: New file.
68096         New module 'uniwbrk/table'.
68097         * modules/uniwbrk/table: New file.
68098         * lib/uniwbrk/wbrktable.h: New file.
68099         * lib/uniwbrk/wbrktable.c: New file.
68101         New module 'uniwbrk/wordbreak-property'.
68102         * modules/uniwbrk/wordbreak-property: New file.
68103         * lib/uniwbrk/wordbreak-property.c: New file.
68105         * lib/gen-uni-tables.c (WBP_*): New enum items.
68106         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
68107         (unicode_org_wbp): New variable.
68108         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
68109         New functions.
68110         (wbp_table): New structure.
68111         (output_wbp, output_wbrk_tables): New functions.
68112         (main): Accept additional argument. Invoke fill_org_wbp,
68113         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
68114         output_wbrk_tables.
68115         * modules/gen-uni-tables (Description): Update.
68116         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
68117         gen-uni-tables.
68119         New module 'uniwbrk/base'.
68120         * modules/uniwbrk/base: New file.
68121         * lib/uniwbrk.h: New file.
68123 2009-02-08  Bruno Haible  <bruno@clisp.org>
68125         Update to Unicode 5.1.0.
68126         * lib/gen-uni-tables.c (is_property_alphabetic): Include
68127         U+2185..U+2188.
68128         (is_property_default_ignorable_code_point): Don't include characters
68129         of category Cc or Cs and not-a-characters.
68130         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
68131         U+0D79, U+109E, U+109F, U+A60C.
68132         * lib/unictype/bidi_of.h: Regenerated.
68133         * lib/unictype/blocks.h: Regenerated.
68134         * lib/unictype/categ_C.h: Regenerated.
68135         * lib/unictype/categ_Cf.h: Regenerated.
68136         * lib/unictype/categ_Cn.h: Regenerated.
68137         * lib/unictype/categ_L.h: Regenerated.
68138         * lib/unictype/categ_Ll.h: Regenerated.
68139         * lib/unictype/categ_Lm.h: Regenerated.
68140         * lib/unictype/categ_Lo.h: Regenerated.
68141         * lib/unictype/categ_Lu.h: Regenerated.
68142         * lib/unictype/categ_M.h: Regenerated.
68143         * lib/unictype/categ_Mc.h: Regenerated.
68144         * lib/unictype/categ_Me.h: Regenerated.
68145         * lib/unictype/categ_Mn.h: Regenerated.
68146         * lib/unictype/categ_N.h: Regenerated.
68147         * lib/unictype/categ_Nd.h: Regenerated.
68148         * lib/unictype/categ_Nl.h: Regenerated.
68149         * lib/unictype/categ_No.h: Regenerated.
68150         * lib/unictype/categ_P.h: Regenerated.
68151         * lib/unictype/categ_Pd.h: Regenerated.
68152         * lib/unictype/categ_Pe.h: Regenerated.
68153         * lib/unictype/categ_Pf.h: Regenerated.
68154         * lib/unictype/categ_Pi.h: Regenerated.
68155         * lib/unictype/categ_Po.h: Regenerated.
68156         * lib/unictype/categ_Ps.h: Regenerated.
68157         * lib/unictype/categ_S.h: Regenerated.
68158         * lib/unictype/categ_Sk.h: Regenerated.
68159         * lib/unictype/categ_Sm.h: Regenerated.
68160         * lib/unictype/categ_So.h: Regenerated.
68161         * lib/unictype/categ_of.h: Regenerated.
68162         * lib/unictype/combining.h: Regenerated.
68163         * lib/unictype/ctype_alnum.h: Regenerated.
68164         * lib/unictype/ctype_alpha.h: Regenerated.
68165         * lib/unictype/ctype_graph.h: Regenerated.
68166         * lib/unictype/ctype_lower.h: Regenerated.
68167         * lib/unictype/ctype_print.h: Regenerated.
68168         * lib/unictype/ctype_punct.h: Regenerated.
68169         * lib/unictype/ctype_upper.h: Regenerated.
68170         * lib/unictype/decdigit.h: Regenerated.
68171         * lib/unictype/digit.h: Regenerated.
68172         * lib/unictype/mirror.h: Regenerated.
68173         * lib/unictype/numeric.h: Regenerated.
68174         * lib/unictype/pr_alphabetic.h: Regenerated.
68175         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
68176         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
68177         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
68178         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
68179         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
68180         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
68181         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
68182         * lib/unictype/pr_combining.h: Regenerated.
68183         * lib/unictype/pr_dash.h: Regenerated.
68184         * lib/unictype/pr_decimal_digit.h: Regenerated.
68185         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
68186         * lib/unictype/pr_deprecated.h: Regenerated.
68187         * lib/unictype/pr_diacritic.h: Regenerated.
68188         * lib/unictype/pr_extender.h: Regenerated.
68189         * lib/unictype/pr_format_control.h: Regenerated.
68190         * lib/unictype/pr_grapheme_base.h: Regenerated.
68191         * lib/unictype/pr_grapheme_extend.h: Regenerated.
68192         * lib/unictype/pr_grapheme_link.h: Regenerated.
68193         * lib/unictype/pr_id_continue.h: Regenerated.
68194         * lib/unictype/pr_id_start.h: Regenerated.
68195         * lib/unictype/pr_ideographic.h: Regenerated.
68196         * lib/unictype/pr_ignorable_control.h: Regenerated.
68197         * lib/unictype/pr_lowercase.h: Regenerated.
68198         * lib/unictype/pr_math.h: Regenerated.
68199         * lib/unictype/pr_numeric.h: Regenerated.
68200         * lib/unictype/pr_other_alphabetic.h: Regenerated.
68201         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
68202         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
68203         * lib/unictype/pr_other_id_continue.h: Regenerated.
68204         * lib/unictype/pr_other_lowercase.h: Regenerated.
68205         * lib/unictype/pr_other_math.h: Regenerated.
68206         * lib/unictype/pr_punctuation.h: Regenerated.
68207         * lib/unictype/pr_sentence_terminal.h: Regenerated.
68208         * lib/unictype/pr_soft_dotted.h: Regenerated.
68209         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
68210         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
68211         * lib/unictype/pr_unified_ideograph.h: Regenerated.
68212         * lib/unictype/pr_uppercase.h: Regenerated.
68213         * lib/unictype/pr_xid_continue.h: Regenerated.
68214         * lib/unictype/pr_xid_start.h: Regenerated.
68215         * lib/unictype/pr_zero_width.h: Regenerated.
68216         * lib/unictype/scripts.h: Regenerated.
68217         * lib/unictype/scripts_byname.gperf: Regenerated.
68218         * lib/unictype/sy_java_ident.h: Regenerated.
68219         * lib/unilbrk/lbrkprop1.h: Regenerated.
68220         * lib/unilbrk/lbrkprop2.h: Regenerated.
68221         * tests/unictype/test-categ_C.c: Regenerated.
68222         * tests/unictype/test-categ_Cf.c: Regenerated.
68223         * tests/unictype/test-categ_Cn.c: Regenerated.
68224         * tests/unictype/test-categ_L.c: Regenerated.
68225         * tests/unictype/test-categ_Ll.c: Regenerated.
68226         * tests/unictype/test-categ_Lm.c: Regenerated.
68227         * tests/unictype/test-categ_Lo.c: Regenerated.
68228         * tests/unictype/test-categ_Lu.c: Regenerated.
68229         * tests/unictype/test-categ_M.c: Regenerated.
68230         * tests/unictype/test-categ_Mc.c: Regenerated.
68231         * tests/unictype/test-categ_Me.c: Regenerated.
68232         * tests/unictype/test-categ_Mn.c: Regenerated.
68233         * tests/unictype/test-categ_N.c: Regenerated.
68234         * tests/unictype/test-categ_Nd.c: Regenerated.
68235         * tests/unictype/test-categ_Nl.c: Regenerated.
68236         * tests/unictype/test-categ_No.c: Regenerated.
68237         * tests/unictype/test-categ_P.c: Regenerated.
68238         * tests/unictype/test-categ_Pd.c: Regenerated.
68239         * tests/unictype/test-categ_Pe.c: Regenerated.
68240         * tests/unictype/test-categ_Pf.c: Regenerated.
68241         * tests/unictype/test-categ_Pi.c: Regenerated.
68242         * tests/unictype/test-categ_Po.c: Regenerated.
68243         * tests/unictype/test-categ_Ps.c: Regenerated.
68244         * tests/unictype/test-categ_S.c: Regenerated.
68245         * tests/unictype/test-categ_Sk.c: Regenerated.
68246         * tests/unictype/test-categ_Sm.c: Regenerated.
68247         * tests/unictype/test-categ_So.c: Regenerated.
68248         * tests/unictype/test-ctype_alnum.c: Regenerated.
68249         * tests/unictype/test-ctype_alpha.c: Regenerated.
68250         * tests/unictype/test-ctype_graph.c: Regenerated.
68251         * tests/unictype/test-ctype_lower.c: Regenerated.
68252         * tests/unictype/test-ctype_print.c: Regenerated.
68253         * tests/unictype/test-ctype_punct.c: Regenerated.
68254         * tests/unictype/test-ctype_upper.c: Regenerated.
68255         * tests/unictype/test-decdigit.h: Regenerated.
68256         * tests/unictype/test-digit.h: Regenerated.
68257         * tests/unictype/test-numeric.h: Regenerated.
68258         * tests/unictype/test-pr_alphabetic.c: Regenerated.
68259         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
68260         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
68261         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
68262         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
68263         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
68264         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
68265         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
68266         * tests/unictype/test-pr_combining.c: Regenerated.
68267         * tests/unictype/test-pr_dash.c: Regenerated.
68268         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
68269         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
68270         * tests/unictype/test-pr_deprecated.c: Regenerated.
68271         * tests/unictype/test-pr_diacritic.c: Regenerated.
68272         * tests/unictype/test-pr_extender.c: Regenerated.
68273         * tests/unictype/test-pr_format_control.c: Regenerated.
68274         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
68275         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
68276         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
68277         * tests/unictype/test-pr_id_continue.c: Regenerated.
68278         * tests/unictype/test-pr_id_start.c: Regenerated.
68279         * tests/unictype/test-pr_ideographic.c: Regenerated.
68280         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
68281         * tests/unictype/test-pr_lowercase.c: Regenerated.
68282         * tests/unictype/test-pr_math.c: Regenerated.
68283         * tests/unictype/test-pr_numeric.c: Regenerated.
68284         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
68285         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
68286         Regenerated.
68287         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
68288         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
68289         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
68290         * tests/unictype/test-pr_other_math.c: Regenerated.
68291         * tests/unictype/test-pr_punctuation.c: Regenerated.
68292         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
68293         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
68294         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
68295         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
68296         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
68297         * tests/unictype/test-pr_uppercase.c: Regenerated.
68298         * tests/unictype/test-pr_xid_continue.c: Regenerated.
68299         * tests/unictype/test-pr_xid_start.c: Regenerated.
68300         * tests/unictype/test-pr_zero_width.c: Regenerated.
68302         Update to Unicode 5.1.0.
68303         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
68304         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
68305         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
68306         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
68307         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
68308         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
68309         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
68310         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
68311         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
68312         (nonspacing_table_ind): Update.
68313         * tests/uniwidth/test-uc_width2.sh: Update expected result.
68315         Update to Unicode 5.1.0.
68316         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
68317         code transform.
68318         * lib/uniname/uniname.c (unicode_character_name,
68319         unicode_name_character): Add the range 0x1Fxxx to the code transform.
68320         * lib/uniname/uninames.h: Regenerated.
68321         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
68323 2009-02-07  Bruno Haible  <bruno@clisp.org>
68325         Merge gen-ctype and gen-lbrk into a single program.
68326         * lib/gen-uni-tables.c: New file, incorporating
68327         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
68328         Add directory prefixes to the names of the generated files.
68329         * lib/unictype/gen-ctype.c: Remove file.
68330         * lib/unilbrk/gen-lbrk.c: Remove file.
68331         * modules/gen-uni-tables: New file.
68332         * modules/unictype/gen-ctype: Remove file.
68333         * modules/unilbrk/gen-lbrk: Remove file.
68335 2009-02-07  Bruno Haible  <bruno@clisp.org>
68337         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
68339         New module 'unistr/u32-strcoll'.
68340         * modules/unistr/u32-strcoll: New file.
68341         * lib/unistr/u32-strcoll.c: New file.
68343         New module 'unistr/u16-strcoll'.
68344         * modules/unistr/u16-strcoll: New file.
68345         * lib/unistr/u16-strcoll.c: New file.
68347         New module 'unistr/u8-strcoll'.
68348         * modules/unistr/u8-strcoll: New file.
68349         * lib/unistr/u8-strcoll.c: New file.
68350         * lib/unistr/u-strcoll.h: New file.
68352 2009-02-07  Bruno Haible  <bruno@clisp.org>
68354         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
68355         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68356         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68357         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
68358         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
68359         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
68361 2009-02-07  Bruno Haible  <bruno@clisp.org>
68363         Make 64-bit clean.
68364         * lib/unictype/gen-ctype.c (output_predicate, output_category,
68365         output_combclass, output_bidi_category, output_decimal_digit,
68366         output_digit, output_numeric, output_mirror, output_scripts,
68367         output_ident_category): Use proper width specifier in format strings.
68369 2009-02-07  Bruno Haible  <bruno@clisp.org>
68371         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
68372         failure behaviour.
68374 2009-02-07  Jim Meyering  <meyering@redhat.com>
68376         regex: avoid compilation failure with upcoming gcc-4.4
68377         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
68378         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
68379         "... error: integer overflow in preprocessor expression".
68381 2009-02-05  Ben Pfaff  <blp@gnu.org>
68383         Fix link errors on Windows when close module is used.
68384         * modules/close: Add $(LIB_CLOSE) to Link section.
68385         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
68386         $(LIB_CLOSE) on Windows.
68388 2009-02-05  Jim Meyering  <meyering@redhat.com>
68390         still avoid unused-parameter warnings, but do it cleanly
68391         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
68392         (get_fs_usage): Cast to void instead.
68393         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
68394         (dev_from_mount_options, read_file_system_list): Cast to void.
68395         Prompted by Bruno Haible.
68397 2009-02-04  Jim Meyering  <meyering@redhat.com>
68399         fsusage.c: correct copyright year
68400         * lib/fsusage.c: Reflect year in which the change is pushed into
68402         avoid misc. warnings
68403         * lib/fsusage.c (UNUSED_PARAM): Define.
68404         (get_fs_usage): Mark parameter "disk" as unused.
68405         * lib/getugroups.c (getgrent): Use "void" in prototype.
68406         * lib/mountlist.c: Mark unused parameters.
68407         (read_file_system_list): Declare a local with "const".
68408         * lib/nanosleep.c (getnow): Declare static.
68409         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
68411         dirfd: set errno upon failure
68412         * lib/dirfd.c: Include <errno.h>.
68413         Set errno to ENOTSUP when returning -1.
68414         * modules/dirfd (Depends-on): Add errno.
68415         Suggested by John Kodis <kodis@comcast.net>.
68417 2009-02-01  Bruno Haible  <bruno@clisp.org>
68419         Don't assume sizeof (long) >= sizeof (void *).
68420         * lib/memcmp.c: Include stdint.h.
68421         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
68422         srcp2 to 'const byte *'.
68423         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
68424         types to uintptr_t.
68425         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
68426         * modules/memcmp (Depends-on): Add stdint.
68427         Reported by Ozkan Sezer <sezeroz@gmail.com>.
68429 2009-01-30  Eric Blake  <ebb9@byu.net>
68431         fix more require-before-expand issues
68432         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
68433         expand, AC_PROG_AWK.
68434         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
68436 2009-01-28  Eric Blake  <ebb9@byu.net>
68438         version-etc: use consistent URL formatting
68439         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
68440         Improve formatting.  Use fputs for string without %.
68442 2009-01-28  Jim Meyering  <meyering@redhat.com>
68444         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
68445         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
68446         "underquoted definition of NAME" from autoconf-2.59.
68448 2009-01-28  Bruno Haible  <bruno@clisp.org>
68450         * doc/gnulib.texi: Add "Obsolete modules" to index.
68452 2009-01-28  Jim Meyering  <meyering@redhat.com>
68454         useless-if-before-free: recognize more variants
68455         * build-aux/useless-if-before-free: Also recognize e.g.,
68456         if (NULL != p) free (p);
68458 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
68460         test-getaddrinfo: skip (don't fail) this test when there's no network
68461         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
68462         on the presumption that it means you lack network access.
68464 2009-01-26  Jim Meyering  <meyering@redhat.com>
68466         fflush: avoid warnings on modern systems
68467         * lib/fflush.c (rpl_fflush): Move declarations of locals,
68468         pos and result, into scopes where they're used.
68470 2009-01-26  Eric Blake  <ebb9@byu.net>
68472         Silence warning reintroduced by recent extensions patch.
68473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
68474         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
68475         autoconf.
68477         Backport improved autoconf semantics of AC_DEFUN_ONCE.
68478         * m4/00gnulib.m4: New file.
68479         * gnulib-tool (func_get_filelist): Always use it.
68480         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
68481         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
68483 2009-01-25  Bruno Haible  <bruno@clisp.org>
68485         Make test-quotearg work on MacOS X and AIX.
68486         * tests/test-quotearg.sh: New file.
68487         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
68488         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
68489         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
68490         include <libintl.h>.
68491         (fake_locale): Remove variable.
68492         (gettext, dgettext, dcgettext): Remove functions.
68493         (main): Instead of setting a fake locale, set a real locale. Call
68494         textdomain and bindtextdomain.
68495         * modules/quotearg-tests (Files): Add the new files.
68496         (Depends-on): Add gettext, setenv, unsetenv.
68497         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68498         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
68499         Augment TESTS_ENVIRONMENT.
68501 2009-01-25  Bruno Haible  <bruno@clisp.org>
68503         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
68504         fr_FR.ISO8859-1 locale on MacOS X.
68505         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
68506         ja_JP.eucJP locale on MacOS X.
68507         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
68508         zh_CN.GB18030 locale on MacOS X.
68510 2009-01-25  Bruno Haible  <bruno@clisp.org>
68512         Avoid link errors on MacOS X 10.3.
68513         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
68514         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68516 2009-01-25  Bruno Haible  <bruno@clisp.org>
68518         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68519         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
68520         * modules/pipe (Files): Remove m4/posix_spawn.m4.
68521         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68522         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
68523         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68524         posix_spawnattr_init, posix_spawnattr_setsigmask,
68525         posix_spawnattr_setflags, posix_spawnattr_destroy.
68527         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68528         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
68529         * modules/execute (Files): Remove m4/posix_spawn.m4.
68530         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68531         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68532         posix_spawnattr_init, posix_spawnattr_setsigmask,
68533         posix_spawnattr_setflags, posix_spawnattr_destroy.
68535 2009-01-25  Bruno Haible  <bruno@clisp.org>
68537         * lib/glthread/threadlib.c: Include <stdlib.h>.
68539 2009-01-25  Bruno Haible  <bruno@clisp.org>
68541         * lib/glthread/threadlib.c (dummy): New declaration.
68543 2009-01-25  Bruno Haible  <bruno@clisp.org>
68545         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
68546         multibyte characters also for the GB18030 encoding. Don't crash when
68547         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
68549 2009-01-25  Bruno Haible  <bruno@clisp.org>
68551         Avoid redefining 'struct random_data' on OSF/1 5.1.
68552         * lib/stdlib.in.h: Include <random.h> if it exists.
68553         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
68554         HAVE_RANDOM_H. Include <random.h> when testing whether
68555         'struct random_data' exists.
68556         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
68558 2009-01-25  Bruno Haible  <bruno@clisp.org>
68560         Don't install charset.alias on MacOS X >= 10.3.
68561         * lib/localcharset.c (DARWIN7): New macro.
68562         (get_charset_aliases): Hardcode the result for Darwin7.
68563         * modules/localcharset (install-exec-local): Don't install
68564         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
68566 2009-01-25  Bruno Haible  <bruno@clisp.org>
68568         Don't install charset.alias on mingw and Cygwin.
68569         * modules/localcharset (install-exec-local): Don't install
68570         charset.alias on mingw and Cygwin, if the file does not yet exist.
68571         The result for these platforms is hardcoded in localcharset.c.
68573 2009-01-25  Bruno Haible  <bruno@clisp.org>
68575         Make it possible again to use AC_GNU_SOURCE together with gnulib.
68576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
68577         before requiring AC_USE_SYSTEM_EXTENSIONS.
68579 2009-01-25  Jim Meyering  <meyering@redhat.com>
68581         c-strtod: avoid warnings
68582         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
68583         "assignment discards qualifiers from pointer target type" warnings.
68585 2009-01-24  Bruno Haible  <bruno@clisp.org>
68587         Add support for non-UTF-8 locales on MacOS X.
68588         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
68589         canonical encodings. For Darwin 7 and newer, don't map traditional
68590         encodings to UTF-8.
68591         Reported by Vincent Lefevre <vincent@vinc17.org>
68592         at <http://savannah.gnu.org/bugs/?25235>.
68594 2009-01-24  Bruno Haible  <bruno@clisp.org>
68596         * doc/gnulib.texi (Obsolete modules): New section.
68597         Reported by Mike Frysinger <vapier@gentoo.org>.
68599 2009-01-24  Bruno Haible  <bruno@clisp.org>
68601         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68602         (%.dvi): New rule.
68604 2009-01-24  Bruno Haible  <bruno@clisp.org>
68606         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68607         Reported by Eric Blake.
68609 2009-01-24  Bruno Haible  <bruno@clisp.org>
68611         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68612         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68613         Reported by Gary V. Vaughan <gary@gnu.org>.
68615 2009-01-24  Bruno Haible  <bruno@clisp.org>
68617         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68619 2009-01-23  Bruno Haible  <bruno@clisp.org>
68621         Make c-strtod, c-strtold usable in libraries.
68622         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68623         (C_STRTOD): Call strdup instead of xstrdup.
68624         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68625         * modules/c-strtold (Depends-on): Likewise.
68626         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68627         * NEWS: Mention the change.
68628         Reported by Michael Gold <mgold@ncf.ca>.
68630 2009-01-23  Jim Meyering  <meyering@redhat.com>
68632         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68633         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68634         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68636 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68638         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68639         GNU CoreUtils.
68640         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68641         * modules/version-etc (Description): Update.
68643 2009-01-22  Bruno Haible  <bruno@clisp.org>
68645         Cache the C locale object.
68646         * lib/c-strtod.c (c_locale_cache): New variable.
68647         (c_locale): New function.
68648         (C_STRTOD): Use it, and don't call freelocale.
68649         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68650         Suggested by Paolo Bonzini.
68652 2009-01-21  Bruno Haible  <bruno@clisp.org>
68654         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68655         conditions other than overflow.
68657 2009-01-21  Bruno Haible  <bruno@clisp.org>
68659         * lib/c-strtod.c: Include errno.h.
68660         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68661         value from STRTOD_L and STRTOD.
68663 2009-01-21  Bruno Haible  <bruno@clisp.org>
68664         and Jim Meyering  <meyering@redhat.com>
68666         nanosleep: skip configure test (fail it) for apple universal builds
68667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68668         universal builds, assume that nanosleep does not work.
68669         * modules/nanosleep (Depends-on): Add multiarch.
68671         mktime: skip configure test (fail it) for apple universal builds
68672         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68673         universal builds, assume that mktime does not work.
68674         * modules/mktime (Depends-on): Add multiarch.
68676 2009-01-21  Eric Blake  <ebb9@byu.net>
68678         multiarch: avoid expand-before-require warning
68679         * modules/multiarch (configure.ac): Require, rather than expand,
68680         gl_MULTIARCH.
68681         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68682         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68683         enforce that all clients require it.  Partial reversion of
68684         2008-12-29 patch.
68686         error: avoid expand-before-require warning
68687         * modules/errno (configure.ac): Require, rather than expand,
68688         gl_HEADER_ERRNO_H.
68689         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68690         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68691         enforce that all clients require it.
68693         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68694         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68695         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68696         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68698 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68700         Revert:
68701         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68703         regex: do not depend on obsolete modules.
68704         * modules/regex: Remove memcmp and memmove.
68706 2009-01-20  Bruno Haible  <bruno@clisp.org>
68708         Make the 'link' module link on Windows NT 4.
68709         * lib/link.c (_WIN32_WINNT): Don't define.
68710         (CreateHardLinkFuncType): New type.
68711         (CreateHardLinkFunc, initialized): New variables.
68712         (initialize): New function.
68713         (link): Invoke CreateHardLink indirectly through the function pointer.
68715 2009-01-20  Bruno Haible  <bruno@clisp.org>
68717         Fix compilation failure on mingw.
68718         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68720 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68722         * doc/c-strtod.texi: Mention a couple of restrictions.
68724 2009-01-20  Jim Meyering  <meyering@redhat.com>
68726         gettimeofday: move more declarations out of functions
68727         * lib/gettimeofday.c: Move extern declarations of tzset and
68728         gmtime out of containing functions.  Prompted by Bruno Haible.
68730 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68732         regex: do not depend on obsolete modules.
68733         * modules/regex: Remove memcmp and memmove.
68735 2009-01-19  Bruno Haible  <bruno@clisp.org>
68737         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68738         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68739         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68740         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68741         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68743 2009-01-19  Bruno Haible  <bruno@clisp.org>
68745         * tests/test-link.c: Include <errno.h>.
68746         (main): Exit with code 77 when a hard link cannot be created due to
68747         the file system.
68748         * tests/test-link.sh: Skip test when a hard link cannot be created due
68749         to the file system.
68750         Suggested by Eric Blake.
68752 2009-01-19  Martin Lambers  <marlam@marlam.de>
68754         * modules/link-tests: New file.
68755         * tests/test-link.sh: New file.
68756         * tests/test-link.c: New file.
68758 2009-01-19  Eric Blake  <ebb9@byu.net>
68760         doc: mention another function added in cygwin 1.7.0
68761         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
68762         Another new function in cygwin 1.7.
68764 2009-01-19  Bruno Haible  <bruno@clisp.org>
68766         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68767         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
68768         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
68769         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68770         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
68771         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
68772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
68773         * m4/md4.m4 (gl_MD4): Likewise.
68774         * m4/md5.m4 (gl_MD5): Likewise.
68775         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
68776         * m4/sha1.m4 (gl_SHA1): Likewise.
68777         * m4/sha256.m4 (gl_SHA256): Likewise.
68778         * m4/sha512.m4 (gl_SHA512): Likewise.
68780 2009-01-19  Bruno Haible  <bruno@clisp.org>
68782         * modules/uniname/uniname-tests (Depends-on): Add progname.
68783         * tests/uniname/test-uninames.c: Include progname.h.
68784         (main): Call set_program_name.
68786         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
68787         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
68788         (main): Call set_program_name.
68790         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
68791         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
68792         (main): Call set_program_name.
68794         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
68795         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
68796         (main): Call set_program_name.
68798         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
68799         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
68800         (main): Call set_program_name.
68802         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
68803         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
68804         (main): Call set_program_name.
68806         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
68807         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
68808         (main): Call set_program_name.
68810         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
68811         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
68812         (main): Call set_program_name.
68814         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
68815         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
68816         (main): Call set_program_name.
68818 2009-01-19  Eric Blake  <ebb9@byu.net>
68820         test-unistd: test previous patch
68821         * tests/test-unistd.c: Test *_FILENO macros.
68823         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
68824         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68825         Guarantee a definition.
68826         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
68827         * modules/unistd-safer (Depends-on): Add dependency on unistd.
68828         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
68829         * lib/dup-safer.c (STDERR_FILENO): Likewise.
68830         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68831         Likewise.
68832         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
68833         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
68834         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68835         Likewise.
68836         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
68837         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
68838         (STDERR_FILENO): Likewise.
68839         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
68840         (STDERR_FILENO): Likewise.
68841         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
68842         (STDERR_FILENO): Likewise.
68843         Reported by Elbert Pol.
68845 2009-01-19  Eric Blake  <ebb9@byu.net>
68847         doc: mention more functions added in cygwin 1.7.0
68848         * doc/posix-functions/abort.texi (abort): Update wording related
68849         to cygwin.
68850         * doc/posix-functions/daylight.texi (daylight): Likewise.
68851         * doc/posix-functions/optarg.texi (optarg): Likewise.
68852         * doc/posix-functions/optarg.texi (opterr): Likewise.
68853         * doc/posix-functions/optarg.texi (optind): Likewise.
68854         * doc/posix-functions/optarg.texi (optopt): Likewise.
68855         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
68856         worked in 1.5.x, and was withdrawn in 1.7.
68857         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68858         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68859         cygwin versions.
68860         * doc/posix-functions/perror.texi (perror): Likewise.
68861         * doc/posix-functions/printf.texi (printf): Likewise.
68862         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68863         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68864         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68865         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68866         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68867         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68868         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68869         Likewise.
68870         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68871         Likewise.
68872         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68873         this function.
68874         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68875         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68876         Likewise.
68877         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68878         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68879         * doc/posix-functions/confstr.texi (confstr): Likewise.
68880         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68881         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68882         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68883         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68884         * doc/posix-functions/fputws.texi (fputws): Likewise.
68885         * doc/posix-functions/fwide.texi (fwide): Likewise.
68886         * doc/posix-functions/getwc.texi (getwc): Likewise.
68887         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68888         * doc/posix-functions/putwc.texi (putwc): Likewise.
68889         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68890         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68891         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68892         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68893         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68894         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68895         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68896         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68897         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68898         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68899         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68901 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68903         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68904         * lib/ioctl.c: Include <sys/ioctl.h>.
68906 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68908         * modules/getdate-tests (Depends-on): Add progname.
68909         * tests/test-getdate.c: Use progname module, to avoid link errors
68910         on non-glibc systems.
68912 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68914         * modules/filenamecat-tests (Depends-on): Add progname.
68915         * modules/fstrcmp-tests (Depends-on): Likewise.
68917         * tests/test-filenamecat.c: Use progname module, to avoid link
68918         errors on non-glibc systems.
68919         * tests/test-fstrcmp.c: Likewise.
68921 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68923         gettimeofday: avoid warning: nested extern declaration of 'localtime'
68924         * lib/gettimeofday.c: Move extern declaration out of function.
68926 2009-01-18  Bruno Haible  <bruno@clisp.org>
68928         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
68929         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
68930         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
68932 2009-01-18  Bruno Haible  <bruno@clisp.org>
68934         * lib/strftime.c (MEMPCPY): Remove unused macro.
68935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
68937 2009-01-18  Martin Lambers  <marlam@marlam.de>
68939         New module 'link'.
68940         * lib/unistd.in.h (link): New declaration.
68941         * lib/link.c: New file.
68942         * m4/link.m4: New file.
68943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
68944         HAVE_LINK.
68945         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
68946         * modules/link: New file.
68947         * doc/posix-functions/link.texi: Mention the new module.
68949 2009-01-18  Bruno Haible  <bruno@clisp.org>
68951         * tests/test-avltree_list.c (main): Call set_program_name.
68952         * tests/test-avltree_oset.c (main): Likewise.
68953         * tests/test-obstack-printf.c: Include progname.h.
68954         (main): Call set_program_name.
68955         * tests/test-quotearg.c: Include progname.h.
68956         (main): Call set_program_name.
68957         * tests/test-xmemdup0.c: Include progname.h.
68958         (main): Call set_program_name.
68960 2009-01-18  Bruno Haible  <bruno@clisp.org>
68962         New module 'alphasort'.
68963         * lib/dirent.in.h (alphasort): New declaration.
68964         * lib/alphasort.c: New file, from glibc with modifications.
68965         * m4/alphasort.m4: New file.
68966         * modules/alphasort: New file.
68967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
68968         HAVE_ALPHASORT.
68969         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
68970         HAVE_ALPHASORT.
68971         * doc/posix-functions/alphasort.texi: Mention the new module and the
68972         portability problems.
68974 2009-01-18  Bruno Haible  <bruno@clisp.org>
68976         New module 'scandir'.
68977         * lib/dirent.in.h (scandir): New declaration.
68978         * lib/scandir.c: New file, from glibc with modifications.
68979         * m4/scandir.m4: New file.
68980         * modules/scandir: New file.
68981         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
68982         HAVE_SCANDIR.
68983         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
68984         HAVE_SCANDIR.
68985         * doc/posix-functions/scandir.texi: Mention the new module and the
68986         portability problems.
68988 2009-01-17  Bruno Haible  <bruno@clisp.org>
68990         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
68991         Update documentation.
68992         (func_remove_suffix): Escape all dots in the suffix. Update
68993         documentation.
68994         (func_filter_filelist): Update documentation.
68995         Reported by Ralf Wildenhues.
68997 2009-01-17  Bruno Haible  <bruno@clisp.org>
68999         * modules/dprintf-posix-tests: New file.
69000         * tests/test-dprintf-posix.sh: New file.
69001         * tests/test-dprintf-posix.c: New file.
69003         New modules 'dprintf', 'dprintf-posix'.
69004         * lib/stdio.in.h (dprintf): New declaration.
69005         * lib/dprintf.c: New file.
69006         * m4/dprintf.m4: New file.
69007         * m4/dprintf-posix.m4: New file.
69008         * modules/dprintf: New file.
69009         * modules/dprintf-posix: New file.
69010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
69011         HAVE_DPRINTF, REPLACE_DPRINTF.
69012         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
69013         HAVE_DPRINTF, REPLACE_DPRINTF.
69014         * doc/posix-functions/dprintf.texi: Mention the new modules.
69016 2009-01-17  Bruno Haible  <bruno@clisp.org>
69018         * modules/vdprintf-posix-tests: New file.
69019         * tests/test-vdprintf-posix.sh: New file.
69020         * tests/test-vdprintf-posix.c: New file.
69022         New modules 'vdprintf', 'vdprintf-posix'.
69023         * lib/stdio.in.h (vdprintf): New declaration.
69024         * lib/vdprintf.c: New file.
69025         * m4/vdprintf.m4: New file.
69026         * m4/vdprintf-posix.m4: New file.
69027         * modules/vdprintf: New file.
69028         * modules/vdprintf-posix: New file.
69029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
69030         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69031         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
69032         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69033         * doc/posix-functions/vdprintf.texi: Mention the new modules.
69035 2009-01-17  Bruno Haible  <bruno@clisp.org>
69037         Fix replacement of fopen on mingw.
69038         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
69039         mingw.
69041 2009-01-17  Bruno Haible  <bruno@clisp.org>
69043         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
69044         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
69046 2009-01-17  Bruno Haible  <bruno@clisp.org>
69048         Avoid test-fflush2.sh failure on mingw.
69049         * tests/test-fflush2.c: Include binary-io.h.
69050         (main): Put standard input into binary mode.
69051         * modules/fflush-tests (Depends-on): Add binary-io.
69053 2009-01-17  Bruno Haible  <bruno@clisp.org>
69055         * lib/wchar.in.h: In another particular situation, include only the
69056         system's <wchar.h> file.
69057         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
69058         Reported by Albert Chin-A-Young <china@thewrittenword.com>
69059         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
69061 2009-01-17  Bruno Haible  <bruno@clisp.org>
69063         Support for stripping executables in --enable-relocatable.
69064         * build-aux/install-reloc: Expect one more argument, or an environment
69065         variable RELOC_STRIP_PROG. If set, strip the destination program and
69066         its wrapper.
69067         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
69068         RELOC_STRIP_PROG.
69069         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
69070         to set RELOCATABLE_STRIP.
69071         * NEWS: Mention the new Makefile requirement.
69073 2009-01-17  Bruno Haible  <bruno@clisp.org>
69075         * build-aux/install-reloc: Remove debugging information left over by
69076         C compiler on MacOS X.
69078 2009-01-17  Bruno Haible  <bruno@clisp.org>
69080         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
69081         * lib/progreloc.c (find_executable): Fix type of pointer passed to
69082         _NSGetExecutablePath.
69084 2009-01-16  Jim Meyering  <meyering@redhat.com>
69086         strerror: avoid warnings about discarding "const"
69087         * lib/strerror.c (rpl_strerror): Instead of returning a const
69088         string from each and every "case", use a variable, and add a single
69089         cast after the switch.
69091 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
69093         * lib/arpa_inet.in.h: Add extern "C" block for C++.
69095 2009-01-16  Bruno Haible  <bruno@clisp.org>
69097         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
69098         array initializer syntax that also works in C++ mode.
69099         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69101 2009-01-16  Jim Meyering  <meyering@redhat.com>
69103         poll: suppress a warning
69104         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
69105         to ignore "...unsigned expression < 0 is always false" warnings.
69107 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
69109         poll: remove declarations of unused variables
69110         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
69111         sockbuf and optlen.
69113 2009-01-15  Bruno Haible  <bruno@clisp.org>
69115         Make fflush-after-ungetc POSIX compliant on BSD systems.
69116         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
69117         (clear_ungetc_buffer): Implement also for other systems.
69118         (rpl_fflush): On glibc systems, invoke
69119         clear_ungetc_buffer_preserving_position. Otherwise, invoke
69120         clear_ungetc_buffer after fetching the stream's position, not before.
69122 2009-01-15  Bruno Haible  <bruno@clisp.org>
69124         Make fflush-after-ungetc POSIX compliant on glibc systems.
69125         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
69126         after ungetc.
69127         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
69128         (rpl_fflush): On glibc systems, simply call the system's fflush
69129         function after clearing the ungetc buffer.
69130         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
69131         Instead, lseek only to the end of file, then use the system's fseeko
69132         for the rest. On glibc systems, reset the EOF indicator bit.
69134 2009-01-15  Jim Meyering  <meyering@redhat.com>
69136         openmp.m4: revert quote-adding change, for portability to older autoconf
69137         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
69138         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
69139         Simon Josefsson noticed the problem when using autoconf-2.61.
69141 2009-01-15  Bruno Haible  <bruno@clisp.org>
69143         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
69144         * tests/test-fflush2.c (ASSERT): Always fail.
69145         (main): Add two tests for fflush() after ungetc(), taking into account
69146         the Austin Group's clarification.
69147         Suggested by Eric Blake.
69149 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
69151         mktime.m4: remove K&R-style function prototypes
69152         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
69153         for the Sun C++ compiler.
69155 2009-01-14  Bruno Haible  <bruno@clisp.org>
69157         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
69158         while including <wchar.h>.
69159         * lib/wchar.in.h: In two particular situations on HP-UX, include only
69160         the system's <wchar.h> file.
69161         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69163 2009-01-14  Bruno Haible  <bruno@clisp.org>
69165         * m4/csharp.m4: Don't mention gettext on the serial number line.
69166         * m4/csharpexec.m4: Likewise.
69167         * m4/eaccess.m4: Likewise.
69168         * m4/javaexec.m4: Likewise.
69169         * m4/sig_atomic_t.m4: Likewise.
69170         * m4/tmpdir.m4: Likewise.
69171         * m4/intldir.m4: Bump gettext version.
69172         * m4/lib-ld.m4: Likewise.
69174 2009-01-14  Bruno Haible  <bruno@clisp.org>
69176         * lib/progname.c (set_program_name): Add more comments.
69177         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
69179 2009-01-14  Simon Josefsson  <simon@josefsson.org>
69181         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
69182         were sys/stat.h does not define it.
69184 2009-01-14  Jim Meyering  <meyering@redhat.com>
69186         many *.m4 files: improve m4 quoting
69187         99% of this change was performed by running the following commands:
69188         git ls-files | grep '\.m4$' | xargs perl -pi \
69189           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
69190           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69191           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69192           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
69193         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
69194         The remainder were to add Copyright dates, increment serial numbers,
69195         undo some changes in comments, exclude m4/intl.m4, and add quotes
69196         around the "1" in ",1" where the unusual spacing prohibited the
69197         above regexps from doing the job.  For more details, see
69198         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
69199         * m4/acl.m4: Modified.
69200         * m4/afs.m4: Likewise.
69201         * m4/alloca.m4: Likewise.
69202         * m4/argp.m4: Likewise.
69203         * m4/argz.m4: Likewise.
69204         * m4/atexit.m4: Likewise.
69205         * m4/bison-i18n.m4: Likewise.
69206         * m4/bison.m4: Likewise.
69207         * m4/byteswap.m4: Likewise.
69208         * m4/c-stack.m4: Likewise.
69209         * m4/c-strtod.m4: Likewise.
69210         * m4/calloc.m4: Likewise.
69211         * m4/canonicalize-lgpl.m4: Likewise.
69212         * m4/chown.m4: Likewise.
69213         * m4/clock_time.m4: Likewise.
69214         * m4/codeset.m4: Likewise.
69215         * m4/copy-file.m4: Likewise.
69216         * m4/csharp.m4: Likewise.
69217         * m4/csharpcomp.m4: Likewise.
69218         * m4/csharpexec.m4: Likewise.
69219         * m4/d-ino.m4: Likewise.
69220         * m4/d-type.m4: Likewise.
69221         * m4/dirfd.m4: Likewise.
69222         * m4/double-slash-root.m4: Likewise.
69223         * m4/eaccess.m4: Likewise.
69224         * m4/eealloc.m4: Likewise.
69225         * m4/environ.m4: Likewise.
69226         * m4/errno_h.m4: Likewise.
69227         * m4/euidaccess.m4: Likewise.
69228         * m4/execute.m4: Likewise.
69229         * m4/fatal-signal.m4: Likewise.
69230         * m4/fchdir.m4: Likewise.
69231         * m4/fcntl_h.m4: Likewise.
69232         * m4/fileblocks.m4: Likewise.
69233         * m4/filenamecat.m4: Likewise.
69234         * m4/findprog.m4: Likewise.
69235         * m4/flexmember.m4: Likewise.
69236         * m4/fnmatch.m4: Likewise.
69237         * m4/fopen.m4: Likewise.
69238         * m4/fpending.m4: Likewise.
69239         * m4/fprintf-posix.m4: Likewise.
69240         * m4/free.m4: Likewise.
69241         * m4/frexp.m4: Likewise.
69242         * m4/frexpl.m4: Likewise.
69243         * m4/fsusage.m4: Likewise.
69244         * m4/ftruncate.m4: Likewise.
69245         * m4/gc-camellia.m4: Likewise.
69246         * m4/gc-random.m4: Likewise.
69247         * m4/gc.m4: Likewise.
69248         * m4/getaddrinfo.m4: Likewise.
69249         * m4/getcwd-abort-bug.m4: Likewise.
69250         * m4/getcwd-path-max.m4: Likewise.
69251         * m4/getdate.m4: Likewise.
69252         * m4/getdomainname.m4: Likewise.
69253         * m4/getgroups.m4: Likewise.
69254         * m4/gethostname.m4: Likewise.
69255         * m4/gethrxtime.m4: Likewise.
69256         * m4/getline.m4: Likewise.
69257         * m4/getloadavg.m4: Likewise.
69258         * m4/getndelim2.m4: Likewise.
69259         * m4/getpass.m4: Likewise.
69260         * m4/gettext.m4: Likewise.
69261         * m4/gettime.m4: Likewise.
69262         * m4/gettimeofday.m4: Likewise.
69263         * m4/gnulib-common.m4: Likewise.
69264         * m4/group-member.m4: Likewise.
69265         * m4/host-os.m4: Likewise.
69266         * m4/iconv.m4: Likewise.
69267         * m4/iconv_open.m4: Likewise.
69268         * m4/inet_ntop.m4: Likewise.
69269         * m4/inet_pton.m4: Likewise.
69270         * m4/inline.m4: Likewise.
69271         * m4/intldir.m4: Likewise.
69272         * m4/intlmacosx.m4: Likewise.
69273         * m4/intmax.m4: Likewise.
69274         * m4/intmax_t.m4: Likewise.
69275         * m4/inttypes.m4: Likewise.
69276         * m4/inttypes_h.m4: Likewise.
69277         * m4/inttypes-pri.m4: Likewise.
69278         * m4/isapipe.m4: Likewise.
69279         * m4/isnand.m4: Likewise.
69280         * m4/isnanf.m4: Likewise.
69281         * m4/isnanl.m4: Likewise.
69282         * m4/javacomp.m4: Likewise.
69283         * m4/javaexec.m4: Likewise.
69284         * m4/jm-winsz1.m4: Likewise.
69285         * m4/jm-winsz2.m4: Likewise.
69286         * m4/lchown.m4: Likewise.
69287         * m4/lcmessage.m4: Likewise.
69288         * m4/ldexpl.m4: Likewise.
69289         * m4/lib-ld.m4: Likewise.
69290         * m4/lib-link.m4: Likewise.
69291         * m4/libsigsegv.m4: Likewise.
69292         * m4/link-follow.m4: Likewise.
69293         * m4/localcharset.m4: Likewise.
69294         * m4/locale-fr.m4: Likewise.
69295         * m4/locale-ja.m4: Likewise.
69296         * m4/locale-tr.m4: Likewise.
69297         * m4/locale-zh.m4: Likewise.
69298         * m4/lock.m4: Likewise.
69299         * m4/longlong.m4: Likewise.
69300         * m4/ls-mntd-fs.m4: Likewise.
69301         * m4/lstat.m4: Likewise.
69302         * m4/malloc.m4: Likewise.
69303         * m4/mathl.m4: Likewise.
69304         * m4/mbrtowc.m4: Likewise.
69305         * m4/mbstate_t.m4: Likewise.
69306         * m4/mbswidth.m4: Likewise.
69307         * m4/memchr.m4: Likewise.
69308         * m4/memcmp.m4: Likewise.
69309         * m4/memcpy.m4: Likewise.
69310         * m4/memmem.m4: Likewise.
69311         * m4/memmove.m4: Likewise.
69312         * m4/mempcpy.m4: Likewise.
69313         * m4/memrchr.m4: Likewise.
69314         * m4/memset.m4: Likewise.
69315         * m4/minmax.m4: Likewise.
69316         * m4/mkdir-slash.m4: Likewise.
69317         * m4/mkdtemp.m4: Likewise.
69318         * m4/mktime.m4: Likewise.
69319         * m4/mmap-anon.m4: Likewise.
69320         * m4/mountlist.m4: Likewise.
69321         * m4/nanosleep.m4: Likewise.
69322         * m4/nls.m4: Likewise.
69323         * m4/nocrash.m4: Likewise.
69324         * m4/open.m4: Likewise.
69325         * m4/openat.m4: Likewise.
69326         * m4/openmp.m4: Likewise.
69327         * m4/pathmax.m4: Likewise.
69328         * m4/perl.m4: Likewise.
69329         * m4/physmem.m4: Likewise.
69330         * m4/pipe.m4: Likewise.
69331         * m4/po.m4: Likewise.
69332         * m4/poll.m4: Likewise.
69333         * m4/posixtm.m4: Likewise.
69334         * m4/posixver.m4: Likewise.
69335         * m4/printf-frexp.m4: Likewise.
69336         * m4/printf-frexpl.m4: Likewise.
69337         * m4/printf-posix.m4: Likewise.
69338         * m4/printf-posix-rpl.m4: Likewise.
69339         * m4/printf.m4: Likewise.
69340         * m4/progtest.m4: Likewise.
69341         * m4/putenv.m4: Likewise.
69342         * m4/readline.m4: Likewise.
69343         * m4/readlink.m4: Likewise.
69344         * m4/readutmp.m4: Likewise.
69345         * m4/realloc.m4: Likewise.
69346         * m4/regex.m4: Likewise.
69347         * m4/relocatable.m4: Likewise.
69348         * m4/relocatable-lib.m4: Likewise.
69349         * m4/rename-dest-slash.m4: Likewise.
69350         * m4/rename.m4: Likewise.
69351         * m4/rmdir-errno.m4: Likewise.
69352         * m4/rmdir.m4: Likewise.
69353         * m4/roundf.m4: Likewise.
69354         * m4/roundl.m4: Likewise.
69355         * m4/rpmatch.m4: Likewise.
69356         * m4/save-cwd.m4: Likewise.
69357         * m4/selinux-selinux-h.m4: Likewise.
69358         * m4/setenv.m4: Likewise.
69359         * m4/settime.m4: Likewise.
69360         * m4/sig2str.m4: Likewise.
69361         * m4/sig_atomic_t.m4: Likewise.
69362         * m4/signalblocking.m4: Likewise.
69363         * m4/signbit.m4: Likewise.
69364         * m4/sigpipe.m4: Likewise.
69365         * m4/sockets.m4: Likewise.
69366         * m4/sockpfaf.m4: Likewise.
69367         * m4/st_dm_mode.m4: Likewise.
69368         * m4/stat-time.m4: Likewise.
69369         * m4/stdbool.m4: Likewise.
69370         * m4/stdint.m4: Likewise.
69371         * m4/stdint_h.m4: Likewise.
69372         * m4/stpcpy.m4: Likewise.
69373         * m4/stpncpy.m4: Likewise.
69374         * m4/strcase.m4: Likewise.
69375         * m4/strchrnul.m4: Likewise.
69376         * m4/strcspn.m4: Likewise.
69377         * m4/strdup.m4: Likewise.
69378         * m4/strftime.m4: Likewise.
69379         * m4/strndup.m4: Likewise.
69380         * m4/strnlen.m4: Likewise.
69381         * m4/strpbrk.m4: Likewise.
69382         * m4/strptime.m4: Likewise.
69383         * m4/strsep.m4: Likewise.
69384         * m4/strtod.m4: Likewise.
69385         * m4/strtoimax.m4: Likewise.
69386         * m4/strtok_r.m4: Likewise.
69387         * m4/strtol.m4: Likewise.
69388         * m4/strtoll.m4: Likewise.
69389         * m4/strtoul.m4: Likewise.
69390         * m4/strtoull.m4: Likewise.
69391         * m4/strtoumax.m4: Likewise.
69392         * m4/strverscmp.m4: Likewise.
69393         * m4/threadlib.m4: Likewise.
69394         * m4/timegm.m4: Likewise.
69395         * m4/tm_gmtoff.m4: Likewise.
69396         * m4/tmpdir.m4: Likewise.
69397         * m4/tmpfile.m4: Likewise.
69398         * m4/tzset.m4: Likewise.
69399         * m4/uintmax_t.m4: Likewise.
69400         * m4/unlinkdir.m4: Likewise.
69401         * m4/unlocked-io.m4: Likewise.
69402         * m4/uptime.m4: Likewise.
69403         * m4/userspec.m4: Likewise.
69404         * m4/utimbuf.m4: Likewise.
69405         * m4/utime.m4: Likewise.
69406         * m4/utimes-null.m4: Likewise.
69407         * m4/utimes.m4: Likewise.
69408         * m4/vararrays.m4: Likewise.
69409         * m4/vasnprintf.m4: Likewise.
69410         * m4/vfprintf-posix.m4: Likewise.
69411         * m4/vprintf-posix.m4: Likewise.
69412         * m4/wait-process.m4: Likewise.
69413         * m4/wchar_t.m4: Likewise.
69414         * m4/wint_t.m4: Likewise.
69415         * m4/write-any-file.m4: Likewise.
69416         * m4/yield.m4: Likewise.
69418 2009-01-13  Bruno Haible  <bruno@clisp.org>
69420         Avoid test-copy-file.sh failures when ACL support insufficient.
69421         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
69422         TESTS_ENVIRONMENT.
69423         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
69424         Reported by Jim Meyering.
69426 2009-01-13  Bruno Haible  <bruno@clisp.org>
69428         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
69429         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
69430         * modules/unistdio/u8-printf-parse (Files): Likewise.
69431         * modules/unistdio/u32-printf-parse (Files): Likewise.
69432         * modules/unistdio/ulc-printf-parse (Files): Likewise.
69434 2009-01-13  Simon Josefsson  <simon@josefsson.org>
69436         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
69437         and m4/inttypes_h.m4 too.
69439 2009-01-12  Eric Blake  <ebb9@byu.net>
69441         tests: IRIX 6.2 cc can't compile -0.0 into .data
69442         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
69443         rather than at compile-time.
69444         * tests/test-floorl.c (minus_zero): Likewise.
69445         * tests/test-frexpl.c (minus_zero): Likewise.
69446         * tests/test-isnan.c (minus_zerol): Likewise.
69447         * tests/test-isnanl.h (minus_zero): Likewise.
69448         * tests/test-ldexpl.c (minus_zero): Likewise.
69449         * tests/test-roundl.c (minus_zero): Likewise.
69450         * tests/test-signbit.c (minus_zerol): Likewise.
69451         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69452         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69453         * tests/test-truncl.c (minus_zero): Likewise.
69454         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69455         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69456         Reported by Tom G. Christensen and Nelson H. F. Beebe.
69458 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69460         regex: fix glibc bug 9697
69461         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
69462         handling.
69464 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69466         regex: fix glibc bug 697
69467         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
69468         being NULL also if there are no backreferences.
69470 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69472         regex: merge glibc changes
69473         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
69474         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
69475         re_string_skip_chars, re_string_reconstruct): Likewise.
69476         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
69478 2009-01-07  Jim Meyering  <meyering@redhat.com>
69480         poll: filter through cppi
69481         * lib/poll.c: Indent cpp directives to reflect nesting.
69483 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
69485         poll: don't return uninitialized
69486         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
69488 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
69490         avoid compile failure on AIX 6.1
69491         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
69492         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
69494 2009-01-04  Jim Meyering  <meyering@redhat.com>
69496         remove duplicate inclusion of <stdio.h>
69497         * tests/test-fprintf-posix.c: Likewise.
69498         * tests/test-printf-posix.c: Likewise.
69499         * tests/test-snprintf-posix.c: Likewise.
69500         * tests/test-sprintf-posix.c: Likewise.
69501         * tests/test-vasprintf-posix.c: Likewise.
69502         * tests/test-vfprintf-posix.c: Likewise.
69503         * tests/test-vprintf-posix.c: Likewise.
69504         * tests/test-vsnprintf-posix.c: Likewise.
69505         * tests/test-vsprintf-posix.c: Likewise.
69507 2009-01-03  Jim Meyering  <meyering@redhat.com>
69509         gnulib-tool: fix sed-based filtering
69510         * gnulib-tool (func_filter_filelist): Remove extra backslash
69511         in sed_fff_filter definition.
69513 2009-01-02  Jim Meyering  <meyering@redhat.com>
69515         strftime: avoid compilation failure on Solaris 2.6
69516         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
69517         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
69518         Don't #define mbrlen or mbsinit, since now they're guaranteed to
69519         be available.  Reported by Tom G. Christensen.  Details in
69520         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
69522 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69523             Bruno Haible  <bruno@clisp.org>
69525         Speed up gnulib-tool by doing more string processing through shell
69526         built-ins.
69527         * gnulib-tool (fast_func_append): New variable.
69528         (func_remove_prefix, func_remove_suffix): New functions.
69529         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
69530         (func_filter_filelist): New function.
69531         (func_get_dependencies): Use func_remove_suffix instead of sed.
69532         (func_get_automake_snippet): Use func_filter_filelist instead of a
69533         subshell and sed invocation.
69535 2009-01-01  Bruno Haible  <bruno@clisp.org>
69537         Fix a security bug.
69538         * gnulib-tool (func_import, import, update): Don't allow the characters
69539         '"', '$', '`', '\' in macro arguments that become part of commands that
69540         are evaluated.
69542 2009-01-01  Bruno Haible  <bruno@clisp.org>
69544         * gnulib-tool (func_reset_sigpipe): Add more comments.
69546 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69548         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
69549         func_emit_tests_Makefile_am, func_import): Abort loops early if we
69550         already know the answer.
69552 2009-01-01  Jim Meyering  <meyering@redhat.com>
69554         * lib/version-etc.c (version_etc_va): Update copyright year.
69556 2008-12-30  Bruno Haible  <bruno@clisp.org>
69558         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
69559         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
69560         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
69562 2008-12-29  Eric Blake  <ebb9@byu.net>
69564         multiarch: avoid autoconf AC_REQUIRE bug
69565         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
69566         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
69567         2.63 and older.
69568         Reported by Bruno Haible, and analyzed in
69569         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
69571 2008-12-29  Bruno Haible  <bruno@clisp.org>
69573         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
69574         files in subdirectories correctly.
69575         Reported by Ralf Wildenhues.
69577 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69579         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
69580         rather than 'join FILE -', for Solaris join.
69582 2008-12-29  Bruno Haible  <bruno@clisp.org>
69584         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
69585         quoting.
69586         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69587         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
69588         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
69589         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
69590         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
69591         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
69592         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
69593         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69594         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69595         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69596         * m4/nls.m4 (AM_NLS): Likewise.
69597         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69598         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69599         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69600         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69601         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69602         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69603         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69604         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69605         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69606         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69607         * m4/xsize.m4 (gl_XSIZE): Likewise.
69608         Suggested by Jim Meyering.
69610 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69612         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69613         * lib/parse-duration.c: use a switch instead of cascading if's.
69615 2008-12-29  Eric Blake  <ebb9@byu.net>
69617         wchar.h: supply WEOF on Irix 5.3
69618         * lib/wchar.in.h (wint_t): Also supply WEOF.
69619         * lib/wctype.in.h (wint_t): Likewise.
69620         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69621         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69622         Reported by Tom G. Christensen.
69624 2008-12-26  Bruno Haible  <bruno@clisp.org>
69626         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69627         i486, i586, i686.
69629 2008-12-26  Bruno Haible  <bruno@clisp.org>
69631         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69633 2008-12-26  Bruno Haible  <bruno@clisp.org>
69635         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69636         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69637         not __STDC_CONSTANT_MACROS.
69638         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69640 2008-12-25  Bruno Haible  <bruno@clisp.org>
69642         Add support for universal builds to vasnprintf.
69643         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69644         universal builds, guess no.
69645         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69646         * modules/vasprintf-posix (Depends-on): Likewise.
69647         * modules/fprintf-posix (Depends-on): Likewise.
69648         * modules/vfprintf-posix (Depends-on): Likewise.
69649         * modules/snprintf-posix (Depends-on): Likewise.
69650         * modules/vsnprintf-posix (Depends-on): Likewise.
69651         * modules/sprintf-posix (Depends-on): Likewise.
69652         * modules/vsprintf-posix (Depends-on): Likewise.
69653         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69654         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69655         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69656         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69657         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69658         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69659         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69661         Add support for universal builds to <inttypes.h>.
69662         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69663         _SCNu64_PREFIX): In Apple
69664         universal builds, define directly, using _LP64.
69665         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69666         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69667         * modules/inttypes (Depends-on): Add multiarch.
69668         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69670         Add support for universal builds to <stdint.h>.
69671         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69672         universal builds, define directly, using _LP64.
69673         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69674         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69675         and size_t.
69676         * modules/stdint (Depends-on): Add multiarch.
69677         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69679         New module 'multiarch'.
69680         * modules/multiarch: New file.
69681         * m4/multiarch.m4: New file.
69683 2008-12-25  Bruno Haible  <bruno@clisp.org>
69685         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69687 2008-12-25  Bruno Haible  <bruno@clisp.org>
69689         * modules/btowc (License): Relicense under LGPLv2+.
69690         * modules/mbsinit (License): Likewise.
69691         * modules/mbrtowc (License): Likewise.
69692         * modules/wcrtomb (License): Likewise.
69693         * modules/streq (License): Likewise.
69694         Reported by David Lutterkort <lutter@redhat.com>.
69696 2008-12-23  Bruno Haible  <bruno@clisp.org>
69698         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69700 2008-12-23  Bruno Haible  <bruno@clisp.org>
69702         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69704         GETADDRINFO_LIB, not in LIBS.
69705         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69706         * modules/canon-host (Link): Likewise.
69707         * NEWS: Mention the change.
69708         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69709         GETADDRINFO_LIB.
69711 2008-12-22  Bruno Haible  <bruno@clisp.org>
69713         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69714         * doc/posix-functions/iswalpha_l.texi: Likewise.
69715         * doc/posix-functions/iswblank_l.texi: Likewise.
69716         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69717         * doc/posix-functions/iswctype_l.texi: Likewise.
69718         * doc/posix-functions/iswdigit_l.texi: Likewise.
69719         * doc/posix-functions/iswgraph_l.texi: Likewise.
69720         * doc/posix-functions/iswlower_l.texi: Likewise.
69721         * doc/posix-functions/iswprint_l.texi: Likewise.
69722         * doc/posix-functions/iswpunct_l.texi: Likewise.
69723         * doc/posix-functions/iswspace_l.texi: Likewise.
69724         * doc/posix-functions/iswupper_l.texi: Likewise.
69725         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69726         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69727         * doc/posix-functions/open_wmemstream.texi: Likewise.
69728         * doc/posix-functions/swscanf.texi: Likewise.
69729         * doc/posix-functions/towctrans_l.texi: Likewise.
69730         * doc/posix-functions/towlower.texi: Likewise.
69731         * doc/posix-functions/towlower_l.texi: Likewise.
69732         * doc/posix-functions/towupper.texi: Likewise.
69733         * doc/posix-functions/towupper_l.texi: Likewise.
69734         * doc/posix-functions/vfwprintf.texi: Likewise.
69735         * doc/posix-functions/vfwscanf.texi: Likewise.
69736         * doc/posix-functions/vswscanf.texi: Likewise.
69737         * doc/posix-functions/vwprintf.texi: Likewise.
69738         * doc/posix-functions/vwscanf.texi: Likewise.
69739         * doc/posix-functions/wcpcpy.texi: Likewise.
69740         * doc/posix-functions/wcpncpy.texi: Likewise.
69741         * doc/posix-functions/wcscasecmp.texi: Likewise.
69742         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69743         * doc/posix-functions/wcscoll_l.texi: Likewise.
69744         * doc/posix-functions/wcsdup.texi: Likewise.
69745         * doc/posix-functions/wcsncasecmp.texi: Likewise.
69746         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
69747         * doc/posix-functions/wcsnlen.texi: Likewise.
69748         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69749         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69750         * doc/posix-functions/wctrans_l.texi: Likewise.
69751         * doc/posix-functions/wctype_l.texi: Likewise.
69752         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
69753         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
69754         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
69755         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
69756         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
69757         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
69758         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
69759         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
69760         * doc/glibc-functions/wcschrnul.texi: Likewise.
69761         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69762         * doc/glibc-functions/wcstod_l.texi: Likewise.
69763         * doc/glibc-functions/wcstof_l.texi: Likewise.
69764         * doc/glibc-functions/wcstol_l.texi: Likewise.
69765         * doc/glibc-functions/wcstold_l.texi: Likewise.
69766         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69767         * doc/glibc-functions/wcstoq.texi: Likewise.
69768         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69769         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69770         * doc/glibc-functions/wcstouq.texi: Likewise.
69771         * doc/glibc-functions/wmempcpy.texi: Likewise.
69773 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
69774             Eric Blake  <ebb9@byu.net>
69775             Paolo Bonzini  <bonzini@gnu.org>
69776             Bruno Haible  <bruno@clisp.org>
69778         Make c-stack work on Haiku.
69779         * lib/c-stack.c (SA_ONSTACK): Define fallback.
69780         (c_stack_action): Use SA_ONSTACK flag.
69782 2008-12-22  Bruno Haible  <bruno@clisp.org>
69784         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
69786 2008-12-22  Bruno Haible  <bruno@clisp.org>
69788         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
69789         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
69790         being overridden.
69791         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
69792         New macros.
69793         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
69794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
69795         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
69796         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
69798 2008-12-22  Bruno Haible  <bruno@clisp.org>
69800         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
69801         from test code.
69803 2008-12-22  Eric Blake  <ebb9@byu.net>
69805         Avoid gcc warnings on cygwin.
69806         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
69807         Avoid unused variable.
69808         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
69809         Likewise.
69811 2008-12-22  Bruno Haible  <bruno@clisp.org>
69813         Remove HAVE_MBRTOWC conditionals.
69814         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
69815         (mbscasecmp): Assume mbrtowc function.
69816         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
69817         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
69818         * lib/mbschr.c: Include mbuiter.h unconditionally.
69819         (mbschr): Assume mbrtowc function.
69820         * lib/mbscspn.c: Include mbuiter.h unconditionally.
69821         (mbscspn): Assume mbrtowc function.
69822         * lib/mbslen.c: Include mbuiter.h unconditionally.
69823         (mbslen): Assume mbrtowc function.
69824         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
69825         (mbsncasecmp): Assume mbrtowc function.
69826         * lib/mbsnlen.c: Include mbiter.h unconditionally.
69827         (mbsnlen): Assume mbrtowc function.
69828         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
69829         (mbspbrk): Assume mbrtowc function.
69830         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
69831         (mbspcasecmp): Assume mbrtowc function.
69832         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
69833         (mbsrchr): Assume mbrtowc function.
69834         * lib/mbssep.c: Include mbuiter.h unconditionally.
69835         (mbssep): Assume mbrtowc function.
69836         * lib/mbsspn.c: Include mbuiter.h unconditionally.
69837         (mbsspn): Assume mbrtowc function.
69838         * lib/mbsstr.c: Include mbuiter.h unconditionally.
69839         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
69840         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
69841         (mbstok_r): Assume mbrtowc function.
69842         * lib/propername.c: Include mbuiter.h unconditionally.
69843         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
69844         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
69845         (trim2): Assume mbrtowc function.
69846         * lib/mbswidth.c (mbsinit): Remove fallback definition.
69847         (mbsnwidth): Assume mbrtowc function.
69848         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
69849         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
69850         fallback definitions.
69851         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
69853 2008-12-22  Bruno Haible  <bruno@clisp.org>
69855         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
69857 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69859         * modules/regex: Request emulations for the mb*/wc* functions we need.
69860         * m4/regex.m4: Don't look for those functions here.
69861         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69863 2008-12-22  Bruno Haible  <bruno@clisp.org>
69865         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69867 2008-12-21  Bruno Haible  <bruno@clisp.org>
69869         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69870         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69871         (Include): Remove conditionalization.
69872         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69873         (Include): Remove conditionalization.
69874         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69875         (Include): Remove conditionalization.
69876         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69877         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69878         * NEWS: Mention the change.
69879         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69880         via Sergey Poznyakoff <gray@gnu.org.ua>.
69882 2008-12-21  Bruno Haible  <bruno@clisp.org>
69884         * MODULES.html.sh (Extended multibyte and wide character utilities
69885         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69886         wcrtomb, wcsrtombs.
69887         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69888         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69889         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69890         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69892 2008-12-21  Bruno Haible  <bruno@clisp.org>
69894         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69896 2008-12-21  Bruno Haible  <bruno@clisp.org>
69898         * modules/wcsnrtombs-tests: New file.
69899         * tests/test-wcsnrtombs1.sh: New file.
69900         * tests/test-wcsnrtombs2.sh: New file.
69901         * tests/test-wcsnrtombs3.sh: New file.
69902         * tests/test-wcsnrtombs4.sh: New file.
69903         * tests/test-wcsnrtombs.c: New file.
69905         New module 'wcsnrtombs'.
69906         * lib/wchar.in.h (wcsnrtombs): New declaration.
69907         * lib/wcsnrtombs.c: New file.
69908         * lib/wcsrtombs-state.c: New file.
69909         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69910         (internal_state): Remove variable.
69911         * m4/wcsnrtombs.m4: New file.
69912         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69913         compilation units.
69914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69915         HAVE_WCSNRTOMBS.
69916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69917         HAVE_WCSNRTOMBS.
69918         * modules/wcsnrtombs: New file.
69919         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
69920         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
69922 2008-12-21  Bruno Haible  <bruno@clisp.org>
69924         * modules/wcsrtombs-tests: New file.
69925         * tests/test-wcsrtombs1.sh: New file.
69926         * tests/test-wcsrtombs2.sh: New file.
69927         * tests/test-wcsrtombs3.sh: New file.
69928         * tests/test-wcsrtombs4.sh: New file.
69929         * tests/test-wcsrtombs.c: New file.
69931         New module 'wcsrtombs'.
69932         * lib/wchar.in.h (wcsrtombs): New declaration.
69933         * lib/wcsrtombs.c: New file.
69934         * m4/wcsrtombs.m4: New file.
69935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
69936         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
69938         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69939         * modules/wcsrtombs: New file.
69940         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
69941         bugs.
69943 2008-12-21  Bruno Haible  <bruno@clisp.org>
69945         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
69946         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
69947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
69948         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
69949         if not correct.
69950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
69951         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
69952         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69953         m4/locale-zh.m4, m4/codeset.m4.
69954         * doc/posix-functions/wcrtomb.texi: Document the bug.
69956 2008-12-21  Bruno Haible  <bruno@clisp.org>
69958         Work around a btowc() bug on IRIX 6.5.
69959         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
69960         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
69961         REPLACE_WTOBC if not.
69962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
69963         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
69964         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
69966 2008-12-21  Bruno Haible  <bruno@clisp.org>
69968         * modules/wcrtomb-tests: New file.
69969         * tests/test-wcrtomb.sh: New file.
69970         * tests/test-wcrtomb.c: New file.
69972         New module 'wcrtomb'.
69973         * lib/wchar.in.h (wcrtomb): New declaration.
69974         * lib/wcrtomb.c: New file.
69975         * m4/wcrtomb.m4: New file.
69976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
69977         HAVE_WCRTOMB.
69978         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
69979         HAVE_WCRTOMB.
69980         * modules/wcrtomb: New file.
69981         * doc/posix-functions/wcrtomb.texi: Mention the new module.
69983 2008-12-21  Bruno Haible  <bruno@clisp.org>
69985         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
69986         * modules/mbsrtowcs (Files): Likewise.
69987         * modules/wctob (Files): Likewise.
69988         * modules/c-strcase-tests (Files): Likewise.
69989         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69990         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69991         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69992         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69993         * modules/vasnprintf-posix-tests (Files): Likewise.
69995 2008-12-21  William Pursell  <bill.pursell@gmail.com>
69997         gitlog-to-changelog: pass all command-line arguments to git-log
69998         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
69999         it is sometimes convenient to filter the commits in various ways.
70000         gitlog-to-changelog only allows --since to specify a start date,
70001         but git-log itself supports many other filtering mechanisms.
70002         At the moment, I want to filter by branch name.  Rather than
70003         adding a --branch option to gitlog-to-changelog, it seems more
70004         flexible to simply pass all options directly to git-log and let
70005         git do the work.  Notice that this effectively makes --since a
70006         redundant option for gitlog-to-changelog, but removing it would
70007         require current usage to change since calls would then require
70008         an additional '--'.
70010 2008-12-21  Bruno Haible  <bruno@clisp.org>
70012         * modules/mbsnrtowcs-tests: New file.
70013         * tests/test-mbsnrtowcs1.sh: New file.
70014         * tests/test-mbsnrtowcs2.sh: New file.
70015         * tests/test-mbsnrtowcs3.sh: New file.
70016         * tests/test-mbsnrtowcs4.sh: New file.
70017         * tests/test-mbsnrtowcs.c: New file.
70019         New module 'mbsnrtowcs'.
70020         * lib/wchar.in.h (mbsnrtowcs): New declaration.
70021         * lib/mbsnrtowcs.c: New file.
70022         * lib/mbsrtowcs-state.c: New file.
70023         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
70024         (internal_state): Remove variable.
70025         * m4/mbsnrtowcs.m4: New file.
70026         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
70027         compilation units.
70028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
70029         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70030         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
70031         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70032         * modules/mbsnrtowcs: New file.
70033         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
70034         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
70035         portability problem.
70037 2008-12-21  Bruno Haible  <bruno@clisp.org>
70039         Work around mbsrtowcs bug.
70040         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
70041         (gl_FUNC_MBSRTOWCS): Invoke it.
70042         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70043         m4/locale-zh.m4.
70044         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
70046 2008-12-21  Bruno Haible  <bruno@clisp.org>
70048         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
70050 2008-12-21  Bruno Haible  <bruno@clisp.org>
70052         Update doc for AIX.
70053         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
70054         16-bit wchar_t type.
70055         * doc/posix-functions/btowc.texi: Likewise.
70056         * doc/posix-functions/fgetwc.texi: Likewise.
70057         * doc/posix-functions/fgetws.texi: Likewise.
70058         * doc/posix-functions/fputwc.texi: Likewise.
70059         * doc/posix-functions/fputws.texi: Likewise.
70060         * doc/posix-functions/fwide.texi: Likewise.
70061         * doc/posix-functions/fwprintf.texi: Likewise.
70062         * doc/posix-functions/fwscanf.texi: Likewise.
70063         * doc/posix-functions/getwchar.texi: Likewise.
70064         * doc/posix-functions/getwc.texi: Likewise.
70065         * doc/posix-functions/iswalnum.texi: Likewise.
70066         * doc/posix-functions/iswalpha.texi: Likewise.
70067         * doc/posix-functions/iswblank.texi: Likewise.
70068         * doc/posix-functions/iswcntrl.texi: Likewise.
70069         * doc/posix-functions/iswctype.texi: Likewise.
70070         * doc/posix-functions/iswdigit.texi: Likewise.
70071         * doc/posix-functions/iswgraph.texi: Likewise.
70072         * doc/posix-functions/iswlower.texi: Likewise.
70073         * doc/posix-functions/iswprint.texi: Likewise.
70074         * doc/posix-functions/iswpunct.texi: Likewise.
70075         * doc/posix-functions/iswspace.texi: Likewise.
70076         * doc/posix-functions/iswupper.texi: Likewise.
70077         * doc/posix-functions/iswxdigit.texi: Likewise.
70078         * doc/posix-functions/mbrtowc.texi: Likewise.
70079         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70080         * doc/posix-functions/mbstowcs.texi: Likewise.
70081         * doc/posix-functions/mbtowc.texi: Likewise.
70082         * doc/posix-functions/putwchar.texi: Likewise.
70083         * doc/posix-functions/putwc.texi: Likewise.
70084         * doc/posix-functions/swprintf.texi: Likewise.
70085         * doc/posix-functions/tolower.texi: Likewise.
70086         * doc/posix-functions/toupper.texi: Likewise.
70087         * doc/posix-functions/towctrans.texi: Likewise.
70088         * doc/posix-functions/ungetwc.texi: Likewise.
70089         * doc/posix-functions/vswprintf.texi: Likewise.
70090         * doc/posix-functions/wcrtomb.texi: Likewise.
70091         * doc/posix-functions/wcscat.texi: Likewise.
70092         * doc/posix-functions/wcschr.texi: Likewise.
70093         * doc/posix-functions/wcscmp.texi: Likewise.
70094         * doc/posix-functions/wcscoll.texi: Likewise.
70095         * doc/posix-functions/wcscpy.texi: Likewise.
70096         * doc/posix-functions/wcscspn.texi: Likewise.
70097         * doc/posix-functions/wcsftime.texi: Likewise.
70098         * doc/posix-functions/wcslen.texi: Likewise.
70099         * doc/posix-functions/wcsncat.texi: Likewise.
70100         * doc/posix-functions/wcsncmp.texi: Likewise.
70101         * doc/posix-functions/wcsncpy.texi: Likewise.
70102         * doc/posix-functions/wcspbrk.texi: Likewise.
70103         * doc/posix-functions/wcsrchr.texi: Likewise.
70104         * doc/posix-functions/wcsrtombs.texi: Likewise.
70105         * doc/posix-functions/wcsspn.texi: Likewise.
70106         * doc/posix-functions/wcsstr.texi: Likewise.
70107         * doc/posix-functions/wcstod.texi: Likewise.
70108         * doc/posix-functions/wcstof.texi: Likewise.
70109         * doc/posix-functions/wcstoimax.texi: Likewise.
70110         * doc/posix-functions/wcstok.texi: Likewise.
70111         * doc/posix-functions/wcstold.texi: Likewise.
70112         * doc/posix-functions/wcstoll.texi: Likewise.
70113         * doc/posix-functions/wcstol.texi: Likewise.
70114         * doc/posix-functions/wcstombs.texi: Likewise.
70115         * doc/posix-functions/wcstoull.texi: Likewise.
70116         * doc/posix-functions/wcstoul.texi: Likewise.
70117         * doc/posix-functions/wcstoumax.texi: Likewise.
70118         * doc/posix-functions/wcswidth.texi: Likewise.
70119         * doc/posix-functions/wcsxfrm.texi: Likewise.
70120         * doc/posix-functions/wctob.texi: Likewise.
70121         * doc/posix-functions/wctomb.texi: Likewise.
70122         * doc/posix-functions/wctrans.texi: Likewise.
70123         * doc/posix-functions/wctype.texi: Likewise.
70124         * doc/posix-functions/wcwidth.texi: Likewise.
70125         * doc/posix-functions/wmemchr.texi: Likewise.
70126         * doc/posix-functions/wmemcmp.texi: Likewise.
70127         * doc/posix-functions/wmemcpy.texi: Likewise.
70128         * doc/posix-functions/wmemmove.texi: Likewise.
70129         * doc/posix-functions/wmemset.texi: Likewise.
70130         * doc/posix-functions/wprintf.texi: Likewise.
70131         * doc/posix-functions/wscanf.texi: Likewise.
70133 2008-12-21  Bruno Haible  <bruno@clisp.org>
70135         Update doc for HP-UX 11.11.
70136         * doc/posix-functions/btowc.texi: Clarify that the function is missing
70137         in HP-UX version 11.00, not in all versions of HP-UX 11.
70138         * doc/posix-functions/fwide.texi: Likewise.
70139         * doc/posix-functions/fwprintf.texi: Likewise.
70140         * doc/posix-functions/fwscanf.texi: Likewise.
70141         * doc/posix-functions/inet_ntop.texi: Likewise.
70142         * doc/posix-functions/inet_pton.texi: Likewise.
70143         * doc/posix-functions/mbrlen.texi: Likewise.
70144         * doc/posix-functions/mbrtowc.texi: Likewise.
70145         * doc/posix-functions/mbsinit.texi: Likewise.
70146         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70147         * doc/posix-functions/swprintf.texi: Likewise.
70148         * doc/posix-functions/swscanf.texi: Likewise.
70149         * doc/posix-functions/towctrans.texi: Likewise.
70150         * doc/posix-functions/vfwprintf.texi: Likewise.
70151         * doc/posix-functions/vswprintf.texi: Likewise.
70152         * doc/posix-functions/vwprintf.texi: Likewise.
70153         * doc/posix-functions/wcrtomb.texi: Likewise.
70154         * doc/posix-functions/wcsrtombs.texi: Likewise.
70155         * doc/posix-functions/wcsstr.texi: Likewise.
70156         * doc/posix-functions/wctob.texi: Likewise.
70157         * doc/posix-functions/wctrans.texi: Likewise.
70158         * doc/posix-functions/wmemchr.texi: Likewise.
70159         * doc/posix-functions/wmemcmp.texi: Likewise.
70160         * doc/posix-functions/wmemcpy.texi: Likewise.
70161         * doc/posix-functions/wmemmove.texi: Likewise.
70162         * doc/posix-functions/wmemset.texi: Likewise.
70163         * doc/posix-functions/wprintf.texi: Likewise.
70164         * doc/posix-functions/wscanf.texi: Likewise.
70166 2008-12-21  Bruno Haible  <bruno@clisp.org>
70168         Work around a portability problem.
70169         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
70170         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
70172 2008-12-20  Bruno Haible  <bruno@clisp.org>
70174         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
70175         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
70176         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
70177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
70178         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
70180         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
70181         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
70182         set.
70183         (GNULIB_defined_mbstate_t): New macro.
70184         (mbsinit): Redefine if REPLACE_MBSINIT is set.
70185         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
70186         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
70187         reuses the system's mbrtowc function but works around the bugs.
70188         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
70189         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
70190         macros.
70191         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
70192         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
70193         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
70194         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
70195         REPLACE_MBSINIT if mbsinit needs to be overridden.
70196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
70197         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70198         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
70199         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70200         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70201         m4/locale-zh.m4.
70202         (Depends): Add mbsinit.
70203         * modules/mbsinit (Depends): Add mbrtowc.
70204         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
70206 2008-12-20  Bruno Haible  <bruno@clisp.org>
70208         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
70209         so that there are no conversion errors on AIX.
70210         * tests/test-mbsrtowcs.c (main): LIkewise.
70212 2008-12-20  Bruno Haible  <bruno@clisp.org>
70214         Work around wctob bug on Solaris <= 9.
70215         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
70216         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
70217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
70218         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
70219         * modules/wctob (Files): Add m4/locale-fr.m4.
70220         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
70222 2008-12-20  Bruno Haible  <bruno@clisp.org>
70224         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
70225         /dev/null.
70226         * tests/test-select-in.sh: Likewise.
70227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70229 2008-12-20  Bruno Haible  <bruno@clisp.org>
70231         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
70232         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
70233         Cygwin 1.5.x.
70235 2008-12-20  Bruno Haible  <bruno@clisp.org>
70237         Ensure mbstate_t is defined on HP-UX 11.11.
70238         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
70239         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
70240         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
70241         AC_USE_SYSTEM_EXTENSIONS.
70242         * modules/fnmatch (Depends-on): Add extensions.
70243         * modules/mbrlen (Depends-on): Likewise.
70244         * modules/mbrtowc (Depends-on): Likewise.
70245         * modules/mbsinit (Depends-on): Likewise.
70246         * modules/mbsrtowcs (Depends-on): Likewise.
70247         * modules/mbswidth (Depends-on): Likewise.
70248         * modules/quotearg (Depends-on): Likewise.
70249         * modules/strftime (Depends-on): Likewise.
70251 2008-12-20  Bruno Haible  <bruno@clisp.org>
70253         Ensure wctob is declared on IRIX 6.5.
70254         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
70255         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
70256         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
70257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
70258         of HAVE_WCTOB.
70259         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
70260         HAVE_WCTOB.
70261         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
70263 2008-12-19  Bruno Haible  <bruno@clisp.org>
70265         * modules/mbsrtowcs-tests: New file.
70266         * tests/test-mbsrtowcs1.sh: New file.
70267         * tests/test-mbsrtowcs2.sh: New file.
70268         * tests/test-mbsrtowcs3.sh: New file.
70269         * tests/test-mbsrtowcs4.sh: New file.
70270         * tests/test-mbsrtowcs.c: New file.
70272         New module 'mbsrtowcs'.
70273         * lib/wchar.in.h (mbsrtowcs): New declaration.
70274         * lib/mbsrtowcs.c: New file.
70275         * m4/mbsrtowcs.m4: New file.
70276         * modules/mbsrtowcs: New file.
70277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
70278         HAVE_MBSRTOWCS.
70279         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
70280         HAVE_MBSRTOWCS.
70281         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
70283 2008-12-19  Bruno Haible  <bruno@clisp.org>
70285         New module 'mbrlen'.
70286         * lib/wchar.in.h (mbrlen): New declaration.
70287         * lib/mbrlen.c: New file.
70288         * m4/mbrlen.m4: New file.
70289         * modules/mbrlen: New file.
70290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
70291         HAVE_MBRLEN.
70292         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
70293         HAVE_MBRLEN.
70294         * doc/posix-functions/mbrlen.texi: Document the new module.
70296 2008-12-19  Bruno Haible  <bruno@clisp.org>
70298         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
70299         * modules/mbrtowc (Depends-on): Add verify.
70300         Suggested by Paul Eggert.
70302 2008-12-18  Bruno Haible  <bruno@clisp.org>
70304         * modules/mbsinit-tests: New file.
70305         * tests/test-mbsinit.sh: New file.
70306         * tests/test-mbsinit.c: New file.
70308 2008-12-18  Bruno Haible  <bruno@clisp.org>
70310         * modules/mbrtowc-tests: New file.
70311         * tests/test-mbrtowc1.sh: New file.
70312         * tests/test-mbrtowc2.sh: New file.
70313         * tests/test-mbrtowc3.sh: New file.
70314         * tests/test-mbrtowc4.sh: New file.
70315         * tests/test-mbrtowc.c: New file.
70317         New module 'mbrtowc'.
70318         * lib/wchar.in.h (mbstate_t): Override when the system does not have
70319         mbsinit and mbrtowc.
70320         (mbrtowc): New declaration.
70321         * lib/mbrtowc.c: New file.
70322         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
70323         * modules/mbrtowc: New file.
70324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
70325         HAVE_MBRTOWC.
70326         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
70327         HAVE_MBRTOWC.
70328         * doc/posix-functions/mbrtowc.texi: Document the new module.
70330 2008-12-18  Bruno Haible  <bruno@clisp.org>
70332         New module 'wctob'.
70333         * lib/wchar.in.h (wctob): New declaration.
70334         * lib/wctob.c: New file.
70335         * m4/wctob.m4: New file.
70336         * modules/wctob: New file.
70337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
70338         HAVE_WCTOB.
70339         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
70340         * doc/posix-functions/wctob.texi: Document the new module.
70342 2008-12-18  Bruno Haible  <bruno@clisp.org>
70344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
70345         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
70347 2008-12-18  Simon Josefsson  <simon@josefsson.org>
70349         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
70350         G. Christensen" <tgc@jupiterrise.com>.
70352         * lib/flock.c: Need to include errno.h.  Reported by "Tom
70353         G. Christensen" <tgc@jupiterrise.com>.
70355         * lib/flock.c: Need to include string.h.  Reported by "Tom
70356         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
70357         <ebb9@byu.net>.
70359 2008-12-18  Bruno Haible  <bruno@clisp.org>
70361         * m4/locale-ja.m4: New file, from GNU gettext.
70363 2008-12-17  Bruno Haible  <bruno@clisp.org>
70365         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
70366         Suggested by Eric Blake.
70368 2008-12-17  Bruno Haible  <bruno@clisp.org>
70370         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
70372 2008-12-17  Bruno Haible  <bruno@clisp.org>
70374         * lib/mbsinit.c: Include verify.h. Verify an assumption.
70375         * modules/mbsinit (Depends-on): Add verify.
70376         Suggested by Paul Eggert.
70378 2008-12-17  Bruno Haible  <bruno@clisp.org>
70380         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
70381         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
70382         gl_FUNC_MBRTOWC.
70383         * m4/mbiter.m4 (gl_MBITER): LIkewise.
70384         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
70385         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
70386         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
70387         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
70388         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
70389         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
70390         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
70391         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
70392         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
70393         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
70394         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
70395         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
70396         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
70397         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
70398         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70399         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
70400         * modules/trim (configure.ac): Likewise.
70402 2008-12-17  Bruno Haible  <bruno@clisp.org>
70404         * modules/btowc-tests: New file.
70405         * tests/test-btowc1.sh: New file.
70406         * tests/test-btowc2.sh: New file.
70407         * tests/test-btowc.c: New file.
70409         New module 'btowc'.
70410         * lib/wchar.in.h (btowc): New declaration.
70411         * lib/btowc.c: New file.
70412         * m4/btowc.m4: New file.
70413         * modules/btowc: New file.
70414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
70415         HAVE_BTOWC.
70416         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
70417         * doc/posix-functions/btowc.texi: Document the new module.
70419 2008-12-17  Bruno Haible  <bruno@clisp.org>
70421         New module 'mbsinit'.
70422         * lib/wchar.in.h (mbsinit): New declaration.
70423         * lib/mbsinit.c: New file.
70424         * m4/mbsinit.m4: New file.
70425         * modules/mbsinit: New file.
70426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
70427         HAVE_MBSINIT.
70428         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
70429         HAVE_MBSINIT.
70430         * doc/posix-functions/mbsinit.texi: Document the new module.
70432 2008-12-16  Bruno Haible  <bruno@clisp.org>
70434         * lib/unistd.in.h: Add comment.
70435         * tests/test-environ.c: Don't include <stdlib.h>.
70437 2008-12-16  Bruno Haible  <bruno@clisp.org>
70439         * lib/parse-duration.h (parse_duration): Document return value
70440         convention.
70441         * lib/parse-duration.c: Include specification header first. Add
70442         comments.
70443         (_): Remove macro.
70444         (parse_year_month_day, parse_hour_minute_second): Move side effects
70445         outside of strchr call.
70446         (parse_non_iso8601): Move side effects outside of isspace call.
70447         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
70448         call.
70450 2008-12-16  Bruno Haible  <bruno@clisp.org>
70452         * tests/test-parse-duration.sh: Produce no output when the test
70453         succeeds.
70455 2008-12-16  Bruno Haible  <bruno@clisp.org>
70457         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
70458         expressions.
70460 2008-12-15  Bruno Haible  <bruno@clisp.org>
70462         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
70463         * doc/glibc-functions/flistxattr.texi: Likewise.
70464         * doc/glibc-functions/fopencookie.texi: Likewise.
70465         * doc/glibc-functions/fremovexattr.texi: Likewise.
70466         * doc/glibc-functions/fsetxattr.texi: Likewise.
70467         * doc/glibc-functions/getxattr.texi: Likewise.
70468         * doc/glibc-functions/lgetxattr.texi: Likewise.
70469         * doc/glibc-functions/listxattr.texi: Likewise.
70470         * doc/glibc-functions/llistxattr.texi: Likewise.
70471         * doc/glibc-functions/lremovexattr.texi: Likewise.
70472         * doc/glibc-functions/lsetxattr.texi: Likewise.
70473         * doc/glibc-functions/removexattr.texi: Likewise.
70474         * doc/glibc-functions/setxattr.texi: Likewise.
70475         * doc/posix-functions/open_memstream.texi: Likewise.
70477 2008-12-15  Eric Blake  <ebb9@byu.net>
70479         Update doc for cygwin 1.7.
70480         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
70481         functions.
70482         * doc/posix-functions/fchmodat.texi: Likewise.
70483         * doc/posix-functions/fchownat.texi: Likewise.
70484         * doc/posix-functions/fdopendir.texi: Likewise.
70485         * doc/posix-functions/fmemopen.texi: Likewise.
70486         * doc/posix-functions/freeaddrinfo.texi: Likewise.
70487         * doc/posix-functions/fstatat.texi: Likewise.
70488         * doc/posix-functions/futimens.texi: Likewise.
70489         * doc/posix-functions/gai_strerror.texi: Likewise.
70490         * doc/posix-functions/getaddrinfo.texi: Likewise.
70491         * doc/posix-functions/getnameinfo.texi: Likewise.
70492         * doc/posix-functions/if_freenameindex.texi: Likewise.
70493         * doc/posix-functions/if_indextoname.texi: Likewise.
70494         * doc/posix-functions/if_nameindex.texi: Likewise.
70495         * doc/posix-functions/if_nametoindex.texi: Likewise.
70496         * doc/posix-functions/insque.texi: Likewise.
70497         * doc/posix-functions/linkat.texi: Likewise.
70498         * doc/posix-functions/llrint.texi: Likewise.
70499         * doc/posix-functions/llrintf.texi: Likewise.
70500         * doc/posix-functions/llrintl.texi: Likewise.
70501         * doc/posix-functions/lockf.texi: Likewise.
70502         * doc/posix-functions/lrintl.texi: Likewise.
70503         * doc/posix-functions/mkdirat.texi: Likewise.
70504         * doc/posix-functions/mkfifoat.texi: Likewise.
70505         * doc/posix-functions/mknodat.texi: Likewise.
70506         * doc/posix-functions/mq_close.texi: Likewise.
70507         * doc/posix-functions/mq_getattr.texi: Likewise.
70508         * doc/posix-functions/mq_notify.texi: Likewise.
70509         * doc/posix-functions/mq_open.texi: Likewise.
70510         * doc/posix-functions/mq_receive.texi: Likewise.
70511         * doc/posix-functions/mq_send.texi: Likewise.
70512         * doc/posix-functions/mq_setattr.texi: Likewise.
70513         * doc/posix-functions/mq_timedreceive.texi: Likewise.
70514         * doc/posix-functions/mq_timedsend.texi: Likewise.
70515         * doc/posix-functions/mq_unlink.texi: Likewise.
70516         * doc/posix-functions/open_memstream.texi: Likewise.
70517         * doc/posix-functions/openat.texi: Likewise.
70518         * doc/posix-functions/posix_fadvise.texi: Likewise.
70519         * doc/posix-functions/posix_fallocate.texi: Likewise.
70520         * doc/posix-functions/posix_madvise.texi: Likewise.
70521         * doc/posix-functions/posix_memalign.texi: Likewise.
70522         * doc/posix-functions/posix_openpt.texi: Likewise.
70523         * doc/posix-functions/readlinkat.texi: Likewise.
70524         * doc/posix-functions/remque.texi: Likewise.
70525         * doc/posix-functions/renameat.texi: Likewise.
70526         * doc/posix-functions/rintl.texi: Likewise.
70527         * doc/posix-functions/sem_unlink.texi: Likewise.
70528         * doc/posix-functions/shm_open.texi: Likewise.
70529         * doc/posix-functions/shm_unlink.texi: Likewise.
70530         * doc/posix-functions/signgam.texi: Likewise.
70531         * doc/posix-functions/sigset.texi: Likewise.
70532         * doc/posix-functions/stpcpy.texi: Likewise.
70533         * doc/posix-functions/stpncpy.texi: Likewise.
70534         * doc/posix-functions/strerror.texi: Likewise.
70535         * doc/posix-functions/strtod.texi: Likewise.
70536         * doc/posix-functions/symlinkat.texi: Likewise.
70537         * doc/posix-functions/unlinkat.texi: Likewise.
70538         * doc/posix-functions/utimensat.texi: Likewise.
70539         * doc/glibc-functions/bindresvport.texi: Likewise.
70540         * doc/glibc-functions/dn_expand.texi: Likewise.
70541         * doc/glibc-functions/exp10.texi: Likewise.
70542         * doc/glibc-functions/exp10f.texi: Likewise.
70543         * doc/glibc-functions/fgetxattr.texi: Likewise.
70544         * doc/glibc-functions/flistxattr.texi: Likewise.
70545         * doc/glibc-functions/fopencookie.texi: Likewise.
70546         * doc/glibc-functions/freeifaddrs.texi: Likewise.
70547         * doc/glibc-functions/fremovexattr.texi: Likewise.
70548         * doc/glibc-functions/fsetxattr.texi: Likewise.
70549         * doc/glibc-functions/getifaddrs.texi: Likewise.
70550         * doc/glibc-functions/getxattr.texi: Likewise.
70551         * doc/glibc-functions/lgetxattr.texi: Likewise.
70552         * doc/glibc-functions/listxattr.texi: Likewise.
70553         * doc/glibc-functions/llistxattr.texi: Likewise.
70554         * doc/glibc-functions/lremovexattr.texi: Likewise.
70555         * doc/glibc-functions/lsetxattr.texi: Likewise.
70556         * doc/glibc-functions/pow10.texi: Likewise.
70557         * doc/glibc-functions/pow10f.texi: Likewise.
70558         * doc/glibc-functions/rcmd_af.texi: Likewise.
70559         * doc/glibc-functions/removexattr.texi: Likewise.
70560         * doc/glibc-functions/res_init.texi: Likewise.
70561         * doc/glibc-functions/res_mkquery.texi: Likewise.
70562         * doc/glibc-functions/res_query.texi: Likewise.
70563         * doc/glibc-functions/res_querydomain.texi: Likewise.
70564         * doc/glibc-functions/res_send.texi: Likewise.
70565         * doc/glibc-functions/rresvport_af.texi: Likewise.
70566         * doc/glibc-functions/setxattr.texi: Likewise.
70567         * doc/glibc-functions/strcasestr.texi: Likewise.
70569 2008-12-15  Bruno Haible  <bruno@clisp.org>
70571         Fix compilation error on OSF/1 4.0.
70572         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
70573         <sys/time.h>, simply delegate to the system header.
70574         Reported by Daniel Richard G. <oss@teragram.com>.
70576 2008-12-15  Bruno Haible  <bruno@clisp.org>
70578         * doc/posix-functions/openat.texi: Mention the 'openat' module.
70579         * doc/posix-functions/fchmodat.texi: Likewise.
70580         * doc/posix-functions/fchownat.texi: Likewise.
70581         * doc/posix-functions/fdopendir.texi: Likewise.
70582         * doc/posix-functions/fstatat.texi: Likewise.
70583         * doc/posix-functions/mkdirat.texi: Likewise.
70584         * doc/posix-functions/unlinkat.texi: Likewise.
70586 2008-12-14  Bruno Haible  <bruno@clisp.org>
70588         Update doc for POSIX:2008.
70589         * doc/posix-functions/faccessat.texi: New file.
70590         * doc/posix-functions/fchmodat.texi: New file.
70591         * doc/posix-functions/fchownat.texi: New file.
70592         * doc/posix-functions/fdopendir.texi: New file.
70593         * doc/posix-functions/fstatat.texi: New file.
70594         * doc/posix-functions/futimens.texi: New file.
70595         * doc/posix-functions/linkat.texi: New file.
70596         * doc/posix-functions/mkdirat.texi: New file.
70597         * doc/posix-functions/mkfifoat.texi: New file.
70598         * doc/posix-functions/mknodat.texi: New file.
70599         * doc/posix-functions/open_wmemstream.texi: New file.
70600         * doc/posix-functions/openat.texi: New file.
70601         * doc/posix-functions/psiginfo.texi: New file.
70602         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70603         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70604         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70605         * doc/posix-functions/readlinkat.texi: New file.
70606         * doc/posix-functions/renameat.texi: New file.
70607         * doc/posix-functions/strerror_l.texi: New file.
70608         * doc/posix-functions/symlinkat.texi: New file.
70609         * doc/posix-functions/unlinkat.texi: New file.
70610         * doc/posix-functions/utimensat.texi: New file.
70611         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70613 2008-12-14  Bruno Haible  <bruno@clisp.org>
70615         Update doc for POSIX:2008.
70616         * doc/posix-functions/alphasort.texi: Renamed from
70617         doc/glibc-functions/alphasort.texi.
70618         * doc/posix-functions/dirfd.texi: Renamed from
70619         doc/glibc-functions/dirfd.texi.
70620         * doc/posix-functions/dprintf.texi: Renamed from
70621         doc/glibc-functions/dprintf.texi.
70622         * doc/posix-functions/duplocale.texi: Renamed from
70623         doc/glibc-functions/duplocale.texi.
70624         * doc/posix-functions/fexecve.texi: Renamed from
70625         doc/glibc-functions/fexecve.texi.
70626         * doc/posix-functions/fmemopen.texi: Renamed from
70627         doc/glibc-functions/fmemopen.texi.
70628         * doc/posix-functions/freelocale.texi: Renamed from
70629         doc/glibc-functions/freelocale.texi.
70630         * doc/posix-functions/getdate_err.texi: Renamed from
70631         doc/glibc-functions/getdate_err.texi.
70632         * doc/posix-functions/isalnum_l.texi: Renamed from
70633         doc/glibc-functions/isalnum_l.texi.
70634         * doc/posix-functions/isalpha_l.texi: Renamed from
70635         doc/glibc-functions/isalpha_l.texi.
70636         * doc/posix-functions/isblank_l.texi: Renamed from
70637         doc/glibc-functions/isblank_l.texi.
70638         * doc/posix-functions/iscntrl_l.texi: Renamed from
70639         doc/glibc-functions/iscntrl_l.texi.
70640         * doc/posix-functions/isdigit_l.texi: Renamed from
70641         doc/glibc-functions/isdigit_l.texi.
70642         * doc/posix-functions/isgraph_l.texi: Renamed from
70643         doc/glibc-functions/isgraph_l.texi.
70644         * doc/posix-functions/islower_l.texi: Renamed from
70645         doc/glibc-functions/islower_l.texi.
70646         * doc/posix-functions/isprint_l.texi: Renamed from
70647         doc/glibc-functions/isprint_l.texi.
70648         * doc/posix-functions/ispunct_l.texi: Renamed from
70649         doc/glibc-functions/ispunct_l.texi.
70650         * doc/posix-functions/isspace_l.texi: Renamed from
70651         doc/glibc-functions/isspace_l.texi.
70652         * doc/posix-functions/isupper_l.texi: Renamed from
70653         doc/glibc-functions/isupper_l.texi.
70654         * doc/posix-functions/iswalnum_l.texi: Renamed from
70655         doc/glibc-functions/iswalnum_l.texi.
70656         * doc/posix-functions/iswalpha_l.texi: Renamed from
70657         doc/glibc-functions/iswalpha_l.texi.
70658         * doc/posix-functions/iswblank_l.texi: Renamed from
70659         doc/glibc-functions/iswblank_l.texi.
70660         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70661         doc/glibc-functions/iswcntrl_l.texi.
70662         * doc/posix-functions/iswctype_l.texi: Renamed from
70663         doc/glibc-functions/iswctype_l.texi.
70664         * doc/posix-functions/iswdigit_l.texi: Renamed from
70665         doc/glibc-functions/iswdigit_l.texi.
70666         * doc/posix-functions/iswgraph_l.texi: Renamed from
70667         doc/glibc-functions/iswgraph_l.texi.
70668         * doc/posix-functions/iswlower_l.texi: Renamed from
70669         doc/glibc-functions/iswlower_l.texi.
70670         * doc/posix-functions/iswprint_l.texi: Renamed from
70671         doc/glibc-functions/iswprint_l.texi.
70672         * doc/posix-functions/iswpunct_l.texi: Renamed from
70673         doc/glibc-functions/iswpunct_l.texi.
70674         * doc/posix-functions/iswspace_l.texi: Renamed from
70675         doc/glibc-functions/iswspace_l.texi.
70676         * doc/posix-functions/iswupper_l.texi: Renamed from
70677         doc/glibc-functions/iswupper_l.texi.
70678         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70679         doc/glibc-functions/iswxdigit_l.texi.
70680         * doc/posix-functions/isxdigit_l.texi: Renamed from
70681         doc/glibc-functions/isxdigit_l.texi.
70682         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70683         doc/glibc-functions/mbsnrtowcs.texi.
70684         * doc/posix-functions/mkdtemp.texi: Renamed from
70685         doc/glibc-functions/mkdtemp.texi.
70686         * doc/posix-functions/newlocale.texi: Renamed from
70687         doc/glibc-functions/newlocale.texi.
70688         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70689         doc/glibc-functions/nl_langinfo_l.texi.
70690         * doc/posix-functions/open_memstream.texi: Renamed from
70691         doc/glibc-functions/open_memstream.texi.
70692         * doc/posix-functions/opterr.texi: Renamed from
70693         doc/glibc-functions/opterr.texi.
70694         * doc/posix-functions/optind.texi: Renamed from
70695         doc/glibc-functions/optind.texi.
70696         * doc/posix-functions/optopt.texi: Renamed from
70697         doc/glibc-functions/optopt.texi.
70698         * doc/posix-functions/psignal.texi: Renamed from
70699         doc/glibc-functions/psignal.texi.
70700         * doc/posix-functions/scandir.texi: Renamed from
70701         doc/glibc-functions/scandir.texi.
70702         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70703         doc/glibc-functions/sched_get_priority_min.texi.
70704         * doc/posix-functions/signgam.texi: Renamed from
70705         doc/glibc-functions/signgam.texi.
70706         * doc/posix-functions/stpcpy.texi: Renamed from
70707         doc/glibc-functions/stpcpy.texi.
70708         * doc/posix-functions/stpncpy.texi: Renamed from
70709         doc/glibc-functions/stpncpy.texi.
70710         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70711         doc/glibc-functions/strcasecmp_l.texi.
70712         * doc/posix-functions/strcoll_l.texi: Renamed from
70713         doc/glibc-functions/strcoll_l.texi.
70714         * doc/posix-functions/strfmon_l.texi: Renamed from
70715         doc/glibc-functions/strfmon_l.texi.
70716         * doc/posix-functions/strftime_l.texi: Renamed from
70717         doc/glibc-functions/strftime_l.texi.
70718         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70719         doc/glibc-functions/strncasecmp_l.texi.
70720         * doc/posix-functions/strndup.texi: Renamed from
70721         doc/glibc-functions/strndup.texi.
70722         * doc/posix-functions/strnlen.texi: Renamed from
70723         doc/glibc-functions/strnlen.texi.
70724         * doc/posix-functions/strsignal.texi: Renamed from
70725         doc/glibc-functions/strsignal.texi.
70726         * doc/posix-functions/strxfrm_l.texi: Renamed from
70727         doc/glibc-functions/strxfrm_l.texi.
70728         * doc/posix-functions/timer_gettime.texi: Renamed from
70729         doc/glibc-functions/timer_gettime.texi.
70730         * doc/posix-functions/tolower_l.texi: Renamed from
70731         doc/glibc-functions/tolower_l.texi.
70732         * doc/posix-functions/toupper_l.texi: Renamed from
70733         doc/glibc-functions/toupper_l.texi.
70734         * doc/posix-functions/towctrans_l.texi: Renamed from
70735         doc/glibc-functions/towctrans_l.texi.
70736         * doc/posix-functions/towlower_l.texi: Renamed from
70737         doc/glibc-functions/towlower_l.texi.
70738         * doc/posix-functions/towupper_l.texi: Renamed from
70739         doc/glibc-functions/towupper_l.texi.
70740         * doc/posix-functions/uselocale.texi: Renamed from
70741         doc/glibc-functions/uselocale.texi.
70742         * doc/posix-functions/vdprintf.texi: Renamed from
70743         doc/glibc-functions/vdprintf.texi.
70744         * doc/posix-functions/wcpcpy.texi:
70745         Renamed from doc/glibc-functions/wcpcpy.texi.
70746         * doc/posix-functions/wcpncpy.texi: Renamed from
70747         doc/glibc-functions/wcpncpy.texi.
70748         * doc/posix-functions/wcscasecmp.texi: Renamed from
70749         doc/glibc-functions/wcscasecmp.texi.
70750         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
70751         doc/glibc-functions/wcscasecmp_l.texi.
70752         * doc/posix-functions/wcscoll_l.texi: Renamed from
70753         doc/glibc-functions/wcscoll_l.texi.
70754         * doc/posix-functions/wcsdup.texi: Renamed from
70755         doc/glibc-functions/wcsdup.texi.
70756         * doc/posix-functions/wcsncasecmp.texi: Renamed from
70757         doc/glibc-functions/wcsncasecmp.texi.
70758         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
70759         doc/glibc-functions/wcsncasecmp_l.texi.
70760         * doc/posix-functions/wcsnlen.texi: Renamed from
70761         doc/glibc-functions/wcsnlen.texi.
70762         * doc/posix-functions/wcsnrtombs.texi: Renamed from
70763         doc/glibc-functions/wcsnrtombs.texi.
70764         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
70765         doc/glibc-functions/wcsxfrm_l.texi.
70766         * doc/posix-functions/wctrans_l.texi: Renamed from
70767         doc/glibc-functions/wctrans_l.texi.
70768         * doc/posix-functions/wctype_l.texi: Renamed from
70769         doc/glibc-functions/wctype_l.texi.
70770         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70771         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
70772         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
70773         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
70774         these subsections.
70775         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
70776         Remove sections.
70778 2008-12-14  Bruno Haible  <bruno@clisp.org>
70780         Update doc for POSIX:2008.
70781         * doc/posix-functions/*.texi: Update URL of POSIX specification.
70783 2008-12-14  Bruno Haible  <bruno@clisp.org>
70785         Update doc for POSIX:2008.
70786         * doc/pastposix-functions/bcmp.texi: Renamed from
70787         doc/posix-functions/bcmp.texi.
70788         * doc/pastposix-functions/bcopy.texi: Renamed from
70789         doc/posix-functions/bcopy.texi.
70790         * doc/pastposix-functions/bsd_signal.texi: Renamed from
70791         doc/posix-functions/bsd_signal.texi.
70792         * doc/pastposix-functions/bzero.texi: Renamed from
70793         doc/posix-functions/bzero.texi.
70794         * doc/pastposix-functions/ecvt.texi: Renamed from
70795         doc/posix-functions/ecvt.texi.
70796         * doc/pastposix-functions/fcvt.texi: Renamed from
70797         doc/posix-functions/fcvt.texi.
70798         * doc/pastposix-functions/ftime.texi: Renamed from
70799         doc/posix-functions/ftime.texi.
70800         * doc/pastposix-functions/gcvt.texi: Renamed from
70801         doc/posix-functions/gcvt.texi.
70802         * doc/pastposix-functions/getcontext.texi: Renamed from
70803         doc/posix-functions/getcontext.texi.
70804         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
70805         doc/posix-functions/gethostbyaddr.texi.
70806         * doc/pastposix-functions/gethostbyname.texi: Renamed from
70807         doc/posix-functions/gethostbyname.texi.
70808         * doc/pastposix-functions/getwd.texi: Renamed from
70809         doc/posix-functions/getwd.texi.
70810         * doc/pastposix-functions/h_errno.texi: Renamed from
70811         doc/posix-functions/h_errno.texi.
70812         * doc/pastposix-functions/index.texi: Renamed from
70813         doc/posix-functions/index.texi.
70814         * doc/pastposix-functions/makecontext.texi: Renamed from
70815         doc/posix-functions/makecontext.texi.
70816         * doc/pastposix-functions/mktemp.texi: Renamed from
70817         doc/posix-functions/mktemp.texi.
70818         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
70819         doc/posix-functions/pthread_attr_getstackaddr.texi.
70820         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
70821         doc/posix-functions/pthread_attr_setstackaddr.texi.
70822         * doc/pastposix-functions/rindex.texi: Renamed from
70823         doc/posix-functions/rindex.texi.
70824         * doc/pastposix-functions/scalb.texi: Renamed from
70825         doc/posix-functions/scalb.texi.
70826         * doc/pastposix-functions/setcontext.texi: Renamed from
70827         doc/posix-functions/setcontext.texi.
70828         * doc/pastposix-functions/swapcontext.texi: Renamed from
70829         doc/posix-functions/swapcontext.texi.
70830         * doc/pastposix-functions/ualarm.texi: Renamed from
70831         doc/posix-functions/ualarm.texi.
70832         * doc/pastposix-functions/usleep.texi: Renamed from
70833         doc/posix-functions/usleep.texi.
70834         * doc/pastposix-functions/vfork.texi: Renamed from
70835         doc/posix-functions/vfork.texi.
70836         * doc/pastposix-functions/wcswcs.texi: Renamed from
70837         doc/posix-functions/wcswcs.texi.
70838         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
70839         (Function Substitutes): Update.
70841 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70843         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
70844         m4/strerror.m4.
70846 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70847             Bruno Haible  <bruno@clisp.org>
70849         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
70851 2008-12-13  Bruno Haible  <bruno@clisp.org>
70853         * modules/strtoull (Depends-on): Remove unistd.
70855 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70857         * modules/strtoull (Depends-on): Add stdlib.
70859 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70861         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70863 2008-12-10  Jim Meyering  <meyering@redhat.com>
70865         gl_ASSERT: don't say assertions are disabled when they're not
70866         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70867         "checking whether to enable assertions... no", when they are in
70868         fact enabled.  This is solely a bug in the output of configure.
70869         In spite of saying "no", NDEBUG was not defined in that case.
70870         Also, as noted by Eric Blake, leave assertions enabled upon
70871         --enable-assert=INVALID.
70873 2008-12-10  Bruno Haible  <bruno@clisp.org>
70875         Change MODULES.html to refer to POSIX:2008 where possible.
70876         * MODULES.html.sh (POSIX2008_URL): New variable.
70877         (posix_headers): Remove sys/timeb, ucontext.
70878         (posix2001_headers): New variable.
70879         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70880         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70881         index, makecontext, mktemp, pthread_attr_getstackaddr,
70882         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70883         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70884         (posix2001_functions): New variable.
70885         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70886         otherwise.
70888 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70890         add missing include to parse-duration.c
70891         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70892         * modules/parse-duration (Depends-on): Add xalloc.
70894         fix sed script reading maint.mk
70895         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70896         (syntax-check-rules): Use it.
70898 2008-12-09  Bruno Haible  <bruno@clisp.org>
70900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70901         MacOS X 10.4/PowerPC.
70902         Reported by Simon Josefsson.
70904 2008-12-08  Jim Meyering  <meyering@redhat.com>
70906         work around mingw's lack of some S_IF definitions
70907         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70908         Reported by Simon Josefsson.
70910 2008-12-08  Bruno Haible  <bruno@clisp.org>
70912         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70913         applied to variables. Needed on MacOS X 10.4/PowerPC.
70914         Reported by Simon Josefsson.
70916 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70917         and Eric Blake  <ebb9@byu.net>
70919         assert: honor --enable-assert
70920         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
70921         order to honor --enable-assert, rather than treating it as a
70922         synonym for --disable-assert.
70924 2008-12-08  Jim Meyering  <meyering@redhat.com>
70926         * lib/posixtm.c: Remove now-useless declaration of mktime.
70928         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
70930 2008-12-07  Bruno Haible  <bruno@clisp.org>
70932         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
70933         test_once): Mark functions as static.
70934         * tests/test-tls.c (test_tls): Likewise.
70936 2008-12-07  Bruno Haible  <bruno@clisp.org>
70938         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
70939         iconv_register_autodetect.
70941 2008-12-07  Jim Meyering  <meyering@redhat.com>
70943         posixtm.c: avoid a warning
70944         * lib/posixtm.c (posixtime): Don't initialize tm0.
70945         It's no longer needed to placate gcc4's -Wuninitialized,
70946         and the attempt to placate would elicit a new warning.
70948         unicodeio.c: mark unused parameters
70949         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70950         (fallback_failure_callback): Likewise.
70952 2008-12-07  Bruno Haible  <bruno@clisp.org>
70954         * gnulib-tool (func_create_testdir): When building the tests
70955         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
70956         Reported by Simon Josefsson.
70958 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70960         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
70962 2008-12-06  Bruno Haible  <bruno@clisp.org>
70964         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
70965         Suggested by Eric Blake.
70967 2008-12-06  Bruno Haible  <bruno@clisp.org>
70969         Fix a c-stack test failure on MacOS X.
70970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
70971         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
70972         handler for SIGBUS as well.
70973         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
70974         install a signal handler for SIGBUS as well.
70975         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
70977 2008-12-06  Bruno Haible  <bruno@clisp.org>
70979         Advocacy documentation.
70980         * doc/gnulib-intro.texi (Benefits): New section.
70981         * doc/gnulib.texi: Update.
70983 2008-12-06  Bruno Haible  <bruno@clisp.org>
70985         Document the 'manywarnings' module.
70986         * doc/manywarnings.texi: New file.
70987         * doc/gnulib.texi: Include it.
70989 2008-12-05  Eric Blake  <ebb9@byu.net>
70991         tests: silence some gcc warnings
70992         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
70993         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
70994         type mismatches.
70996 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70997             Bruno Haible  <bruno@clisp.org>
70999         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
71001 2008-11-29  Jim Meyering  <meyering@redhat.com>
71003         unicodeio.c: mark unused parameters
71004         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71005         (fallback_failure_callback): Likewise.
71007         fts: fix a thinko
71008         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
71009         (set_stat_type): Return S_IF*-valued "type" directly.
71010         Prompted by James Youngman's spotting a related bug.
71011         Confirmed by further testing through find.
71013         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
71014         * lib/fts.c (D_TYPE): Define.
71015         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
71016         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
71017         (s_ifmt_shift_bits): New function.
71018         (set_stat_type): New function.
71019         (fts_build): When not calling fts_stat, call set_stat_type
71020         to propagate dirent.d_type info to fts_read caller.
71021         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
71022         fts_statp->st_mode type information may be valid.
71024 2008-11-28  Simon Josefsson  <simon@josefsson.org>
71026         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
71027         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
71028         <sds@gnu.org>.
71030 2008-11-20  Bruno Haible  <bruno@clisp.org>
71032         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
71033         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
71034         INCLUDE_NEXT.
71035         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
71036         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
71037         * modules/math (Makefile.am): Substitute
71038         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
71039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71041 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
71042             Bruno Haible  <bruno@clisp.org>
71044         * lib/stdint.in.h: Define all type macros so that their expansion is
71045         a single typedef'ed token. Fixes a compilation failure in Boost which
71046         does "using ::int8_t;".
71048 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71050         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
71051         gl_MANYWARN_ALL_GCC.
71052         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
71053         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
71054         * modules/manywarnings: New file.
71055         * MODULES.html.sh: Mention manywarnings module.
71057 2008-11-18  Bruno Haible  <bruno@clisp.org>
71059         * doc/gnulib-tool.texi (Unit tests): New section.
71061 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71063         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
71064         paths like 'lib/po/foo.po'.
71066 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71068         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
71069         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
71071 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71073         * m4/warnings.m4: Use CPPFLAGS to really check whether the
71074         parameter works.
71076 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71078         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
71080 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71082         * modules/parse-duration-tests: New file.
71083         * tests/test-parse-duration.sh: New file.
71084         * tests/test-parse-duration.c: New file.
71086         New module 'parse-duration'.
71087         * lib/parse-duration.h: New file.
71088         * lib/parse-duration.c: New file.
71089         * modules/parse-duration: New file.
71091 2008-11-17  Bruno Haible  <bruno@clisp.org>
71093         * tests/test-select-out.sh: Comment out the first pipe test.
71094         Reported by Simon Josefsson.
71096 2008-11-17  Bruno Haible  <bruno@clisp.org>
71098         * modules/getaddrinfo (Depends-on): Add servent, hostent.
71099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
71100         gl_HOSTENT.
71102 2008-11-17  Bruno Haible  <bruno@clisp.org>
71104         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
71105         -lnetwork and -lnet. Needed for Haiku and BeOS.
71107 2008-11-16  Bruno Haible  <bruno@clisp.org>
71109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
71111 2008-11-16  Bruno Haible  <bruno@clisp.org>
71113         Avoid test failure on Haiku.
71114         * tests/test-fsync.c: Include <errno.h>.
71115         (main): Don't require that fsync (0) fails.
71117 2008-11-15  Bruno Haible  <bruno@clisp.org>
71119         New module 'hostent'.
71120         * modules/hostent: New file.
71121         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
71123 2008-11-15  Bruno Haible  <bruno@clisp.org>
71125         New module 'servent'.
71126         * modules/servent: New file.
71127         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
71129 2008-11-15  Bruno Haible  <bruno@clisp.org>
71131         Avoid generating same test program with two different rules.
71132         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
71133         test-frexp to test-frexp-nolibm.
71134         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
71135         test-frexpl to test-frexpl-nolibm.
71137 2008-11-15  Bruno Haible  <bruno@clisp.org>
71139         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
71140         $(FREXPL_LIBM).
71142 2008-11-15  Bruno Haible  <bruno@clisp.org>
71144         * lib/netdb.in.h: Activate the definitions also when the system's
71145         <netdb.h> has 'struct addrinfo'.
71146         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
71147         EAI_OVERFLOW or AI_NUMERICSERV.
71148         * doc/posix-headers/netdb.texi: Document the problem.
71150 2008-11-15  Bruno Haible  <bruno@clisp.org>
71152         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
71154         Make the 'sched' module work on platforms where <sched.h> exists but
71155         is incomplete (such as Haiku).
71156         * lib/sched.in.h; Include the system's <sched.h> if it exists.
71157         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
71158         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
71159         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
71160         HAVE_STRUCT_SCHED_PARAM.
71161         * modules/sched (Depends-on): Add include_next.
71162         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
71163         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
71164         * doc/posix-headers/sched.texi: Document the issue.
71166 2008-11-13  Jim Meyering  <meyering@redhat.com>
71168         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
71169         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
71170         test would fail due to the difference in the Report bugs to ...
71171         line.  The expected address is empty, "<>", while the actual
71172         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
71174 2008-11-12  Bruno Haible  <bruno@clisp.org>
71176         lstat: don't compile lstat.c on systems lacking lstat
71177         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
71178         which don't have lstat; this is handled by lib/sys_stat.in.h already.
71179         Reported by Daniel P. Berrange via Jim Meyering.
71181 2008-11-12  Jim Meyering  <meyering@redhat.com>
71183         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
71185 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71187         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
71188         instead.
71190 2008-11-12  Bruno Haible  <bruno@clisp.org>
71192         * lib/unicodeio.c: Include unistr.h.
71193         (utf8_wctomb): Remove function.
71194         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
71196 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71198         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
71199         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
71200         <bruno@clisp.org>.
71201         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
71203 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71205         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
71206         * doc/gnulib.texi: Add section for warnings.
71208 2008-11-11  Bruno Haible  <bruno@clisp.org>
71210         * lib/sockets.h: Add a comment.
71212 2008-11-11  Karl Berry  <karl@gnu.org>
71214         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
71216 2008-11-11  Eric Blake  <ebb9@byu.net>
71218         fdl.texi: avoid git symlinks
71219         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
71221 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71223         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
71225 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71227         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
71228         (gl_WARN_ADD): Substitute $2 if literal.
71230 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71232         * m4/warning.m4: Remove.
71234 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71236         * m4/warnings.m4: Almost complete rewrite. :-)
71238 2008-11-10  Simon Josefsson  <simon@josefsson.org>
71240         * modules/warnings: New module.
71241         * m4/warnings.m4: New file.
71242         * MODULES.html.sh: Mention warnings module.
71243         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
71244         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71246 2008-11-10  Eric Blake  <ebb9@byu.net>
71248         fdl.texi: make a symlink to the latest version
71249         * doc/standards.texi: Revert today's earlier change.
71250         * doc/fdl-1.2.texi: Rename from old fdl.texi...
71251         * doc/fdl.texi: ...and replace this with a symlink to the newer
71252         fdl-1.3.texi.
71254 2008-11-10  Bruno Haible  <bruno@clisp.org>
71256         * tests/test-select-fd.c (main): Accept the result file name as fourth
71257         argument.
71258         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
71259         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
71261 2008-11-10  Bruno Haible  <bruno@clisp.org>
71263         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
71264         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
71265         as autoconf-substituted macros.
71266         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
71267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
71268         gl_NETDB_H_DEFAULTS. Set these variables.
71269         * modules/netdb (Makefile.am): Substitute these variables.
71271 2008-11-10  Eric Blake  <ebb9@byu.net>
71273         standards.texi: include correct file for FDL 1.3
71274         * doc/standards.texi (GNU Free Documentation License): Change
71275         include file to pull in FDL 1.3, not 1.2.
71277         fdl.texi: revert accidental change to license
71278         * doc/fdl.texi: This is FDL 1.2, not 1.3.
71280 2008-11-10  Bruno Haible  <bruno@clisp.org>
71282         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
71283         cross-compiling guesses also when the native compile gives no result.
71285 2008-11-10  Bruno Haible  <bruno@clisp.org>
71287         * lib/spawni.c (__spawni): Force variable into the stack.
71289 2008-11-10  Bruno Haible  <bruno@clisp.org>
71291         Add support for Haiku.
71292         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
71293         glibc and BeOS, but also on Haiku.
71294         * lib/fpurge.c (fpurge): Likewise.
71295         * lib/freadable.c (freadable): Likewise.
71296         * lib/freadahead.c (freadahead): Likewise.
71297         * lib/freading.c (freading): Likewise.
71298         * lib/freadptr.c (freadptr): Likewise.
71299         * lib/freadseek.c (freadptrinc): Likewise.
71300         * lib/fseeko.c (rpl_fseeko): Likewise.
71301         * lib/fseterr.c (fseterr): Likewise.
71302         * lib/fwritable.c (fwritable): Likewise.
71303         * lib/fwriting.c (fwriting): Likewise.
71304         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
71306 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71308         * lib/config.charset: Treat Haiku like BeOS.
71310 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71312         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
71313         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
71315 2008-11-08  Bruno Haible  <bruno@clisp.org>
71317         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
71318         AC_CACHE_CHECK.
71320 2008-11-08  Bruno Haible  <bruno@clisp.org>
71322         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
71324 2008-11-08  Bruno Haible  <bruno@clisp.org>
71326         * tests/test-select-fd.c: New file.
71327         * tests/test-select-in.sh: New file.
71328         * tests/test-select-out.sh: New file.
71329         * tests/test-select-stdin.c: New file.
71330         * modules/select-tests (Files): Add the new files.
71331         (Depends-on): Add gettimeofday.
71332         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
71333         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
71334         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
71336 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
71337             Bruno Haible  <bruno@clisp.org>
71339         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
71341 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
71343         * build-aux/pmccabe2html: Added support for C++ source files.
71345 2008-11-05  Ben Pfaff  <blp@gnu.org>
71347         Fix lib/close.c build on Windows.
71348         * modules/close (Files): Add lib/w32sock.h.
71350 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
71352         Accept Bison's NEWS format.
71353         * build-aux/announce-gen (print_news_deltas): Tweak
71354         $re_prefix.
71356 2008-11-04  Bruno Haible  <bruno@clisp.org>
71358         * modules/random_r (Maintainer): Add glibc.
71360 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71362         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
71363         by karl@freefriends.org (Karl Berry).
71364         * doc/alloca.texi: Likewise.
71365         * doc/c-ctype.texi: Likewise.
71366         * doc/c-strcase.texi: Likewise.
71367         * doc/c-strcaseeq.texi: Likewise.
71368         * doc/c-strcasestr.texi: Likewise.
71369         * doc/c-strstr.texi: Likewise.
71370         * doc/c-strtod.texi: Likewise.
71371         * doc/c-strtold.texi: Likewise.
71372         * doc/ctime.texi: Likewise.
71373         * doc/error.texi: Likewise.
71374         * doc/fdl.texi: Likewise.
71375         * doc/gcd.texi: Likewise.
71376         * doc/getdate.texi: Likewise.
71377         * doc/gnulib-intro.texi: Likewise.
71378         * doc/gnulib-tool.texi: Likewise.
71379         * doc/gnulib.texi: Likewise.
71380         * doc/inet_ntoa.texi: Likewise.
71381         * doc/maintain.texi: Likewise.
71382         * doc/make-stds.texi: Likewise.
71383         * doc/quote.texi: Likewise.
71384         * doc/regexprops-generic.texi: Likewise.
71385         * doc/standards.texi: Likewise.
71386         * doc/verify.texi: Likewise.
71387         * doc/visibility.texi: Likewise.
71388         * doc/gnulib.texi (GNU Free Documentation License): Include
71389         fdl-1.3.texi instead of fdl.texi.
71391 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71393         * doc/fdl-1.3.texi: New file, from
71394         <http://www.gnu.org/licenses/fdl-1.3.texi>.
71395         * modules/fdl-1.3: Add.
71396         * MODULES.html.sh: Add fdl-1.3.
71398 2008-11-03  Bruno Haible  <bruno@clisp.org>
71400         Make determination of absolute name of header file work with AIX xlc.
71401         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
71402         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
71403         preprocessing.
71404         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71405         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
71407 2008-11-03  Simon Josefsson  <simon@josefsson.org>
71409         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
71410         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
71411         <ludo@gnu.org>.
71413 2008-11-02  Bruno Haible  <bruno@clisp.org>
71415         Mark 'strpbrk' obsolete.
71416         * modules/strpbrk (Status, Notice): New sections.
71417         * modules/strtok_r (Depends-on): Add strpbrk.
71419 2008-11-02  Bruno Haible  <bruno@clisp.org>
71421         Mark 'strdup' obsolete.
71422         * modules/strdup (Status, Notice): New sections.
71423         * modules/findprog (Depends-on): Add strdup.
71424         * modules/getaddrinfo (Depends-on): Likewise.
71425         * modules/localename (Depends-on): Likewise.
71426         * modules/relocatable-lib (Depends-on): Likewise.
71427         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
71428         * modules/relocatable-prog (Depends-on): Likewise.
71429         * modules/trim (Depends-on): Likewise.
71430         * modules/unictype/gen-ctype (Depends-on): Likewise.
71431         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71433 2008-11-02  Bruno Haible  <bruno@clisp.org>
71435         Mark 'strcspn' obsolete.
71436         * modules/strcspn (Status, Notice): New sections.
71438 2008-11-02  Bruno Haible  <bruno@clisp.org>
71440         Mark 'rmdir' obsolete.
71441         * modules/rmdir (Status, Notice): New sections.
71442         * modules/clean-temp (Depends-on): Add rmdir.
71443         * modules/openat (Depends-on): Likewise.
71445 2008-11-02  Bruno Haible  <bruno@clisp.org>
71447         Mark 'raise' obsolete.
71448         * modules/raise (Status, Notice): New sections.
71449         (Include): Specify <signal.h>.
71450         * modules/stdio (Depends-on): Add raise.
71451         * modules/write (Depends-on): Likewise.
71453 2008-11-02  Bruno Haible  <bruno@clisp.org>
71455         Mark 'memset' obsolete.
71456         * modules/memset (Status, Notice): New sections.
71458 2008-11-02  Bruno Haible  <bruno@clisp.org>
71460         Mark 'memmove' obsolete.
71461         * modules/memmove (Status, Notice): New sections.
71462         * modules/argp (Depends-on): Add memmove.
71463         * modules/argz (Depends-on): Likewise.
71464         * modules/canonicalize (Depends-on): Likewise.
71465         * modules/canonicalize-lgpl (Depends-on): Likewise.
71466         * modules/fts (Depends-on): Likewise.
71467         * modules/getcwd (Depends-on): Likewise.
71468         * modules/human (Depends-on): Likewise.
71469         * modules/regex (Depends-on): Likewise.
71470         * modules/striconveh (Depends-on): Likewise.
71471         * modules/trim (Depends-on): Likewise.
71472         * modules/unistr/u8-move (Depends-on): Likewise.
71473         * modules/unistr/u16-move (Depends-on): Likewise.
71474         * modules/unistr/u32-move (Depends-on): Likewise.
71476 2008-11-02  Bruno Haible  <bruno@clisp.org>
71478         Mark 'memcpy' obsolete.
71479         * modules/memcpy (Status, Notice): New sections.
71481 2008-11-02  Bruno Haible  <bruno@clisp.org>
71483         Mark 'memcmp' obsolete.
71484         * modules/memcmp (Status, Notice): New sections.
71485         * modules/argmatch (Depends-on): Add memchr.
71486         * modules/backupfile (Depends-on): Likewise.
71487         * modules/c-strcasestr (Depends-on): Likewise.
71488         * modules/crypto/des (Depends-on): Likewise.
71489         * modules/csharpcomp (Depends-on): Likewise.
71490         * modules/fnmatch (Depends-on): Likewise.
71491         * modules/git-merge-changelog (Depends-on): Likewise.
71492         * modules/isnand (Depends-on): Likewise.
71493         * modules/isnand-nolibm (Depends-on): Likewise.
71494         * modules/isnanf (Depends-on): Likewise.
71495         * modules/isnanf-nolibm (Depends-on): Likewise.
71496         * modules/isnanl (Depends-on): Likewise.
71497         * modules/isnanl-nolibm (Depends-on): Likewise.
71498         * modules/mbchar (Depends-on): Likewise.
71499         * modules/memcoll (Depends-on): Likewise.
71500         * modules/quotearg (Depends-on): Likewise.
71501         * modules/regex (Depends-on): Likewise.
71502         * modules/relocatable-prog (Depends-on): Likewise.
71503         * modules/same (Depends-on): Likewise.
71504         * modules/signbit (Depends-on): Likewise.
71505         * modules/strcasestr-simple (Depends-on): Likewise.
71506         * modules/unictype/gen-ctype (Depends-on): Likewise.
71507         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71508         * modules/uniname/uniname (Depends-on): Likewise.
71509         * modules/unistr/u8-cmp (Depends-on): Likewise.
71511 2008-11-02  Bruno Haible  <bruno@clisp.org>
71513         Mark 'memchr' obsolete.
71514         * modules/memchr (Status, Notice): New sections.
71515         * modules/argp (Depends-on): Add memchr.
71516         * modules/base64 (Depends-on): Likewise.
71517         * modules/c-strcasestr (Depends-on): Likewise.
71518         * modules/chdir-long (Depends-on): Likewise.
71519         * modules/fnmatch (Depends-on): Likewise.
71520         * modules/getsubopt (Depends-on): Likewise.
71521         * modules/git-merge-changelog (Depends-on): Likewise.
71522         * modules/glob (Depends-on): Likewise.
71523         * modules/strcasestr-simple (Depends-on): Likewise.
71524         * modules/strnlen (Depends-on): Likewise.
71526 2008-11-02  Bruno Haible  <bruno@clisp.org>
71528         Mark 'atexit' obsolete.
71529         * modules/atexit (Status, Notice): New sections.
71530         * modules/chdir-long (Depends-on): Add atexit.
71531         * modules/wait-process (Depends-on): Likewise.
71533 2008-11-02  Bruno Haible  <bruno@clisp.org>
71535         * gnulib-tool: New option --with-obsolete.
71536         (func_usage): Document it.
71537         (func_modules_transitive_closure): Drop obsolete dependencies if
71538         incobsolete is not true.
71539         (func_import): Read and save the incobsolete variable to the cache.
71541 2008-11-02  Bruno Haible  <bruno@clisp.org>
71543         * modules/TEMPLATE-EXTENDED: New field 'Status'.
71544         * gnulib-tool: New option --extract-status.
71545         (func_usage): Document it.
71546         (sed_extract_prog): Recognize it.
71547         (func_get_status): New function.
71549 2008-10-30  Simon Josefsson  <simon@josefsson.org>
71551         * modules/sockets (License): Change from LGPL to LGPLv2+.
71553 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71555         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
71557 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71559         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71560         Mention times and sys_times.
71561         * modules/sys_times, modules/sys_times-tests: New modules.
71562         * modules/times, modules/times-tests: Likewise
71563         * m4/sys_times_h.m4: New file.
71564         * lib/sys_times.in.h: Likewise
71565         * lib/times.c: Likewise.
71566         * tests/test-sys_times.c: Likewise.
71567         * tests/test-times.c: Likewise.
71568         * doc/posix-headers/sys_times.texi: Update.
71569         * doc/posix-functions/times.texi: Update.
71571 2008-10-28  Jim Meyering  <meyering@redhat.com>
71573         * modules/tempname (Depends-on): Add lstat.
71575         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
71577 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71579         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
71580         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
71581         using idiom used elsewhere in gnulib.
71583 2008-10-27  Jim Meyering  <meyering@redhat.com>
71585         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
71587 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71589         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
71590         TESTS_ENVIRONMENT, for shell scripts that needs to call built
71591         programs.
71592         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71594 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71596         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71598 2008-10-27  Bruno Haible  <bruno@clisp.org>
71600         * tests/test-lstat.c: Include <stdio.h>.
71602 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71604         * modules/lstat-tests: New module.
71605         * tests/test-lstat.c: New file.
71607 2008-10-26  Jim Meyering  <meyering@redhat.com>
71609         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71611 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71612             Bruno Haible  <bruno@clisp.org>
71614         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71615         * modules/configmake (Include): Add a note that the include must come
71616         after all system headers.
71617         * lib/javaversion.c: Include configmake.h after all other includes.
71619 2008-10-26  Bruno Haible  <bruno@clisp.org>
71621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71622         HAVE_STRUCT_RANDOM_DATA to 1.
71623         (gl_STDLIB_H): Simplify.
71625 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71627         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71628         substitute HAVE_STRUCT_RANDOM_DATA.
71629         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71630         random_data.
71631         * modules/stdlib (Makefile.am): Substitute
71632         HAVE_STRUCT_RANDOM_DATA.
71634 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71636         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71637         * doc/gnulib-intro.texi (Copyright): Likewise.
71639 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71641         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71642         findings.
71644 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71645             Bruno Haible  <bruno@clisp.org>
71647         * lib/unistd.in.h: Include <winsock2.h>.
71648         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71649         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71650         Provide dummy declarations.
71651         (gethostname): Override.
71652         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71653         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71654         gl_PREREQ_SYS_H_WINSOCK2.
71655         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71656         * doc/posix-functions/gethostname.texi: More details.
71658 2008-10-25  Bruno Haible  <bruno@clisp.org>
71660         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71661         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71662         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71664         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71665         here ...
71666         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71668         gl_UNISTD_H_DEFAULTS.
71670 2008-10-25  Eric Blake  <ebb9@byu.net>
71672         signbit: avoid spurious compiler failure
71673         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71674         declarations inside function.
71676 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71677             Bruno Haible  <bruno@clisp.org>
71679         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71680         * modules/random_r (Depends-on): Add stdint.
71682 2008-10-24  Bruno Haible  <bruno@clisp.org>
71684         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71685         Eggert.
71686         * modules/strerror (License): Likewise.
71688 2008-10-24  Jim Meyering  <meyering@redhat.com>
71690         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71691         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71693 2008-10-24  Eric Blake  <ebb9@byu.net>
71695         getgroups: fix compilation when getgroups is available
71696         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71697         but with <config.h> override of getgroups disabled.
71699 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71701         * doc/gnulib.texi (Header files): Add note about C++ problems.
71702         Explained by Bruno Haible <bruno@clisp.org>.
71704 2008-10-23  Bruno Haible  <bruno@clisp.org>
71706         Define a dummy SA_NODEFER macro on Interix.
71707         * lib/signal.in.h (SA_NODEFER): Define fallback.
71708         Reported by Aleksey Cheusov <cheusov@tut.by> via
71709         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71711 2008-10-23  Bruno Haible  <bruno@clisp.org>
71713         * modules/freadahead (License): Change to LGPLv2+.
71714         Suggested by Simon Josefsson.
71716 2008-10-23  Jim Meyering  <meyering@redhat.com>
71718         random_r: new module
71719         * modules/random_r: New file.
71720         * m4/random_r.m4: New file.
71721         * lib/random_r.c: New file, from glibc.
71722         * modules/random_r-tests: New file.
71723         * tests/test-random_r.c: New file.
71724         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71725          Declare.
71726         (RAND_MAX): Define.
71727         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71728         * modules/stdlib: Substitute them, too.
71729         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71730         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71731         * doc/glibc-functions/random_r.texi: Likewise.
71732         * doc/glibc-functions/setstate_r.texi: Likewise.
71733         * doc/glibc-functions/srandom_r.texi: Likewise.
71734         * config/srclist.txt: Mention it.
71736 2008-10-23  David Lutterkort  <lutter@redhat.com>
71738         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71739         link requirement
71741 2008-10-23  Jim Meyering  <meyering@redhat.com>
71743         selinux-h: mark parameters of stub functions as intentionally unused
71744         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
71745         * lib/se-context.in.h: Likewise.
71747 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71749         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
71751 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71753         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
71755 2008-10-22  Eric Blake  <ebb9@byu.net>
71757         glthread/thread: avoid compiler warning
71758         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
71759         Add unreachable abort to silence compiler.
71761 2008-10-22  Eric Blake  <ebb9@byu.net>
71763         netdb: also supply struct addrinfo for cygwin 1.5.x
71764         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
71765         older cygwin.
71766         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
71767         cygwin.
71768         * doc/posix-headers/netdb.texi (netdb.h): Document this.
71770 2008-10-22  Bruno Haible  <bruno@clisp.org>
71772         * users.txt: Update entry about pspp.
71774 2008-10-21  Bruno Haible  <bruno@clisp.org>
71776         Simplification.
71777         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
71778         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
71780         Simplification.
71781         * lib/ioctl.c (ioctl): Don't undefine.
71782         * lib/socket.c (socket): Don't undefine.
71784         Remove unused module indicator macros.
71785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
71786         GNULIB_$1 as a C macro.
71788         * doc/posix-functions/close.texi: Undo last change.
71789         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
71790         Windows platforms.
71792 2008-10-21  Bruno Haible  <bruno@clisp.org>
71794         Add gethostname() declaration to <unistd.h>.
71795         * lib/unistd.in.h (gethostname): New declaration.
71796         * lib/gethostname.c: Include <unistd.h>.
71797         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
71798         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
71799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
71800         and HAVE_GETHOSTNAME.
71801         * modules/gethostname (Depends-on): Add unistd.
71802         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71803         (Include): Specify <unistd.h>.
71804         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
71805         HAVE_GETHOSTNAME.
71806         * tests/test-gethostname.c: Include <unistd.h> first.
71808 2008-10-21  Bruno Haible  <bruno@clisp.org>
71810         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
71811         * modules/select-tests (Depends-on): Likewise.
71812         Reported by Simon Josefsson.
71814 2008-10-21  Simon Josefsson  <simon@josefsson.org>
71816         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
71817         * lib/accept.c: New file, based on winsock.c.
71818         * lib/bind.c: New file, based on winsock.c.
71819         * lib/connect.c: New file, based on winsock.c.
71820         * lib/getpeername.c: New file, based on winsock.c.
71821         * lib/getsockname.c: New file, based on winsock.c.
71822         * lib/getsockopt.c: New file, based on winsock.c.
71823         * lib/ioctl.c: New file, based on winsock.c.
71824         * lib/listen.c: New file, based on winsock.c.
71825         * lib/recv.c: New file, based on winsock.c.
71826         * lib/recvfrom.c: New file, based on winsock.c.
71827         * lib/send.c: New file, based on winsock.c.
71828         * lib/sendto.c: New file, based on winsock.c.
71829         * lib/setsockopt.c: New file, based on winsock.c.
71830         * lib/shutdown.c: New file, based on winsock.c.
71831         * lib/socket.c: New file, based on winsock.c.
71832         * lib/w32sock.h: New file, based on winsock.c.
71833         * lib/winsock.c: Remove file.
71834         * modules/accept: Likewise.
71835         * modules/bind: Likewise.
71836         * modules/connect: Likewise.
71837         * modules/getpeername: Likewise.
71838         * modules/getsockname: Likewise.
71839         * modules/getsockopt: Likewise.
71840         * modules/ioctl: Likewise.
71841         * modules/listen: Likewise.
71842         * modules/recv: Likewise.
71843         * modules/recvfrom: Likewise.
71844         * modules/send: Likewise.
71845         * modules/sendto: Likewise.
71846         * modules/setsockopt: Likewise.
71847         * modules/shutdown: Likewise.
71848         * modules/socket: Use socket.c instead of winsock.c.
71849         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
71850         * doc/posix-functions/accept.texi: Doc fix.
71851         * doc/posix-functions/bind.texi: Doc fix.
71852         * doc/posix-functions/close.texi: Doc fix.
71853         * doc/posix-functions/connect.texi: Doc fix.
71854         * doc/posix-functions/getpeername.texi: Doc fix.
71855         * doc/posix-functions/getsockname.texi: Doc fix.
71856         * doc/posix-functions/getsockopt.texi: Doc fix.
71857         * doc/posix-functions/ioctl.texi: Doc fix.
71858         * doc/posix-functions/listen.texi: Doc fix.
71859         * doc/posix-functions/recv.texi: Doc fix.
71860         * doc/posix-functions/recvfrom.texi: Doc fix.
71861         * doc/posix-functions/send.texi: Doc fix.
71862         * doc/posix-functions/sendto.texi: Doc fix.
71863         * doc/posix-functions/setsockopt.texi: Doc fix.
71864         * doc/posix-functions/shutdown.texi: Doc fix.
71865         * doc/posix-functions/socket.texi: Doc fix.
71867 2008-10-20  Bruno Haible  <bruno@clisp.org>
71869         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71870         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71871         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71872         as an alias for SIGABRT.
71873         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71874         (sigaction): Map it to SIGABRT.
71875         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71877 2008-10-20  Bruno Haible  <bruno@clisp.org>
71879         * lib/fts.c: Don't include lstat.h.
71880         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71882         Move the lstat() declaration to <sys/stat.h>.
71883         * lib/lstat.h: Remove file.
71884         * lib/sys_stat.in.h: Add special invocation convention.
71885         (lstat): New declaration.
71886         * lib/lstat.c (orig_lstat): New function.
71887         (rpl_lstat): Use orig_lstat instead of lstat.
71888         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71889         AC_C_INLINE. Set REPLACE_LSTAT.
71890         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71891         and REPLACE_LSTAT.
71892         * modules/lstat (Files): Remove lib/lstat.h.
71893         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71894         (Include): Specify <sys/stat.h> instead of lstat.h.
71895         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71896         REPLACE_LSTAT.
71897         * NEWS: Mention the change.
71899 2008-10-20  Bruno Haible  <bruno@clisp.org>
71901         * modules/posix_spawn-tests: New file.
71902         * tests/test-posix_spawn3.c: New file.
71904 2008-10-20  Bruno Haible  <bruno@clisp.org>
71906         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71907         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71908         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71909         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71910         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71912 2008-10-20  Bruno Haible  <bruno@clisp.org>
71914         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71915         of posix_spawn on AIX 5.3.
71917 2008-10-20  Bruno Haible  <bruno@clisp.org>
71919         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
71921 2008-10-20  Bruno Haible  <bruno@clisp.org>
71923         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
71924         of AC_LANG_PROGRAM.
71926 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71928         * lib/netdb.in.h: Don't define GNU specific constants until they
71929         are supported or needed.  Reported by Bruno Haible
71930         <bruno@clisp.org>.
71932 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71934         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
71936 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71938         * lib/getaddrinfo.h: Remove file.
71939         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
71940         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
71941         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
71942         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
71943         * modules/netdb: Substitute GNULIB_GETADDRINFO.
71944         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
71945         * tests/test-getaddrinfo.c: Likewise.
71946         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
71947         * NEWS: Mention change.
71949 2008-10-19  Bruno Haible  <bruno@clisp.org>
71951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
71953 2008-10-19  Bruno Haible  <bruno@clisp.org>
71955         * lib/wait-process.c: Include simply <sys/wait.h>.
71956         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
71957         WIFSTOPPED): Remove fallback definitions.
71958         * modules/wait-process (Depends-on): Add sys_wait.
71960         New module 'sys_wait'.
71961         * modules/sys_wait: New file.
71962         * lib/sys_wait.in.h: New file, partially copied from
71963         lib/wait-process.c.
71964         * m4/sys_wait_h.m4: New file.
71965         * doc/posix-headers/sys_wait.texi: Mention the new module.
71967 2008-10-19  Bruno Haible  <bruno@clisp.org>
71969         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
71971 2008-10-19  Bruno Haible  <bruno@clisp.org>
71973         Assume that waitpid() fills an 'int' status, not a 'union wait'.
71974         * lib/wait-process.c (WAIT_T): Remove type.
71975         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
71976         (wait_subprocess): Update.
71978 2008-10-19  Bruno Haible  <bruno@clisp.org>
71980         New module 'atoll'.
71981         * modules/atoll: New file.
71982         * lib/stdlib.in.h (atoll): New declaration.
71983         * lib/atoll.c: New file, from glibc with modifications.
71984         * m4/atoll.m4: New file.
71985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
71986         HAVE_ATOLL.
71987         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
71988         * doc/posix-functions/atoll.texi: Mention the new module.
71990 2008-10-19  Bruno Haible  <bruno@clisp.org>
71992         Add strtoull() declaration to <stdlib.h>.
71993         * lib/stdlib.in.h (strtoull): New declaration.
71994         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71995         Set HAVE_STRTOULL.
71996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
71997         HAVE_STRTOULL.
71998         * modules/strtoull (Depends-on): Add stdlib.
71999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72000         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
72001         HAVE_STRTOULL.
72003 2008-10-19  Bruno Haible  <bruno@clisp.org>
72005         Add strtoll() declaration to <stdlib.h>.
72006         * lib/stdlib.in.h (strtoll): New declaration.
72007         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72008         Set HAVE_STRTOLL.
72009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
72010         HAVE_STRTOLL.
72011         * modules/strtoll (Depends-on): Add stdlib.
72012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72013         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
72015 2008-10-19  Bruno Haible  <bruno@clisp.org>
72017         * modules/bcopy (Depends-on): Add strings.
72018         (Include): Specify <strings.h>.
72020 2008-10-19  Bruno Haible  <bruno@clisp.org>
72022         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
72024 2008-10-19  Bruno Haible  <bruno@clisp.org>
72026         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
72027         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
72028         mingw.
72030 2008-10-19  Bruno Haible  <bruno@clisp.org>
72032         * lib/atanl.c: Don't include isnanl.h.
72033         * lib/cosl.c: Likewise.
72034         * lib/ldexpl.c: Likewise.
72035         * lib/logl.c: Likewise.
72036         * lib/sinl.c: Likewise.
72037         * lib/sqrtl.c: Likewise.
72038         * lib/tanl.c: Likewise.
72040         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
72041         * lib/isnanf.h: Remove file.
72042         * lib/isnand.h: Remove file.
72043         * lib/isnanl.h: Remove file.
72044         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
72045         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
72046         macros.
72047         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
72048         HAVE_ISNANF, don't define it as a C macro.
72049         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
72050         HAVE_ISNAND, don't define it as a C macro.
72051         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
72052         HAVE_ISNANL, don't define it as a C macro.
72053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
72054         HAVE_ISNAN[FDL].
72055         * modules/isnanf (Files): Remove lib/isnanf.h.
72056         (Depends-on): Add math.
72057         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72058         (Include): Specify <math.h> instead of isnanf.h.
72059         * modules/isnand (Files): Remove lib/isnand.h.
72060         (Depends-on): Add math.
72061         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72062         (Include): Specify <math.h> instead of isnand.h.
72063         * modules/isnanl (Files): Remove lib/isnanl.h.
72064         (Depends-on): Add math.
72065         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72066         (Include): Specify <math.h> instead of isnanl.h.
72067         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
72068         HAVE_ISNAN[FDL].
72069         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
72070         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
72071         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
72072         * NEWS: Mention the change.
72074 2008-10-18  Bruno Haible  <bruno@clisp.org>
72076         Add getusershell(), setusershell(), endusershell() declarations to
72077         <unistd.h>.
72078         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
72079         declarations.
72080         * lib/getusershell.c: Include unistd.h.
72081         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
72082         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72083         HAVE_GETUSERSHELL.
72084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
72085         and HAVE_GETUSERSHELL.
72086         * modules/getusershell (Depends-on): Add unistd, extensions.
72087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72088         (Include): Specify <unistd.h>.
72089         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
72090         HAVE_GETUSERSHELL.
72092 2008-10-18  Bruno Haible  <bruno@clisp.org>
72094         Add a getloadavg() declaration to <stdlib.h>.
72095         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
72096         getloadavg declaration.
72097         (getloadavg): New declaration.
72098         * lib/getloadavg.c: Include <stdlib.h> first.
72099         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
72100         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
72101         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
72102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
72103         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72104         * modules/getloadavg (Depends-on): Add stdlib, extensions.
72105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72106         (Include): Specify <stdlib.h>.
72107         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
72108         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72110 2008-10-18  Bruno Haible  <bruno@clisp.org>
72112         * lib/dirchownmod.c: Don't include lchmod.h.
72114         Move the lchmod() declaration to <sys/stat.h>.
72115         * lib/lchmod.h: Remove file.
72116         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
72117         (lchmod): New declaration, moved here from lib/lchown.h.
72118         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
72119         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
72120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
72121         and HAVE_LCHMOD.
72122         * modules/lchmod (Files): Remove lib/lchmod.h.
72123         (Depends-on): Add sys_stat, extensions.
72124         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
72125         (Include): Specify <sys/stat.h> instead of lchmod.h.
72126         * modules/sys_stat (Depends-on): Add link-warning.
72127         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
72128         definition of GL_LINK_WARNING.
72129         * NEWS: Mention the change.
72131 2008-10-18  Bruno Haible  <bruno@clisp.org>
72133         * lib/fchdir.c: Don't include dirfd.h.
72134         * lib/fts.c: Likewise.
72135         * lib/getcwd.c: Likewise.
72136         * lib/glob.c: Likewise.
72138         Move the dirfd() declaration to <dirent.h>.
72139         * lib/dirfd.h: Remove file.
72140         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
72141         (dirfd): New declaration.
72142         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
72143         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
72144         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
72145         HAVE_DECL_DIRFD.
72146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
72147         HAVE_DECL_DIRFD.
72148         * modules/dirfd (Files): Remove lib/dirfd.h.
72149         (Depends-on): Add dirent, extensions.
72150         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
72151         (Include): Specify <dirent.h> instead of dirfd.h.
72152         * modules/dirent (Depends-on): Add link-warning.
72153         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
72154         definition of GL_LINK_WARNING.
72155         * NEWS: Mention the change.
72157 2008-10-18  Bruno Haible  <bruno@clisp.org>
72159         Move the euidaccess() declaration to <unistd.h>.
72160         * lib/euidaccess.h: Remove file.
72161         * lib/unistd.in.h (euidaccess): New declaration.
72162         * lib/euidaccess.c: Don't include euidaccess.h.
72163         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
72164         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
72165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
72166         and HAVE_EUIDACCESS.
72167         * modules/euidaccess (Files): Remove lib/euidaccess.h.
72168         (Depends-on): Add unistd.
72169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72170         (Include): Specify <unistd.h> instead of euidaccess.h.
72171         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
72172         HAVE_EUIDACCESS.
72173         * NEWS: Mention the change.
72175 2008-10-18  Bruno Haible  <bruno@clisp.org>
72177         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
72179         Move the getdomainname() declaration to <unistd.h>.
72180         * lib/getdomainname.h: Remove file.
72181         * lib/unistd.in.h (getdomainname): New declaration.
72182         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
72183         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
72184         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72185         HAVE_GETDOMAINNAME.
72186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72187         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
72188         * modules/getdomainname (Files): Remove lib/getdomainname.h.
72189         (Depends-on): Add unistd, extensions.
72190         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72191         (Includes): Specify <unistd.h> instead of getdomainname.h.
72192         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
72193         HAVE_GETDOMAINNAME.
72194         * NEWS: Mention the change.
72196 2008-10-18  Bruno Haible  <bruno@clisp.org>
72198         * modules/dirent: New file.
72199         * m4/dirent_h.m4: New file.
72200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
72201         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
72202         * modules/fchdir (Files): Remove lib/dirent.in.h.
72203         (Depends-on): Add dirent.
72204         (Makefile.am): Move rules to modules/dirent.
72205         * doc/posix-headers/dirent.texi: Mention the new module.
72207 2008-10-18  Bruno Haible  <bruno@clisp.org>
72209         Avoid -Wunused-parameter warnings in public gnulib header files.
72210         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
72211         macro.
72212         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
72214 2008-10-18  Bruno Haible  <bruno@clisp.org>
72216         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
72217         * doc/glibc-functions/error.texi: Mention the module 'error'.
72218         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
72219         * doc/glibc-functions/getdomainname.texi: Mention the module
72220         'getdomainname'.
72221         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
72222         * doc/glibc-functions/getpagesize.texi: Mention the module
72223         'getpagesize'.
72224         * doc/glibc-functions/getusershell.texi: Mention the module
72225         'getusershell'.
72226         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
72227         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
72228         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
72229         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
72230         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
72231         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
72232         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
72233         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
72234         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
72235         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
72236         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
72237         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
72238         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
72239         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
72241 2008-10-17  Bruno Haible  <bruno@clisp.org>
72243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
72244         HP-UX and IRIX, use -0.0L.
72245         * tests/test-ceill.c (minus_zero): Likewise.
72246         * tests/test-floorl.c (minus_zero): Likewise.
72247         * tests/test-frexpl.c (minus_zero): Likewise.
72248         * tests/test-isnan.c (minus_zerol): Likewise.
72249         * tests/test-isnanl.h (minus_zero): Likewise.
72250         * tests/test-ldexpl.c (minus_zero): Likewise.
72251         * tests/test-roundl.c (minus_zero): Likewise.
72252         * tests/test-signbit.c (minus_zerol): Likewise.
72253         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
72254         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
72255         * tests/test-truncl.c (minus_zero): Likewise.
72256         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
72257         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
72258         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
72259         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
72261 2008-10-17  Bruno Haible  <bruno@clisp.org>
72263         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
72264         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
72265         that it gets activated only for gcc >= 3.0.
72266         * lib/dirent.in.h: Likewise.
72267         * lib/errno.in.h: Likewise.
72268         * lib/fcntl.in.h: Likewise.
72269         * lib/float.in.h: Likewise.
72270         * lib/iconv.in.h: Likewise.
72271         * lib/inttypes.in.h: Likewise.
72272         * lib/locale.in.h: Likewise.
72273         * lib/math.in.h: Likewise.
72274         * lib/netdb.in.h: Likewise.
72275         * lib/netinet_in.in.h: Likewise.
72276         * lib/search.in.h: Likewise.
72277         * lib/signal.in.h: Likewise.
72278         * lib/spawn.in.h: Likewise.
72279         * lib/stdarg.in.h: Likewise.
72280         * lib/stdint.in.h: Likewise.
72281         * lib/stdio.in.h: Likewise.
72282         * lib/stdlib.in.h: Likewise.
72283         * lib/string.in.h: Likewise.
72284         * lib/strings.in.h: Likewise.
72285         * lib/sys_file.in.h: Likewise.
72286         * lib/sys_ioctl.in.h: Likewise.
72287         * lib/sys_select.in.h: Likewise.
72288         * lib/sys_socket.in.h: Likewise.
72289         * lib/sys_stat.in.h: Likewise.
72290         * lib/sys_time.in.h: Likewise.
72291         * lib/sysexits.in.h: Likewise.
72292         * lib/time.in.h: Likewise.
72293         * lib/unistd.in.h: Likewise.
72294         * lib/wchar.in.h: Likewise.
72295         * lib/wctype.in.h: Likewise.
72296         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72298 2008-10-17  Jim Meyering  <meyering@redhat.com>
72300         ignore-value: don't depend on inline module
72301         * modules/ignore-value (Depends-on): Remove 'inline'.
72302         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
72303         Suggestion from Bruno Haible.
72305 2008-10-17  Bruno Haible  <bruno@clisp.org>
72307         New implementation of condition variables for Win32.
72308         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
72309         (gl_linked_waitqueue_t): New type.
72310         (gl_cond_t): Use it.
72311         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
72312         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
72313         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
72314         (glthread_cond_init_func, glthread_cond_wait_func,
72315         glthread_cond_timedwait_func, glthread_cond_signal_func,
72316         glthread_cond_broadcast_func, glthread_cond_destroy_func):
72317         Reimplemented on the basis of gl_linked_waitqueue_t.
72318         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
72319         gl_waitqueue_t.
72320         (gl_rwlock_t): Update.
72321         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
72323 2008-10-17  Simon Josefsson  <simon@josefsson.org>
72325         * modules/recvfrom (Depends-on): Add dependency on getpeername.
72326         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72328 2008-10-17  Jim Meyering  <meyering@redhat.com>
72330         ignore-value: new module
72331         * modules/ignore-value: New file.
72332         * lib/ignore-value.h: New file.
72333         * MODULES.html.sh (Compiler warning management): New section,
72334         just for this module.  More to come.
72336 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72338         open-safer.c: avoid 'signed and unsigned in conditional...' warning
72339         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
72340         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
72342 2008-10-16  Jim Meyering  <meyering@redhat.com>
72344         openat-die.c: avoid 'no previous prototype' warning
72345         * lib/openat-die.c: Include "openat.h".
72346         Reported by Reuben Thomas <rrt@sc3d.org>.
72348 2008-10-16  Simon Josefsson  <simon@josefsson.org>
72350         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
72351         * lib/netdb.in.h: Fix typo.
72352         Reported by Bruno Haible  <bruno@clisp.org>
72354         * lib/netdb.in.h: Include sys/socket.h for platforms without
72355         netdb.h, to get structures like hostent on MinGW.
72356         * modules/netdb (Depends-on): Add sys_socket.
72358 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72360         * modules/netdb, modules/netdb-tests: New file.
72361         * m4/netdb_h.m4: New file.
72362         * lib/netdb.in.h: Add, currently just an empty file pending
72363         definitions.
72364         * tests/test-netdb.c: New file.
72365         * doc/posix-headers/netdb.texi: Mention that we replace it if
72366         needed.
72367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72368         netdb.
72370 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72372         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
72373         with code.
72375 2008-10-13  Bruno Haible  <bruno@clisp.org>
72377         * lib/glthread/cond.c (glthread_cond_wait_func,
72378         glthread_cond_timedwait_func): Add a comment.
72380 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72382         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
72383         * tests/test-select.c: Likewise,
72385 2008-10-13  Bruno Haible  <bruno@clisp.org>
72387         * lib/glthread/cond.c (glthread_cond_wait_func,
72388         glthread_cond_timedwait_func): Fix variable name.
72389         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72391 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
72393         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
72394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
72395         struct sockaddr.sa_len.
72396         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
72398 2008-10-13  Simon Josefsson  <simon@josefsson.org>
72400         * build-aux/pmccabe2html: Add css and css_url parameters.
72402 2008-10-12  Bruno Haible  <bruno@clisp.org>
72404         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
72405         calling aclx_get.
72406         Reported by Rainer Tammer <tammer@tammer.net>.
72408 2008-10-12  Bruno Haible  <bruno@clisp.org>
72410         Use msvcrt aware primitives for creation/termination of Win32 threads.
72411         * lib/glthread/thread.c: Include <process.h>.
72412         (glthread_create_func): Use _beginthreadex instead of CreateThread.
72413         (wrapper_func): Update signature.
72414         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
72416 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72417             Bruno Haible  <bruno@clisp.org>
72419         Provide a Win32 implementation of the 'cond' module.
72420         * lib/glthread/cond.h [USE_WIN32]: New implementation.
72421         * lib/glthread/cond.c (glthread_cond_init_func,
72422         glthread_cond_wait_func, glthread_cond_timedwait_func,
72423         glthread_cond_signal_func, glthread_cond_broadcast_func,
72424         glthread_cond_destroy_func) [USE_WIN32]: New functions.
72425         * modules/cond (Dependencies): Add gettimeofday.
72427 2008-10-11  Bruno Haible  <bruno@clisp.org>
72429         Make sleep work on older versions of mingw.
72430         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
72431         only whether it exists.
72432         * doc/posix-functions/sleep.texi: Mention the problem with older
72433         versions of mingw.
72435 2008-10-11  Bruno Haible  <bruno@clisp.org>
72437         New module 'shutdown'.
72438         * modules/shutdown: New file.
72439         * lib/sys_socket.in.h (shutdown): New declaration.
72440         * lib/winsock.c (shutdown): New function.
72441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
72442         GNULIB_SHUTDOWN.
72443         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
72444         * doc/posix-functions/shutdown.texi: Document the new module.
72446 2008-10-11  Jim Meyering  <meyering@redhat.com>
72448         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
72450 2008-10-11  Bruno Haible  <bruno@clisp.org>
72452         New module 'fclose'.
72453         * modules/fclose: New file.
72454         * lib/stdio.in.h (fclose): New declaration.
72455         * lib/fclose.c: New file.
72456         * m4/fclose.m4: New file.
72457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
72458         REPLACE_FCLOSE.
72459         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
72460         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
72461         REPLACE_FCLOSE.
72462         * modules/close (Depends-on): fclose.
72463         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
72465 2008-10-11  Bruno Haible  <bruno@clisp.org>
72467         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
72468         set errno and don't call _close.
72470 2008-10-10  Bruno Haible  <bruno@clisp.org>
72472         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
72473         ACL, not afterwards. Fixes test failure on Cygwin.
72475 2008-10-09  Ben Pfaff  <blp@gnu.org>
72477         * build-aux/announce-gen: Fix gnulib version related part of usage
72478         message.  Die with a useful error message if no tarballs are
72479         found.
72481 2008-10-10  Jim Meyering  <meyering@redhat.com>
72483         bootstrap: use git's --depth=N option only if it's supported
72484         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
72485         recognize the --depth option.  Reported by Pádraig Brady.
72487 2008-10-09  Bruno Haible  <bruno@clisp.org>
72489         New module 'ioctl'.
72490         * modules/ioctl: New file.
72491         * lib/sys_socket.in.h (ioctl): Remove declaration.
72492         * lib/winsock.c: Include <sys/ioctl.h>.
72493         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
72494         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
72495         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
72496         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
72497         * doc/posix-functions/ioctl.texi: Mention the new module.
72499 2008-10-09  Bruno Haible  <bruno@clisp.org>
72501         New module 'sys_ioctl'.
72502         * lib/sys_ioctl.in.h: New file.
72503         * m4/sys_ioctl_h.m4: New file.
72504         * modules/sys_ioctl: New file.
72505         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
72507 2008-10-09  Bruno Haible  <bruno@clisp.org>
72509         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
72510         * lib/winsock.c: Include <stdarg.h>.
72511         (rpl_ioctl): Change to second argument 'int' and then varargs.
72513 2008-10-09  Bruno Haible  <bruno@clisp.org>
72515         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
72516         when the sys_socket module is present and the system has <winsock2.h>.
72518 2008-10-09  Bruno Haible  <bruno@clisp.org>
72520         * doc/posix-functions/close.texi: Mention module 'close' instead of
72521         module 'sys_socket'.
72523 2008-10-09  Bruno Haible  <bruno@clisp.org>
72525         * doc/glibc-headers/sys_ioctl.texi: New file.
72526         * doc/gnulib.texi: Include it.
72528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72529             Bruno Haible  <bruno@clisp.org>
72531         Combine the two replacements of 'close'.
72532         * lib/sys_socket.in.h (close): Define to a reminder to include
72533         <unistd.h>.
72534         (_gl_close_fd_maybe_socket): New declaration.
72535         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
72536         * lib/winsock.c (close): Remove undefinition.
72537         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
72538         needed for the gnulib module 'close'.
72539         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
72540         define to an error symbol or to a warning, if suitable.
72541         * lib/close.c: Include <sys/socket.h>.
72542         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
72543         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
72544         UNISTD_H_HAVE_WINSOCK2_H.
72545         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
72546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72547         UNISTD_H_HAVE_WINSOCK2_H.
72548         * modules/sys_socket (Files): Add m4/unistd_h.m4.
72549         (configure.ac): Set a module indicator.
72550         (Makefile.am): Substitute GNULIB_CLOSE.
72551         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
72552         * modules/poll-tests (Depends-on): Add close.
72553         * modules/select-tests (Depends-on): Likewise.
72555 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72556             Bruno Haible  <bruno@clisp.org>
72558         New module 'close'.
72559         * modules/close: New file.
72560         * lib/unistd.in.h (close): Move declaration out of the
72561         FCHDIR_REPLACEMENT scope.
72562         (_gl_unregister_fd): New declaration.
72563         * lib/close.c: New file.
72564         * lib/fchdir.c (rpl_close): Remove function.
72565         * m4/close.m4: New file.
72566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72567         close.
72568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
72569         REPLACE_CLOSE.
72570         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
72571         REPLACE_CLOSE.
72572         * modules/fchdir (Depends-on): Add close.
72574 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72575             Bruno Haible  <bruno@clisp.org>
72577         * lib/fcntl.in.h (open): Simplify conditionals.
72578         (_gl_register_fd): New declaration.
72579         * lib/fchdir.c (rpl_open): Remove function.
72580         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
72581         also.
72582         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
72583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72584         open.
72586 2008-10-09  Jim Meyering  <meyering@redhat.com>
72588         GNUmakefile: use the more name-space-friendly "_version"
72589         * top/GNUmakefile (_dummy): Update.
72590         (_version): Rename from "version".
72592 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72593             Bruno Haible  <bruno@clisp.org>
72595         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72596         rpl_close.
72597         (_gl_register_fd): New function, extracted from rpl_open.
72598         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72599         (rpl_open, rpl_opendir): Use _gl_register_fd.
72601 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72603         Fix organization of 'open' replacement.
72604         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72605         (gl_FUNC_OPEN): Use it.
72606         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72608 2008-10-08  Bruno Haible  <bruno@clisp.org>
72610         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72612 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72614         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72615         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72616         listen).
72618 2008-10-08  Eric Blake  <ebb9@byu.net>
72620         GNUmakefile: add 'make version' target
72621         * top/GNUmakefile (_curr-ver): Split version update rules...
72622         (version): ...into a target.
72624 2008-10-07  Bruno Haible  <bruno@clisp.org>
72626         Use a more portable replacement expression for -0.0L.
72627         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72628         instead of -0.0L. Fix m4 quotation.
72630         * tests/test-signbit.c: Include <float.h>.
72631         (minus_zero): New variable.
72632         (test_signbitl): Use minus_zero instead of -zero.
72633         * modules/signbit-tests (Depends-on): Add float.
72635         * tests/test-ceill.c: Include <float.h>.
72636         (zero): Remove variable.
72637         (minus_zero): New variable.
72638         (main): Use minus_zero instead of -zero.
72639         * modules/ceill-tests (Depends-on): Add float.
72641         * tests/test-floorl.c: Include <float.h>.
72642         (zero): Remove variable.
72643         (minus_zero): New variable.
72644         (main): Use minus_zero instead of -zero.
72645         * modules/floorl-tests (Depends-on): Add float.
72647         * tests/test-roundl.c: Include <float.h>.
72648         (zero): Remove variable.
72649         (minus_zero): New variable.
72650         (main): Use minus_zero instead of -zero.
72651         * modules/roundl-tests (Depends-on): Add float.
72653         * tests/test-truncl.c: Include <float.h>.
72654         (zero): Remove variable.
72655         (minus_zero): New variable.
72656         (main): Use minus_zero instead of -zero.
72657         * modules/truncl-tests (Depends-on): Add float.
72659         * tests/test-frexpl.c (zero): Remove variable.
72660         (minus_zero): New variable.
72661         (main): Use minus_zero instead of -zero.
72662         * modules/frexpl-tests (Depends-on): Add float.
72664         * tests/test-isnan.c (zerol): Remove variable.
72665         (minus_zerol): New variable.
72666         (test_long_double): Use minus_zerol instead of -zerol.
72667         * modules/isnan-tests (Depends-on): Add float.
72669         * tests/test-isnanl.h (zero): Remove variable.
72670         (minus_zero): New variable.
72671         (main): Use minus_zero instead of -zero.
72672         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72673         * modules/isnanl-tests (Depends-on): Add float.
72675         * tests/test-ldexpl.c (zero): Remove variable.
72676         (minus_zero): New variable.
72677         (main): Use minus_zero instead of -zero.
72678         * modules/ldexpl-tests (Depends-on): Add float.
72680         * tests/test-snprintf-posix.h (zerol): Remove variable.
72681         (minus_zerol): New variable.
72682         (test_function): Use minus_zerol instead of -zerol.
72683         * modules/snprintf-posix-tests (Depends-on): Add float.
72684         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72686         * tests/test-sprintf-posix.h (zerol): Remove variable.
72687         (minus_zerol): New variable.
72688         (test_function): Use minus_zerol instead of -zerol.
72689         * modules/sprintf-posix-tests (Depends-on): Add float.
72690         * modules/vsprintf-posix-tests (Depends-on): Add float.
72692         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72693         (minus_zerol): New variable.
72694         (test_function): Use minus_zerol instead of -zerol.
72695         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72697         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72698         (minus_zerol): New variable.
72699         (test_function): Use minus_zerol instead of -zerol.
72700         * modules/vasprintf-posix-tests (Depends-on): Add float.
72702 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72704         * MODULES.html.sh (Support for building documentation): Mention
72705         pmccabe2html.  Sort entries.
72707         Add pmccabe2html module, from gnupdf.
72708         * build-aux/pmccabe.css: New file.
72709         * build-aux/pmccabe2html: New file.
72710         * m4/pmccabe2html.m4: New file.
72711         * modules/pmccabe2html: New file.
72713 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72715         flock: new module
72716         * MODULES.html.sh: Add to list of modules.
72717         * lib/flock.c: flock implementation for Windows and Unix systems
72718         which have fcntl.
72719         * doc/glibc-functions/flock.texi: Update documentation.
72720         * lib/sys_file.in.h: <sys/file.h> header file.
72721         * m4/flock.m4: M4 macros.
72722         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72723         * modules/flock: flock module.
72724         * modules/flock-tests: flock tests module.
72725         * modules/sys_file: sys/file.h module.
72726         * tests/test-flock.c: test suite for flock.
72728 2008-10-06  Jim Meyering  <meyering@redhat.com>
72730         bootstrap: check for LT_INIT more portably still ;-)
72731         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72732         Spotted by Bruno Haible.
72734 2008-10-06  Eric Blake  <ebb9@byu.net>
72736         test-signbit: avoid tripping Irix cc bug on -0.0L
72737         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72738         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72739         entire testsuite consistent and avoids an Irix 6.2 bug.
72741 2008-10-05  Bruno Haible  <bruno@clisp.org>
72742             Jim Meyering  <jim@meyering.net>
72744         Add an option for ignoring EPIPE during close_stdout.
72745         * lib/closeout.h: Include <stdbool.h>.
72746         (close_stdout_set_ignore_EPIPE): New declaration.
72747         * lib/closeout.c: Include <stdbool.h>.
72748         (ignore_EPIPE): New variable.
72749         (close_stdout_set_ignore_EPIPE): New function.
72750         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
72751         * lib/close-stream.c (close_stream): Mention the possible EPIPE
72752         failure.
72753         * modules/closeout (Depends-on): Add stdbool.
72755 2008-10-05  Bruno Haible  <bruno@clisp.org>
72757         * modules/accept: New file.
72758         * modules/bind: New file.
72759         * modules/connect: New file.
72760         * modules/getpeername: New file.
72761         * modules/getsockname: New file.
72762         * modules/getsockopt: New file.
72763         * modules/listen: New file.
72764         * modules/recv: New file.
72765         * modules/recvfrom: New file.
72766         * modules/send: New file.
72767         * modules/sendto: New file.
72768         * modules/setsockopt: New file.
72769         * modules/socket: New file.
72770         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
72771         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72772         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
72773         the particular module is requested. Add a link warning when the
72774         particular module is not requested.
72775         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
72776         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
72777         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
72778         the particular module is requested.
72779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
72780         gl_SYS_SOCKET_H_DEFAULTS): New macros.
72781         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
72782         * modules/sys_socket (Depends-on): Add link-warning.
72783         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
72784         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
72785         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
72786         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
72787         GL_LINK_WARNING.
72788         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
72789         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
72790         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
72791         * doc/posix-functions/getpeername.texi: Mention the new module
72792         'getpeername'.
72793         * doc/posix-functions/getsockname.texi: Mention the new module
72794         'getsockname'.
72795         * doc/posix-functions/getsockopt.texi: Mention the new module
72796         'getsockopt'.
72797         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
72798         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
72799         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
72800         * doc/posix-functions/send.texi: Mention the new module 'send'.
72801         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
72802         * doc/posix-functions/setsockopt.texi: Mention the new module
72803         'setsockopt'.
72804         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
72805         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
72806         listen, connect, accept.
72807         * modules/select-tests (Depends-on): Likewise.
72809 2008-10-05  Bruno Haible  <bruno@clisp.org>
72811         * lib/winsock.c (strerror): Remove unused #undef.
72812         (rpl_close): Remove unused local variable.
72814         * modules/sys_socket (Depends-on); Add errno.
72816 2008-10-05  Bruno Haible  <bruno@clisp.org>
72818         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
72819         (select): Add a link warning when the 'select' module is not used.
72820         * modules/sys_select (Depends-on): Add link-warning.
72821         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
72822         Suggested by Paolo Bonzini.
72824 2008-10-05  Jim Meyering  <meyering@redhat.com>
72826         bootstrap: check for LT_INIT more portably
72827         * build-aux/bootstrap: Avoid using grep -E, since it's not
72828         portable enough.  Suggestion from Bruno Haible.
72830 2008-10-05  Bruno Haible  <bruno@clisp.org>
72832         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
72833         as being fixed by gnulib.
72835 2008-10-05  Bruno Haible  <bruno@clisp.org>
72837         * modules/select-tests: New file, mostly copied from
72838         modules/sys_select-tests.
72839         * tests/test-select.c: New file, mostly copied from
72840         tests/test-sys_select.c.
72841         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
72842         * modules/sys_select-tests (Depends-on): Remove all dependencies.
72843         (Makefile.am): Remove test_sys_select_LDADD.
72845         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
72846         to an undefined symbol, for an error message.
72847         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
72848         (gl_SYS_SELECT_H_DEFAULTS): New macro.
72849         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
72850         winsock-select.c here.
72851         * modules/sys_select (Files): Remove lib/winsock-select.c.
72852         (Depends-on): Remove alloca.
72853         (Makefile.am): Substitute GNULIB_SELECT.
72854         * modules/select: New file.
72855         * doc/posix-functions/select.texi: Update.
72857 2008-10-05  Bruno Haible  <bruno@clisp.org>
72859         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72860         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72861         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72862         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72863         getdtablesize.
72864         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72865         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72867 2008-10-05  Bruno Haible  <bruno@clisp.org>
72869         * modules/getdtablesize-tests: New file.
72870         * tests/test-getdtablesize.c: New file.
72872         New module 'getdtablesize'.
72873         * lib/unistd.in.h (getdtablesize): New declaration.
72874         * lib/getdtablesize.c: New file.
72875         * m4/getdtablesize.m4: New file.
72876         * modules/getdtablesize: New file.
72877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72878         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72879         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72880         HAVE_GETDTABLESIZE.
72881         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72883 2008-10-05  Bruno Haible  <bruno@clisp.org>
72885         * modules/sched (Makefile.am): Fix typo.
72886         Reported by Simon Josefsson.
72888 2008-10-05  Jim Meyering  <meyering@redhat.com>
72890         bootstrap: check for LT_INIT, too
72891         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72892         are deprecated.  Suggestion from Ralf Wildenhues.
72894 2008-10-05  Bruno Haible  <bruno@clisp.org>
72896         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72897         overriding them by ours.
72898         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72900 2008-10-05  Jim Meyering  <meyering@redhat.com>
72902         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72903         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72904         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72906 2008-10-04  Bruno Haible  <bruno@clisp.org>
72908         * modules/dup2 (License): Change to LGPLv2+.
72909         * modules/sleep (License): Likewise.
72910         * modules/perror (License): Likewise.
72911         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72912         Blake.
72913         * modules/signal (License): Likewise.
72914         * modules/sigprocmask (License): Likewise.
72915         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72916         Meyering.
72918 2008-10-04  Bruno Haible  <bruno@clisp.org>
72920         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
72921         Reported by Rainer Tammer <tammer@tammer.net>.
72923 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
72924             Bruno Haible  <bruno@clisp.org>
72926         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
72927         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
72928         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
72930 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
72932         filevercmp: new module
72933         * lib/filevercmp.h: New function filevercmp comparing version strings.
72934         * lib/filevercmp.c: Implementation of filevercmp function.
72935         * modules/filevercmp: Module metadata.
72936         * tests/test-filevercmp.c: Unit test for new module.
72937         * modules/filevercmp-tests: Unit test metadata.
72938         * MODULES.html.sh: Add filevercmp module.
72940 2008-10-03  Bruno Haible  <bruno@clisp.org>
72942         * lib/c-ctype.h: Add comment.
72943         Reported by Jim Meyering.
72945 2008-10-02  Bruno Haible  <bruno@clisp.org>
72947         * modules/posix_spawn-internal (Depends-on): Add 'open'.
72949 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72951         * build-aux/bootstrap: Allow renaming bootstrap, and change the
72952         name of bootstrap.conf accordingly.
72954 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72956         * build-aux/bootstrap: Install git-merge-changelog configuration
72957         items into .gitconfig if needed.
72959 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72961         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
72962         git repository, and initialize/update it accordingly.
72964 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
72966         * modules/fsync-tests: New file.
72967         * tests/test-fsync.c: New file.
72969         New module 'fsync'.
72970         * lib/fsync.c: New file.
72971         * m4/fsync.m4: New file.
72972         * modules/fsync: New file.
72973         * lib/unistd.in.h (fsync): New declaration.
72974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
72975         GNULIB_FSYNC and HAVE_FSYNC.
72976         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
72977         * MODULES.html.sh (posix_functions): Add fsync.
72978         * doc/posix-functions/fsync.texi: Mention the new module.
72980 2008-10-02  Jim Meyering  <meyering@redhat.com>
72982         fts.c: sync with similar code from coreutils' remove.c
72983         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
72984         Guard also with "#if defined __linux__", since for now at least,
72985         this code is Linux-kernel-specific.
72987 2008-10-02  Jim Meyering  <meyering@redhat.com>
72989         fts: bug fixes
72990         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
72991         Include <sys/vfs.h>, not <sys/statfs.h>.
72993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
72994         Include <sys/vfs.h>, not <sys/statfs.h>.
72996 2008-10-01  Bruno Haible  <bruno@clisp.org>
72998         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
72999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
73000         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
73001         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
73002         * doc/posix-functions/posix_spawnp.texi: Likewise.
73003         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
73004         whether posix_spawn actually works.
73005         * m4/pipe.m4 (gl_PIPE): Likewise.
73006         * modules/execute (Files): Add m4/posix_spawn.m4.
73007         * modules/pipe (Files): Add m4/posix_spawn.m4.
73008         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
73010 2008-10-01  Jim Meyering  <meyering@redhat.com>
73012         remove trailing spaces
73013         * NEWS: Likewise.
73014         * lib/poll.c (poll): Likewise.
73015         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
73016         * lib/winsock.c (rpl_close): Likewise.
73017         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
73018         * modules/yield: Likewise.
73019         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
73020         * tests/test-sys_select.c (connect_to_socket): Likewise.
73022         fts.c: adjust a new interface to be more generally useful
73023         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
73024         (fts_build): Adjust caller.
73026 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73028         * modules/cond-tests: New file.
73029         * tests/test-cond.c: New file.
73031 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73032             Bruno Haible  <bruno@clisp.org>
73034         * modules/cond (Dependencies): Add errno, time.
73035         * lib/glthread/cond.h: Include <time.h>.
73036         (gl_cond_define, gl_cond_define_initialized): Use the same definition
73037         across platforms.
73039 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73040             Bruno Haible  <bruno@clisp.org>
73042         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
73044 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73045             Bruno Haible  <bruno@clisp.org>
73047         * modules/tls-tests (Depends-on): Add thread, yield.
73048         (configure.ac): Remove all checks.
73049         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
73050         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73051         gl_thread_self): Remove definitions. Include glthread/thread.h and
73052         glthread/yield.h instead.
73053         (test_tls): Pass an additional NULL argument to gl_thread_join.
73055 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73056             Bruno Haible  <bruno@clisp.org>
73058         * modules/lock-tests (Depends-on): Add thread, yield.
73059         (configure.ac): Remove all checks.
73060         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
73061         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73062         gl_thread_self): Remove definitions. Include glthread/thread.h and
73063         glthread/yield.h instead.
73064         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
73065         additional NULL argument to gl_thread_join.
73067 2008-09-30  Bruno Haible  <bruno@clisp.org>
73069         Fix the Win32 implementation of the 'thread' module.
73070         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
73071         pointer type.
73072         (gl_thread_self): Invoke gl_thread_self_func.
73073         (gl_thread_self_func): New declaration.
73074         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
73075         (do_init_self_key, init_self_key): New functions.
73076         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
73077         Remove some fields.
73078         (running_threads, running_lock): Remove variables.
73079         (get_current_thread_handle): New function.
73080         (gl_thread_self_func, wrapper_func, glthread_create_func,
73081         glthread_join_func, gl_thread_exit_func): Largely rewritten and
73082         simplified.
73084 2008-09-30  Bruno Haible  <bruno@clisp.org>
73086         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
73087         files.
73089 2008-09-30  Jim Meyering  <meyering@redhat.com>
73091         fts.m4: correct the test for statfs.f_type
73092         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
73093         when checking for statfs.f_type.
73095 2008-09-15  Simon Josefsson  <simon@josefsson.org>
73097         tests: avoid some compiler warnings
73098         * tests/test-memchr.c (main): Pass NULL indirectly.
73099         * tests/test-getdate.c (main): Remove unused variable 'ret'.
73101 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
73103         getdate.y: disallow countable dayshifts like "4 yesterday ago"
73104         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
73105         exactly specified dayshifts.
73106         (dayshift): New rule.
73107         (rel): Add dayshift.
73108         (relative_time_table) [tomorrow, yesterday, today, now]:
73109         Use tDAY_SHIFT in place of tDAY_UNIT.
73110         * tests/test-getdate.c: Add tests for now-disallowed countable
73111         dayshifts, e.g., "4 yesterday ago".
73113 2008-09-29  Bruno Haible  <bruno@clisp.org>
73115         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
73116         * tests/test-posix_spawn1.in.sh: Renamed from
73117         tests/test-posix_spawn.in.sh.
73118         * tests/test-posix_spawn2.c: New file.
73119         * tests/test-posix_spawn2.in.sh: New file.
73120         * modules/posix_spawnp-tests (Files): Update.
73121         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
73123 2008-09-29  Bruno Haible  <bruno@clisp.org>
73125         Propagate effects of putenv/setenv/unsetenv to child processes.
73126         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
73127         * lib/pipe.c (create_pipe): Likewise.
73129 2008-09-29  Bruno Haible  <bruno@clisp.org>
73131         Enable use of shell scripts as executables in mingw.
73132         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
73133         run the program as a shell script.
73134         * lib/pipe.c (create_pipe): Likewise.
73135         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
73136         resulting array.
73138 2008-09-29  Eric Blake  <ebb9@byu.net>
73140         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
73142 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
73144         * doc/posix-functions/accept.texi: Update mingw problems.
73145         * doc/posix-functions/bind.texi: Update mingw problems.
73146         * doc/posix-functions/close.texi: Update mingw problems.
73147         * doc/posix-functions/connect.texi: Update mingw problems.
73148         * doc/posix-functions/getpeername.texi: Update mingw problems.
73149         * doc/posix-functions/getsockname.texi: Update mingw problems.
73150         * doc/posix-functions/getsockopt.texi: Update mingw problems.
73151         * doc/posix-functions/ioctl.texi: Update mingw problems.
73152         * doc/posix-functions/listen.texi: Update mingw problems.
73153         * doc/posix-functions/recv.texi: Update mingw problems.
73154         * doc/posix-functions/recvfrom.texi: Update mingw problems.
73155         * doc/posix-functions/select.texi: Update mingw problems.
73156         * doc/posix-functions/send.texi: Update mingw problems.
73157         * doc/posix-functions/sendto.texi: Update mingw problems.
73158         * doc/posix-functions/setsockopt.texi: Update mingw problems.
73159         * doc/posix-functions/socket.texi: Update mingw problems.
73161 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
73162             Bruno Haible  <bruno@clisp.org>
73164         * lib/sys_select.in.h: Include sys/time.h.
73165         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
73166         * modules/sys_select: Depend on sys_time.
73167         * tests/test-sys_select.c: Test that sys/select.h defines struct
73168         timeval fully.
73170 2008-09-29  Bruno Haible  <bruno@clisp.org>
73172         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
73173         * lib/sys_select.in.h: Likewise.
73175 2008-09-29  Bruno Haible  <bruno@clisp.org>
73177         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
73179 2008-09-29  Bruno Haible  <bruno@clisp.org>
73181         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
73182         Set LIBSOCKET instead of augmenting LIBS.
73183         * modules/sockets (Link): New section.
73184         * modules/sockets-tests (test_sockets_LDADD): New variable.
73185         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
73186         * modules/poll-tests (test_poll_LDADD): New variable.
73187         * NEWS: Document the change.
73189 2008-09-29  Bruno Haible  <bruno@clisp.org>
73191         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
73192         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
73193         ARPA_INET_H directly.
73194         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73196 2008-09-28  Bruno Haible  <bruno@clisp.org>
73198         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
73199         from gl_HEADER_SYS_SOCKET.
73200         (gl_HEADER_SYS_SOCKET): Invoke it.
73201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73203 2008-09-28  Bruno Haible  <bruno@clisp.org>
73205         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
73206         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
73207         Needed on OSF/1 4.0.
73209 2008-09-28  Bruno Haible  <bruno@clisp.org>
73211         Override open more carefully.
73212         * lib/open.c (orig_open): New function.
73213         (rpl_open): Use orig_open instead of open.
73214         * lib/fcntl.in.h: Add special invocation convention.
73215         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
73216         (gl_FUNC_OPEN): Invoke it.
73218         Override freopen more carefully.
73219         * lib/freopen.c (orig_freopen): New function.
73220         (rpl_freopen): Use orig_freopen instead of freopen.
73221         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
73222         (gl_FUNC_FREOPEN): Invoke it.
73224         Override fopen more carefully.
73225         * lib/fopen.c (orig_fopen): New function.
73226         (rpl_fopen): Use orig_fopen instead of fopen.
73227         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
73228         (gl_FUNC_FOPEN): Invoke it.
73229         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
73231 2008-09-28  Bruno Haible  <bruno@clisp.org>
73233         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
73234         SIGPIPE.
73236 2008-09-28  Bruno Haible  <bruno@clisp.org>
73238         * tests/test-sigaction.c (handler, main): Disable the check whether
73239         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
73240         glibc systems with LinuxThreads.
73242 2008-09-28  Bruno Haible  <bruno@clisp.org>
73244         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
73246         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
73247         with AIX xlc.
73248         * lib/fcntl.in.h (open): Likewise.
73249         Reported by Rainer Tammer <tammer@tammer.net>.
73251 2008-09-28  Bruno Haible  <bruno@clisp.org>
73253         * modules/posix_spawnp-tests: New file.
73254         * tests/test-posix_spawn.c: New file.
73255         * tests/test-posix_spawn.in.sh: New file.
73257         New module 'posix_spawnp'.
73258         * modules/posix_spawnp: New file.
73259         * lib/spawnp.c: New file, from GNU libc with modifications.
73260         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
73262         New module 'posix_spawn'.
73263         * modules/posix_spawn: New file.
73264         * lib/spawn.c: New file, from GNU libc with modifications.
73265         * doc/posix-functions/posix_spawn.texi: Mention the new module.
73267         New module 'posix_spawnattr_destroy'.
73268         * modules/posix_spawnattr_destroy: New file.
73269         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
73270         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
73271         module.
73273         New module 'posix_spawnattr_setsigmask'.
73274         * modules/posix_spawnattr_setsigmask: New file.
73275         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
73276         modifications.
73277         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
73278         new module.
73280         New module 'posix_spawnattr_getsigmask'.
73281         * modules/posix_spawnattr_getsigmask: New file.
73282         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
73283         modifications.
73284         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
73285         new module.
73287         New module 'posix_spawnattr_setsigdefault'.
73288         * modules/posix_spawnattr_setsigdefault: New file.
73289         * lib/spawnattr_setdefault.c: New file, from GNU libc with
73290         modifications.
73291         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
73292         new module.
73294         New module 'posix_spawnattr_getsigdefault'.
73295         * modules/posix_spawnattr_getsigdefault: New file.
73296         * lib/spawnattr_getdefault.c: New file, from GNU libc with
73297         modifications.
73298         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
73299         new module.
73301         New module 'posix_spawnattr_setschedpolicy'.
73302         * modules/posix_spawnattr_setschedpolicy: New file.
73303         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
73304         modifications.
73305         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
73306         new module.
73308         New module 'posix_spawnattr_getschedpolicy'.
73309         * modules/posix_spawnattr_getschedpolicy: New file.
73310         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
73311         modifications.
73312         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
73313         new module.
73315         New module 'posix_spawnattr_setschedparam'.
73316         * modules/posix_spawnattr_setschedparam: New file.
73317         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
73318         modifications.
73319         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
73320         new module.
73322         New module 'posix_spawnattr_getschedparam'.
73323         * modules/posix_spawnattr_getschedparam: New file.
73324         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
73325         modifications.
73326         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
73327         new module.
73329         New module 'posix_spawnattr_setpgroup'.
73330         * modules/posix_spawnattr_setpgroup: New file.
73331         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
73332         modifications.
73333         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
73334         module.
73336         New module 'posix_spawnattr_getpgroup'.
73337         * modules/posix_spawnattr_getpgroup: New file.
73338         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
73339         modifications.
73340         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
73341         module.
73343         New module 'posix_spawnattr_setflags'.
73344         * modules/posix_spawnattr_setflags: New file.
73345         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
73346         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
73347         module.
73349         New module 'posix_spawnattr_getflags'.
73350         * modules/posix_spawnattr_getflags: New file.
73351         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
73352         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
73353         module.
73355         New module 'posix_spawnattr_init'.
73356         * modules/posix_spawnattr_init: New file.
73357         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
73358         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
73359         module.
73361         New module 'posix_spawn_file_actions_destroy'.
73362         * modules/posix_spawn_file_actions_destroy: New file.
73363         * lib/spawn_faction_destroy.c: New file, from GNU libc with
73364         modifications.
73365         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
73366         the new module.
73368         New module 'posix_spawn_file_actions_addopen'.
73369         * modules/posix_spawn_file_actions_addopen: New file.
73370         * lib/spawn_faction_addopen.c: New file, from GNU libc with
73371         modifications.
73372         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
73373         the new module.
73375         New module 'posix_spawn_file_actions_adddup2'.
73376         * modules/posix_spawn_file_actions_adddup2: New file.
73377         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
73378         modifications.
73379         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
73380         the new module.
73382         New module 'posix_spawn_file_actions_addclose'.
73383         * modules/posix_spawn_file_actions_addclose: New file.
73384         * lib/spawn_faction_addclose.c: New file, from GNU libc with
73385         modifications.
73386         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
73387         the new module.
73389         New module 'posix_spawn_file_actions_init'.
73390         * modules/posix_spawn_file_actions_init: New file.
73391         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
73392         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
73393         new module.
73395         New module 'posix_spawn-internal'.
73396         * modules/posix_spawn-internal: New file.
73397         * lib/spawn_int.h: New file, from GNU libc with modifications.
73398         * lib/spawni.c: New file, from GNU libc with modifications.
73399         * m4/posix_spawn.m4: New file.
73401         New module 'spawn'.
73402         * modules/spawn: New file.
73403         * lib/spawn.in.h: New file, from GNU libc with modifications.
73404         * m4/spawn_h.m4: New file.
73405         * doc/posix-headers/spawn.texi: Mention the new module.
73407 2008-09-28  Bruno Haible  <bruno@clisp.org>
73409         * modules/sched-tests: New file.
73410         * tests/test-sched.c: New file.
73412         New module 'sched'.
73413         * modules/sched: New file.
73414         * lib/sched.in.h: New file.
73415         * m4/sched_h.m4: New file.
73416         * doc/posix-headers/sched.texi: Mention the new module.
73418 2008-09-27  Eric Blake  <ebb9@byu.net>
73420         Fix previous patch, and tweak references to $0.
73421         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
73422         (func_version, func_gnulib_dir): Don't call this program
73423         gnulib-tool.
73424         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
73425         with using $0 in function.
73426         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
73427         (func_fatal_error): Reuse the name the user invoked us with.
73429 2008-09-27  Bruno Haible  <bruno@clisp.org>
73431         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
73432         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
73433         (gl_ICONV_H): Not here.
73434         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
73435         instead of assigning ICONV_H directly.
73437         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
73438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
73439         WCHAR_H directly.
73441 2008-09-27  Bruno Haible  <bruno@clisp.org>
73443         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
73444         * modules/arpa_inet (Depends-on): Add link-warning.
73445         (Makefile.am): Insert the definition of GL_LINK-WARNING.
73446         * modules/unistd (Makefile.am): Likewise.
73448 2008-09-26  Bruno Haible  <bruno@clisp.org>
73450         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
73451         variables.
73452         (func_version): Essentially copied from gnulib-tool.
73453         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
73454         func_readlink): Copied from gnulib-tool.
73456 2008-09-26  Bruno Haible  <bruno@clisp.org>
73458         * gnulib-tool (func_version): Change directory to $gnulib_dir before
73459         invoking git-version-gen.
73461 2008-09-26  Bruno Haible  <bruno@clisp.org>
73463         * posix-modules: Update to directory names changed on 2008-01-19.
73464         Remove commas in output before splitting into words. No more need to
73465         avoid 'ftruncate' since 2007-02-19.
73467 2008-09-26  Bruno Haible  <bruno@clisp.org>
73469         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
73471 2008-09-26  Bruno Haible  <bruno@clisp.org>
73473         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
73474         * modules/fwriteerror (Depends-on): Add errno.
73476 2008-09-26  Bruno Haible  <bruno@clisp.org>
73478         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
73479         * tests/test-vc-list-files-cvs.sh: Likewise.
73481 2008-09-26  Bruno Haible  <bruno@clisp.org>
73483         * doc/posix-headers/sys_resource.texi: Reorder items.
73485 2008-09-26  Jim Meyering  <meyering@redhat.com>
73487         fts: tweak inode comparison function
73488         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
73489         inode numbers, as documented.
73491         fts: sort dirent entries on inode number before traversing
73492         This avoids a quadratic, seek-related performance penalty when
73493         operating on a directory containing many entries (measurable at 10k;
73494         3.5 hours at 2 million entries with a cold cache) on certain types
73495         of file systems, including ext3 and ext4, but not tmpfs.
73496         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
73497         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
73498         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
73499         (fs_handles_readdir_ordered_dirents_efficiently): New function.
73500         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
73501         (fts_build): Set the stat.st_ino member from D_INO.
73502         If it is likely to be useful, sort dirent entries on inode number.
73504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
73505         and the struct statfs.f_type member.
73506         * modules/fts (Depends-on): Add d-ino.
73508 2008-09-26  Bruno Haible  <bruno@clisp.org>
73510         * modules/sigpipe-die (Depends-on): Add sigpipe.
73512         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
73513         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
73514         and GNULIB_STDIO_H_SIGPIPE are set.
73515         * lib/stdio-write.c: New file.
73516         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
73517         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73518         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73519         REPLACE_STDIO_WRITE_FUNCS.
73520         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
73521         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73522         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73523         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73524         * modules/stdio (Files): Add lib/stdio-write.c.
73525         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
73526         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73527         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73528         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73529         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
73530         REPLACE_FPRINTF_POSIX.
73531         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
73532         REPLACE_PRINTF_POSIX.
73533         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
73534         REPLACE_VFPRINTF_POSIX.
73535         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
73536         REPLACE_VPRINTF_POSIX.
73537         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
73538         SIGPIPE issue.
73539         * doc/posix-functions/fputc.texi: Likewise.
73540         * doc/posix-functions/fputs.texi: Likewise.
73541         * doc/posix-functions/fwrite.texi: Likewise.
73542         * doc/posix-functions/printf.texi: Likewise.
73543         * doc/posix-functions/putc.texi: Likewise.
73544         * doc/posix-functions/putchar.texi: Likewise.
73545         * doc/posix-functions/puts.texi: Likewise.
73546         * doc/posix-functions/vfprintf.texi: Likewise.
73547         * doc/posix-functions/vprintf.texi: Likewise.
73549         * modules/safe-write (Depends-on): Add write.
73551         * modules/sigpipe-tests: New file.
73552         * tests/test-sigpipe.c: New file.
73553         * tests/test-sigpipe.sh: New file.
73555         * modules/write: New file.
73556         * lib/unistd.in.h: Include <sys/types.h>.
73557         (write): New declaration.
73558         * lib/write.c: New file.
73559         * m4/write.m4: New file.
73560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73561         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
73562         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
73563         GNULIB_WRITE, REPLACE_WRITE.
73564         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
73565         and the SIGPIPE issue.
73567         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
73568         (raise): New declaration.
73569         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
73570         (ext_signal): New function.
73571         (rpl_raise): New function.
73572         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
73573         GNULIB_SIGNAL_H_SIGPIPE.
73574         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
73575         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
73577         * modules/sigpipe: New file.
73578         * m4/sigpipe.m4: New file.
73580 2008-09-25  Derek Price  <derek@ximbiot.com>
73581             Bruno Haible  <bruno@clisp.org>
73583         * gnulib-tool (func_import): Report all license incompatibilities, not
73584         just the first one.
73586 2008-09-25  Bruno Haible  <bruno@clisp.org>
73588         * gnulib-tool (func_import): When computing the edits, consider not
73589         only the Makefile.ams that exist but also those that will be generated.
73591 2008-09-25  Simon Josefsson  <simon@josefsson.org>
73593         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73594         fixes gnulib-tool --test warning about duplicate dependency.
73596 2008-09-25  Bruno Haible  <bruno@clisp.org>
73598         * gnulib-tool: Don't ask the user to perform edits in the generated
73599         Makefile.ams.
73600         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73601         apply to the Makefile.am being generated.
73602         (func_emit_tests_Makefile_am): Execute edits that apply to the
73603         Makefile.am being generated.
73604         (func_import): Setup list of Makefile.am edits before emitting the
73605         Makefile.ams, not at the end.
73606         (func_create_testdir): Update.
73607         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73609 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73611         * gnulib-tool (func_import): Store the --tests-base option in the
73612         comment in gnulib-cache.m4.
73614 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73616         * NEWS: Document increased portability that sys_select now provides.
73618         * lib/sys_select.in.h: Install select wrapper.
73619         * lib/sys_socket.in.h: Use more descriptive name when there is no
73620         select wrapper.
73621         * lib/winsock-select.c: New.
73622         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73623         Require gl_HEADER_SYS_SOCKET.
73624         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73625         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73626         * tests/test-sys_select.c: Add functional tests.
73628 2008-09-24  Eric Blake  <ebb9@byu.net>
73630         open, fopen: close fd leak in last patch
73631         * lib/open.c (rpl_open): Close fd before returning error.
73632         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73633         * doc/posix-functions/open.texi (open): Document that Irix also
73634         has the bug.
73635         * doc/posix-functions/fopen.texi (fopen): Likewise.
73636         Reported by Paolo Bonzini.
73638 2008-09-24  Bruno Haible  <bruno@clisp.org>
73640         Ensure that a filename ending in a slash cannot be used to access a
73641         non-directory.
73642         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73643         to check whether it's really a directory.
73644         * lib/fopen.c: Include fcntl.h, unistd.h.
73645         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73646         and fdopen().
73647         * modules/fopen (Depends-on): Add unistd.
73648         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73649         * tests/test-fopen.c (main): Likewise.
73650         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73651         * doc/posix-functions/fopen.texi: Likewise.
73652         Reported by Eric Blake.
73654 2008-09-23  Eric Blake  <ebb9@byu.net>
73656         c-stack: avoid compiler optimizations when provoking overflow
73657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73658         recursion harder to optimize, to ensure a stack overflow occurs.
73659         * tests/test-c-stack.c (recurse): Likewise.
73660         Borrowed from libsigsegv.
73662         c-stack: work around Irix sigaltstack bug
73663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73664         whether sigaltstack uses wrong end of stack_t (copied in part from
73665         libsigsegv).
73666         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73667         Irix bug, without requiring an over-allocation.
73668         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73669         bug.
73671         fopen: document mingw bug on directories
73672         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73673         not allowing a stream visiting a directory, even though reading
73674         from such a stream is not portable.
73676 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73678         * lib/poll.c: Rewrite.
73679         * modules/poll: Depend on alloca.
73681 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73683         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73684         instead define prototypes for a full set of wrappers.  Ensure
73685         that Cygwin does not use the compatibility code, which is only
73686         for MinGW.
73687         * lib/winsock.c: New.
73688         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73689         * modules/sys_socket: Add lib/winsock.c.
73691         * modules/poll-tests: Add errno and perror.
73692         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73694 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73696         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73698 2008-09-23  Bruno Haible  <bruno@clisp.org>
73700         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73701         * doc/glibc-functions/*: Likewise.
73703 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73705         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73706         success.
73708 2008-09-22  Eric Blake  <ebb9@byu.net>
73709             Bruno Haible  <bruno@clisp.org>
73711         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73712         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73713         supply %A but mishandle pseudo-NaN.
73714         Reported by Simon Josefsson.
73716 2008-09-21  Bruno Haible  <bruno@clisp.org>
73718         * tests/test-lock.c (main): Tweak skip message.
73719         * tests/test-tls.c (main): Likewise.
73721 2008-09-21  Bruno Haible  <bruno@clisp.org>
73723         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73724         whether 'struct sigaction' has sa_sigaction here...
73725         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73726         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73728 2008-09-21  Bruno Haible  <bruno@clisp.org>
73730         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73731         section.
73732         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73733         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73734         the new section.
73735         (Support for obsolete systems lacking POSIX:2001): New section.
73736         (String handling <string.h>): Move strdup to the new section.
73737         Suggested by Simon Josefsson and Paolo Bonzini.
73739 2008-09-21  Bruno Haible  <bruno@clisp.org>
73741         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73742         exponents in %e and %g results on 'long double'. Needed for mingw's
73743         improved *printf functions.
73744         * tests/test-vasprintf-posix.c (test_function): Likewise.
73745         * tests/test-snprintf-posix.h (test_function): Likewise.
73746         * tests/test-sprintf-posix.h (test_function): Likewise.
73747         Reported by Eric Blake.
73749 2008-09-21  Bruno Haible  <bruno@clisp.org>
73751         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
73752         * tests/test-sprintf-posix.h (test_function): Likewise.
73754 2008-09-21  Bruno Haible  <bruno@clisp.org>
73756         * modules/getpass (Depends-on): Add strdup-posix.
73758         New module 'strdup-posix'.
73759         * modules/strdup-posix: New file.
73760         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
73761         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
73762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73763         REPLACE_STRDUP.
73764         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
73765         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
73766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73767         strdup-posix.
73769         * modules/strdup (Depends-on): Remove malloc-posix.
73771 2008-09-20  Bruno Haible  <bruno@clisp.org>
73773         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
73774         Wildenhues.
73776 2008-09-20  Bruno Haible  <bruno@clisp.org>
73778         Ensure that wint_t gets defined on IRIX 5.3.
73779         * lib/wchar.in.h (wint_t): Define if not defined by the system.
73780         * lib/wctype.in.h (wint_t): Likewise.
73781         (__wctype_wint_t): Remove type.
73782         (isw*): Use wint_t instead of __wctype_wint_t.
73783         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
73784         * modules/wchar (Files): Add m4/wint_t.m4.
73785         (Makefile.am): Substitute HAVE_WINT_T.
73786         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
73787         * tests/test-wctype.c: Check that wint_t is defined.
73788         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
73789         * doc/posix-headers/wctype.texi: Likewise.
73790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73792 2008-09-18  Bruno Haible  <bruno@clisp.org>
73794         * gnulib-tool (func_exit): Update comment.
73796 2008-09-18  Simon Josefsson  <simon@josefsson.org>
73798         * modules/getaddrinfo (Depends-on): Remove strdup, this module
73799         assumes strdup exists and does not depend on strdup to return
73800         ENOMEM on out of memory conditions.
73802 2008-09-18  Bruno Haible  <bruno@clisp.org>
73804         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
73805         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
73806         digits for the exponent.
73808 2008-09-18  Jim Meyering  <meyering@redhat.com>
73809             Bruno Haible  <bruno@clisp.org>
73811         * lib/vasnprintf.c (decimal_point_char): Define also if
73812         NEED_PRINTF_INFINITE_LONG_DOUBLE.
73814 2008-09-16  Bruno Haible  <bruno@clisp.org>
73815         and Eric Blake  <ebb9@byu.net>
73817         vasnprintf: support Irix 5.3
73818         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
73819         that mishandle long double infinity.
73820         Reported by Tom G. Christensen.
73822 2008-09-16  Bruno Haible  <bruno@clisp.org>
73824         * doc/glibc-functions/scandir.texi: Mention the function is missing on
73825         Solaris 9.
73826         * doc/glibc-functions/alphasort.texi: Likewise.
73827         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
73829 2008-09-16  Jim Meyering  <meyering@redhat.com>
73831         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
73832         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
73833         a umask modification leak out of a subshell.  Otherwise, the
73834         opensolaris /bin/sh would be accepted and thus cause unwarranted
73835         failures in the coreutils test suite.
73837 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
73839         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
73840         to succeed.
73842 2008-09-16  Jim Meyering  <meyering@redhat.com>
73844         avoid spurious test failure when library is built without ACL support
73845         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
73846         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
73847         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
73848         * tests/test-copy-acl.sh: Likewise.
73850 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73852         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
73853         based on character occurrence counts.
73855 2008-09-15  Eric Blake  <ebb9@byu.net>
73857         tests: avoid some compiler warnings
73858         * tests/test-memchr.c (main): Pass NULL indirectly.
73859         * tests/test-closein.c (main): Avoid unused variable.
73861 2008-09-15  Bruno Haible  <bruno@clisp.org>
73863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73864         are missing on OpenBSD 4.0 individually.
73865         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73867 2008-09-15  Bruno Haible  <bruno@clisp.org>
73869         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73870         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73871         * doc/posix-functions/perror.texi: Likewise.
73872         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73873         is missing.
73874         Reported by Eric Blake.
73876         * lib/errno.in.h: Use replacement values >= 2000.
73877         Reported by Eric Blake.
73879 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73881         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73882         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73883         limit.
73884         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73885         compareseq was aborted.
73887 2008-09-14  Bruno Haible  <bruno@clisp.org>
73889         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73890         yvec_edit_count.
73891         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73892         (fstrcmp_bounded): Simplify result computation accordingly.
73894 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73896         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73897         (fstrcmp): Define in terms of fstrcmp_bounded.
73898         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73899         lower_bound argument.
73900         Return quickly if the result is certainly < lower_bound.
73901         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73903 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73905         * lib/diffseq.h (EARLY_ABORT): New macro.
73906         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73907         evaluates to true.
73909 2008-09-14  Bruno Haible  <bruno@clisp.org>
73911         * modules/perror-tests: New file.
73912         * tests/test-perror.sh: New file.
73913         * tests/test-perror.c: New file.
73915         New module 'perror'.
73916         * lib/stdio.in.h (perror): New declaration.
73917         * lib/perror.c: New file.
73918         * m4/perror.m4: New file.
73919         * modules/perror: New file.
73920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
73921         * doc/posix-functions/perror.texi: Mention the perror module.
73922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
73923         REPLACE_PERROR.
73924         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
73925         REPLACE_PERROR.
73927 2008-09-14  Bruno Haible  <bruno@clisp.org>
73929         * modules/stdio (Makefile.am): Reorder to match the order in
73930         lib/stdio.in.h.
73931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73933 2008-09-13  Bruno Haible  <bruno@clisp.org>
73935         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
73937 2008-09-13  Bruno Haible  <bruno@clisp.org>
73939         Extend strerror to cover the added errno values.
73940         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
73941         (rpl_strerror): Provide error messages for the added errno values and
73942         for the WSA* values.
73943         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
73944         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
73945         strerror.
73946         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
73947         * modules/strerror (Depends-on): Add errno.
73948         * doc/posix-functions/strerror.texi: Document the change.
73949         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
73950         and EOVERFLOW.
73952 2008-09-13  Bruno Haible  <bruno@clisp.org>
73954         * modules/EOVERFLOW: Remove file.
73955         * m4/eoverflow.m4: Remove file.
73956         * modules/EOVERFLOW-tests: Remove file.
73957         * tests/test-EOVERFLOW.c: Remove file.
73958         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
73959         * modules/ftell (Depends-on): Likewise.
73960         * modules/getdelim (Depends-on): Likewise.
73961         * modules/getugroups (Depends-on): Likewise.
73962         * modules/poll (Depends-on): Likewise.
73963         * modules/snprintf (Depends-on): Likewise.
73964         * modules/sprintf-posix (Depends-on): Likewise.
73965         * modules/vasnprintf (Depends-on): Likewise.
73966         * modules/vasprintf (Depends-on): Likewise.
73967         * modules/vfprintf-posix (Depends-on): Likewise.
73968         * modules/vsnprintf (Depends-on): Likewise.
73969         * modules/vsprintf-posix (Depends-on): Likewise.
73970         * modules/xvasprintf (Depends-on): Likewise.
73971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73972         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
73973         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
73974         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
73975         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73976         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
73977         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
73978         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
73979         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73980         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
73981         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
73982         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
73983         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73984         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
73985         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
73986         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
73987         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73988         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
73989         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
73990         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
73991         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73992         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
73993         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
73994         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
73995         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
73996         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73997         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
73998         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
73999         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
74000         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
74001         * MODULES.html.sh: Remove EOVERFLOW.
74002         * NEWS: Mention the change.
74004 2008-09-13  Bruno Haible  <bruno@clisp.org>
74006         * modules/errno-tests: New file.
74007         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
74009         * lib/errno.in.h: New file.
74010         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
74011         * modules/errno: New file.
74012         * doc/posix-headers/errno.texi: Update documentation.
74013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
74015 2008-09-13  Bruno Haible  <bruno@clisp.org>
74017         * tests/test-poll.c: Use #if for native Windows, rather than testing
74018         __MSVCRT__.
74020 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74021             Bruno Haible  <bruno@clisp.org>
74023         * lib/glob.c: Don't include <pwd.h> on native Windows.
74024         (WINDOWS32): New macro.
74025         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
74027 2008-09-13  Bruno Haible  <bruno@clisp.org>
74029         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
74030         (ETIMEDOUT): Remove macro.
74031         (glthread_cond_timedwait_multithreaded): New declaration.
74032         (glthread_cond_timedwait): Use it.
74033         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
74034         (glthread_cond_timedwait_multithreaded): New function.
74036 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74038         * modules/poll-tests: Do not check for io.h.
74039         * tests/test-poll.c: Check for __MSVCRT__ instead.
74041 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74043         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
74044         * modules/poll-tests: Add inet_pton, stdbool, sockets.
74045         * tests/test-poll.c: Use them.  Use _pipe on Windows.
74047 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74049         * modules/poll-tests: New.
74050         * tests/test-poll.c: New.
74052 2008-09-12  Eric Blake  <ebb9@byu.net>
74054         frexp: test for NetBSD failure on -0.0
74055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
74056         not all, bugs from NetBSD 3.0 have been fixed.
74057         * doc/posix-functions/frexp.texi (frexp): Document bug.
74058         Reported by Thomas Klausner.
74060         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
74061         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
74062         literal -0.0.
74063         Reported by Jonathan C. Patschke <jp@centtech.com>.
74065 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74067         * lib/glthread/cond.h: Use dummy implementation also if
74068         USE_WIN32_THREADS.
74070 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74072         * modules/fnmatch-posix (License): Change to LGPLv2+.
74073         * modules/fnmatch-gnu (License): Likewise.
74075 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74077         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
74079 2008-09-11  Jim Meyering  <meyering@redhat.com>
74081         * users.txt: Add gtk-vnc.
74083 2008-09-08  Simon Josefsson  <simon@josefsson.org>
74085         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
74086         rotate amounts.
74088         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
74089         required for 16-bit and 8-bit rotates.
74090         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
74091         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
74092         UINT8_MAX instead of hard-coded constants.
74093         Suggested by Paul Eggert.
74095 2008-09-07  Bruno Haible  <bruno@clisp.org>
74097         * tests/test-striconveh.c (main): Check behaviour when converting from
74098         UTF-7.
74100         Make striconveh work better with stateful encodings.
74101         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
74102         that iconv does not increment the inptr when returning -1/EINVAL.
74104 2008-09-07  Bruno Haible  <bruno@clisp.org>
74106         * build-aux/config.rpath: Update according to libtool-2.2.6.
74107         * build-aux/config.libpath: Likewise.
74109 2008-09-06  Bruno Haible  <bruno@clisp.org>
74111         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
74112         * lib/freadptr.c (freadptr): Likewise.
74113         * lib/freadseek.c (freadptrinc): Likewise.
74114         Reported by Simon Josefsson.
74116 2008-09-06  Bruno Haible  <bruno@clisp.org>
74118         * modules/freadptr (License): Change to LGPLv2+.
74119         * modules/freadseek (License): Likewise.
74120         Suggested by Eric Blake.
74122         * modules/memchr2 (License): Change to LGPLv2+.
74123         Approved by Eric Blake.
74125 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74126             Bruno Haible  <bruno@clisp.org>
74128         Make gnulib-tool work with native 'sed' on AIX.
74129         * gnulib-tool (sed_noop): New variable.
74130         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
74131         func_add_or_update, func_create_testdir): Use it to initialize sed
74132         script variables.
74133         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74135 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
74136             Bruno Haible  <bruno@clisp.org>
74138         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
74139         also works after #include directives.
74141 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
74143         getdate.y: reject an out-of-range timezone value
74144         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
74145         the range [-24...+24].  When specified with only one or two digits,
74146         * tests/test-getdate.c: Tests for the fix.
74147         * doc/getdate.texi: Document this change.
74149 2008-09-03  Bruno Haible  <bruno@clisp.org>
74151         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
74153 2008-09-02  Simon Josefsson  <simon@josefsson.org>
74155         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
74156         <bruce.korb@gmail.com> with ideas from Ben Pfaff
74157         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
74158         Blake <ebb9@byu.net>.
74160         * tests/test-bitrotate.c: Add more test vectors.
74162 2008-09-02  Eric Blake  <ebb9@byu.net>
74164         vasnprintf-posix: handle large precision via %.*d
74165         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
74166         when handling it ourselves.
74167         * tests/test-vasnprintf-posix.c (test_function): Add test.
74168         * tests/test-snprintf-posix.h (test_function): Likewise.
74169         * tests/test-sprintf-posix.h (test_function): Likewise.
74170         * tests/test-vasprintf-posix.c (test_function): Likewise.
74171         Reported by Alain Guibert.
74173 2008-09-01  Eric Blake  <ebb9@byu.net>
74175         c-stack: make configure-time check more robust
74176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
74177         successful sigaction call.
74178         Reported by Tom G. Christensen.
74180 2008-09-01  Bruno Haible  <bruno@clisp.org>
74182         New module 'findprog-lgpl'.
74183         * modules/findprog-lgpl: New file.
74184         * lib/findprog-lgpl.c: New file.
74185         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
74186         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
74187         to decide whether to use strdup or xstrdup, concatenated_filename or
74188         xconcatenated_filename.
74190 2008-09-01  Bruno Haible  <bruno@clisp.org>
74192         Split module 'concat-filename' into 'concat-filename' (LGPL) and
74193         'xconcat-filename' (GPL).
74194         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
74195         (License): Change to LGPLv2+.
74196         * modules/xconcat-filename: New file.
74197         * lib/concat-filename.h (concatenated_filename): Change specification.
74198         (xconcatenated_filename): New declaration.
74199         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
74200         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
74201         memory situations.
74202         * lib/xconcat-filename.c: New file.
74203         * NEWS: Mention the change.
74204         * lib/findprog.c: Include concat-filename.h, not filename.h.
74205         (find_in_path): Use xconcatenated_filename instead of
74206         concatenated_filename.
74207         * lib/javacomp.c: Include concat-filename.h, not filename.h.
74208         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
74209         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
74210         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
74211         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
74212         instead of concatenated_filename.
74213         * lib/javaexec.c: Include concat-filename.h, not filename.h.
74214         (execute_java_class): Use xconcatenated_filename instead of
74215         concatenated_filename.
74216         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
74217         * modules/javacomp (Depends-on): Likewise.
74218         * modules/javaexec (Depends-on): Likewise.
74220 2008-09-01  Bruno Haible  <bruno@clisp.org>
74222         Split module 'filename' into 'filename' and 'concat-filename'.
74223         * modules/filename: Keep only lib/filename.h.
74224         (License): Change to LGPLv2+.
74225         * modules/concat-filename: New file, extracted from modules/filename.
74226         * lib/filename.h (concatenated_filename): Remove declaration.
74227         * lib/concat-filename.h: New file, extracted from lib/filename.h.
74228         * lib/concat-filename.c: Include concat-filename.h.
74229         * NEWS: Mention the change.
74231 2008-09-01  Simon Josefsson  <simon@josefsson.org>
74233         * lib/bitrotate.h (rotl8, rotr8): Add.
74235         * modules/bitrotate (configure.ac): Need
74236         AC_REQUIRE([AC_C_INLINE]).
74237         (Description): Mention stdint.h.  Reported by Bruno Haible
74238         <bruno@clisp.org>.
74240         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
74241         Paolo Bonzini <bonzini@gnu.org>.
74243 2008-08-31  Bruno Haible  <bruno@clisp.org>
74245         Assume Solaris specific bi-arch conventions on Solaris systems.
74246         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
74247         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
74248         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
74249         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
74250         like acl_libdirstem.
74251         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
74252         acl_libdirstem.
74253         * NEWS: Mention the change.
74254         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
74256 2008-08-31  Jim Meyering  <meyering@redhat.com>
74258         * lib/strftime.h: Add comments describing the two added arguments.
74260         remove duplicate #include directives
74261         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
74262         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
74264 2008-08-31  Bruno Haible  <bruno@clisp.org>
74266         New module 'sigpipe-die'.
74267         * modules/sigpipe-die: New file.
74268         * lib/sigpipe-die.h: New file.
74269         * lib/sigpipe-die.c: New file.
74270         * MODULES.html.sh (Signal handling): Add sigpipe-die.
74272 2008-08-31  Bruno Haible  <bruno@clisp.org>
74274         Don't override previously installed signal handlers.
74275         * lib/fatal-signal.c (saved_sigactions): New variable.
74276         (uninstall_handlers): Reset the signal to the saved handler, not
74277         to SIG_DFL (except when ignored).
74278         (install_handlers): Save the previous handlers.
74280 2008-08-30  Bruno Haible  <bruno@clisp.org>
74282         * gnulib-tool (func_reset_sigpipe): New function.
74283         (func_get_automake_snippet, func_modules_transitive_closure,
74284         func_import): Invoke it before a join command that reads from stdin,
74285         to avoid "echo: write error: Broken pipe" error messages on stderr.
74286         Reported by Sam Steingold <sds@gnu.org>.
74288 2008-08-30  Bruno Haible  <bruno@clisp.org>
74290         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
74291         Code copied from m4/open.m4.
74292         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
74293         access and the filename ends in a slash. Code copied from lib/open.c.
74294         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
74295         * tests/test-fopen.c (main): Check against bug with trailing slash.
74297 2008-08-29  Bruno Haible  <bruno@clisp.org>
74299         Avoid some "gcc -pedantic" warnings.
74300         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
74301         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
74302         * lib/dirent.in.h: Likewise.
74303         * lib/fcntl.in.h: Likewise.
74304         * lib/float.in.h: Likewise.
74305         * lib/iconv.in.h: Likewise.
74306         * lib/inttypes.in.h: Likewise.
74307         * lib/locale.in.h: Likewise.
74308         * lib/math.in.h: Likewise.
74309         * lib/netinet_in.in.h: Likewise.
74310         * lib/search.in.h: Likewise.
74311         * lib/signal.in.h: Likewise.
74312         * lib/stdarg.in.h: Likewise.
74313         * lib/stdint.in.h: Likewise.
74314         * lib/stdio.in.h: Likewise.
74315         * lib/stdlib.in.h: Likewise.
74316         * lib/string.in.h: Likewise.
74317         * lib/strings.in.h: Likewise.
74318         * lib/sys_select.in.h: Likewise.
74319         * lib/sys_socket.in.h: Likewise.
74320         * lib/sys_stat.in.h: Likewise.
74321         * lib/sys_time.in.h: Likewise.
74322         * lib/sysexits.in.h: Likewise.
74323         * lib/time.in.h: Likewise.
74324         * lib/unistd.in.h: Likewise.
74325         * lib/wchar.in.h: Likewise.
74326         * lib/wctype.in.h: Likewise.
74327         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
74328         * modules/fchdir (Makefile.am): Likewise.
74329         * modules/fcntl (Makefile.am): Likewise.
74330         * modules/float (Makefile.am): Likewise.
74331         * modules/iconv_open (Makefile.am): Likewise.
74332         * modules/inttypes (Makefile.am): Likewise.
74333         * modules/locale (Makefile.am): Likewise.
74334         * modules/math (Makefile.am): Likewise.
74335         * modules/netinet_in (Makefile.am): Likewise.
74336         * modules/search (Makefile.am): Likewise.
74337         * modules/signal (Makefile.am): Likewise.
74338         * modules/stdarg (Makefile.am): Likewise.
74339         * modules/stdint (Makefile.am): Likewise.
74340         * modules/stdio (Makefile.am): Likewise.
74341         * modules/stdlib (Makefile.am): Likewise.
74342         * modules/string (Makefile.am): Likewise.
74343         * modules/strings (Makefile.am): Likewise.
74344         * modules/sys_select (Makefile.am): Likewise.
74345         * modules/sys_socket (Makefile.am): Likewise.
74346         * modules/sys_stat (Makefile.am): Likewise.
74347         * modules/sys_time (Makefile.am): Likewise.
74348         * modules/sysexits (Makefile.am): Likewise.
74349         * modules/time (Makefile.am): Likewise.
74350         * modules/unistd (Makefile.am): Likewise.
74351         * modules/wchar (Makefile.am): Likewise.
74352         * modules/wctype (Makefile.am): Likewise.
74353         Reported by Reuben Thomas <rrt@sc3d.org>.
74355 2008-08-29  Bruno Haible  <bruno@clisp.org>
74357         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
74358         any more.
74360 2008-08-29  Simon Josefsson  <simon@josefsson.org>
74362         * MODULES.html.sh (Misc): Add bitrotate.
74364         * modules/bitrotate: New file.
74366         * lib/bitrotate.h: New file.
74368         * modules/bitrotate-tests: New file.
74370         * tests/test-bitrotate.c: New file.
74372         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
74373         on the bitrotate module.
74375         * lib/arctwo.c: Use new bitrotate module.
74377 2008-08-29  Jim Meyering  <meyering@redhat.com>
74379         bootstrap: merge changes from coreutils
74380         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
74381         of copied files.  Remove a kludge, now that this is fixed.
74382         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
74383         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
74384         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
74386 2008-08-29  Bruno Haible  <bruno@clisp.org>
74388         * MODULES.html.sh: Remove --cvs-urls option.
74390 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
74392         maint.mk: adjust to file name change
74393         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
74395 2008-08-28  Jim Meyering  <meyering@redhat.com>
74397         * modules/getndelim2 (License): Relicense to LGPLv2+.
74398         Approved by Richard Stallman for the version of 1995, and by
74399         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
74401 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
74403         * lib/getdelim.c (flockfile, funlockfile): Make all of them
74404         dummy if one is not available.  Do not touch them if
74405         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
74406         (getc_maybe_unlocked): New.
74407         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
74409 2008-08-26  Eric Blake  <ebb9@byu.net>
74411         doc/INSTALL: resync from autoconf
74412         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
74413         (INSTALL_PRELUDE): Delete; this is done more efficiently by
74414         moving...
74415         * install.texi [!autoconf]: ...here.  Resync from autoconf.
74416         * INSTALL: Regenerate.
74417         * INSTALL.ISO: New file.
74418         * INSTALL.UTF-8: Likewise.
74420 2008-08-26  Jim Meyering  <meyering@redhat.com>
74422         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
74423         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
74424         these definitions conditional, so that they may be overridden, too.
74426 2008-08-26  Bruno Haible  <bruno@clisp.org>
74428         Generate INSTALL file variants with prettier quotes.
74429         * doc/Makefile (INSTALL_PRELUDE): New macro.
74430         (INSTALL): Use it.
74431         (INSTALL.ISO, INSTALL.UTF-8): New rules.
74433 2008-08-26  Bruno Haible  <bruno@clisp.org>
74435         Run makeinfo in an English locale.
74436         * doc/Makefile (MAKEINFO): New variable.
74438 2008-08-26  Bruno Haible  <bruno@clisp.org>
74440         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
74441         Suggested by Eric Blake.
74443 2008-08-25  Bruno Haible  <bruno@clisp.org>
74445         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
74447 2008-08-25  Eric Blake  <ebb9@byu.net>
74449         c-stack: test that stack overflow can be caught
74450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
74451         that platform allows handling stack overflow; at least OS/2 EMX
74452         has sigaltstack, but crashes before transferring control to
74453         handler on stack overflow.
74454         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
74455         check for HAVE_STACK_OVERFLOW_HANDLING.
74456         Reported by Elbert Pol.
74458 2008-08-25  Bruno Haible  <bruno@clisp.org>
74460         * doc/posix-functions/strftime.texi: Fix description of strftime
74461         module.
74463 2008-08-24  Bruno Haible  <bruno@clisp.org>
74465         * tests/uniwidth/test-uc_width2.c: New file.
74466         * tests/uniwidth/test-uc_width2.sh: New file.
74467         * modules/uniwidth/width-tests (Files): Add the new files.
74468         (TESTS): Add uniwidth/test-uc_width2.sh.
74469         (TESTS_ENVIRONMENT): New variable.
74470         (check_PROGRAMS): Add test-uc_width2.
74471         (test_uc_width2_SOURCES): New variable.
74473         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
74474         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
74475         not 0x00AB.
74476         Reported by Alexander V. Lukyanov <lav@netis.ru>.
74478 2008-08-22  Eric Blake  <ebb9@byu.net>
74480         test-lock, test-tls: mention why a test is skipped
74481         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
74482         skipped.
74483         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
74485         count-one-bits: relax license
74486         * modules/count-one-bits (License): Relicense to LGPLv2+.
74487         Suggested by Ludovic Courtès, approved by Ben Pfaff.
74489 2008-08-22  Andreas Schwab  <schwab@suse.de>
74491         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
74492         Remove spurious space in assignment.
74494 2008-08-21  Simon Josefsson  <simon@josefsson.org>
74496         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
74497         Paul Eggert <eggert@CS.UCLA.EDU>.
74499 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
74501         * modules/gettext: Add m4/threadlib.m4.
74503 2008-08-19  Eric Blake  <ebb9@byu.net>
74505         test-c-stack: fix compilation failure on FreeBSD 5.0
74506         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
74507         headers before <sys/resource.h>.
74508         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
74509         the bug.
74510         Reported by Nelson H. F. Beebe.
74512         strverscmp: migrate from "strverscmp.h" to <string.h>
74513         * modules/string (Makefile.am): Add new hooks.
74514         * modules/strverscmp (Files): Remove strverscmp.h.
74515         (Depends-on): Add string.
74516         (configure.ac): Add indicator.
74517         (Include): Mention new header.
74518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
74519         defaults.
74520         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
74521         results.
74522         * lib/strverscmp.h: Delete.
74523         * lib/string.in.h (strverscmp): Provide declaration, when needed.
74524         * tests/test-strverscmp.c (includes): Adjust client.
74525         * lib/check-version.c (includes): Likewise.
74526         * NEWS: Document the change.
74528         strverscmp: add unit test
74529         * modules/strverscmp-tests: New file.
74530         * tests/test-strverscmp.c: Likewise.
74532 2008-08-19  Simon Josefsson  <simon@josefsson.org>
74534         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
74535         regarding Windows crypto stuff, from Mono.
74537 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
74539         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
74540         if present, for intel RND.  Return error on failures.
74542 2008-08-18  Ben Pfaff  <blp@gnu.org>
74544         gitlog-to-changelog: give better diagnostic for failed pipe-open
74545         * build-aux/gitlog-to-changelog: Improve error message: suggest
74546         that the version of Git may be too old.
74548 2008-08-18  Simon Josefsson  <simon@josefsson.org>
74550         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
74551         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
74553 2008-08-18  Bruno Haible  <bruno@clisp.org>
74555         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
74556         pthread_in_use().
74558 2008-08-18  Bruno Haible  <bruno@clisp.org>
74560         * lib/glthread/threadlib.c: Include <pthread.h>.
74562 2008-08-18  Bruno Haible  <bruno@clisp.org>
74564         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
74565         glthread_recursive_lock_* macros.
74566         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
74567         Fix syntax error.
74569 2008-08-18  Bruno Haible  <bruno@clisp.org>
74571         * lib/glthread/thread.c: Avoid forcing a context switch right after
74572         thread creation.
74574 2008-08-17  Bruno Haible  <bruno@clisp.org>
74576         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
74577         * lib/glthread/thread.h: Provide Win32 specific implementation.
74578         * modules/thread (Files): Add lib/glthread/thread.c.
74579         (Depends-on): Add lock.
74580         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
74582 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74584         New module 'yield'.
74585         * modules/yield: New file.
74586         * lib/glthread/yield.h: New file.
74587         * m4/yield.m4: New file.
74588         * MODULES.html.sh (Multithreading): Add yield.
74590 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74592         New module 'thread'.
74593         * modules/thread: New file.
74594         * lib/glthread/thread.h: New file.
74595         * m4/thread.m4: New file.
74596         * MODULES.html.sh (Multithreading): Add thread.
74598 2008-08-17  Bruno Haible  <bruno@clisp.org>
74600         * lib/glthread/lock.h: Include <stdlib.h> always.
74601         * lib/glthread/tls.h: Likewise.
74602         * lib/glthread/cond.h: Likewise.
74604 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74606         New module 'cond'.
74607         * modules/cond: New file.
74608         * lib/glthread/cond.h: New file.
74609         * lib/glthread/cond.c: New file.
74610         * m4/cond.m4: New file.
74611         * MODULES.html.sh (Multithreading): Add cond.
74613 2008-08-16  Eric Blake  <ebb9@byu.net>
74615         c-stack: fix regression on Irix 5.3 from 2008-06-21
74616         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74617         sa_sigaction...
74618         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74619         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74620         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74621         * modules/signal (Makefile.am): Use the value.
74622         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74623         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74624         * doc/posix-headers/signal.texi (signal.h): Document this
74625         portability issue.
74626         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74627         Reported by Tom G. Christensen.
74629 2008-08-17  Bruno Haible  <bruno@clisp.org>
74631         New module 'threadlib'.
74632         * modules/threadlib: New file.
74633         * lib/glthread/threadlib.c: New file, extracted from
74634         lib/glthread/lock.c.
74635         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74636         functions.
74637         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74638         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74639         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74640         macros.
74641         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74642         (gl_DISABLE_THREADS): Remove macro.
74643         * modules/lock (Files): Remove build-aux/config.rpath.
74644         (Depends-on): Remove havelib. Add threadlib.
74645         (configure.ac-early): Remove section.
74646         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74647         * modules/tls (Depends-on): Remove lock. Add threadlib.
74648         (Link): New section, copied from threadlib.
74649         * MODULES.html.sh (Multithreading): Add threadlib.
74651 2008-08-14  Bruno Haible  <bruno@clisp.org>
74653         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74654         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74655         glthread_rwlock_unlock, glthread_rwlock_destroy,
74656         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74657         glthread_recursive_lock_destroy): Define as macros always.
74658         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74659         glthread_lock_lock.
74660         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74661         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74662         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74663         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74664         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74665         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74666         (glthread_recursive_lock_lock_func): Renamed from
74667         glthread_recursive_lock_lock.
74668         (glthread_recursive_lock_unlock_func): Renamed from
74669         glthread_recursive_lock_unlock.
74670         (glthread_recursive_lock_destroy_func): Renamed from
74671         glthread_recursive_lock_destroy.
74673 2008-08-14  Bruno Haible  <bruno@clisp.org>
74675         * lib/glthread/lock.h: Renamed from lib/lock.h.
74676         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74677         * lib/glthread/tls.h: Renamed from lib/tls.h.
74678         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74679         * lib/fstrcmp.c: Update includes.
74680         * lib/strsignal.c: Update includes.
74681         * modules/lock (Files, Makefile.am): Update.
74682         (Include): Change to "glthread/lock.h".
74683         * modules/tls (Files, Makefile.am): Update.
74684         (Include): Change to "glthread/tls.h".
74685         * tests/test-lock.c: Update includes.
74686         * tests/test-tls.c: Update includes.
74687         * NEWS: Mention the renamed header files.
74689 2008-08-11  Jim Meyering  <meyering@redhat.com>
74691         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74693 2008-08-11  Eric Blake  <ebb9@byu.net>
74695         test-c-stack: avoid C99-ism
74696         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74697         before statement.
74698         Reported by Alain Guibert.
74700 2008-08-10  Jim Meyering  <meyering@redhat.com>
74702         ensure that return value of uinttostr et al are not ignored
74703         * lib/inttostr.h (__GNUC_PREREQ): Define.
74704         (__attribute_warn_unused_result__): Define.
74705         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74707 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74709         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74710         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74712 2008-08-07  Jim Meyering  <meyering@redhat.com>
74714         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74716         * modules/mkstemp (License): Relicense under LGPLv2+.
74717         * modules/tempname (License): Likewise.
74719 2008-08-06  Bruno Haible  <bruno@clisp.org>
74721         * lib/poll.c (poll): Further micro-optimization.
74723 2008-08-06  Jim Meyering  <meyering@redhat.com>
74725         inet_pton.c: use locale-independent tolower
74726         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74727         (inet_pton6): Use c_tolower rather than tolower.
74728         * modules/inet_pton (Depends-on): Add c-ctype.
74730 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74732         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74733         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74735 2008-08-06  Jim Meyering  <meyering@redhat.com>
74737         * modules/inet_pton (License): Relicense under LGPLv2+.
74739 2008-08-03  Bruno Haible  <bruno@clisp.org>
74741         Additional non-aborting API for lock and tls.
74742         * lib/lock.h: Include <errno.h>.
74743         (glthread_lock_init): New macro/function.
74744         (gl_lock_init): Define as wrapper around glthread_lock_init.
74745         (glthread_lock_lock): New macro/function.
74746         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
74747         (glthread_lock_unlock): New macro/function.
74748         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
74749         (glthread_lock_destroy): New macro/function.
74750         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
74751         (glthread_rwlock_init): New macro/function.
74752         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
74753         (glthread_rwlock_rdlock): New macro/function.
74754         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
74755         (glthread_rwlock_wrlock): New macro/function.
74756         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
74757         (glthread_rwlock_unlock): New macro/function.
74758         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
74759         (glthread_rwlock_destroy): New macro/function.
74760         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
74761         (glthread_recursive_lock_init): New macro/function.
74762         (gl_recursive_lock_init): Define as wrapper around
74763         glthread_recursive_lock_init.
74764         (glthread_recursive_lock_lock): New macro/function.
74765         (gl_recursive_lock_lock): Define as wrapper around
74766         glthread_recursive_lock_lock.
74767         (glthread_recursive_lock_unlock): New macro/function.
74768         (gl_recursive_lock_unlock): Define as wrapper around
74769         glthread_recursive_lock_unlock.
74770         (glthread_recursive_lock_destroy): New macro/function.
74771         (gl_recursive_lock_destroy): Define as wrapper around
74772         glthread_recursive_lock_destroy.
74773         (glthread_once): New macro/function.
74774         (gl_once): Define as wrapper around glthread_once.
74775         Update function declarations.
74776         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
74777         glthread_rwlock_init. Return error code.
74778         (glthread_rwlock_rdlock_multithreaded): Renamed from
74779         glthread_rwlock_rdlock. Return error code.
74780         (glthread_rwlock_wrlock_multithreaded): Renamed from
74781         glthread_rwlock_wrlock. Return error code.
74782         (glthread_rwlock_unlock_multithreaded): Renamed from
74783         glthread_rwlock_unlock. Return error code.
74784         (glthread_rwlock_destroy_multithreaded): Renamed from
74785         glthread_rwlock_destroy. Return error code.
74786         (glthread_recursive_lock_init_multithreaded): Renamed from
74787         glthread_recursive_lock_init. Return error code.
74788         (glthread_recursive_lock_lock_multithreaded): Renamed from
74789         glthread_recursive_lock_lock. Return error code.
74790         (glthread_recursive_lock_unlock_multithreaded): Renamed from
74791         glthread_recursive_lock_unlock. Return error code.
74792         (glthread_recursive_lock_destroy_multithreaded): Renamed from
74793         glthread_recursive_lock_destroy. Return error code.
74794         (glthread_once_call): Make static.
74795         (glthread_once_multithreaded): Renamed from glthread_once.
74796         * lib/tls.h: Include <errno.h>.
74797         (glthread_tls_key_init): New macro/function.
74798         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
74799         (glthread_tls_set): New macro/function.
74800         (gl_tls_set): Define as wrapper around glthread_tls_set.
74801         (glthread_tls_key_destroy): New macro/function.
74802         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
74803         Update function declarations.
74804         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
74805         glthread_tls_get.
74806         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74808 2008-08-04  Eric Blake  <ebb9@byu.net>
74810         gnumakefile: use space, not TAB, outside of targets
74811         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
74813 2008-08-02  Jim Meyering  <meyering@redhat.com>
74815         getdate.y: avoid locale-dependent date parsing failure
74816         In Turkish locales, getdate would fail to recognize keywords
74817         containing a lowercase "i".  The solution is not to rely on
74818         locale-sensitive case-conversion.
74819         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
74820         (lookup_word): Use c_toupper in place of toupper.
74821         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
74822         Reported by Vefa Bicakci <bicave@superonline.com> in
74823         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
74824         * modules/getdate (Depends-on): Add c-ctype.
74826 2008-08-02  Bruno Haible  <bruno@clisp.org>
74828         * gnulib-tool (func_import): When updating or creating a .gitignore
74829         file, prepend each added line with a slash, and ignore leading slashes
74830         from the existing lines.
74831         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74833 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74835         Portability fix for GNU make 3.79.1.
74836         * top/GNUmakefile: Avoid 'else COND', which older GNU make
74837         versions do not understand.
74839 2008-08-01  Bruno Haible  <bruno@clisp.org>
74841         Work around bug of HP-UX 10.20 cc with -0.0 literal.
74842         * tests/test-isnanf.h (zero): New variable.
74843         (main): Avoid literal -0.0f.
74844         * tests/test-isnand.h (zero): New variable.
74845         (main): Avoid literal -0.0.
74846         * tests/test-isnanl.h (zero): New variable.
74847         (main): Avoid literal -0.0L.
74848         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
74849         (test_float, test_double, test_long_double): Avoid literals -0.0f,
74850         -0.0, -0.0L.
74851         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
74852         (test_signbitd): Avoid literal -0.0.
74853         (test_signbitl): Avoid literal -0.0L.
74854         * tests/test-ceilf1.c (zero): New variable.
74855         (main): Avoid literal -0.0f.
74856         * tests/test-ceill.c (zero): New variable.
74857         (main): Avoid literal -0.0L.
74858         * tests/test-floorf1.c (zero): New variable.
74859         (main): Avoid literal -0.0f.
74860         * tests/test-floorl.c (zero): New variable.
74861         (main): Avoid literal -0.0L.
74862         * tests/test-roundf1.c (zero): New variable.
74863         (main): Avoid literal -0.0f.
74864         * tests/test-round1.c (zero): New variable.
74865         (main): Avoid literal -0.0.
74866         * tests/test-roundl.c (zero): New variable.
74867         (main): Avoid literal -0.0L.
74868         * tests/test-truncf1.c (zero): New variable.
74869         (main): Avoid literal -0.0f.
74870         * tests/test-trunc1.c (zero): New variable.
74871         (main): Avoid literal -0.0.
74872         * tests/test-truncl.c (zero): New variable.
74873         (main): Avoid literal -0.0L.
74874         * tests/test-frexp.c (zero): New variable.
74875         (main): Avoid literal -0.0.
74876         * tests/test-frexpl.c (zero): New variable.
74877         (main): Avoid literal -0.0L.
74878         * tests/test-ldexpl.c (zero): New variable.
74879         (main): Avoid literal -0.0L.
74880         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74881         (zerod, zerol): New variables.
74882         (test_function): Avoid literals -0.0, -0.0L.
74883         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74884         (zerod, zerol): New variables.
74885         (test_function): Avoid literals -0.0, -0.0L.
74886         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74887         (zerod, zerol): New variables.
74888         (test_function): Avoid literals -0.0, -0.0L.
74889         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74890         (zerod, zerol): New variables.
74891         (test_function): Avoid literals -0.0, -0.0L.
74892         * tests/test-strtod.c (zero): New variable.
74893         (main): Avoid literal -0.0.
74894         Reported by Jonathan C. Patschke <jp@centtech.com>.
74896 2008-07-31  Jim Meyering  <meyering@redhat.com>
74898         sha256.h: correct definition of SHA224_DIGEST_SIZE
74899         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74900         Reported by Paulie Pena IV <paulie4@gmail.com>.
74901         Define as 224 / 8, rather than as a literal.
74902         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74903         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74904         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74906 2008-07-31  Bruno Haible  <bruno@clisp.org>
74908         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74909         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74910         Reported by Jonathan Patschke <jp@centtech.com>.
74912 2008-07-31  Bruno Haible  <bruno@clisp.org>
74914         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74915         Reported by Paolo Bonzini <bonzini@gnu.org>.
74917 2008-07-30  Eric Blake  <ebb9@byu.net>
74919         test-strtod: allow compilation without -lm
74920         * tests/test-strtod.c (main): Avoid link dependence on fabs.
74921         Reported by Dennis Clarke <blastwave@gmail.com>.
74923 2008-07-28  Jim Meyering  <meyering@redhat.com>
74925         bootstrap: work also when there are no .po files in po/
74926         * build-aux/bootstrap (update_po_files): Complete the change
74927         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
74929 2008-07-27  Jim Meyering  <meyering@redhat.com>
74931         * users.txt: Add zile.
74933 2008-07-26  Ben Pfaff  <blp@gnu.org>
74935         Add missing dependencies on new m4/exponent[fdl].m4 files.
74936         * modules/isnanf-nolibm: Add m4/exponentf.m4.
74937         * modules/isnand-nolibm: Add m4/exponentd.m4.
74938         * modules/isnanl-nolibm: Add m4/exponentl.m4.
74939         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
74940         m4/isnan[fdl].m4, because the macros actually used moved.
74941         Reported by Jim Meyering.
74943 2008-07-14  Ben Pfaff  <blp@gnu.org>
74945         Add isinf module.
74946         * lib/isinf.c: New file.
74947         * lib/math.in.h: Define isinf macro if we have decided to replace
74948         it.
74949         * m4/isinf.m4: New file.
74950         * m4/math_h.m4: Initialize and substitute variables for isinf
74951         module.
74952         * modules/isinf: New file.
74953         * modules/isinf-tests: New file.
74954         * modules/math: Add substitutions for new module.
74955         * tests/test-isinf.c: New file.
74956         * doc/posix-functions/isinf.texi: Mention new module.
74957         * MODULES.html.sh: Mention new module.
74959 2008-07-14  Ben Pfaff  <blp@gnu.org>
74961         Factor out some macros for use by additional modules.
74962         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
74963         exponentf.m4.
74964         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
74965         exponentd.m4.
74966         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
74967         file exponentl.m4.
74968         * m4/exponentf.m4: New file.
74969         * m4/exponentd.m4: New file.
74970         * m4/exponentl.m4: New file.
74971         * modules/isnanf: Use new file m4/exponentf.m4.
74972         * modules/isnand: Use new file m4/exponentd.m4.
74973         * modules/isnanl: Use new file m4/exponentl.m4.
74975 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
74977         mktime.c: normalize tp->tm_isdst value to -1/0/1.
74978         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
74979         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
74980         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
74982         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
74983         readlink on platforms without PATH_MAX.
74985 2008-07-21  Eric Blake  <ebb9@byu.net>
74987         Warn, not fail, on stale version.
74988         * top/GNUmakefile (_curr-ver): Tone down previous patch.
74990         Don't allow installation with stale devel version number.
74991         * top/GNUmakefile (_is-install-target): New macro.
74992         (_curr-ver): Forbid installation with stale version number.
74994 2008-07-20  Bruno Haible  <bruno@clisp.org>
74996         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
74997         TESTS_ENVIRONMENT.
74998         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
75000 2008-07-20  Bruno Haible  <bruno@clisp.org>
75002         * lib/c-stack.h (c_stack_action): Add documentation.
75003         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
75005 2008-07-20  Bruno Haible  <bruno@clisp.org>
75007         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
75008         * modules/readlink (License): Likewise.
75010 2008-07-17  Eric Blake  <ebb9@byu.net>
75012         * modules/c-stack (Link): Fix typo.
75014         Make c-stack use libsigsegv, when available.
75015         * modules/c-stack (Depends-on): Add libsigsegv.
75016         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
75017         needed.
75018         * lib/c-stack.c (SIGSTKSZ): Define fallback.
75019         (segv_handler, overflow_handler, c_stack_action)
75020         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
75021         implementation when libsigsegv is available, but only when using
75022         the library is necessary.
75023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
75024         comment, explaining why XSI check fails on Linux.
75025         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
75026         * tests/test-c-stack2.sh: Tweak skip message.
75027         * NEWS: Document new link-time requirements.
75029 2008-07-16  Eric Blake  <ebb9@byu.net>
75031         c-stack: Expose false positives when not using libsigsegv.
75032         * modules/c-stack-tests (Files): Expand test.
75033         * tests/test-c-stack.c (main): Add means to conditionally trigger
75034         non-overflow SIGSEGV.
75035         * tests/test-c-stack2.sh: New file.
75037 2008-07-14  Bruno Haible  <bruno@clisp.org>
75039         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
75040         Reported by Eric Blake.
75042 2008-07-14  Sam Steingold  <sds@gnu.org>
75043             Bruno Haible  <bruno@clisp.org>
75045         New module libsigsegv.
75046         * modules/libsigsegv: New file.
75047         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
75048         modifications.
75049         * MODULES.html.sh (Signal handling): New section.
75051 2008-07-14  Bruno Haible  <bruno@clisp.org>
75053         * modules/unictype/ctype-* (Description): Add the word "function".
75054         Improves the resulting doc in MODULES.html.
75056 2008-07-12  Ben Pfaff  <blp@gnu.org>
75058         Add longlong module.
75059         * modules/longlong: New file.
75061 2008-07-12  Bruno Haible  <bruno@clisp.org>
75063         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
75064         to empty.
75066 2008-07-10  Ben Pfaff  <blp@gnu.org>
75068         Add isnan module.
75069         * doc/posix-functions/isnan.texi: Mention new module.
75070         * lib/math.in.h: Define isnan macro if we have decided to replace
75071         it.
75072         * m4/isnan.m4: New file.
75073         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
75074         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
75075         also.
75076         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
75077         redundancy.
75078         * m4/math_h.m4: Initialize and substitute variables for isnan
75079         module.
75080         * modules/isnan: New file.
75081         * modules/isnan-tests: New file.
75082         * modules/math: Add substitutions for new module.
75083         * tests/test-isnan.c: New file.
75084         * MODULES.html.sh: Mention new module.
75086 2008-07-10  Ben Pfaff  <blp@gnu.org>
75088         Add isnanf module.
75089         * lib/isnanf.m4: New file.
75090         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
75091         (gl_HAVE_ISNANF_IN_LIBM): New macro.
75092         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
75093         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
75094         * modules/isnanf: New file.
75095         * modules/isnanf-tests: New file.
75096         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
75097         files.
75098         * tests/test-isnanf-nolibm.c: factored most of its contents into
75099         new file tests/test-isnanf.h.
75100         * tests/test-isnanf.h: New file.
75101         * tests/test-isnanf.c: New file.
75102         * MODULES.html.sh: Mention new module.
75103         * doc/glibc-functions/isnanf.texi: Mention new module.
75105 2008-07-10  Ben Pfaff  <blp@gnu.org>
75107         Add isnand module.
75108         * lib/isnand.h: New file.
75109         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
75110         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
75111         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
75112         functionality also.
75113         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
75114         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
75115         (gl_HAVE_ISNAND_IN_LIBM): New macro.
75116         * modules/isnand: New file.
75117         * modules/isnand-tests: New file.
75118         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
75119         files.
75120         * tests/test-isnand-nolibm.c: factored most of its contents into
75121         new file tests/test-isnand.h.
75122         * tests/test-isnand.h: New file.
75123         * tests/test-isnand.c: New file.
75124         * MODULES.html.sh: Mention new module.
75126 2008-07-10  Ben Pfaff  <blp@gnu.org>
75128         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
75129         * lib/isnand.h: Rename lib/isnand-nolibm.h.
75130         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
75131         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
75132         * modules/isnanf-nolibm: Update references to renamed files.
75133         * modules/isnand-nolibm: Likewise.
75134         * modules/isnanf-nolibm-tests: Likewise.
75135         * modules/isnand-nolibm-tests: Likewise.
75136         * lib/frexp.c: Likewise.
75137         * lib/isfinite.c: Likewise.
75138         * lib/signbitd.c: Likewise.
75139         * lib/signbitf.c: Likewise.
75140         * lib/vasnprintf.c: Likewise.
75141         * tests/test-ceilf1.c: Likewise.
75142         * tests/test-ceilf2.c: Likewise.
75143         * tests/test-floorf1.c: Likewise.
75144         * tests/test-floorf2.c: Likewise.
75145         * tests/test-frexp.c: Likewise.
75146         * tests/test-round1.c: Likewise.
75147         * tests/test-round2.c: Likewise.
75148         * tests/test-roundf1.c: Likewise.
75149         * tests/test-strtod.c: Likewise.
75150         * tests/test-trunc1.c: Likewise.
75151         * tests/test-trunc2.c: Likewise.
75152         * tests/test-truncf1.c: Likewise.
75153         * tests/test-truncf2.c: Likewise.
75154         * NEWS: Mention the renamed header files.
75156 2008-07-11  Jim Meyering  <meyering@redhat.com>
75158         vc-list-files: make the last-resort awk code more portable
75159         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
75160         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
75161         does not support it.
75163 2008-07-10  Eric Blake  <ebb9@byu.net>
75165         Work with tar's bootstrap.
75166         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
75167         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
75168         an m4 comment.
75170 2008-07-09  Jim Meyering  <meyering@redhat.com>
75172         posix-shell.m4: fix typo that made this test malfunction
75173         * m4/posix-shell.m4: Remove capitalization in variable name.
75175 2008-07-08  Bruno Haible  <bruno@clisp.org>
75177         * m4/onceonly.m4: Update comments.
75178         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75180 2008-07-04  Jim Meyering  <meyering@redhat.com>
75182         * users.txt: Add vc-dwim.
75183         (bison, coreutils): Use the gitweb URL.
75185 2008-07-03  Jim Meyering  <meyering@redhat.com>
75187         * users.txt: Add libffcall.  From Sam Steingold.
75189 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
75191         getdate.y: do not ignore TZ with relative day, month or year offset
75192         * lib/getdate.y (get_date): Move the tz-handling block to follow the
75193         relative-date-handling, since otherwise, the latter would clobber the
75194         sole output (an updated Start value) of the tz-handling block.
75195         * tests/test-getdate.c: Tests for the fix
75197 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75199         Recognize 'foo_LIBRARIES += libgnu.a'.
75200         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
75201         makefile snippet has already specified an installation location,
75202         also using '+='.
75204 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
75206         getdate.y: factor out common actions
75207         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
75208         Use them in place of open-coded actions.
75210 2008-07-01  Simon Josefsson  <simon@josefsson.org>
75212         Add self-test for getdate module.
75213         * modules/getdate-tests: New file.
75214         * tests/test-getdate.c: New file.
75216 2008-06-29  Bruno Haible  <bruno@clisp.org>
75218         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
75219         .gitignore.
75220         Reported by Sylvain Beucler <beuc@beuc.net>.
75222 2008-06-29  Bruno Haible  <bruno@clisp.org>
75224         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
75225         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
75227 2008-06-29  Bruno Haible  <bruno@clisp.org>
75229         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
75230         EXTRA_DIST.
75231         Reported by Sylvain Beucler <beuc@beuc.net>.
75233 2008-06-26  Jim Meyering  <meyering@redhat.com>
75235         make several modules depend on the "open" module
75236         This provides slightly increased consistency when opening-for-write
75237         the name of a non-directory spelled with a trailing slash.
75238         * modules/chdir-safer: Likewise.
75239         * modules/chown: Likewise.
75240         * modules/clean-temp: Likewise.
75241         * modules/copy-file: Likewise.
75242         * modules/fchdir: Likewise.
75243         * modules/fcntl-safer: Likewise.
75244         * modules/pipe: Likewise.
75245         * modules/utime: Likewise.
75246         Prompted by Eric Blake and Bruno Haible.
75248 2008-06-24  Andreas Schwab  <schwab@suse.de>
75250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
75251         literals can be used as initializers for global variables.
75253 2008-06-23  Eric Blake  <ebb9@byu.net>
75255         Make gnulib-cache.m4 easier to diff.
75256         * gnulib-tool (func_import): Allow newlines when reading cached
75257         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
75259 2008-06-23  Bruno Haible  <bruno@clisp.org>
75261         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
75262         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
75263         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
75264         m4/signalblocking.m4.
75265         (gl_PREREQ_SIGACTION): Don't invoke it.
75266         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
75267         gl_PREREQ_SIG_HANDLER_H.
75268         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75269         Don't check for sigaction here.
75271 2008-06-23  Bruno Haible  <bruno@clisp.org>
75273         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
75274         (install_handlers): Don't set the SA_RESETHAND flag.
75276 2008-06-23  Bruno Haible  <bruno@clisp.org>
75278         * m4/sigaction.m4: Comment fixes.
75279         * lib/signal.in.h: Likewise.
75281 2008-06-23  Eric Blake  <ebb9@byu.net>
75283         Fix typo.
75284         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
75286         Avoid SA_ namespace.
75287         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
75288         Reported by Ralf Wildenhues.
75290         Avoid test failure due to SA_RESTORER.
75291         * tests/test-sigaction.c (SA_MASK): New macro.
75292         (main): Avoid failing due to extension flags being set.
75293         Reported by Jim Meyering.
75295         Revert use of sig-handler.h in sigprocmask.c.
75296         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
75297         it requires the existence of struct sigaction.
75298         * lib/sigprocmask.c (handler_t): Restore typedef.
75299         (rpl_signal, old_handlers): Use local type.
75301 2008-06-22  Bruno Haible  <bruno@clisp.org>
75303         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
75304         conditionally.
75305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75307 2008-06-22  Bruno Haible  <bruno@clisp.org>
75309         * doc/posix-functions/siginterrupt.texi: Move note.
75311         * lib/signal.in.h (SA_RESTART): New macro.
75312         * lib/sigaction.c: Update comment.
75314         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
75316         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
75317         (gl_PREREQ_SIGPROCMASK): Invoke it.
75318         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
75320         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
75322         * lib/sigprocmask.c: Update a comment.
75324 2008-06-21  Eric Blake  <ebb9@byu.net>
75326         Use sigaction module rather than signal().
75327         * modules/c-stack (Depends-on): Add sigaction.
75328         * modules/fatal-signal (Depends-on): Likewise.
75329         * modules/nanosleep (Depends-on): Likewise.
75330         * modules/sigprocmask (Files): Add sig-handler.h.
75331         * modules/sigaction (Files): Likewise.
75332         * lib/sig-handler.h (get_handler): New file, suggested by Paul
75333         Eggert.
75334         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
75335         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
75336         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
75337         (init_fatal_signals): Likewise.
75338         * lib/nanosleep.c (rpl_nanosleep): Likewise.
75339         (siginterrupt): Delete fallback.
75340         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
75341         instead.
75342         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
75343         siginterrupt.
75345         New module sigaction, for mingw.
75346         * modules/sigaction: New module...
75347         * modules/sigaction-tests: ...and its test.
75348         * m4/sigaction.m4: New file.
75349         * lib/sigaction.c: Likewise.
75350         * tests/test-sigaction.c: Likewise.
75351         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
75352         * modules/signal (Makefile.am): Likewise.
75353         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
75354         needed.
75355         * doc/posix-headers/signal.texi (signal.h): Mention provided
75356         types.
75357         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
75358         that sigaction is preferable.
75359         * doc/posix-functions/sigaction.texi (sigaction): Mention new
75360         module.
75361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75362         sigaction.
75364         Improve robustness of sigprocmask by overriding signal.
75365         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
75366         is in use.
75367         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
75368         (SIGKILL, SIGSTOP): Provide fallbacks.
75369         (rpl_signal): Implement.
75370         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
75371         signal can be called inside handlers.
75373         Fix nanosleep module on mingw.
75374         * modules/nanosleep (Depends-on): Add sys_select.
75375         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
75377         Fix licensing of sigprocmask.
75378         * modules/raise (License): Relicense as LGPL.
75380 2008-06-21  Bruno Haible  <bruno@clisp.org>
75382         * lib/propername.c (proper_name_utf8): Don't use the transliterated
75383         result if it contains question marks.
75384         Reported by Michael Geng <linux@michaelgeng.de>.
75386 2008-06-19  Bruno Haible  <bruno@clisp.org>
75388         Fix CVS-ism.
75389         * doc/gnulib.texi: Include updated-stamp.texi.
75390         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
75391         (updated-stamp.texi): New rule.
75392         (gnulib.info): Depend on it.
75393         * doc/.gitignore: Add updated-stamp.texi.
75394         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
75396 2008-06-19  Bruno Haible  <bruno@clisp.org>
75398         * doc/Makefile (gnulib.info): Update and simplify dependencies.
75399         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75401 2008-06-19  Eric Blake  <ebb9@byu.net>
75403         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
75404         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
75405         Reported by Stepan Kasal.
75407 2008-06-18  Bruno Haible  <bruno@clisp.org>
75409         * lib/fatal-signal.c (init_fatal_signals): Add comment.
75410         Reported by Eric Blake.
75412 2008-06-18  Eric Blake  <ebb9@byu.net>
75414         Work around cygwin 1.5.25 strsignal bug.
75415         * tests/test-strsignal.c: Allow for const char *.
75416         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
75418 2008-06-18  Simon Josefsson  <simon@josefsson.org>
75420         * users.txt: Update URL to article and add author/date
75421         information.
75423 2008-06-17  Bruno Haible  <bruno@clisp.org>
75425         New macro gl_DISABLE_THREADS.
75426         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
75427         if the user did not pass --enable-threads or --disable-threads option.
75428         (gl_DISABLE_THREADS): New macro.
75429         Reported by Eric Blake <ebb9@byu.net>.
75431 2008-06-17  Bruno Haible  <bruno@clisp.org>
75433         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
75434         when the macro ignores it.
75435         Based on a patch by Eric Blake <ebb9@byu.net>.
75437 2008-06-17  Bruno Haible  <bruno@clisp.org>
75439         * modules/tls (License): Change to LGPLv2+.
75440         Reported by Eric Blake.
75442 2008-06-17  Eric Blake  <ebb9@byu.net>
75444         Simplify c-stack prerequisites.
75445         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
75446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
75447         no longer requires <ucontext.h> to exist.  Optimize setrlimit
75448         check.
75449         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
75450         <sys/resource.h>.
75452         Move c-stack test into testsuite.
75453         * modules/c-stack-tests: New file.
75454         * lib/c-stack.c [DEBUG]: Move test program...
75455         * tests/test-c-stack.c: ...into this new file.  Skip rather than
75456         fail test if sigaltstack is lacking.
75457         * tests/test-c-stack.sh: New driver file.
75459 2008-06-16  Eric Blake  <ebb9@byu.net>
75461         Use raise module consistently.
75462         * modules/fatal-signal (Depends-on): Add raise.
75463         * modules/sigprocmask (Depends-on): Likewise.
75464         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
75465         * lib/sigprocmask.c (sigprocmask): Likewise.
75466         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75467         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
75469         Fix compliance bug in sigpending.
75470         * lib/sigprocmask.c (sigpending): Return pending array via
75471         parameter, not return value.
75473 2008-06-14  Eric Blake  <ebb9@byu.net>
75475         Improve obstack-printf test code.
75476         * tests/test-obstack-printf.c (test_function): Fix comment, and
75477         simplify usage of obstack_* in macros.  Add a test for coverage.
75478         Reported by Bruno Haible.
75480 2008-06-14  Bruno Haible  <bruno@clisp.org>
75482         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
75483         array size as a constant, not as a const variable.
75484         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
75485         AC_USE_SYSTEM_EXTENSIONS.
75486         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75487         Test whether the obstack_printf function actually exists.
75488         * modules/obstack-printf (Depends-on): Add extensions.
75489         (Include): Remove obstack.h.
75490         * modules/obstack-printf-posix (Depends-on): Add extensions.
75491         (Include): Remove obstack.h.
75493 2008-06-13  Eric Blake  <ebb9@byu.net>
75495         Add obstack-printf and obstack-printf-posix modules.
75496         * modules/obstack-printf: New file.
75497         * modules/obstack-printf-posix: Likewise.
75498         * MODULES.html.sh (Misc): Mention them.
75499         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75500         Likewise.
75501         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75502         Likewise.
75503         * modules/stdio (Makefile.am): Accomodate new modules.
75504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75505         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
75506         Declare.
75507         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
75508         functions.
75509         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
75510         (gl_REPLACE_OBSTACK_PRINTF): New macros
75511         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
75512         * tests/test-obstack-printf.c: New file.
75513         * modules/obstack-printf-tests: Likewise.
75514         * modules/obstack-printf-posix-tests: Likewise.
75516 2008-06-11  Bruno Haible  <bruno@clisp.org>
75518         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
75519         * lib/open.c: Include errno.h.
75520         (open): Fail when attempting to write to a file that has a trailing
75521         slash.
75522         * tests/test-open.c (main): Test against trailing slash bug.
75523         * doc/posix-functions/open.texi: Mention the trailing slash bug.
75525 2008-06-10  Bruno Haible  <bruno@clisp.org>
75527         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
75528         for $? to work inside the trap command, with various /bin/sh-s.
75529         * tests/test-vc-list-files-cvs.sh: Likewise.
75531 2008-06-10  Bruno Haible  <bruno@clisp.org>
75533         * lib/acl-internal.h: Don't include gettext.h here.
75534         * lib/set-mode-acl.c: Include gettext.h here.
75535         * lib/copy-acl.c: Likewise.
75537 2008-06-10  Bruno Haible  <bruno@clisp.org>
75539         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
75540         * lib/wait-process.c (wait_subprocess): Likewise.
75541         * lib/execute.h (execute): Add termsigp argument.
75542         * lib/execute.c (execute): Likewise.
75543         * lib/csharpcomp.c (compile_csharp_using_pnet,
75544         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
75545         * lib/csharpexec.c (execute_csharp_using_pnet,
75546         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
75547         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
75548         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
75549         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
75550         is_jikes_present): Update.
75551         * lib/javaexec.c (execute_java_class): Update.
75552         * lib/javaversion.c (execute_and_read_line): Update.
75553         * NEWS: Document the changes.
75554         Reported by Eric Blake.
75556 2008-06-10  Eric Blake  <ebb9@byu.net>
75558         Add missing include.
75559         * tests/test-strstr.c (includes): Add <signal.h>.
75560         * tests/test-strcasestr.c (includes): Likewise.
75561         * tests/test-memmem.c (includes): Likewise.
75563 2008-06-10  Bruno Haible  <bruno@clisp.org>
75565         * lib/wait-process.c (wait_subprocess): Add an assertion.
75567 2008-06-10  Bruno Haible  <bruno@clisp.org>
75569         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
75571 2008-06-10  Bruno Haible  <bruno@clisp.org>
75573         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
75574         using alarm().
75575         * tests/test-strcasestr.c (main): Likewise.
75576         * tests/test-strstr.c (main): Likewise.
75578 2008-06-09  Bruno Haible  <bruno@clisp.org>
75580         Work around the Solaris 10 ACE ACLs ABI change.
75581         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
75582         declare if ACL_NO_TRIVIAL is present.
75583         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
75584         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
75585         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
75586         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
75587         define if ACL_NO_TRIVIAL is present.
75588         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
75589         and use the current ABI.
75590         (file_has_acl): Use same #if condition as elsewhere.
75591         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
75592         in use, and use the current ABI.
75593         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75594         Reported by Jim Meyering.
75596 2008-06-09  Eric Blake  <ebb9@byu.net>
75598         Work around environments that (stupidly) ignore SIGALRM.
75599         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75600         before using alarm().
75601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75603         Reported by Ian Beckwith <ianb@erislabs.net>.
75605         Produce autobuild blurb earlier in log.
75606         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75608 2008-06-09  Jim Meyering  <meyering@redhat.com>
75609         and Ondřej Vašík  <ovasik@redhat.com>
75611         utimens.c: correct kernel bug work-around
75612         Ondřej Vašík found that the invalid return value of 280 indicates
75613         failure, not success, and the kernel bug we're trying to work
75614         around affects not just the utimensat call, but also the fallback
75615         futimens call.
75616         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75617         not success.
75618         [HAVE_FUTIMENS]: Use the same work-around, here.
75620 2008-06-09  Jim Meyering  <meyering@redhat.com>
75622         add more guards around definition of ACE_-related code
75623         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75624         ALLOW and ACE_OWNER are also defined.
75626 2008-06-08  Bruno Haible  <bruno@clisp.org>
75628         * lib/acl-internal.h: Add me as co-author.
75629         * lib/file-has-acl.c: Likewise.
75630         * lib/set-mode-acl.c: Likewise.
75631         * lib/copy-acl.c: Likewise.
75633 2008-06-08  Bruno Haible  <bruno@clisp.org>
75635         Add support for AIX ACLs.
75636         * lib/acl-internal.h (acl_nontrivial): New declaration.
75637         * lib/file-has-acl.c (acl_nontrivial): New function.
75638         (file_has_acl): Add implementation using AIX 4 ACL API.
75639         * lib/set-mode-acl.c (qset_acl): Likewise.
75640         * lib/copy-acl.c (qcopy_acl): Likewise.
75642 2008-06-08  Bruno Haible  <bruno@clisp.org>
75644         Add support for HP-UX ACLs.
75645         * lib/acl-internal.h (acl_nontrivial): New declaration.
75646         * lib/file-has-acl.c (acl_nontrivial): New function.
75647         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75648         * lib/set-mode-acl.c (qset_acl): Likewise.
75649         * lib/copy-acl.c (qcopy_acl): Likewise.
75651 2008-06-08  Bruno Haible  <bruno@clisp.org>
75653         Add support for Cygwin ACLs.
75654         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75655         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75656         the chmod_or_fchmod call.
75657         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75659 2008-06-08  Bruno Haible  <bruno@clisp.org>
75661         Fix bug with setuid modes in Solaris 10+ code.
75662         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75663         succeeded, when the mode contains some special bits.
75665 2008-06-08  Bruno Haible  <bruno@clisp.org>
75667         Add support for Solaris 7..10 ACLs.
75668         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75669         declarations.
75670         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75671         functions.
75672         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75673         * lib/set-mode-acl.c (qset_acl): Likewise.
75674         * lib/copy-acl.c (qcopy_acl): Likewise.
75676 2008-06-08  Bruno Haible  <bruno@clisp.org>
75678         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75679         declaration.
75680         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75681         (acl_access_nontrivial): Remove MacOS X case.
75682         (file_has_acl): Use acl_extended_nontrivial.
75683         * lib/copy-acl.c (qcopy_acl): Likewise.
75685 2008-06-08  Bruno Haible  <bruno@clisp.org>
75687         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75689 2008-06-08  Jim Meyering  <meyering@redhat.com>
75691         * modules/acl (Maintainer): Add Bruno Haible.
75693 2008-06-07  Bruno Haible  <bruno@clisp.org>
75695         Improve support for Tru64 ACLs.
75696         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75697         ACL on OSF/1.
75699 2008-06-07  Bruno Haible  <bruno@clisp.org>
75701         Add support for MacOS X ACLs.
75702         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75703         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75704         * lib/set-mode-acl.c (qset_acl): Likewise.
75705         * lib/copy-acl.c (qcopy_acl): Likewise.
75707 2008-06-07  Bruno Haible  <bruno@clisp.org>
75709         Fix memory leak introduced on 2008-05-22.
75710         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75711         use.
75713 2008-06-07  Bruno Haible  <bruno@clisp.org>
75715         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75716         to construct an empty ACL.
75718 2008-06-07  Bruno Haible  <bruno@clisp.org>
75720         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75721         precisely.
75722         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75724 2008-06-07  Bruno Haible  <bruno@clisp.org>
75726         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75727         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75729 2008-06-07  Bruno Haible  <bruno@clisp.org>
75731         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75732         regardless of POSIX.
75733         * doc/posix-functions/_longjmp.texi: Likewise.
75734         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75735         SystemV platform in this case.
75737 2008-06-06  Eric Blake  <ebb9@byu.net>
75739         Document abort() bugs.
75740         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75742         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75743         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
75744         sigsetjmp.
75745         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
75746         siglongjmp, but only as a macro.
75747         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
75748         is obsolete.
75749         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
75751         Tweak documentation to cover cygwin argz bugs.
75752         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
75753         argz bug fix; no code change needed since no cygwin releases
75754         occurred between the last fix and the bug being tested.
75755         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
75756         module and recently fixed cygwin bugs.
75757         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
75758         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
75759         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
75760         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
75761         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
75762         Likewise.
75763         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
75764         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
75765         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
75766         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
75767         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
75768         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
75769         Likewise.
75771         Avoid gcc warning on cygwin.
75772         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
75773         !ACL_NO_TRIVIAL]: Avoid unused variable.
75775 2008-06-05  Eric Blake  <ebb9@byu.net>
75777         Be tolerant of UNKNOWN version in gnulib-tool test dir.
75778         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
75779         git-version-gen fails to come up with a version.
75780         Reported by Simon Josefsson.
75782 2008-06-05  Jim Meyering  <meyering@redhat.com>
75783             Paul Eggert  <eggert@cs.ucla.edu>
75785         utimens.c: work around a probable Linux kernel bug
75786         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
75787         appears to be a kernel bug that causes utimensat to return 280
75788         instead of 0, indicating success.
75790 2008-06-04  Bruno Haible  <bruno@clisp.org>
75792         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
75793         2008-06-01 commit.
75795 2008-06-04  Bruno Haible  <bruno@clisp.org>
75797         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
75798         * lib/file-has-acl.c (acl_access_nontrivial): New function.
75799         (file_has_acl): Use it. Save errno afterwards.
75800         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
75802 2008-06-03  Bruno Haible  <bruno@clisp.org>
75804         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
75805         draft code. Simplify #ifs.
75806         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
75807         Put Solaris code after POSIX-draft code. Fix comments regarding
75808         Solaris 10, HP-UX. Mention Cygwin.
75809         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
75811 2008-06-03  Eric Blake  <ebb9@byu.net>
75813         Provide fallback for older kernels.
75814         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
75815         Provide runtime fallback if kernel lacks support.
75816         Reported by Mike Frysinger.
75818 2008-06-02  Bruno Haible  <bruno@clisp.org>
75820         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
75821         it exists.
75823 2008-06-02  Bruno Haible  <bruno@clisp.org>
75825         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
75826         * lib/copy-acl.c (qcopy_acl): Update comment.
75828 2008-06-02  Bruno Haible  <bruno@clisp.org>
75830         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
75831         like ACL APIs.
75833 2008-06-02  Bruno Haible  <bruno@clisp.org>
75835         * tests/test-file-has-acl.sh: Use different code for Cygwin.
75836         * tests/test-set-mode-acl.sh: Likewise.
75837         * tests/test-copy-acl.sh: Likewise.
75838         * tests/test-copy-file.sh: Likewise.
75840 2008-06-02  Bruno Haible  <bruno@clisp.org>
75842         * tests/test-file-has-acl.sh: Remove unused code.
75844 2008-06-01  Bruno Haible  <bruno@clisp.org>
75846         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
75847         (copy_acl): Just a wrapper around qcopy_acl that emits the error
75848         messages.
75849         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
75851 2008-06-01  Bruno Haible  <bruno@clisp.org>
75853         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
75854         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
75855         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
75856         APIs.
75857         * modules/acl-tests (configure.ac): Remove tests now contained in
75858         m4/acl.m4.
75860 2008-06-02  Jim Meyering  <meyering@redhat.com>
75862         announce-gen: use a better key-server host name
75863         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75864         it may be more consistently reliable.  Suggested by Werner Koch
75865         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75867 2008-06-01  Bruno Haible  <bruno@clisp.org>
75869         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75870         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75872 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75874         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75876 2008-06-01  Bruno Haible  <bruno@clisp.org>
75878         New ACL tests.
75879         * tests/test-file-has-acl.sh: New file.
75880         * tests/test-file-has-acl.c: New file.
75881         * tests/test-set-mode-acl.sh: New file.
75882         * tests/test-set-mode-acl.c: New file.
75883         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75884         * tests/test-copy-acl.c: New file.
75885         * modules/acl-tests: New file, based on modules/copy-file-tests.
75886         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75887         (Depends-on): Add acl-tests.
75888         (configure.ac): Remove checks.
75889         (Makefile.am): Don't create test-sameacls program here any more.
75891 2008-06-01  Bruno Haible  <bruno@clisp.org>
75893         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75894         * tests/test-sameacls.c: Include progname.h.
75895         (main): Invoke set_program_name. Portability fixes for MacOS X,
75896         Solaris, HP-UX.
75898 2008-06-01  Bruno Haible  <bruno@clisp.org>
75900         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75901         function.
75902         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75904 2008-06-01  Bruno Haible  <bruno@clisp.org>
75906         * modules/rpmatch (Depends-on): Add strdup.
75908 2008-06-01  Bruno Haible  <bruno@clisp.org>
75910         * lib/pipe.c: Include unistd-safer.h.
75911         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75912         * modules/pipe (Depends-on): Add unistd-safer.
75914 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75916         * modules/autobuild (configure.ac): Call AB_INIT.
75918 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75920         * tests/test-getaddrinfo.c: Don't print debug messages by default.
75921         Suggested by Bruno Haible <bruno@clisp.org>.
75923 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75925         * tests/test-base64.c: Cast size_t to unsigned long when invoking
75926         printf.  Use %lu instead of %d.  Reported by Bruno Haible
75927         <bruno@clisp.org>.
75929 2008-05-29  Eric Blake  <ebb9@byu.net>
75931         Prefer new POSIX 200x interfaces over futimesat.
75932         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
75933         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
75934         when available.
75935         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
75937 2008-05-28  Bruno Haible  <bruno@clisp.org>
75939         * modules/stpcpy (License): Change to LGPLv2+.
75940         Requested by David Lutterkort <dlutter@redhat.com>.
75942 2008-05-27  Bruno Haible  <bruno@clisp.org>
75944         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
75945         current mingw.
75946         Reported by Jose E. Marchesi <jemarch@gnu.org>.
75948 2008-05-27  Bruno Haible  <bruno@clisp.org>
75950         * modules/iconv_open (Link): New section, from module 'iconv'.
75951         * modules/striconv (Link): Likewise.
75952         * modules/striconveh (Link): Likewise.
75953         * modules/xstriconv (Link): Likewise.
75954         * modules/unicodeio (Link): Likewise.
75955         * modules/propername (Link): Likewise.
75956         Reported by Jim Meyering.
75958 2008-05-26  Jim Meyering  <meyering@redhat.com>
75960         sha256: do not artificially restrict buffer length to be < 2^32
75961         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
75962         uint32_t to size_t.
75963         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
75964         to match.
75966         avoid unaligned access errors, e.g., on sparc
75967         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
75968         direct access through a possibly-unaligned uint64* pointer.
75969         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
75970         direct access through a possibly-unaligned uint32* pointer.
75971         Prompted by this patch from Tom "spot" Callaway:
75972         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
75974         sha512.c: fix typo in comment
75975         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
75977 2008-05-25  Bruno Haible  <bruno@clisp.org>
75979         * lib/set-mode-acl.c: Renamed from lib/acl.c.
75980         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
75981         (Makefile.am): Update lib_SOURCES.
75983 2008-05-25  Bruno Haible  <bruno@clisp.org>
75985         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
75987 2008-05-25  Jim Meyering  <meyering@redhat.com>
75989         useless-if-before-free: freed expr may have white-space differences
75990         * build-aux/useless-if-before-free: Recognize cases in which the
75991         freed expression differs from the tested one in embedded white
75992         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
75993         $1 was used, so we can't make any regexp shy.  Improved tests now
75994         detect this.
75996         useless-if-before-free: accept white space in the expression.
75997         * build-aux/useless-if-before-free: For now, any white space
75998         in the expression must be identical in the free argument.
76000         useless-if-before-free: efficiency tweak
76001         * build-aux/useless-if-before-free: Make the expression-matching
76002         regexp "shy".
76003         Make the *outer* regexp shy, not the expr-matching one.
76005         update code-in-comment to accept cast of free arg
76006         * build-aux/useless-if-before-free: Update regexp.
76008 2008-05-25  Bruno Haible  <bruno@clisp.org>
76010         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
76011         * modules/copy-file-tests (Files, Makefile.am): Update.
76012         * tests/test-copy-file.c (func_test_copy): Update.
76014 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
76016         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
76018 2008-05-23  Bruno Haible  <bruno@clisp.org>
76020         Improve support for ACLs on OSF/1.
76021         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
76022         Remove fallback for unknown flavors of ACLs.
76024 2008-05-22  Bruno Haible  <bruno@clisp.org>
76026         Add support for ACLs on OSF/1.
76027         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
76028         replacements.
76029         (acl_free_text): New macro fallback.
76030         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
76031         acl_free.
76032         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
76033         acl_free_text function. Require AC_C_INLINE.
76035 2008-05-22  Bruno Haible  <bruno@clisp.org>
76037         Make copy_acl work on MacOS X 10.5.
76038         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
76039         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
76040         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
76041         If MODE_INSIDE_ACL, don't assume that every system has the same text
76042         representation for ACLs as FreeBSD.
76043         * lib/copy-acl.c (copy_acl): Add support for platforms with
76044         !MODE_INSIDE_ACL.
76045         * lib/file-has-acl.c (file_has_acl): Likewise.
76046         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
76047         FreeBSD, MacOS X, or IRIX, respectively.
76049 2008-05-22  Bruno Haible  <bruno@clisp.org>
76051         * lib/acl.h: Don't include <sys/acl.h>.
76052         (GETACLCNT): Move fallback to lib/acl-internal.h.
76053         * lib/acl-internal.h: Include <sys/acl.h> here.
76054         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
76056 2008-05-22  Bruno Haible  <bruno@clisp.org>
76058         Split off copy_acl function to separate file.
76059         * lib/copy-acl.c: New file, extracted from lib/acl.c.
76060         * lib/acl.c (copy_acl): Moved function to separate file.
76061         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
76062         * modules/acl (Files): Add lib/copy-acl.c.
76063         (Makefiles.am): Augment lib_SOURCES.
76065 2008-05-22  Bruno Haible  <bruno@clisp.org>
76067         * modules/copy-file-tests: New file.
76068         * tests/test-copy-file.sh: New file.
76069         * tests/test-copy-file.c: New file.
76070         * tests/test-copy-file-sameacls.c: New file.
76072 2008-05-22  Eric Blake  <ebb9@byu.net>
76074         Avoid gcc warning.
76075         * tests/test-memcmp.c (main): Pass NULL indirectly.
76077 2008-05-21  Bruno Haible  <bruno@clisp.org>
76079         Add reference doc about ACLs.
76080         * doc/acl-resources.txt: New file.
76081         * doc/acl-cygwin.txt: New file.
76083 2008-05-21  Bruno Haible  <bruno@clisp.org>
76085         Avoid one more warning from gcc.
76086         * lib/vasnprintf.c (IF_LINT): Update comments.
76087         (VASNPRINTF): Use it also for the 'prefix' array initializer.
76089 2008-05-21  Jim Meyering  <meyering@redhat.com>
76091         avoid a warning from gcc
76092         * lib/vasnprintf.c (IF_LINT): Define.
76093         (scale10_round_decimal_long_double):
76094         Use it to avoid a "may be used uninitialized" warning.
76095         (scale10_round_decimal_double): Likewise.
76097 2008-05-21  Simon Josefsson  <simon@josefsson.org>
76099         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
76100         declared.
76102 2008-05-20  Bruno Haible  <bruno@clisp.org>
76104         * tests/test-memcmp.c (main): Test also the sign of the result. Test
76105         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
76107 2008-05-20  Simon Josefsson  <simon@josefsson.org>
76109         * modules/memcmp-tests: New file.
76110         * tests/test-memcmp.c: New file.
76112 2008-05-19  Bruno Haible  <bruno@clisp.org>
76114         * modules/propername (Notice, configure.ac): Put quoted "..." into
76115         --keyword option.
76116         * lib/propername.h: Update comments accordingly.
76117         Reported by Eric Blake.
76119 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
76121         * modules/getpass-gnu (Depends-on): Add fseeko.
76123 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76125         * modules/base64-tests: New file.
76127 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
76129         * lib/base64.c (base64_decode_ctx): If a decode context structure
76130         was passed in use it to ignore newlines.  If a context structure
76131         was _not_ passed in, continue to treat newlines as garbage (this
76132         is the historical behavior).  Formerly base64_decode.
76133         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76134         takes a decode context structure.
76135         * lib/base64.h (base64_decode): Macro for four-argument calls.
76136         (base64_decode_alloc): Likewise.
76137         * lib/base64.c (base64_decode_ctx): If a decode context structure
76138         was passed in use it to ignore newlines.  If a context structure
76139         was _not_ passed in, continue to treat newlines as garbage (this
76140         is the historical behavior).  Formerly base64_decode.
76141         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76142         takes a decode context structure.
76143         * lib/base64.h (base64_decode): Macro for four-argument calls.
76144         (base64_decode_alloc): Likewise.
76146 2008-05-19  Jim Meyering  <meyering@redhat.com>
76148         avoid a warning from gcc
76149         * lib/trim.c (IF_LINT): Define.
76150         (trim2): Use it to avoid a "may be used uninitialized" warning.
76152         Fix doc typo.
76153         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
76155 2008-05-19  Bruno Haible  <bruno@clisp.org>
76157         * doc/glibc-functions/getpass.texi: Document limits of other
76158         implementations.
76160 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76161             Bruno Haible <bruno@clisp.org>
76163         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
76165 2008-05-18  Bruno Haible  <bruno@clisp.org>
76167         * modules/propername: New file, from GNU gettext.
76168         * lib/propername.h: New file, from GNU gettext.
76169         * lib/propername.c: New file, from GNU gettext.
76170         * MODULES.html.sh (Internationalization functions): Add propername.
76172 2008-05-16  Jim Meyering  <meyering@redhat.com>
76173             Bruno Haible  <bruno@clisp.org>
76175         Avoid some warnings from "gcc -Wshadow".
76176         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
76178 2008-05-15  Eric Blake  <ebb9@byu.net>
76180         Extend previous patch to cygwin 1.7.0.
76181         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
76182         fast implementation in cygwin >= 1.7.0.
76183         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76186 2008-05-15  Bruno Haible  <bruno@clisp.org>
76188         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
76189         implementation in glibc >= 2.9.
76190         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76193 2008-05-15  Bruno Haible  <bruno@clisp.org>
76195         * MODULES.html.sh (Internationalization functions): Remove linebreak.
76196         (Unicode string functions): Add unilbrk/*.
76197         Reported by Karl Berry.
76199 2008-05-15  Eric Blake  <ebb9@byu.net>
76201         Fix violation of <stdbool.h> replacement in regex.
76202         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
76203         * lib/regexec.c (re_search_internal): Likewise.
76204         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
76206 2008-05-15  Jim Meyering  <meyering@redhat.com>
76208         avoid distracting test output when git or cvs is not found
76209         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
76210         * tests/test-vc-list-files-git.sh: Likewise.
76212 2008-05-15  Eric Blake  <ebb9@byu.net>
76214         Glibc finally accepted the memmem speedup code, bugzilla #5514.
76215         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
76216         glibc version.
76217         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
76218         * doc/posix-functions/strstr.texi (strstr): Likewise.
76219         * lib/str-two-way.h (MAX): Sychronize with glibc.
76221 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
76223         * lib/regcomp.c (optimize_utf8): Add a note on why we test
76224         opr.ctx_type.
76225         (calc_first): Initialize constraint field.
76226         (duplicate_node_closure): Use it instead of special casing ANCHORS.
76227         Fix grammar.
76228         (duplicate_node): Merge constraint field for all node types.
76229         (calc_eclosure_iter): Look at constraint field for all node types.
76230         * lib/regex_internal.c (create_cd_newstate): Don't look at
76231         opr.ctx_type.
76233 2008-05-14  Bruno Haible  <bruno@clisp.org>
76235         Help GCC to do better code generation.
76236         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
76237         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
76238         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
76239         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
76240         Declare with attribute 'malloc' if supported.
76242 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
76244         use "echo STR|wc -c" rather than unportable "expr length STR"
76245         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
76246         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
76248 2008-05-14  Jim Meyering  <meyering@redhat.com>
76250         use dd ibs=$n count=1 ... rather than less-portable head -c$n
76251         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
76252         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
76253         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
76254         via Collin Lasse.
76256 2008-05-14  Eric Blake  <ebb9@byu.net>
76258         Avoid quadratic growth in gl_LIBSOURCES.
76259         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
76260         Suggested by Bruno Haible.
76262         Test xmemdup0.
76263         * modules/xmemdup0-tests: New file.
76264         * tests/test-xmemdup0.c: Likewise.
76266 2008-05-13  Eric Blake  <ebb9@byu.net>
76268         Split xmemdup0 into its own module.
76269         * modules/xmemdup0: New file.
76270         * lib/xmemdup0.h: Likewise.
76271         * lib/xmemdup0.c: Likewise.
76272         * MODULES.html.sh (Memory management functions): Add xmemdup0.
76273         * lib/xalloc.h (xmemdup0): Remove.
76274         * lib/xmalloc.c (xmemdup0): Likewise.
76276 2008-05-13  Eric Blake  <ebb9@byu.net>
76277             Bruno Haible  <bruno@clisp.org>
76279         Reduce number of forks required during autoconf.
76280         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
76281         and gl_LIBSOURCES_DIR.
76282         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
76283         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
76284         m4_syscmd per file.
76285         <m4_foreach_w>: Move...
76286         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
76288 2008-05-13  Eric Blake  <ebb9@byu.net>
76290         * gnulib-tool: Fix various comment typos.
76292 2008-05-12  Bruno Haible  <bruno@clisp.org>
76294         Tailor the linebreaking algorithm.
76295         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
76297 2008-05-12  Bruno Haible  <bruno@clisp.org>
76299         Update to Unicode 5.0.0.
76300         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76301         LBP_JV, LBP_JT. Redistribute values.
76302         (unilbrk_table): Change size.
76303         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
76304         Unicode TR#14 rev. 22.
76305         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76306         LBP_JV, LBP_JT. Redistribute values.
76307         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
76308         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
76309         Update.
76310         * lib/unilbrk/lbrkprop1.h: Regenerated.
76311         * lib/unilbrk/lbrkprop2.h: Regenerated.
76312         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
76313         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
76314         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
76315         Likewise.
76316         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
76317         Likewise.
76318         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
76319         result.
76320         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
76321         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
76322         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
76323         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
76324         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
76325         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
76327 2008-05-11  Bruno Haible  <bruno@clisp.org>
76329         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
76331 2008-05-11  Bruno Haible  <bruno@clisp.org>
76333         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
76334         * modules/unilbrk/gen-lbrk: New file.
76336 2008-05-11  Bruno Haible  <bruno@clisp.org>
76338         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
76339         * m4/sha512.m4 (gl_SHA512): Likewise.
76341 2008-05-11  Jim Meyering  <meyering@redhat.com>
76343         New modules: crypto/sha256, crypto/sha512 (from coreutils)
76344         * modules/crypto/sha256: New file.
76345         * modules/crypto/sha512: Likewise.
76346         * lib/sha256.c: Likewise.
76347         * lib/sha256.h: Likewise.
76348         * lib/sha512.c: Likewise.
76349         * lib/sha512.h: Likewise.
76350         * lib/u64.h: Likewise.
76351         * m4/sha256.m4: Likewise.
76352         * m4/sha512.m4: Likewise.
76353         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
76355 2008-05-10  Bruno Haible  <bruno@clisp.org>
76357         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
76358         (Input/Output <stdio.h>): Add xprintf.
76359         (Signal handling <signal.h>): Add strsignal.
76360         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
76361         (Core language properties): Add func.
76362         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
76363         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
76364         strings.
76365         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
76366         (Input/output): New section.
76367         (File system functions): Add openat-die, stat-macros.
76368         (Networking functions): Add sockets.
76369         (Unicode string functions): Add unictype/*.
76370         (Support for building libraries and executables): Add gperf.
76371         (Support for building documentation): Add agpl-3.0.
76372         (Misc): Add nocrash.
76374 2008-05-10  Bruno Haible  <bruno@clisp.org>
76376         * modules/unictype/gen-ctype: New file.
76378 2008-05-10  Jim Meyering  <meyering@redhat.com>
76380         Make chdir-safer.c more efficient on a system with no symlinks.
76381         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
76382         also if ELOOP is zero.  Suggested by Bruno Haible.
76384         Make chdir-safer.c slightly safer.
76385         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
76386         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
76388         Avoid compile failure on systems without ELOOP (like mingw).
76389         * lib/chdir-safer.c (ELOOP): Define if not already defined.
76390         Reported by Bruno Haible.
76392 2008-05-10  Bruno Haible  <bruno@clisp.org>
76394         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
76395         (is_utf8_encoding): Use a case-insensitive comparison.
76396         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
76397         streq.
76399 2008-05-10  Bruno Haible  <bruno@clisp.org>
76401         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
76402         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
76403         * lib/unilbrk/ulc-common.h (iconv_string_length,
76404         iconv_string_keeping_offsets): Remove declarations.
76405         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
76406         Don't include <iconv.h>, streq.h, xsize.h.
76407         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
76408         conversion.
76409         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
76410         <iconv.h>, streq.h, xsize.h.
76411         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
76412         conversion.
76413         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
76414         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
76415         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
76416         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
76418 2008-05-10  Bruno Haible  <bruno@clisp.org>
76420         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
76421         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
76423         * modules/unilbrk/u32-width-linebreaks-tests: New file.
76424         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
76426         * modules/unilbrk/u16-width-linebreaks-tests: New file.
76427         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
76429         * modules/unilbrk/u8-width-linebreaks-tests: New file.
76430         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
76432         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
76433         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
76435         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
76436         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
76438         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
76439         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
76441         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
76442         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
76444 2008-05-10  Bruno Haible  <bruno@clisp.org>
76446         Split up 'linebreak' module.
76447         * lib/unilbrk.h: New file, based on lib/linebreak.h.
76448         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
76449         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
76450         modifications.
76451         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
76452         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
76453         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
76454         lib/linebreak.c.
76455         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
76456         lib/linebreak.c.
76457         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
76458         lib/linebreak.c.
76459         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
76460         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
76461         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
76462         lib/linebreak.c.
76463         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
76464         lib/linebreak.c.
76465         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
76466         lib/linebreak.c.
76467         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
76468         lib/linebreak.c.
76469         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
76470         lib/linebreak.c.
76471         * modules/unilbrk/base: New file.
76472         * modules/unilbrk/tables: New file.
76473         * modules/unilbrk/u8-possible-linebreaks: New file.
76474         * modules/unilbrk/u16-possible-linebreaks: New file.
76475         * modules/unilbrk/u32-possible-linebreaks: New file.
76476         * modules/unilbrk/ulc-common: New file.
76477         * modules/unilbrk/ulc-possible-linebreaks: New file.
76478         * modules/unilbrk/u8-width-linebreaks: New file.
76479         * modules/unilbrk/u16-width-linebreaks: New file.
76480         * modules/unilbrk/u32-width-linebreaks: New file.
76481         * modules/unilbrk/ulc-width-linebreaks: New file.
76482         * lib/linebreak.h: Remove file.
76483         * lib/linebreak.c: Remove file.
76484         * m4/linebreak.m4: Remove file.
76485         * modules/linebreak: Remove file.
76486         * NEWS: Mention the changes.
76488 2008-05-09  Eric Blake  <ebb9@byu.net>
76490         Add xmemdup0.
76491         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
76492         implementation.
76493         * lib/xmalloc.c (xmemdup0): New C implementation.
76495 2008-05-08  Bruno Haible  <bruno@clisp.org>
76497         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
76499 2008-05-07  Eric Blake  <ebb9@byu.net>
76501         Support cross-compilation of <wctype.h>.
76502         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
76503         AC_CACHE_CHECK.
76505 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
76507         * build-aux/vc-list-files: Add support for bzr.
76509 2008-05-03  Jim Meyering  <meyering@redhat.com>
76511         avoid failed assertion with tight malloc
76512         * tests/test-getndelim2.c: Correct an off-by-one assertion.
76514 2008-05-03  Simon Josefsson  <simon@josefsson.org>
76516         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
76517         are needed from arpa/inet.h.
76518         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
76519         Reported by Bruno Haible.
76521 2008-05-02  Jim Meyering  <meyering@redhat.com>
76523         avoid compilation error on FreeBSD 6
76524         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
76526 2008-05-01  Jim Meyering  <meyering@redhat.com>
76528         useless-if-before-free: correct --help's exit status description
76529         * build-aux/useless-if-before-free (usage): Like grep, exit 0
76530         for one or more matches, etc.  Reported by Bruno Haible.
76532         vc-list-files: make the stand-alone gnulib test work
76533         * modules/vc-list-files-tests (configure.ac):
76534         Define and AC_SUBST abs_aux_dir.
76535         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
76536         $(abs_top_srcdir) to each script and having each of them
76537         duplicate the work of setting PATH, set PATH here, using
76538         the new variable, abs_aux_dir instead.
76539         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
76540         * tests/test-vc-list-files-git.sh: Likewise.
76541         Reported by Bruno Haible.
76543 2008-05-01  Bruno Haible  <bruno@clisp.org>
76545         * lib/getndelim2.c (getndelim2): Fix newsize computation during
76546         reallocation. Rename 'done' to 'found_delimiter'.
76548 2008-05-01  Jim Meyering  <meyering@redhat.com>
76550         vc-list-files: accommodate /bin/sh like the one from Solaris 10
76551         * build-aux/vc-list-files: Use `...`, not $(...).
76553 2008-04-30  Jim Meyering  <meyering@redhat.com>
76555         add tests for vc-list-files
76556         * modules/vc-list-files-tests: New module.
76557         * tests/test-vc-list-files-cvs.sh: New file.
76558         * tests/test-vc-list-files-git.sh: New file.
76560         avoid a warning from gcc
76561         * lib/getndelim2.c (IF_LINT): Define.
76562         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
76564         vc-list-files: work properly with build-aux/cvsu, too
76565         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
76566         to all cvs-based clauses.
76568         vc-list-files: work properly in the CVS+awk case, too
76569         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
76571         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
76572         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
76573         take more than one file argument, so .  Add quotes, just in case $dir
76574         ever contains a shell meta-character.  Prompted by Soren Hansen in
76575         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
76577 2008-04-29  Eric Blake  <ebb9@byu.net>
76579         Optimize getndelim2 to use block operations when possible.
76580         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
76581         freadseek, and memchr2.
76582         * lib/getndelim2.c (getndelim2): Use them for block reads.
76584 2008-04-29  Bruno Haible  <bruno@clisp.org>
76586         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
76587         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76588         * modules/inet_ntop (Depends-on): Add extensions.
76589         * modules/inet_pton (Depends-on): Likewise.
76590         Reported by Simon Josefsson.
76592 2008-04-29  Jim Meyering  <meyering@redhat.com>
76594         When the is more than one match in a block, match all of them.
76595         * build-aux/useless-if-before-free: Iterate through each block
76596         until there are no more matches.
76598         Fix broken useless-if-before-free script.
76599         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76600         the expression to match cast of argument to free-like function.
76602 2008-04-29  Eric Blake  <ebb9@byu.net>
76604         Use new header.
76605         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76607 2008-04-29  Jim Meyering  <meyering@redhat.com>
76609         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76610         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76611         by gnulib to exist and to declare e.g., inet_ntop.
76612         Don't include "inet_ntop.h", now removed.
76614         * m4/arpa_inet_h.m4: Remove trailing blanks.
76616 2008-04-29  Eric Blake  <ebb9@byu.net>
76618         Silence valgrind on safe reads beyond potential array bounds.
76619         * lib/rawmemchr.valgrind: New file.
76620         * lib/strchrnul.valgrind: Likewise.
76621         * modules/rawmemchr (Files): Distribute new file.
76622         * modules/strchrnul (Files): Likewise.
76623         Suggested by Bruno Haible.
76625 2008-04-29  Bruno Haible  <bruno@clisp.org>
76627         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76628         (inet_ntop, inet_pton): Change portability warning's wording.
76629         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76630         Invoke gl_CHECK_NEXT_HEADERS.
76631         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76632         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76633         set ARPA_INET_H.
76634         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76635         * modules/arpa_inet (Description): No longer only for systems that
76636         lack it.
76637         (Depends-on): Add include_next.
76638         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76639         HAVE_ARPA_INET_H.
76641 2008-04-29  Jim Meyering  <meyering@redhat.com>
76643         * modules/mkdir (License): Re-license as LGPLv2+.
76645 2008-04-29  Bruno Haible  <bruno@clisp.org>
76647         * modules/rawmemchr (Maintainer): Set to Eric.
76648         * modules/strchrnul (Maintainer): Likewise.
76650 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76652         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76653         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76655         * modules/arpa_inet (arpa/inet.h): Use them.
76657 2008-04-28  Eric Blake  <ebb9@byu.net>
76659         Test getndelim2.
76660         * modules/getndelim2-tests: New file.
76661         * tests/test-getndelim2.c: Likewise.
76662         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76663         stream.
76664         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76666         * MODULES.html.sh: Document new module.
76668 2008-04-20  Bruno Haible  <bruno@clisp.org>
76670         * lib/c-stack.c (die): Use raise.
76671         * modules/c-stack (Depends-on): Add raise.
76673 2008-04-28  Bruno Haible  <bruno@clisp.org>
76675         Expect rpmatch to be declared.
76676         * lib/yesno.c (rpmatch): Remove declaration.
76678         Declare rpmatch.
76679         * lib/stdlib.in.h (rpmatch): New declaration.
76680         * lib/rpmatch.c: Include <stdlib.h> first.
76681         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76682         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76684         HAVE_RPMATCH.
76685         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76686         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76687         (Include): Set to <stdlib.h>.
76688         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76689         HAVE_RPMATCH.
76690         * NEWS: Document the change.
76692 2008-04-28  Bruno Haible  <bruno@clisp.org>
76694         Change rpmatch to use nl_langinfo when appropriate.
76695         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76696         (N_): New macro.
76697         (localized_pattern): New function/macro.
76698         (try): Remove match, nomatch arguments. Copy the pattern into safe
76699         memory before caching it.
76700         (rpmatch): Use localized_pattern. Add translator comments.
76701         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76702         Suggested by Eric Blake.
76703         * modules/rpmatch (Depends-on): Add stdbool.
76705 2008-04-28  Eric Blake  <ebb9@byu.net>
76707         Add rawmemchr module, matching glibc.
76708         * modules/string (Makefile.am): New indicator.
76709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76710         * lib/string.in.h (rawmemchr): Declare when appropriate.
76711         * modules/rawmemchr: New file.
76712         * m4/rawmemchr.m4: Likewise.
76713         * lib/rawmemchr.c: Likewise.
76714         * modules/rawmemchr-tests: Likewise.
76715         * tests/test-rawmemchr.c: Likewise.
76716         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76717         module.
76718         * modules/strchrnul (Depends-on): Add rawmemchr.
76719         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76721         Whitespace cleanup.
76722         * tests/test-strchrnul.c: Reindent.
76723         * lib/strchrnul.c: Likewise.
76725         Optimize and test strchrnul.
76726         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76727         * modules/strchrnul-tests: New file.
76728         * tests/test-strchrnul.c: Likewise.
76730         Remove intprops dependency.
76731         * modules/memchr (Depends-on): Remove intprops.
76732         * modules/memrchr (Depends-on): Likewise.
76733         * modules/memchr2 (Depends-on): Likewise.
76734         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76735         * lib/memrchr.c (__memrchr): Likewise.
76736         * lib/memrchr2.c (memchr2): Likewise.
76737         Reported by Simon Josefsson.
76739 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76741         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76742         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76744 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76746         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
76748         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
76750         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
76752         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
76753         declarations.
76754         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
76756         * m4/inet_pton.m4: Don't check for header files.
76758         * m4/inet_ntop.m4: Don't check for header files.
76760 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76762         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
76763         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
76764         trigger for cygwin).
76765         Reported by Bruno Haible  <bruno@clisp.org>.
76767 2008-04-28  Bruno Haible  <bruno@clisp.org>
76769         * doc/posix-functions/strdup.texi: Mention mingw problem.
76771 2008-04-27  Bruno Haible  <bruno@clisp.org>
76773         * modules/stat-time-tests (Depends-on): Add sleep.
76774         * tests/test-stat-time.c (force_unlink): New function.
76775         (cleanup): Use it.
76776         (test_mtime): Remove the ctime related tests.
76777         (test_ctime): New function, containing the ctime related tests.
76778         (main): Call test_ctime, except on native Windows platforms.
76780 2008-04-27  Bruno Haible  <bruno@clisp.org>
76782         * lib/rpmatch.c (rpmatch): Add some comments.
76783         Reported by James Youngman <jay@gnu.org>.
76785 2008-04-27  Bruno Haible  <bruno@clisp.org>
76787         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
76788         quiet NaNs.
76790 2008-04-27  Bruno Haible  <bruno@clisp.org>
76792         Make test-yesno.sh work on mingw.
76793         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
76794         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
76795         (main): Set stdin to binary mode.
76796         * modules/yesno-tests (Depends-on): Add binary-io.
76798 2008-04-27  Bruno Haible  <bruno@clisp.org>
76800         Fix 'isfinite' on x86, x86_64, ia64 platforms.
76801         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
76802         argument that lie outside the IEEE 854 domain.
76803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
76804         (gl_ISFINITE): Use it.
76805         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
76807 2008-04-27  Bruno Haible  <bruno@clisp.org>
76809         Allow local renaming in config.h.
76810         * lib/memrchr.c (memrchr): Don't undefine outside libc.
76812 2008-04-27  Bruno Haible  <bruno@clisp.org>
76814         * lib/memchr.c (__memchr): Change type of 'i'.
76815         * lib/memchr2.c (memchr2): Likewise.
76817 2008-04-26  Eric Blake  <ebb9@byu.net>
76818         and Bruno Haible  <bruno@clisp.org>
76820         Optimize and test memrchr.
76821         * modules/memrchr (Depends-on): Add intprops.
76822         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
76823         * modules/memrchr-tests: New file.
76824         * tests/test-memrchr.c: New file.
76826 2008-04-26  Bruno Haible  <bruno@clisp.org>
76828         Add tentative support for DragonFly BSD.
76829         * lib/stdio-impl.h: Add macros for DragonFly BSD.
76830         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
76831         fp.
76832         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76833         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
76834         * lib/fpurge.c (fpurge): Likewise.
76835         * lib/freadable.c (freaadable): Likewise.
76836         * lib/freadahead.c (freadahead): Likewise.
76837         * lib/freading.c (freading): Likewise.
76838         * lib/freadptr.c (freadptr): Likewise.
76839         * lib/freadseek.c (freadptrinc): Likewise.
76840         * lib/fseeko.c (fseeko): Likewise.
76841         * lib/fseterr.c (fseterr): Likewise.
76842         * lib/fwritable.c (fwritable): Likewise.
76843         * lib/fwriting.c (fwriting): Likewise.
76845 2008-04-26  Bruno Haible  <bruno@clisp.org>
76847         * lib/stdio-impl.h: New file.
76848         * lib/fbufmode.c: Include stdio-impl.h.
76849         (fbufmode): Use fp_, remove redundant #defines.
76850         * lib/fflush.c: Include stdio-impl.h.
76851         (clear_ungetc_buffer): Remove redundant #defines.
76852         * lib/fpurge.c: Include stdio-impl.h.
76853         (fpurge): Remove redundant #defines.
76854         * lib/freadable.c: Include stdio-impl.h.
76855         (freadable): Remove redundant #defines.
76856         * lib/freadahead.c: Include stdio-impl.h.
76857         (freadahead): Remove redundant #defines.
76858         * lib/freading.c: Include stdio-impl.h.
76859         (freading): Remove redundant #defines.
76860         * lib/freadptr.c: Include stdio-impl.h.
76861         (freadptr): Remove redundant #defines.
76862         * lib/freadseek.c: Include stdio-impl.h.
76863         (freadptrinc): Remove redundant #defines.
76864         * lib/fseeko.c: Include stdio-impl.h.
76865         (rpl_fseeko): Remove redundant #defines.
76866         * lib/fseterr.c: Include stdio-impl.h.
76867         (fseterr): Remove redundant #defines.
76868         * lib/fwritable.c: Include stdio-impl.h.
76869         (fwritable: Remove redundant #defines.
76870         * lib/fwriting.c: Include stdio-impl.h.
76871         (fwriting): Remove redundant #defines.
76872         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76873         * modules/fflush (Files): Likewise.
76874         * modules/fpurge (Files): Likewise.
76875         * modules/freadable (Files): Likewise.
76876         * modules/freadahead (Files): Likewise.
76877         * modules/freading (Files): Likewise.
76878         * modules/freadptr (Files): Likewise.
76879         * modules/freadseek (Files): Likewise.
76880         * modules/fseeko (Files): Likewise.
76881         * modules/fseterr (Files): Likewise.
76882         * modules/fwritable (Files): Likewise.
76883         * modules/fwriting (Files): Likewise.
76885 2008-04-26  Bruno Haible  <bruno@clisp.org>
76887         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76888         restore_seek_optimization, update_fpos_cache): New functions, extracted
76889         from rpl_fflush.
76890         (rpl_fflush): Use them.
76891         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76892         (gl_REPLACE_FFLUSH): Use it.
76894 2008-04-26  Bruno Haible  <bruno@clisp.org>
76896         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76897         on Solaris.
76898         * tests/test-xstrtoimax.sh: Likewise.
76899         * tests/test-xstrtoumax.sh: Likewise.
76900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76902 2008-04-26  Bruno Haible  <bruno@clisp.org>
76904         * modules/memchr-tests: New file.
76905         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76907 2008-04-26  Eric Blake  <ebb9@byu.net>
76908             Bruno Haible  <bruno@clisp.org>
76910         * lib/memchr.c: Include intprops.h.
76911         (__memchr): Optimize parallel detection of matching bytes. Rename local
76912         variables. Add explanatory comments.
76914 2008-04-26  Bruno Haible  <bruno@clisp.org>
76916         Fix module 'memchr', broken since 2000-10-28.
76917         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
76919 2008-04-26  Bruno Haible  <bruno@clisp.org>
76921         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
76922         comments.
76924 2008-04-25  Eric Blake  <ebb9@byu.net>
76926         Use native fstatat on cygwin 1.7.0.
76927         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
76928         first.
76930 2008-04-23  Eric Blake  <ebb9@byu.net>
76932         Improve memchr2 performance.
76933         * lib/memchr2.c (memchr2): Further optimize parallel detection of
76934         NUL bytes.
76935         * modules/memchr2 (Depends-on): Use intprops.h.
76937 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76939         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
76940         an inline function instead of a CPP macro.  Patch by Ben Pfaff
76941         <blp@cs.stanford.edu>.
76943 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76945         * lib/arpa_inet.in.h: New file.
76947         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
76948         (Makefile.am): Sed in substitute header file.
76950         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
76951         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
76953         * modules/inet_ntop (configure.ac): Use
76954         gl_ARPA_INET_MODULE_INDICATOR.
76956         * modules/inet_pton (configure.ac): Use
76957         gl_ARPA_INET_MODULE_INDICATOR.
76959 2008-04-22  Jim Meyering  <meyering@redhat.com>
76961         * modules/verify (License): Re-license as LGPLv2+.
76963 2008-04-22  Simon Josefsson  <simon@josefsson.org>
76965         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
76966         parameter to void* as per POSIX standard (MinGW uses char*).
76968 2008-04-21  Bruno Haible  <bruno@clisp.org>
76970         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76971         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76972         Define to replacements if REPLACE_ISWCNTRL is 1.
76973         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
76974         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
76975         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
76976         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
76977         what it fixes.
76978         * doc/posix-functions/iswalpha.texi: Likewise.
76979         * doc/posix-functions/iswblank.texi: Likewise.
76980         * doc/posix-functions/iswcntrl.texi: Likewise.
76981         * doc/posix-functions/iswdigit.texi: Likewise.
76982         * doc/posix-functions/iswgraph.texi: Likewise.
76983         * doc/posix-functions/iswlower.texi: Likewise.
76984         * doc/posix-functions/iswprint.texi: Likewise.
76985         * doc/posix-functions/iswpunct.texi: Likewise.
76986         * doc/posix-functions/iswspace.texi: Likewise.
76987         * doc/posix-functions/iswupper.texi: Likewise.
76988         * doc/posix-functions/iswxdigit.texi: Likewise.
76989         Reported by Alain Guibert.
76991 2008-04-21  Bruno Haible  <bruno@clisp.org>
76993         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
76994         Patch by Alain Guibert.
76996 2008-04-21  Bruno Haible  <bruno@clisp.org>
76998         Fix test failures on mingw.
76999         * tests/test-xstrtol.c (print_no_progname): New function.
77000         (main): Install it in error_print_progname hook.
77001         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
77002         * tests/test-xstrtoimax.sh: Likewise.
77003         * tests/test-xstrtoumax.sh: Likewise.
77005 2008-04-21  Bruno Haible  <bruno@clisp.org>
77007         Fix test failure on mingw.
77008         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
77010 2008-04-21  Bruno Haible  <bruno@clisp.org>
77012         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
77013         Actually assign a value.
77015 2008-04-20  Bruno Haible  <bruno@clisp.org>
77017         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
77018         take 2.
77019         * lib/canonicalize.c (canonicalize_file_name): Elide if the
77020         'canonicalize-lgpl' module is also used.
77021         * lib/canonicalize-lgpl.c: Undo last change.
77022         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
77024 2008-04-20  Bruno Haible  <bruno@clisp.org>
77026         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
77027         config.h. Provide _mkdir based fallback for mingw.
77028         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
77029         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
77030         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
77031         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
77032         rather than defining mkdir in config.h.
77033         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
77034         (gl_SYS_STAT_H_DEFAULTS): New macro.
77035         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
77036         HAVE_IO_H any more.
77037         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
77038         HAVE_DECL_MKDIR and HAVE_IO_H.
77040 2008-04-20  Bruno Haible  <bruno@clisp.org>
77042         * lib/isapipe.c: Port to native Windows platforms.
77044 2008-04-20  Bruno Haible  <bruno@clisp.org>
77046         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
77048 2008-04-21  Eric Blake  <ebb9@byu.net>
77050         Work around preprocessors that don't handle UINTMAX_MAX.
77051         * lib/memchr2.c (memchr2): Avoid embedded #if.
77052         Reported by Alain Guibert, fix suggested by Bruno Haible.
77054 2008-04-21  Simon Josefsson  <simon@josefsson.org>
77056         * doc/posix-functions/strftime.texi (strftime): Explain better
77057         Windows incompatibility.  Suggested by Micah Cowan
77058         <micah@cowan.name>.
77060 2008-04-20  Bruno Haible  <bruno@clisp.org>
77062         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
77063         unistr/u8-mblen.
77065 2008-04-20  Bruno Haible  <bruno@clisp.org>
77067         Fix test failure on platforms with non-GNU iconv.
77068         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
77069         (U_TO_U8): Use it, rather than u16_to_u8.
77070         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
77071         units at the end of the input string.
77072         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
77074 2008-04-20  Bruno Haible  <bruno@clisp.org>
77076         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
77077         when the resulting length is 0.
77078         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
77080 2008-04-20  Bruno Haible  <bruno@clisp.org>
77082         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
77083         works.
77084         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
77086 2008-04-20  Bruno Haible  <bruno@clisp.org>
77088         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
77089         * modules/tsearch-tests (configure.ac): Test for initstate function.
77091 2008-04-20  Bruno Haible  <bruno@clisp.org>
77093         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
77094         for nlink_t if missing.
77095         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
77097 2008-04-19  Bruno Haible  <bruno@clisp.org>
77099         Work around snprintf bug on Linux libc5.
77100         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
77101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
77102         gl_SNPRINTF_SIZE1.
77103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77104         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
77105         that test failed.
77106         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
77107         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
77108         * modules/snprintf (Files): Add m4/printf.m4.
77109         * modules/vsnprintf (Files): Likewise.
77110         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
77111         * doc/posix-functions/vsnprintf.texi: Likewise.
77113 2008-04-19  Bruno Haible  <bruno@clisp.org>
77115         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
77116         from 0.0058 to less than 10^-7.
77118 2008-04-19  Bruno Haible  <bruno@clisp.org>
77120         Fix rounding when a precision is given.
77121         * lib/vasnprintf.c (is_borderline): New function.
77122         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
77123         9...9x.
77124         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
77125         %e, %g.
77126         * tests/test-vasprintf-posix.c (test_function): Likewise.
77127         * tests/test-snprintf-posix.h (test_function): Likewise.
77128         * tests/test-sprintf-posix.h (test_function): Likewise.
77129         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
77130         * tests/test-printf-posix.h (test_function): Likewise.
77131         * tests/test-printf-posix.output: Update.
77132         Reported by John Darrington <john@darrington.wattle.id.au> via
77133         Ben Pfaff <blp@cs.stanford.edu>.
77135 2008-04-18  Simon Josefsson  <simon@josefsson.org>
77137         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
77138         Suggested by Bruno Haible <bruno@clisp.org>.
77140 2008-04-17  Bruno Haible  <bruno@clisp.org>
77142         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
77143         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
77144         implementation.
77145         Patch by Bruce Merry <bmerry@gmail.com>.
77147 2008-04-17  Simon Josefsson  <simon@josefsson.org>
77149         * doc/posix-functions/strftime.texi (strftime): Mention that %e
77150         doesn't work under Windows.
77152 2008-04-16  Bruno Haible  <bruno@clisp.org>
77154         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
77155         New macros.
77156         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
77157         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
77158         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
77159         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
77160         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
77161         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
77162         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
77163         macros.
77164         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
77165         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
77166         Northern Sotho, Uighur.
77168 2008-04-16  Bruno Haible  <bruno@clisp.org>
77170         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
77171         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
77172         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
77173         Reported by Daniel Bergström <daniel@octocode.com>.
77175 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
77176             Bruno Haible  <bruno@clisp.org>
77178         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
77179         function.
77180         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
77181         New functions, mostly extracted from gl_locale_name_default.
77182         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
77184 2008-04-16  Eric Blake  <ebb9@byu.net>
77186         Adjust strtod detection to catch glibc 2.7 bug.
77187         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
77188         Reported by John Gatewood Ham.
77190 2008-04-16  Bruno Haible  <bruno@clisp.org>
77192         Add tentative support for Linux libc5.
77193         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
77194         * lib/fpurge.c (fpurge): Likewise.
77195         * lib/freadable.c (freadable): Likewise.
77196         * lib/freadahead.c (freadahead): Likewise.
77197         * lib/freading.c (freading): Likewise.
77198         * lib/freadptr.c (freadptr): Likewise.
77199         * lib/freadseek.c (freadptrinc): Likewise.
77200         * lib/fseeko.c (rpl_fseeko): Likewise.
77201         * lib/fseterr.c (fseterr): Likewise.
77202         * lib/fwritable.c (fwritable): Likewise.
77203         * lib/fwriting.c (fwriting): Likewise.
77204         Reported by Alain Guibert <alguibert+bts@free.fr>.
77206 2008-04-15  Bruno Haible  <bruno@clisp.org>
77208         * modules/mathl (configure.ac): Define module indicator.
77210 2008-04-15  Bruno Haible  <bruno@clisp.org>
77212         * lib/logl.c (logl): Remove unused variables.
77214 2008-04-15  Bruno Haible  <bruno@clisp.org>
77216         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
77217         fails.
77219 2008-04-15  Bruno Haible  <bruno@clisp.org>
77221         * lib/trim.c (trim2): Fix argument of isspace() macro.
77223 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
77225         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
77226         to 0.
77227         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
77229 2008-04-14  Bruno Haible  <bruno@clisp.org>
77231         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
77232         AC_LANG_PROGRAM argument.
77233         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
77234         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
77235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77236         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
77237         * m4/math_h.m4 (gl_MATH_H): Likewise.
77238         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
77239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77240         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
77241         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
77242         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77243         * m4/regex.m4 (gl_REGEX): Likewise.
77244         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
77245         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
77246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77247         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
77248         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
77249         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
77251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
77253 2008-04-14  Jim Meyering  <meyering@redhat.com>
77255         test-strtod: fix typos: s/abs/fabs/
77256         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
77258 2008-04-13  Bruno Haible  <bruno@clisp.org>
77260         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
77261         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
77262         module is also used and while not building the reloc-wrapper.
77264 2008-04-13  Bruno Haible  <bruno@clisp.org>
77266         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
77268 2008-04-13  Bruno Haible  <bruno@clisp.org>
77270         Fix AIX compilation failure introduced on 2008-04-02.
77271         * tests/test-frexp.c (exp): Undefine before redefining.
77272         * tests/test-frexpl.c (exp): Likewise.
77274 2008-04-13  Bruno Haible  <bruno@clisp.org>
77276         Work around a HP-UX stdio bug.
77277         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
77278         * tests/test-ftello.c (main): Likewise.
77279         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
77280         * doc/posix-functions/ftello.texi: Likewise.
77282 2008-04-13  Bruno Haible  <bruno@clisp.org>
77284         Make test-signbit pass on HP-UX/hppa.
77285         * tests/test-signbit.c (minus_zerol): New variable.
77286         (test_signbitl): Use it.
77288 2008-04-13  Bruno Haible  <bruno@clisp.org>
77290         Make truncl work on OSF/1 4.0.
77291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
77292         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77293         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
77295         HAVE_DECL_TRUNCL.
77296         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
77297         HAVE_DECL_TRUNCL.
77298         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
77300 2008-04-13  Bruno Haible  <bruno@clisp.org>
77302         * lib/unictype.h: Remove trailing comma from enumeration definitions.
77304 2008-04-13  Bruno Haible  <bruno@clisp.org>
77306         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
77307         expression, so as to avoid HP-UX 11 cc compiler bug.
77309 2008-04-13  Bruno Haible  <bruno@clisp.org>
77311         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
77313 2008-04-13  Bruno Haible  <bruno@clisp.org>
77315         * lib/git-merge-changelog.c: Remove empty declaration outside of
77316         functions.
77318 2008-04-13  Bruno Haible  <bruno@clisp.org>
77320         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
77322 2008-04-13  Bruno Haible  <bruno@clisp.org>
77324         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
77325         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
77326         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
77327         also if it exists but lacks definitions of the SHUT_* macros.
77328         * modules/sys_socket (Description): Update.
77329         Reported by Elbert Pol <e.pol@chello.nl>.
77331 2008-04-13  Bruno Haible  <bruno@clisp.org>
77333         * lib/localcharset.c (OS2): Don't redefine if already defined.
77334         Reported by Elbert Pol <e.pol@chello.nl>.
77336 2008-04-13  Bruno Haible  <bruno@clisp.org>
77338         * lib/binary-io.h [__EMX__]: Include <io.h>.
77339         Reported by Elbert Pol <e.pol@chello.nl>.
77341 2008-04-12  Bruno Haible  <bruno@clisp.org>
77343         * lib/fpucw.h: Enable the definitions also for x86_64.
77344         Needed for NetBSD/x86_64.
77345         Reported by Thomas Klausner <tk@giga.or.at>.
77347 2008-04-12  Bruno Haible  <bruno@clisp.org>
77349         * tests/test-strtod.c: Include isnand.h.
77350         (main): Use isnand instead of isnan.
77351         Reported by Jim Meyering.
77353 2008-04-12  Bruno Haible  <bruno@clisp.org>
77355         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
77356         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77358 2008-04-12  Jim Meyering  <meyering@redhat.com>
77360         * m4/math_h.m4 (gl_MATH_H): Fix typos.
77362 2008-04-12  Bruno Haible  <bruno@clisp.org>
77364         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
77365         Reported by Elbert Pol <e.pol@chello.nl>.
77367 2008-04-12  Eric Blake  <ebb9@byu.net>
77369         Work around Solaris 10 math.h bug.
77370         * m4/math_h.m4 (gl_MATH_H): Check for bug.
77371         (gl_MATH_H_DEFAULTS): Set up default.
77372         * modules/math (Makefile.am): Replace new indicators.
77373         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
77374         * tests/test-math.c (main): Test this.
77375         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
77376         * doc/posix-headers/math.texi (math.h): Mention bug.
77377         Reported by Nelson H. F. Beebe and Jim Meyering.
77379 2008-04-11  Bruno Haible  <bruno@clisp.org>
77381         Adapt to future versions of Apple GCC.
77382         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
77383         Reported by Peter O'Gorman <peter@pogma.com>.
77385 2008-04-11  Bruno Haible  <bruno@clisp.org>
77387         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
77389 2008-04-11  Bruno Haible  <bruno@clisp.org>
77391         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
77393         * modules/getaddrinfo-tests (Makefile.am): Define
77394         test_getaddrinfo_LDADD.
77396 2008-04-11  Bruno Haible  <bruno@clisp.org>
77398         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
77399         (init): Fix syntax error.
77400         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
77401         is declared.
77403 2008-04-11  Bruno Haible  <bruno@clisp.org>
77405         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
77406         * modules/glob (Depends-on): Add stdbool.
77408 2008-04-11  Bruno Haible  <bruno@clisp.org>
77410         * lib/trim.c: Include <string.h>.
77412 2008-04-11  Eric Blake  <ebb9@byu.net>
77414         Avoid compile failure on OS/2.
77415         * lib/regex_internal.h (internal_function): Disable optimization
77416         on OS/2 (__EMX__), where it caused compiler error.
77417         Reported by Elbert Pol.
77419 2008-04-11  Bruno Haible  <bruno@clisp.org>
77421         Flush the standard error stream before aborting. Needed on mingw.
77422         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
77423         * tests/test-array_list.c (ASSERT): Likewise.
77424         * tests/test-array_oset.c (ASSERT): Likewise.
77425         * tests/test-avltree_list.c (ASSERT): Likewise.
77426         * tests/test-avltree_oset.c (ASSERT): Likewise.
77427         * tests/test-avltreehash_list.c (ASSERT): Likewise.
77428         * tests/test-binary-io.c (ASSERT): Likewise.
77429         * tests/test-byteswap.c (ASSERT): Likewise.
77430         * tests/test-c-ctype.c (ASSERT): Likewise.
77431         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
77432         * tests/test-c-strcasestr.c (ASSERT): Likewise.
77433         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
77434         * tests/test-c-strstr.c (ASSERT): Likewise.
77435         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
77436         * tests/test-canonicalize.c (ASSERT): Likewise.
77437         * tests/test-carray_list.c (ASSERT): Likewise.
77438         * tests/test-ceilf1.c (ASSERT): Likewise.
77439         * tests/test-ceilf2.c (ASSERT): Likewise.
77440         * tests/test-ceill.c (ASSERT): Likewise.
77441         * tests/test-count-one-bits.c (ASSERT): Likewise.
77442         * tests/test-fbufmode.c (ASSERT): Likewise.
77443         * tests/test-fflush2.c (ASSERT): Likewise.
77444         * tests/test-floorf1.c (ASSERT): Likewise.
77445         * tests/test-floorf2.c (ASSERT): Likewise.
77446         * tests/test-floorl.c (ASSERT): Likewise.
77447         * tests/test-fopen.c (ASSERT): Likewise.
77448         * tests/test-fpending.c (ASSERT): Likewise.
77449         * tests/test-fprintf-posix.c (ASSERT): Likewise.
77450         * tests/test-fpurge.c (ASSERT): Likewise.
77451         * tests/test-freadable.c (ASSERT): Likewise.
77452         * tests/test-freadahead.c (ASSERT): Likewise.
77453         * tests/test-freading.c (ASSERT): Likewise.
77454         * tests/test-freadptr.c (ASSERT): Likewise.
77455         * tests/test-freadptr2.c (ASSERT): Likewise.
77456         * tests/test-freadseek.c (ASSERT): Likewise.
77457         * tests/test-freopen.c (ASSERT): Likewise.
77458         * tests/test-frexp.c (ASSERT): Likewise.
77459         * tests/test-frexpl.c (ASSERT): Likewise.
77460         * tests/test-fseek.c (ASSERT): Likewise.
77461         * tests/test-fseeko.c (ASSERT): Likewise.
77462         * tests/test-fstrcmp.c (ASSERT): Likewise.
77463         * tests/test-ftell.c (ASSERT): Likewise.
77464         * tests/test-ftello.c (ASSERT): Likewise.
77465         * tests/test-func.c (ASSERT): Likewise.
77466         * tests/test-fwritable.c (ASSERT): Likewise.
77467         * tests/test-fwriting.c (ASSERT): Likewise.
77468         * tests/test-getdelim.c (ASSERT): Likewise.
77469         * tests/test-getline.c (ASSERT): Likewise.
77470         * tests/test-i-ring.c (ASSERT): Likewise.
77471         * tests/test-iconv-utf.c (ASSERT): Likewise.
77472         * tests/test-iconv.c (ASSERT): Likewise.
77473         * tests/test-isfinite.c (ASSERT): Likewise.
77474         * tests/test-isnand.c (ASSERT): Likewise.
77475         * tests/test-isnanf.c (ASSERT): Likewise.
77476         * tests/test-isnanl.h (ASSERT): Likewise.
77477         * tests/test-ldexpl.c (ASSERT): Likewise.
77478         * tests/test-linked_list.c (ASSERT): Likewise.
77479         * tests/test-linkedhash_list.c (ASSERT): Likewise.
77480         * tests/test-localename.c (ASSERT): Likewise.
77481         * tests/test-lseek.c (ASSERT): Likewise.
77482         * tests/test-mbscasecmp.c (ASSERT): Likewise.
77483         * tests/test-mbscasestr1.c (ASSERT): Likewise.
77484         * tests/test-mbscasestr2.c (ASSERT): Likewise.
77485         * tests/test-mbscasestr3.c (ASSERT): Likewise.
77486         * tests/test-mbscasestr4.c (ASSERT): Likewise.
77487         * tests/test-mbschr.c (ASSERT): Likewise.
77488         * tests/test-mbscspn.c (ASSERT): Likewise.
77489         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
77490         * tests/test-mbspbrk.c (ASSERT): Likewise.
77491         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
77492         * tests/test-mbsrchr.c (ASSERT): Likewise.
77493         * tests/test-mbsspn.c (ASSERT): Likewise.
77494         * tests/test-mbsstr1.c (ASSERT): Likewise.
77495         * tests/test-mbsstr2.c (ASSERT): Likewise.
77496         * tests/test-mbsstr3.c (ASSERT): Likewise.
77497         * tests/test-memchr2.c (ASSERT): Likewise.
77498         * tests/test-memmem.c (ASSERT): Likewise.
77499         * tests/test-open.c (ASSERT): Likewise.
77500         * tests/test-printf-frexp.c (ASSERT): Likewise.
77501         * tests/test-printf-frexpl.c (ASSERT): Likewise.
77502         * tests/test-printf-posix.c (ASSERT): Likewise.
77503         * tests/test-quotearg.c (ASSERT): Likewise.
77504         * tests/test-rbtree_list.c (ASSERT): Likewise.
77505         * tests/test-rbtree_oset.c (ASSERT): Likewise.
77506         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
77507         * tests/test-round1.c (ASSERT): Likewise.
77508         * tests/test-roundf1.c (ASSERT): Likewise.
77509         * tests/test-roundl.c (ASSERT): Likewise.
77510         * tests/test-signbit.c (ASSERT): Likewise.
77511         * tests/test-sleep.c (ASSERT): Likewise.
77512         * tests/test-snprintf-posix.c (ASSERT): Likewise.
77513         * tests/test-snprintf.c (ASSERT): Likewise.
77514         * tests/test-sprintf-posix.c (ASSERT): Likewise.
77515         * tests/test-stat-time.c (ASSERT): Likewise.
77516         * tests/test-strcasestr.c (ASSERT): Likewise.
77517         * tests/test-strerror.c (ASSERT): Likewise.
77518         * tests/test-striconv.c (ASSERT): Likewise.
77519         * tests/test-striconveh.c (ASSERT): Likewise.
77520         * tests/test-striconveha.c (ASSERT): Likewise.
77521         * tests/test-strsignal.c (ASSERT): Likewise.
77522         * tests/test-strstr.c (ASSERT): Likewise.
77523         * tests/test-strtod.c (ASSERT): Likewise.
77524         * tests/test-trunc1.c (ASSERT): Likewise.
77525         * tests/test-trunc2.c (ASSERT): Likewise.
77526         * tests/test-truncf1.c (ASSERT): Likewise.
77527         * tests/test-truncf2.c (ASSERT): Likewise.
77528         * tests/test-truncl.c (ASSERT): Likewise.
77529         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
77530         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
77531         * tests/test-vasnprintf.c (ASSERT): Likewise.
77532         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
77533         * tests/test-vasprintf.c (ASSERT): Likewise.
77534         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
77535         * tests/test-vprintf-posix.c (ASSERT): Likewise.
77536         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
77537         * tests/test-vsnprintf.c (ASSERT): Likewise.
77538         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
77539         * tests/test-wcwidth.c (ASSERT): Likewise.
77540         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
77541         * tests/test-xprintf-posix.c (ASSERT): Likewise.
77542         * tests/test-xvasprintf.c (ASSERT): Likewise.
77543         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
77544         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
77545         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
77546         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
77547         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
77548         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
77549         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
77550         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
77551         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
77552         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
77553         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
77554         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
77555         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
77556         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
77557         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
77558         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
77559         * tests/unictype/test-block_list.c (ASSERT): Likewise.
77560         * tests/unictype/test-block_of.c (ASSERT): Likewise.
77561         * tests/unictype/test-block_test.c (ASSERT): Likewise.
77562         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
77563         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
77564         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
77565         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
77566         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
77567         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
77568         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
77569         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
77570         * tests/unictype/test-combining.c (ASSERT): Likewise.
77571         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
77572         * tests/unictype/test-digit.c (ASSERT): Likewise.
77573         * tests/unictype/test-mirror.c (ASSERT): Likewise.
77574         * tests/unictype/test-numeric.c (ASSERT): Likewise.
77575         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
77576         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
77577         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
77578         * tests/unictype/test-scripts.c (ASSERT): Likewise.
77579         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
77580         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
77581         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
77582         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
77583         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
77584         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
77585         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
77586         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
77587         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
77588         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
77589         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
77590         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
77591         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
77592         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
77593         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77594         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77595         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77596         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77597         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77598         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77599         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77600         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77601         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77602         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77603         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77604         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77605         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77606         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77607         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77608         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77609         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77610         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77611         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77612         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77613         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77614         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77615         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77616         Reported by Eric Blake.
77618 2008-04-11  Bruno Haible  <bruno@clisp.org>
77620         * lib/wchar.in.h: Tweak comment.
77622 2008-04-11  Bruno Haible  <bruno@clisp.org>
77624         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77625         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77626         gl_COMMON.
77627         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77629 2008-04-11  Bruno Haible  <bruno@clisp.org>
77631         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77633 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77635         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77636         of attempting to use non-existing /dev/*random.  Based on patch
77637         from Adam Strzelecki <ono@java.pl> in
77638         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77640 2008-04-08  Bruno Haible  <bruno@clisp.org>
77642         Add tentative support for emx+gcc.
77643         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77644         * lib/fpurge.c (fpurge): Likewise.
77645         * lib/freadable.c (freadable): Likewise.
77646         * lib/freadahead.c (freadahead): Likewise.
77647         * lib/freading.c (freading): Likewise.
77648         * lib/freadptr.c (freadptr): Likewise.
77649         * lib/freadseek.c (freadptrinc): Likewise.
77650         * lib/fseeko.c (rpl_fseeko): Likewise.
77651         * lib/fseterr.c (fseterr): Likewise.
77652         * lib/fwritable.c (fwritable): Likewise.
77653         * lib/fwriting.c (fwriting): Likewise.
77654         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77656 2008-04-09  Eric Blake  <ebb9@byu.net>
77658         Avoid some autoconf warnings.
77659         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77660         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77661         * m4/afs.m4 (gl_AFS): Likewise.
77662         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77663         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77664         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77665         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77666         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77667         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77668         (AC_CHECK_DECLS_ONCE): Likewise.
77669         Rename file...
77670         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77671         gnulib-tool requires autoconf 2.59 or better.
77672         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77674 2008-04-08  Eric Blake  <ebb9@byu.net>
77676         Use 'git describe --match' if present (added in git 1.5.5).
77677         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77678         if possible.
77680 2008-04-08  Bruno Haible  <bruno@clisp.org>
77682         Add tentative support for OpenServer.
77683         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77684         _ptr, _cnt.
77685         * lib/fpurge.c (fpurge): Likewise.
77686         * lib/freadable.c (freadable): Likewise.
77687         * lib/freadahead.c (freadahead): Likewise.
77688         * lib/freading.c (freading): Likewise.
77689         * lib/freadptr.c (freadptr): Likewise.
77690         * lib/freadseek.c (freadptrinc): Likewise.
77691         * lib/fseeko.c (rpl_fseeko): Likewise.
77692         * lib/fseterr.c (fseterr): Likewise.
77693         * lib/fwritable.c (fwritable): Likewise.
77694         * lib/fwriting.c (fwriting): Likewise.
77695         Reported by Roger Cornelius <rac@tenzing.org> and
77696         Brian K. White <brian@aljex.com>.
77698 2008-04-06  Jim Meyering  <meyering@redhat.com>
77700         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77702 2008-04-06  Bruno Haible  <bruno@clisp.org>
77704         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77705         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77706         * tests/test-printf-posix.sh: Likewise.
77707         * tests/test-vfprintf-posix.sh: Likewise.
77708         * tests/test-vprintf-posix.sh: Likewise.
77709         * tests/test-xprintf-posix.sh: Likewise.
77711 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77713         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77714         hide error from 'ls', needed on OS/2.
77715         Report by Elbert Pol <elbert.pol@gmail.com>.
77717 2008-04-04  Eric Blake  <ebb9@byu.net>
77719         Make test-fseeko.c failures meaningful.
77720         * tests/test-fseeko.c: Print line number on failure.
77721         * tests/test-fseek.c: Likewise.
77722         Reported by Nelson H. F. Beebe.
77724         Improve strtod bug detection check.
77725         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77726         required for Solaris 10.
77727         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77729 2008-04-04  Bruno Haible  <bruno@clisp.org>
77731         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77732         by m4/setenv.m4.
77734 2008-04-03  Eric Blake  <ebb9@byu.net>
77736         Ensure sane .version contents.
77737         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77738         version string.
77739         * build-aux/git-version-gen: Improve documentation.
77741         Make GNU make output nicer.
77742         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77743         MAKECMDGOALS to enforce message for all command line targets.  Set
77744         srcdir for use in maint.mk.
77746         Another maintainer tweak.
77747         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
77748         a target that regenerates version.
77750 2008-04-03  Jim Meyering  <meyering@redhat.com>
77752         vc-list-files: don't cause coreutils "make po-check" failure
77753         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
77755 2008-04-03  Eric Blake  <ebb9@byu.net>
77757         Allow VPATH usage of vc-list-files.
77758         * build-aux/vc-list-files (scriptversion): Add timestamp.
77759         (options): Add --help, --version, -C.
77760         (CVS): Support installed cvsu.
77762 2008-04-02  Bruno Haible  <bruno@clisp.org>
77764         Avoid some "statement with no effect" warnings from gcc.
77765         * tests/test-wctype.c (main): Explicitly ignore unused values.
77766         Reported by Jim Meyering.
77768 2008-04-02  Jim Meyering  <meyering@redhat.com>
77770         Avoid some warnings from "gcc -Wshadow".
77771         * tests/test-frexp.c (exp): Define to a different identifier.
77772         * tests/test-frexpl.c (exp): Likewise.
77774 2008-04-03  Jim Meyering  <meyering@redhat.com>
77776         bootstrap: remove dangling *.[ch] symlinks from lib
77777         * build-aux/bootstrap [dangling symlink removal]: Move find's
77778         -depth option to precede all others, to avoid a warning.
77779         Remove *.[ch] files too, and from "$source_base" (usually lib/).
77781 2008-04-02  Bruno Haible  <bruno@clisp.org>
77783         Avoid some warnings from "gcc -Wshadow".
77784         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
77785         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
77786         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
77787         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
77788         Reported by Jim Meyering.
77790 2008-04-01  Bruno Haible  <bruno@clisp.org>
77792         Fix test to work on IRIX 6.5 with cc.
77793         * tests/test-math.c (numeric_equal): New function.
77794         (main): Use it.
77796 2008-04-01  Bruno Haible  <bruno@clisp.org>
77798         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
77800 2008-04-01  Bruno Haible  <bruno@clisp.org>
77802         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
77803         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77804         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
77805         (Depends-on): Remove math.
77807         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
77808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77809         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
77810         (Depends-on): Remove math.
77812         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
77813         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77814         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
77815         (Depends-on): Remove math.
77816         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
77817         (Depends-on): Remove math.
77819         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
77820         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77821         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
77822         (Depends-on): Remove math.
77823         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
77824         (Depends-on): Remove math.
77826         * tests/test-round1.c: Include nan.h.
77827         (main): Use NaNd instead of NAN.
77828         * modules/round-tests (Files): Add tests/nan.h.
77830         * tests/test-trunc1.c: Include nan.h.
77831         (main): Use NaNd instead of NAN.
77832         * modules/trunc-tests (Files): Add tests/nan.h.
77834         * tests/test-roundf1.c: Include nan.h.
77835         (main): Use NaNf instead of NAN.
77836         * modules/roundf-tests (Files): Add tests/nan.h.
77838         * tests/test-truncf1.c: Include nan.h.
77839         (main): Use NaNf instead of NAN.
77840         * modules/truncf-tests (Files): Add tests/nan.h.
77842         * tests/test-ceilf1.c: Include nan.h.
77843         (main): Use NaNf instead of NAN.
77844         * modules/ceilf-tests (Files): Add tests/nan.h.
77846         * tests/test-floorf1.c: Include nan.h.
77847         (main): Use NaNf instead of NAN.
77848         * modules/floorf-tests (Files): Add tests/nan.h.
77850         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
77851         (main): Use NaNf instead of NAN.
77852         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
77854         * tests/test-isnand.c: Include nan.h instead of <math.h>.
77855         (main): Use NaNd instead of NAN.
77856         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77858         * tests/test-frexp.c: Include nan.h.
77859         (main): Use NaNd instead of NAN.
77860         * modules/frexp-tests (Files): Add tests/nan.h.
77862         * lib/isnan.c: Don't include <math.h>.
77863         (FUNC): Don't use NAN macro.
77864         * modules/isnand-nolibm (Depends-on): Remove math.
77865         * modules/isnanf-nolibm (Depends-on): Remove math.
77866         * modules/isnanl (Depends-on): Remove math.
77867         * modules/isnanl-nolibm (Depends-on): Remove math.
77869         * tests/nan.h: New file.
77871 2008-04-01  Eric Blake  <ebb9@byu.net>
77873         Fix typos.
77874         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77875         values to be the right type.
77877         For now, cater to gnulib strtod inaccuracies.
77878         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77879         fractional results.  While not as nice from a QoI perspective, it
77880         is a quicker patch than correctly implementing decimal to binary
77881         rounding.
77883 2008-03-31  Eric Blake  <ebb9@byu.net>
77885         Guarantee a definition of NAN.
77886         * lib/math.in.h (NAN): Define if missing.
77887         * tests/test-math.c (main): Test it.
77888         * doc/posix-headers/math.texi (math.h): Document this.
77889         * lib/isnan.c (rpl_isnand): Use it.
77890         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77891         * tests/test-floorf1.c (NaN): Likewise.
77892         * tests/test-frexp.c (NaN): Likewise.
77893         * tests/test-isnand.c (NaN): Likewise.
77894         * tests/test-isnanf.c (NaN): Likewise.
77895         * tests/test-round1.c (NaN): Likewise.
77896         * tests/test-roundf1.c (NaN): Likewise.
77897         * tests/test-snprintf-posix.h (NaN): Likewise.
77898         * tests/test-sprintf-posix.h (NaN): Likewise.
77899         * tests/test-trunc1.c (NaN): Likewise.
77900         * tests/test-truncf1.c (NaN): Likewise.
77901         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77902         * tests/test-vasprintf-posix.c (NaN): Likewise.
77903         * modules/isnand-nolibm (Depends-on): Add math.
77904         * modules/isnanf-nolibm (Depends-on): Likewise.
77905         * modules/isnanl (Depends-on): Likewise.
77906         * modules/isnanl-nolibm (Depends-on): Likewise.
77907         * modules/snprintf-posix-tests (Depends-on): Likewise.
77908         * modules/sprintf-posix-tests (Depends-on): Likewise.
77909         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77910         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77911         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77912         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77914 2008-03-31  Bruno Haible  <bruno@clisp.org>
77916         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77917         * doc/posix-functions/strtod.texi: Likewise.
77919 2008-03-31  Bruno Haible  <bruno@clisp.org>
77921         * tests/test-strtod.c (main): Don't use C99 syntax.
77923 2008-03-31  Bruno Haible  <bruno@clisp.org>
77925         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
77926         Reported by Eric Blake.
77928 2008-03-31  Jim Meyering  <meyering@redhat.com>
77930         Don't compare actual signbit return values.
77931         * tests/test-strtod.c (main): Rather, compare only their
77932         zero/non-zero nature.
77934 2008-03-31  Eric Blake  <ebb9@byu.net>
77936         More strtod documentation.
77937         * doc/posix-functions/strtod.texi (strtod): Interpret more test
77938         failures as distinct bugs.
77940 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
77942         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
77943         Problem reported by Erik Benada in
77944         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
77946 2008-03-30  Bruno Haible  <bruno@clisp.org>
77948         * tests/test-strtod.c: Add comments about which assertion fails on which
77949         platform.
77950         * doc/posix-functions/strtod.texi: Add info about many more platforms.
77952 2008-03-30  Eric Blake  <ebb9@byu.net>
77954         Test signbit behavior on zeros.
77955         * tests/test-signbit.c (test_signbitf): Add tests for zero.
77956         (test_signbitd, test_signbitl): Likewise.
77958         More strtod touchups.
77959         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
77960         sign of negative underflow, for now.  Use .5, not .1.
77961         * doc/posix-functions/strtod.texi (strtod): Mention these
77962         limitations.
77963         Reported by Jim Meyering.
77965 2008-03-30  Bruno Haible  <bruno@clisp.org>
77967         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
77968         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
77970 2008-03-30  Bruno Haible  <bruno@clisp.org>
77972         Avoid failure when attempting to return empty iconv results on some
77973         platforms.
77974         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
77975         allocation, don't report ENOMEM when the resulting string is empty.
77977 2008-03-30  Bruno Haible  <bruno@clisp.org>
77979         Fix buffer overrun.
77980         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
77981         Don't consider the width for tmp_length. Check count against tmp_length
77982         before doing the padding. Ensure enough allocation during padding.
77984 2008-03-30  Eric Blake  <ebb9@byu.net>
77986         strtod touchups.
77987         * lib/strtod.c (strtod): Avoid compiler warnings.
77988         Reported by Jim Meyering.
77990 2008-03-30  Bruno Haible  <bruno@clisp.org>
77992         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
77993         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
77994         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
77995         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
77996         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
77997         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
77998         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
77999         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
78001         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
78002         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
78003         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
78004         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
78005         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
78006         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
78007         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
78008         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
78010         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
78011         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
78012         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
78013         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
78014         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
78015         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
78016         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
78017         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
78019         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
78020         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
78022         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
78023         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
78025         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
78026         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
78028         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
78029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
78030         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
78032         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
78033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
78034         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
78036         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
78037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
78038         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
78040         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
78041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
78042         * modules/vasprintf (Depends-on): Add EOVERFLOW.
78044         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
78045         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
78046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
78047         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
78048         (Depends-on): Add EOVERFLOW.
78049         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
78050         (Depends-on): Add EOVERFLOW.
78051         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78052         (Depends-on): Add EOVERFLOW.
78053         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78054         (Depends-on): Add EOVERFLOW.
78055         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78056         (Depends-on): Add EOVERFLOW.
78057         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78058         (Depends-on): Add EOVERFLOW.
78059         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78060         (Depends-on): Add EOVERFLOW.
78061         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78062         (Depends-on): Add EOVERFLOW.
78064         * lib/sprintf.c (EOVERFLOW): Remove fallback.
78065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
78066         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
78068         * lib/snprintf.c (EOVERFLOW): Remove fallback.
78069         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
78070         * modules/snprintf (Depends-on): Add EOVERFLOW.
78072         * lib/poll.c (EOVERFLOW): Remove fallback.
78073         * modules/poll (Depends-on): Add EOVERFLOW.
78075         * lib/getugroups.c (EOVERFLOW): Remove fallback.
78076         * modules/getugroups (Depends-on): Add EOVERFLOW.
78078         * lib/getdelim.c (EOVERFLOW): Remove fallback.
78079         * modules/getdelim (Depends-on): Add EOVERFLOW.
78081         * lib/ftell.c (EOVERFLOW): Remove fallback.
78082         * modules/ftell (Depends-on): Add EOVERFLOW.
78084         * lib/fprintf.c (EOVERFLOW): Remove fallback.
78085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
78086         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
78088         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
78090         * modules/EOVERFLOW-tests: New file.
78091         * tests/test-EOVERFLOW.c: New file.
78093         * modules/EOVERFLOW: New file.
78094         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
78096 2008-03-30  Bruno Haible  <bruno@clisp.org>
78098         Fix bug introduced on 2007-06-10.
78099         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
78100         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
78102 2008-03-30  Bruno Haible  <bruno@clisp.org>
78104         Improve freadseek's efficiency after ungetc.
78105         * lib/freadseek.c: Include freadahead.h.
78106         (freadptrinc): New function, extracted from freadseek.
78107         (freadseek): Use it in a loop. Use freadahead to determine the number
78108         of loop iterations.
78109         * modules/freadseek (Depends-on): Add freadahead.
78110         (configure.ac): Require AC_C_INLINE.
78112 2008-03-30  Bruno Haible  <bruno@clisp.org>
78114         * lib/freadseek.c (freadseek): Don't ignore the return value of
78115         freadptr.
78117 2008-03-29  Eric Blake  <ebb9@byu.net>
78119         Add hex float support.
78120         * modules/strtod (Depends-on): Add c-ctype.
78121         (Link): Mention POW_LIB.
78122         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
78123         whitespace between 'e' and exponent.
78124         * tests/test-strtod.c (main): Enable hex float tests.
78125         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
78126         now provides.
78128         Document various strtod bugs, with some fixes.
78129         * doc/posix-functions/strtod.texi (strtod): Document bugs with
78130         "-0x", "inf", "nan", and hex constants.
78131         * doc/posix-functions/atof.texi (atof): Likewise.
78132         * modules/stdlib (Makefile.am): Support strtod.
78133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
78134         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
78135         detect additional strtod bugs.
78136         * lib/stdlib.in.h (rpl_strtod): Add declarations.
78137         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
78138         bool where appropriate.  Parse 'inf' and 'nan'.
78139         * tests/test-strtod.c: New file.
78140         * modules/strtod (Depends-on): Add stdbool, stdlib.
78141         (configure.ac): Turn on module indicator.
78142         * modules/strtod-tests: New module.
78144 2008-03-29  Eric Blake  <ebb9@byu.net>
78146         Fix ftell on mingw.
78147         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
78148         * modules/ftell-tests (Depends-on): Add binary-io.
78149         * modules/ftello-tests (Depends-on): Likewise.
78150         * tests/test-ftell.c (main): Enhance test to cover behavior after
78151         ungetc.  Enforce binary mode.
78152         * tests/test-ftello.c (main): Likewise.
78154         Pass test-freadseek on cygwin.
78155         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
78156         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
78157         ungetc buffer.
78159         * tests/test-fflush2.c (main): Fix typo.
78161 2008-03-29  Bruno Haible  <bruno@clisp.org>
78163         * tests/test-fflush2.c (main): Temporarily disable the contents of
78164         this test.
78165         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
78166         Reported by Eric Blake.
78168 2008-03-28  Simon Josefsson  <simon@josefsson.org>
78170         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
78171         (GC_SHA224_DIGEST_SIZE): Add.
78173         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
78174         (gc_hash_digest_length): Likewise.
78175         (gc_hash_buffer): Likewise.
78177 2008-03-25  Bruno Haible  <bruno@clisp.org>
78179         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
78180         detail which gettext release to use.
78181         Reported by Simon Josefsson.
78183 2008-03-26  Jim Meyering  <meyering@redhat.com>
78185         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
78186         * modules/gnumakefile (clean-GNUmakefile): Also, use
78187         test ... && ... || : syntax rather than if-then ... fi.
78189         gnumakefile: Don't double-quote-expand $(VPATH) value.
78190         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
78192 2008-03-24  Eric Blake  <ebb9@byu.net>
78194         Alter GNUmakefile to install into top directory.
78195         * modules/maintainer-makefile: Split, and add dependency...
78196         * modules/gnumakefile: to this new module.
78197         * build-aux/GNUmakefile: Move...
78198         * top/GNUmakefile: ...here.
78199         * build-aux/maint.mk: Move...
78200         * top/maint.mk: ...here.
78201         * MODULES.html.sh (Support for maintaining...): Document new
78202         module.
78204 2008-03-23  Bruno Haible  <bruno@clisp.org>
78206         * gnulib-tool: New options --vc-files, --no-vc-files.
78207         (func_usage): Document them.
78208         (vc_files): New variable.
78209         (func_import): Consider vc_files.
78210         (func_create_testdir): Set vc_files to empty.
78211         Suggested by Jim Meyering and Karl Berry.
78213 2008-03-23  Bruno Haible  <bruno@clisp.org>
78215         Fix regex compilation error on HP-UX 11.
78216         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
78217         * modules/regex (Files): Add m4/mbstate_t.m4.
78218         Reported by Ton Voon <ton.voon@altinity.com>.
78220 2008-03-23  Bruno Haible  <bruno@clisp.org>
78222         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
78224 2008-03-23  Eric Blake  <ebb9@byu.net>
78225             Bruno Haible  <bruno@clisp.org>
78227         Install files from top/ in the destination directory.
78228         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
78229         augmentation also for the files from top/.
78230         (func_import, func_create_testdir): Rewrite file names:
78231         top/filename -> filename.
78233 2008-03-23  Bruno Haible  <bruno@clisp.org>
78235         Tweak "gnulib --version" output.
78236         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
78238 2008-03-23  Bruno Haible  <bruno@clisp.org>
78240         Tweak "gnulib --version" output.
78241         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
78242         rather than contents of ChangeLog, when possible.
78244 2008-03-21  Eric Blake  <ebb9@byu.net>
78246         More --version tweaks.
78247         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
78248         date of last ChangeLog entry.
78250 2008-03-21  Jim Meyering  <meyering@redhat.com>
78252         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
78254 2008-03-20  Eric Blake  <ebb9@byu.net>
78256         VPATH fix.
78257         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
78259 2008-03-20  Simon Josefsson  <simon@josefsson.org>
78261         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
78262         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
78264 2008-03-20  Eric Blake  <ebb9@byu.net>
78266         Sync GNUmakefile with coreutils.
78267         * build-aux/GNUmakefile (have-Makefile): Rename...
78268         (_have-Makefile): ...to this, for namespace consideration.
78269         (GNUmakefile.cfg): Include, if present.
78270         (_autoreconf): Define a default.
78271         (_is-dist-target): New rule for rebuilds to pick up intra-release
78272         version.
78273         (maint-cfg.mk): Rename...
78274         (cfg.mk): ...to this.
78276 2008-03-18  Jim Meyering  <meyering@redhat.com>
78278         New script and module: mktempd
78279         * MODULES.html.sh (maint+release support): Add mktempd.
78280         * build-aux/mktempd: New file.
78281         * modules/mktempd: New file.
78283 2008-03-15  Jim Meyering  <meyering@redhat.com>
78285         Undo last change.
78286         * lib/sha1.c, lib/md5.c: 63 != ~63.
78287         Reported by Andreas Schwab.
78289         sha1.c, md5.c: Hoist a redundant expression.
78290         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
78291         "ctx->buflen" only once, before calling *_process_block.
78292         * lib/md5.c (md5_process_bytes): Likewise.
78294 2008-03-14  Eric Blake  <ebb9@byu.net>
78296         Bump copyright year in files generated by gnulib-tool.
78297         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
78298         gnulib-tool, rather than hard-coding it.
78300         Fix 'gnulib-tool --version' output to work with git.
78301         * gnulib-tool (func_gnulib_dir): New function, extracted from...
78302         (startup): ...here.
78303         (func_version): Use it to invoke git-version-gen, rather than
78304         relying on CVS keyword expansion.  Modernize wording.
78305         (cvsdatestamp, last_checkin_date, version): Kill unused
78306         variables.
78308 2008-03-12  Jim Meyering  <meyering@redhat.com>
78310         Recognize optional cast of the argument to free.
78311         * build-aux/useless-if-before-free: Update regexps.
78313         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
78315 2008-03-11  Bruno Haible  <bruno@clisp.org>
78317         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
78318         by a single package.
78319         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
78320         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
78321         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
78322         Reported by Sam Steingold <sds@gnu.org>.
78324 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78326         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
78327         repositories.
78329 2008-03-11  Bruno Haible  <bruno@clisp.org>
78331         Avoid conflicts between local macro definitions.
78332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
78333         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
78335 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
78336             Bruno Haible  <bruno@clisp.org>
78338         Make va_copy work with some version of xlc on AIX 5.1.
78339         * lib/stdarg.in.h: New file.
78340         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
78341         On AIX, use a <stdarg.h> file substitute.
78342         * modules/stdarg (Files): Add lib/stdarg.in.h.
78343         (Depends-on): Add include_next.
78344         (Makefile.am): Build a stdarg.h substitute if requested.
78345         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
78347 2008-03-10  Bruno Haible  <bruno@clisp.org>
78349         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
78350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78351         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78353 2008-03-10  Bruno Haible  <bruno@clisp.org>
78355         * modules/stdlib (Depends-on): Add include_next, remove
78356         absolute-header.
78358 2008-03-09  Bruno Haible  <bruno@clisp.org>
78360         * lib/freadahead.h (freadahead): Document more precisely.
78361         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
78362         the sum of both buffer sizes.
78363         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
78364         * NEWS: Document the change.
78366 2008-03-09  Bruno Haible  <bruno@clisp.org>
78368         Extend freadptr to return also the buffer size.
78369         * lib/freadptr.h (freadptr): Add sizep argument.
78370         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
78371         (freadptr): Add sizep argument. Determine buffer size like freadahead
78372         does.
78373         * tests/test-freadptr.c: Don't include freadahead.h.
78374         (main): Adapt for new calling convention of freadptr.
78375         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
78376         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
78377         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
78378         tests/test-freadptr2.sh.
78379         (Depends): Remove freadahead.
78380         (TESTS): Add test-freadptr2.sh.
78381         (check_PROGRAMS): Add test-freadptr2.
78383 2008-03-09  Bruno Haible  <bruno@clisp.org>
78385         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
78386         Report and solution by Simon Josefsson.
78388 2008-03-06  Bruno Haible  <bruno@clisp.org>
78390         Make fflush after ungetc work on BSD platforms.
78391         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
78392         * tests/test-fflush2.c: New file.
78393         * tests/test-fflush2.sh: New file.
78394         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
78395         tests/test-fflush2.c.
78396         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
78397         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
78399 2008-03-06  Eric Blake  <ebb9@byu.net>
78401         Likewise for ftello.
78402         * modules/ftello (Dependencies): Add extensions.
78403         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
78405 2008-03-06  Bruno Haible  <bruno@clisp.org>
78407         * modules/fseeko (Dependencies): Add extensions.
78408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
78409         Needed on glibc systems.
78411 2008-03-06  Bruno Haible  <bruno@clisp.org>
78413         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
78414         email address.
78415         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78417 2008-03-06  Bruno Haible  <bruno@clisp.org>
78419         * users.txt: Add libgnupdf.
78421 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
78423         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
78424         (Header File Substitutes, Function Substitutes,
78425         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
78426         (Build robot for gnulib): Fix typo.
78428 2008-03-06  Bruno Haible  <bruno@clisp.org>
78430         * doc/gnulib-tool.texi (VCS Issues): Small updates.
78431         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78433 2008-03-06  Bruno Haible  <bruno@clisp.org>
78435         * doc/func.texi: New file, extracted from doc/gnulib.texi.
78436         * doc/gnulib.texi: Include it.
78438 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78440         * modules/func (License): Change license to unlimited; there was
78441         no LGPL parts in the module anyway.
78443 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78445         * modules/__func__: Renamed to modules/func.
78446         * modules/__func__-tests: Renamed to modules/func-tests.
78447         * tests/test-__func__.c: Renamed to tests/test-func.c.
78448         * m4/__func__.m4: Renamed to m4/func.m4.
78449         * doc/gnulib.texi (__func__): Section renamed to func.
78450         Suggested by Eric Blake <ebb9@byu.net>.
78452 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78454         * doc/gnulib.texi (__func__): Use C99 terminology when talking
78455         about __func__.  Make example self-contained.  Suggested by Eric
78456         Blake <ebb9@byu.net>.
78458         * tests/test-__func__.c (main): Avoid extraneous () around __func.
78459         Suggested by Eric Blake <ebb9@byu.net>.
78461 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78463         * modules/__func__: New file.
78464         * modules/__func__-tests: New file.
78465         * tests/test-__func__.c: New file.
78466         * m4/__func__.m4: New file.
78467         * doc/gnulib.texi (__func__): Document __func__ module.
78469 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78471         * modules/byteswap (License): Re-license as LGPLv2+.
78473 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78475         * doc/Makefile: Add pdf target.
78477 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78479         * modules/inline (License): Use 'unlimited', since there are only
78480         *.m4 files in this module.
78482 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78483             Bruno Haible  <bruno@clisp.org>
78485         Add support for HP C 7.1 on OpenVMS 8.3.
78486         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
78488 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78490         Update VMS specifics.
78491         * lib/getopt.c [VMS]: Remove include of unixlib.h.
78493 2008-03-02  Jim Meyering  <meyering@redhat.com>
78495         Remove the last dependency on the "free" module.
78496         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
78497         Reported by Bob Proulx.
78499         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
78501         Remove useless "if" tests before free.  Deprecate "free" module.
78502         * doc/posix-functions/free.texi: Mention that this
78503         module is no longer useful.
78504         * modules/free (Notice): Say this module is obsolete.
78505         * modules/readutmp (Depends-on): Remove free.
78506         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
78507         * lib/putenv.c (putenv): Likewise.
78508         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
78509         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
78510         * tests/test-c-strcasestr.c (main): Likewise.
78511         * tests/test-c-strstr.c (main): Likewise.
78512         * tests/test-mbscasestr1.c (main): Likewise.
78513         * tests/test-mbscasestr2.c (main): Likewise.
78514         * tests/test-mbsstr1.c (main): Likewise.
78515         * tests/test-mbsstr2.c (main): Likewise.
78516         * tests/test-memmem.c (main): Likewise.
78517         * tests/test-strcasestr.c (main): Likewise.
78518         * tests/test-striconv.c (main): Likewise.
78519         * tests/test-striconveh.c (main): Likewise.
78520         * tests/test-striconveha.c (main): Likewise.
78521         * tests/test-strstr.c (main): Likewise.
78523         * build-aux/git-version-gen: Adjust a comment and the Usage string.
78525         bootstrap: sync from coreutils again
78526         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
78528 2008-03-01  Jim Meyering  <meyering@redhat.com>
78530         bootstrap: sync from coreutils
78531         * build-aux/bootstrap (update_po_files): Copy a .po file into place
78532         also when the target doesn't exist.
78534 2008-03-01  Eric Blake  <ebb9@byu.net>
78536         Fix bugs in last patch.
78537         * lib/memchr2.c (memchr2): Fix typo.
78538         * tests/test-memchr2.c: Test previous bug, and don't use GNU
78539         extension.
78540         Reported by Bruce Korb.
78542         New module 'memchr2'.
78543         * modules/memchr2: New file.
78544         * modules/memchr2-tests: Likewise.
78545         * lib/memchr2.h: Likewise.
78546         * lib/memchr2.c: Likewise, based on memchr.c.
78547         * tests/test-memchr2.c: New test.
78548         * MODULES.html.sh (String handling): Add memchr2.
78550 2008-02-29  Bruno Haible  <bruno@clisp.org>
78552         * modules/freadseek-tests: New file.
78553         * tests/test-freadseek.sh: New file.
78554         * tests/test-freadseek.c: New file.
78556         New module 'freadseek'.
78557         * modules/freadseek: New file.
78558         * lib/freadseek.h: New file.
78559         * lib/freadseek.c: New file.
78560         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
78562 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
78564         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
78565         wydawca.
78567         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
78568         program_invocation_name and program_invocation_short_name are
78569         present.
78571 2008-02-28  Bruno Haible  <bruno@clisp.org>
78573         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
78574         * tests/test-freadptr.sh: Also test non-seekable stdin.
78576 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
78578         * build-aux/bootstrap (source_base, m4_base)
78579         (doc_base, tests_base): New variables.
78580         (gnulib_tool_options): Do not hardcode base directories, use
78581         the above variables instead.
78583 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
78585         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
78587 2008-02-28  Bruno Haible  <bruno@clisp.org>
78589         * modules/freadptr-tests: New file.
78590         * tests/test-freadptr.sh: New file.
78591         * tests/test-freadptr.c: New file.
78593         New module 'freadptr'.
78594         * modules/freadptr: New file.
78595         * lib/freadptr.h: New file.
78596         * lib/freadptr.c: New file.
78597         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78599 2008-02-26  Karl Berry  <karl@freefriends.org>
78601         Sync from Libtool:
78602         * libltdl/argz.c (argz_add, argz_count): New functions.
78603         * libltdl/argz.in.h: Declare them.
78604         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78606 2008-02-22  Bruno Haible  <bruno@clisp.org>
78608         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78609         is a pointer type.  Needed for HP-UX 10.
78610         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78611         * doc/posix-functions/gmtime_r.texi: Likewise.
78612         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78614 2008-02-24  Bruno Haible  <bruno@clisp.org>
78616         * modules/environ-tests: New file.
78617         * tests/test-environ.c: New file.
78619         New module 'environ'.
78620         * modules/environ: New file.
78621         * lib/unistd.in.h (environ): New declaration.
78622         * m4/environ.m4: New file.
78623         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78624         after use.
78625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78626         HAVE_DECL_ENVIRON.
78627         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78628         HAVE_DECL_ENVIRON.
78629         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78630         wrong claim that 'environ' is missing on some systems.
78631         * modules/execute (Depends-on): Add environ.
78632         * lib/execute.c (environ): Remove fallback declaration.
78633         * modules/pipe (Depends-on): Add environ.
78634         * lib/pipe.c (environ): Remove fallback declaration.
78635         * modules/setenv (Depends-on): Add environ.
78636         * lib/setenv.c (environ): Remove fallback declaration.
78637         * modules/unsetenv (Depends-on): Add environ.
78638         * lib/unsetenv.c (environ): Remove fallback declaration.
78639         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78640         m4/environ.m4.
78641         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78642         (gl_PREREQ_UNSETENV): Likewise.
78644 2008-02-24  Bruno Haible  <bruno@clisp.org>
78646         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78648 2008-02-20  Bob Proulx  <bob@proulx.com>
78650         Enable use of older two part flavor 'git describe'.
78651         * build-aux/git-version-gen: If using the older two part flavor of
78652         git version then recreate the third part now present in the
78653         newer three part flavor of git describe.
78655 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78657         * lib/fts.c (fts_build): Typo correction to comment.
78659 2008-02-17  Bruno Haible  <bruno@clisp.org>
78661         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78662         generating no-op conflicts.
78664 2008-02-17  Bruno Haible  <bruno@clisp.org>
78666         Speed up by 10%.
78667         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78668         result_entries, rather than an index-based loop.
78670 2008-02-17  Bruno Haible  <bruno@clisp.org>
78672         Speed up by 25%.
78673         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78674         'hashcode_cached'.
78675         (entry_create): New function.
78676         (entry_hashcode): Use the cached hashcode if possible.
78677         (read_changelog_file, try_split_merged_entry): Use entry_create.
78679 2008-02-17  Bruno Haible  <bruno@clisp.org>
78681         Speed up from O(n^2) to O(n) for long ChangeLog files.
78682         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78683         (read_changelog_file): Change implementation of entries_reversed list
78684         to rbtreehash.
78685         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78687 2008-02-17  Bruno Haible  <bruno@clisp.org>
78689         New option --split-merged-entry.
78690         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78691         (find_paragraph_end, try_split_merged_entry): New functions.
78692         (long_options): Add option --split-merged-entry.
78693         (usage): Document option --split-merged-entry.
78694         (main): Implement option --split-merged-entry.
78695         Reported by Eric Blake.
78697 2008-02-17  Bruno Haible  <bruno@clisp.org>
78699         * lib/git-merge-changelog.c: Include c-strstr.h.
78700         (main): Support the "git pull --rebase" situation.
78701         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78702         Reported by Eric Blake.
78704 2008-02-16  Eric Blake  <ebb9@byu.net>
78706         Avoid doubling \ in common case of "c-maybe" quoting style.
78707         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78708         eliding outer quotes.
78709         * lib/quotearg.h: Document this.
78710         * tests/test-quotearg.c (result_strings, inputs, results_g)
78711         (flag_results, locale_results): Test it by adding a new string to
78712         each test group.
78713         (compare_strings): Test new string.
78715 2008-02-13  Eric Blake  <ebb9@byu.net>
78717         Avoid trigraph quoting in default output.
78718         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78719         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78720         unless explicitly requested.
78721         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78723 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78725         Don't rely on signed integer overflowing to negative value.
78726         * lib/getugroups.c (getugroups): Include <limits.h>.
78727         Instead, compare against INT_MAX, and increment only if the test passes.
78729 2008-02-13  Jim Meyering  <meyering@redhat.com>
78730         and Eric Blake  <ebb9@byu.net>
78732         Avoid shadowing warning and compile errors on Linux.
78733         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78734         forwarding macros on Linux.
78735         (dcgettext): Define a stub, for Linux.
78736         (results_g, main): Avoid warnings.
78738 2008-02-12  Eric Blake  <ebb9@byu.net>
78740         Silence warning in last patch.
78741         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78743         Quotearg part 4: add tests, fix c-maybe colon quoting.
78744         * lib/quotearg.h: Improve documentation.
78745         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
78746         escapes when adding outer quotes.  When quoting trigraphs, use
78747         valid C notation.  When quoting NUL, omit extra characters if next
78748         character is not digit.  Alter prototype.
78749         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
78750         callers.
78751         * modules/quotearg-tests: New module.
78752         * tests/test-quotearg.c: New test.
78754 2008-02-07  Eric Blake  <ebb9@byu.net>
78756         Quotearg part 3: add flag to control outer quote elision.
78757         * lib/quotearg.h (c_maybe_quoting_style): New style.
78758         (enum quoting_flags): Better documentation of flags.
78759         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
78760         c-maybe style.
78761         (quotearg_buffer_restyled): Handle new flag to elide outer
78762         quotes.
78764         Quotearg part 2: add flag that can control NUL elision.
78765         * lib/quotearg.h (set_quoting_flags): New prototype.
78766         * lib/quotearg.c (struct quoting_options): Add flag field.
78767         (set_quoting_flags): New function.
78768         (quotearg_buffer_restyled): Add flags parameter.
78769         (quotearg_alloc_mem): Set the flag if length cannot be returned.
78770         (quotearg_n_options): Set the flag, since length cannot be
78771         returned.
78772         (quoting_options_from_style): Default flags correctly.
78774         Quotearg part 1: more wrappers, restore quotearg_char state.
78775         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
78776         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
78777         (quotearg_colon_mem): New wrappers.
78778         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
78779         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
78780         functions.
78781         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
78782         (quotearg_colon_mem): New functions.
78784 2008-02-11  Bruno Haible  <bruno@clisp.org>
78786         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
78787         library in the current directory: it does not work with parallel make.
78788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78790 2008-02-11  Bruno Haible  <bruno@clisp.org>
78792         * .gitattributes: New file.
78794 2008-02-11  Jim Meyering  <meyering@redhat.com>
78796         useless-if-before-free: Fix reversed exit values.
78797         * build-aux/useless-if-before-free: Use correct values
78798         for EXIT_MATCH and EXIT_NO_MATCH.
78800         * build-aux/useless-if-before-free: Close stdout carefully.
78802 2008-02-10  Bruno Haible  <bruno@clisp.org>
78804         New module 'git-merge-changelog'.
78805         * modules/git-merge-changelog: New file.
78806         * lib/git-merge-changelog.c: New file.
78808 2008-02-10  Jim Meyering  <meyering@redhat.com>
78810         useless-if-before-free: New option: --list (-l).
78812         useless-if-before-free: Don't exit immediately upon open failure.
78813         * build-aux/useless-if-before-free: Exit 2 for errors.
78814         Upon failure to open a file, don't exit immediately.
78815         Rather, just warn and continue with any remaining files.
78817 2008-02-10  Bruno Haible  <bruno@clisp.org>
78819         New abstract list operation 'node_set_value'.
78820         * lib/gl_list.h (gl_list_node_set_value): New function.
78821         (struct gl_list_implementation): New field node_set_value.
78822         * lib/gl_list.c (gl_list_node_set_value): New function.
78823         * lib/gl_array_list.c (gl_array_node_set_value): New function.
78824         (gl_array_list_implementation): Update.
78825         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
78826         (gl_carray_list_implementation): Update.
78827         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
78828         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78829         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78830         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
78831         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78832         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78833         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78834         Update.
78835         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78836         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
78837         (gl_sublist_list_implementation): Update.
78839 2008-02-10  Bruno Haible  <bruno@clisp.org>
78841         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
78842         Needed when ELEMENT is #defined to 'some_type *'.
78844 2008-02-10  Jim Meyering  <meyering@redhat.com>
78846         New script and module: useless-if-before-free
78847         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
78848         * build-aux/useless-if-before-free: New file.
78849         * modules/useless-if-before-free: New file.
78851         * build-aux/gitlog-to-changelog: Use committer date, not author date.
78853         xstrtol_error: Fix typo.
78854         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
78855         s/exit_failure/exit_status/.
78857 2008-02-09  Jim Meyering  <meyering@redhat.com>
78859         New script and module: gitlog-to-changelog
78860         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78861         * modules/gitlog-to-changelog: New file.
78862         * build-aux/gitlog-to-changelog: New file.
78864 2008-02-08  Jim Meyering  <meyering@redhat.com>
78866         Avoid two "parameter unused" warnings.
78867         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78868         Mark "st" as used.
78870         Use "git COMMAND", not "git-COMMAND".
78871         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78872         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78873         * build-aux/git-version-gen: Use "git status", not "git-status".
78875 2008-02-07  Bruno Haible  <bruno@clisp.org>
78877         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78878         Avoids a crash on Windows Vista.
78879         Reported by Adam Strzelecki <ono@java.pl> via
78880         Simon Josefsson <simon@josefsson.org>.
78882 2008-02-06  Bruno Haible  <bruno@clisp.org>
78884         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78885         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78886         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78888         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78890         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78891         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78899         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78900         left-adjust flag.
78901         * tests/test-snprintf-posix.h (test_function): Likewise.
78902         * tests/test-sprintf-posix.h (test_function): Likewise.
78903         * tests/test-vasprintf-posix.c (test_function): Likewise.
78904         * doc/posix-functions/fprintf.texi: Update.
78905         * doc/posix-functions/printf.texi: Update.
78906         * doc/posix-functions/snprintf.texi: Update.
78907         * doc/posix-functions/sprintf.texi: Update.
78908         * doc/posix-functions/vfprintf.texi: Update.
78909         * doc/posix-functions/vprintf.texi: Update.
78910         * doc/posix-functions/vsnprintf.texi: Update.
78911         * doc/posix-functions/vsprintf.texi: Update.
78912         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78914 2008-02-06  Bruno Haible  <bruno@clisp.org>
78916         Fix bug introduced on 2008-01-26.
78917         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
78919 2008-02-06  Bruno Haible  <bruno@clisp.org>
78921         Fix bug introduced on 2007-06-10.
78922         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
78923         !NEED_PRINTF_FLAG_ZERO.
78925 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
78927         getloadavg: use libperfstat on AIX5
78928         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
78930 2008-02-03  Bruno Haible  <bruno@clisp.org>
78932         * lib/diffseq.h: Add comments about required #includes.
78933         Reported by Michael Biggs <gnulib@doubleplum.net>.
78935 2008-02-01  Bruno Haible  <bruno@clisp.org>
78937         * users.txt: Add gnuit.
78939 2008-01-31  Bruno Haible  <bruno@clisp.org>
78941         * lib/md4.c (set_uint32): Mark as inline.
78942         * lib/md5.c (set_uint32): Likewise.
78943         * lib/sha1.c (set_uint32): Likewise.
78944         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
78945         * m4/md5.m4 (gl_MD5): Likewise.
78946         * m4/sha1.m4 (gl_SHA1): Likewise.
78948 2008-01-31  Jim Meyering  <meyering@redhat.com>
78950         Use "sizeof VAR", rather than a literal "4".
78951         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
78952         * lib/md4.c (md4_read_ctx): Likewise.
78953         * lib/sha1.c (sha1_read_ctx): Likewise.
78955 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78957         * tests/test-sha1.c: New file, based on test-md5.c.
78959         * modules/crypto/sha1-tests: New file.
78961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78963         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
78965 2008-01-31  Jim Meyering  <meyering@redhat.com>
78967         Prefer "sizeof v" over the equivalent "4".
78968         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
78969         * lib/md5.c (set_uint32): Likewise.
78970         * lib/sha1.c (set_uint32): Likewise.
78972 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78974         * lib/sha1.c (set_uint32): Mark function as static.
78976 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78978         md2: clarify comments to say that alignment is not required.
78979         * lib/md2.h: Remove warning about alignment in comment.
78980         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
78981         never been required.
78983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78985         md4: adapt alignment constraint fix from sha1.
78986         * lib/md4.c (set_uint32): New function, from sha1.c
78987         (md4_read_ctx): Use it.
78988         (md4_finish_ctx): Doc fix.
78989         * lib/md4.h: Doc fix.
78991 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78993         md5: adapt alignment constraint fix from sha1.
78994         * lib/md5.c (set_uint32): New function, from sha1.c
78995         (md5_read_ctx): Use it.
78996         (md5_finish_ctx): Doc fix.
78997         * lib/md5.h: Doc fix.
78999 2008-01-30  Peter Palfrader  <weasel@debian.org>
79001         sha1: remove the result buffer alignment constraint
79002         * lib/sha1.c (set_uint32): New function.
79003         (sha1_read_ctx): Rewrite to remove the result buffer alignment
79004         constraint.
79005         (sha1_finish_ctx): Remove comment warning about alignment constraint.
79006         * lib/sha1.h: Likewise.
79008 2008-01-30  Andreas Schwab  <schwab@suse.de>
79009             Bruno Haible  <bruno@clisp.org>
79011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
79012         correct definition of LDBL_MIN_EXP.
79014 2008-01-30  Karl Berry  <karl@gnu.org>
79016         * config/srclist-update: try to preserve x bit on updates.
79017         * config/srclistvars.sh: update for karl.
79019 2008-01-29  Jim Meyering  <meyering@redhat.com>
79021         vasnprintf.c: Avoid warning about unused label
79022         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
79023         "overflow" label definition and associated code with the
79024         same cpp condition that guards the sole use of that label.
79026 2008-01-26  Bruno Haible  <bruno@clisp.org>
79028         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
79029         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
79030         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
79031         * lib/isnanl-nolibm.h (isnanl): Likewise.
79032         Reported by Paul Eggert <eggert@cs.ucla.edu>.
79034 2008-01-26  Bruno Haible  <bruno@clisp.org>
79036         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
79037         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
79039 2008-01-26  Bruno Haible  <bruno@clisp.org>
79041         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
79042         GCC >= 4.0 built-in.
79043         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
79045 2008-01-26  Bruno Haible  <bruno@clisp.org>
79047         Rename isnan, applicable to 'double' only, to isnand.
79048         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
79049         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
79050         (configure.ac): Update.
79051         (Include): Replace "isnan.h" with "isnand.h".
79052         * m4/isnand.m4: Renamed from m4/isnan.m4.
79053         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
79054         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
79055         instead of isnan.c.
79056         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
79057         instead of HAVE_ISNAN_IN_LIBC.
79058         (isnand): Renamed from isnan.
79059         * lib/isnand.c: New file.
79060         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
79061         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
79062         (Makefile.am): Update.
79063         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
79064         Include isnand.h instead of isnan.h.
79065         (main): Test isnand instead of isnan.
79066         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
79067         isnan-nolibm.
79068         * modules/frexp (Depends-on): Likewise.
79069         * modules/frexp-tests (Depends-on): Likewise.
79070         * modules/frexp-nolibm (Depends-on): Likewise.
79071         * modules/frexp-nolibm-tests (Depends-on): Likewise.
79072         * modules/isfinite (Depends-on): Likewise.
79073         * modules/round-tests (Depends-on): Likewise.
79074         * modules/signbit (Depends-on): Likewise.
79075         * modules/signbit-tests (Depends-on): Likewise.
79076         * modules/snprintf-posix (Depends-on): Likewise.
79077         * modules/sprintf-posix (Depends-on): Likewise.
79078         * modules/trunc-tests (Depends-on): Likewise.
79079         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79080         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79081         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79082         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79083         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79084         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79085         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79086         * modules/vasnprintf-posix (Depends-on): Likewise.
79087         * modules/vasprintf-posix (Depends-on): Likewise.
79088         * modules/vfprintf-posix (Depends-on): Likewise.
79089         * modules/vsnprintf-posix (Depends-on): Likewise.
79090         * modules/vsprintf-posix (Depends-on): Likewise.
79091         * lib/frexp.c: Include isnand.h instead of isnan.h.
79092         (ISNAN): Set to isnand instead of isnan.
79093         * lib/isfinite.c: Include isnand.h instead of isnan.h.
79094         (gl_isfinited): Use isnand instead of isnan.
79095         * lib/signbitd.c: Include isnand.h instead of isnan.h.
79096         (gl_signbitd): Use isnand instead of isnan.
79097         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
79098         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
79099         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
79100         (main): Use isnand instead of isnan.
79101         * tests/test-round1.c: Include isnand.h.
79102         (main): Use isnand instead of isnan.
79103         * tests/test-round2.c: Include isnand.h instead of isnan.h.
79104         (ISNAN): Set to isnand instead of isnan.
79105         * tests/test-trunc1.c: Include isnand.h.
79106         (main): Use isnand instead of isnan.
79107         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
79108         (equal): Use isnand instead of isnan.
79109         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
79110         isnand-nolibm.
79111         * NEWS: Mention the change.
79113 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79114             Bruno Haible  <bruno@clisp.org>
79116         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
79117         the GCC builtins for signbits are present and set
79118         REPLACE_SIGNBIT_USING_GCC if so.
79119         * lib/math.in.h (signbit): Define using GCC builtins if
79120         REPLACE_SIGNBIT_USING_GCC is set.
79121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
79122         REPLACE_SIGNBIT_USING_GCC.
79123         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
79125 2008-01-25  Jim Meyering  <meyering@redhat.com>
79127         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
79128         * lib/poll.c: Include <config.h>, not "config.h".
79129         * tests/test-getaddrinfo.c: Likewise.
79131 2008-01-25  Simon Josefsson  <simon@josefsson.org>
79133         * modules/sockets-tests: New file.
79135 2008-01-24  Simon Josefsson  <simon@josefsson.org>
79137         * modules/sockets: New module, can be used to call WSA_Startup and
79138         WSA_Cleanup when needed.
79140         * lib/sockets.h, lib/sockets.c: New files.
79142         * m4/sockets.m4: New file.
79144         * tests/test-sockets.c: New file.
79146 2008-01-19  Bruno Haible  <bruno@clisp.org>
79148         * doc/posix-headers: Renamed from doc/headers.
79149         * doc/posix-functions: Renamed from doc/functions.
79150         * doc/gnulib.texi: Update.
79152 2008-01-19  Bruno Haible  <bruno@clisp.org>
79154         * doc/glibc-functions/strcasestr.texi: Include contents of
79155         doc/functions/strcasestr.texi, fixing the list of platforms.
79156         * doc/functions/strcasestr.texi: Remove file.
79158 2008-01-19  Bruno Haible  <bruno@clisp.org>
79160         * doc/glibc-functions/memmem.texi: Include contents of
79161         doc/functions/memmem.texi.
79162         * doc/functions/memmem.texi: Remove file.
79164 2008-01-18  Bruno Haible  <bruno@clisp.org>
79166         * doc/glibc-functions/*.texi: New files.
79167         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
79168         to use the new files.
79170 2008-01-17  Bruno Haible  <bruno@clisp.org>
79172         * tests/test-gethostname.c (main): Fix printf statement.
79174 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79176         * modules/gethostname-tests: New file.
79178         * tests/test-gethostname.c: New file.
79180 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79182         * lib/gethostname.c: Include string.h unconditionally, strncpy is
79183         used by the UNAME case.  Reported by Bruno Haible
79184         <bruno@clisp.org>.
79186 2008-01-17  Eric Blake  <ebb9@byu.net>
79188         Convert c-strcasestr to be more efficient.
79189         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
79190         (Depends-on): Add c-strcase, remove malloca, strnlen.
79191         * tests/test-c-strcasestr.c (main): Enhance test.
79192         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
79194 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
79196         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
79197         Use it in creating po/Makevars.
79199 2008-01-15  Simon Josefsson  <simon@josefsson.org>
79201         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
79202         Applications that requires it should initialize libgcrypt
79203         manually.
79205 2008-01-16  Simon Josefsson  <simon@josefsson.org>
79207         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
79209 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
79211         Fix problem with getdate on mingw32 reported by Simon Josefsson
79212         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
79213         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
79214         tzname", when deciding whether to declare tzname.
79215         * lib/strftime.c (tzname): Likewise.
79217 2008-01-15  Bruno Haible  <bruno@clisp.org>
79219         Work around a MacOS X 10.5 bug in frexpl().
79220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
79221         * doc/functions/frexpl.texi: Document the bug.
79222         Reported by Elias Pipping <pipping@gentoo.org>.
79224 2008-01-14  Eric Blake  <ebb9@byu.net>
79226         Touch up previous patch.
79227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
79228         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
79230         Convert strcasestr module to use Two-Way algorithm.
79231         * modules/strcasestr-simple: New module, based on the old
79232         strcasestr, but with Two-Way rather than KMP.
79233         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
79234         * lib/string.in.h (rpl_strcasestr): Declare.
79235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
79236         performance.
79237         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
79238         * modules/string (Makefile.am): Support strcasestr.
79239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79240         * modules/strcasestr-tests (Depends-on): Check for alarm.
79241         * tests/test-strcasestr.c: Augment test.
79242         * lib/str-two-way.h: Clean up stray macro.
79243         * NEWS: Document new module.
79244         * MODULES.html.sh (string handling): Likewise.
79245         * doc/functions/strcasestr.texi: New file.
79246         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
79247         here, since it is not a POSIX function.
79249 2008-01-14  Colin Watson  <cjwatson@debian.org>
79250             Bruno Haible  <bruno@clisp.org>
79252         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
79253         works fine; if not, set REPLACE_STRSIGNAL.
79254         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
79255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79256         REPLACE_STRSIGNAL.
79257         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
79258         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
79259         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
79261 2008-01-14  Bruno Haible  <bruno@clisp.org>
79263         * modules/strsignal (Include): Change to <string.h>.
79265 2008-01-14  Colin Watson  <cjwatson@debian.org>
79267         * modules/argp (Notice): Add a notice recommending to change
79268         XGETTEXT_OPTIONS.
79269         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
79271 2008-01-13  Colin Watson  <cjwatson@debian.org>
79273         * modules/strsignal-tests: New file.
79274         * tests/test-strsignal.c: New file.
79276         * lib/strsignal.c: New file, from glibc with modifications.
79277         * lib/siglist.h: New file, from glibc with modifications.
79278         * lib/string.in.h (strsignal): New declaration.
79279         * m4/strsignal.m4: New file.
79280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79281         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
79282         * modules/strsignal: New file.
79283         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
79284         HAVE_DECL_STRSIGNAL.
79286 2008-01-13  Bruno Haible  <bruno@clisp.org>
79288         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
79289         locale encoding is not ASCII. Needed for OpenBSD 4.0.
79290         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79293 2008-01-13  Bruno Haible  <bruno@clisp.org>
79295         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
79296         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
79297         * lib/argp.h (__attribute__): Likewise.
79298         * lib/c-stack.c (__attribute__): Likewise.
79299         * lib/error.h (__attribute__): Likewise.
79300         * lib/fts.c (__attribute__): Likewise.
79301         * lib/openat.h (__attribute__): Likewise.
79302         * lib/stdio.in.h (__attribute__): Likewise.
79303         * lib/string.in.h (__attribute__): Likewise.
79304         * lib/utimens.c (__attribute__): Likewise.
79305         * lib/vasnprintf.h (__attribute__): Likewise.
79306         * lib/xalloc.h (__attribute__): Likewise.
79307         * lib/xprintf.h (__attribute__): Likewise.
79308         * lib/xstrtol.h (__attribute__): Likewise.
79309         * lib/xvasprintf.h (__attribute__): Likewise.
79311 2008-01-12  Bruno Haible  <bruno@clisp.org>
79313         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
79314         * doc/glibc-headers/a.out.texi: New file.
79315         * doc/glibc-headers/aliases.texi: New file.
79316         * doc/glibc-headers/alloca.texi: New file.
79317         * doc/glibc-headers/ar.texi: New file.
79318         * doc/glibc-headers/argp.texi: New file.
79319         * doc/glibc-headers/argz.texi: New file.
79320         * doc/glibc-headers/byteswap.texi: New file.
79321         * doc/glibc-headers/crypt.texi: New file.
79322         * doc/glibc-headers/endian.texi: New file.
79323         * doc/glibc-headers/envz.texi: New file.
79324         * doc/glibc-headers/err.texi: New file.
79325         * doc/glibc-headers/error.texi: New file.
79326         * doc/glibc-headers/execinfo.texi: New file.
79327         * doc/glibc-headers/fpu_control.texi: New file.
79328         * doc/glibc-headers/fstab.texi: New file.
79329         * doc/glibc-headers/fts.texi: New file.
79330         * doc/glibc-headers/getopt.texi: New file.
79331         * doc/glibc-headers/ieee754.texi: New file.
79332         * doc/glibc-headers/ifaddrs.texi: New file.
79333         * doc/glibc-headers/libintl.texi: New file.
79334         * doc/glibc-headers/mcheck.texi: New file.
79335         * doc/glibc-headers/mntent.texi: New file.
79336         * doc/glibc-headers/obstack.texi: New file.
79337         * doc/glibc-headers/paths.texi: New file.
79338         * doc/glibc-headers/printf.texi: New file.
79339         * doc/glibc-headers/pty.texi: New file.
79340         * doc/glibc-headers/resolv.texi: New file.
79341         * doc/glibc-headers/shadow.texi: New file.
79342         * doc/glibc-headers/sysexits.texi: New file.
79343         * doc/glibc-headers/ttyent.texi: New file.
79345 2008-01-12  Jim Meyering  <meyering@redhat.com>
79347         announce-gen: emit Gnulib's git-based version string.
79348         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
79349         New option --gnulib-version=V, where V is expected to be
79350         the output of running git describe in the gnulib directory.
79351         (get_tool_versions): Request feedback on xdelta.  I suspect it's
79352         not useful, and plan to stop publishing an xdelta file with each
79353         coreutils release.
79355         * build-aux/announce-gen: Also check for lzma-compressed files.
79357 2008-01-11  Bruno Haible  <bruno@clisp.org>
79359         * tests/test-memmem.c (main): Increase maximum allowed time.
79360         * tests/test-strstr.c (main): Likewise.
79362 2008-01-11  Bruno Haible  <bruno@clisp.org>
79364         * doc/functions/memmem.texi: Add more precisions about platforms.
79365         * doc/functions/strstr.texi: Likewise.
79367 2008-01-10  Eric Blake  <ebb9@byu.net>
79369         * m4/strstr.m4: Delete cruft from copy-n-paste.
79370         Reported by Bruno Haible.
79372 2008-01-10  Bruno Haible  <bruno@clisp.org>
79374         Make c-strstr rely on strstr.
79375         * lib/c-strstr.c: Don't include str-kmp.h.
79376         (c_strstr): Define in terms of strstr.
79377         * modules/c-strstr (Files): Remove lib/str-kmp.h.
79378         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
79380 2008-01-10  Bruno Haible  <bruno@clisp.org>
79382         * doc/gnulib.texi (String Functions in C Locale): New section.
79383         * doc/c-ctype.texi: New file.
79384         * doc/c-strcase.texi: New file.
79385         * doc/c-strcaseeq.texi: New file.
79386         * doc/c-strcasestr.texi: New file.
79387         * doc/c-strstr.texi: New file.
79388         * doc/c-strtod.texi: New file.
79389         * doc/c-strtold.texi: New file.
79391 2008-01-10  Eric Blake  <ebb9@byu.net>
79393         * lib/relocatable.h: Fix a comment.
79395 2008-01-10  Eric Blake  <ebb9@byu.net>
79397         Share two-way algorithm.
79398         * lib/str-two-way.h: New file, merged from...
79399         * lib/memmem.c: ...here...
79400         * lib/strstr.c: ...and here.
79401         * modules/memmem (Files): Use it.
79402         * modules/strstr (Files): Likewise.
79404         Avoid quadratic strstr implementations.
79405         * lib/strstr.c: New file.
79406         * m4/strstr.m4: Likewise.
79407         * modules/strstr: Likewise.
79408         * modules/strstr-tests: Likewise.
79409         * tests/test-strstr.c: Likewise.
79410         * lib/string.in.h (rpl_strstr): Declare.
79411         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
79412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
79413         * modules/string (Makefile.am): Likewise.
79414         * MODULES.html.sh (string handling): Mention new module.
79415         * doc/functions/strstr.texi (strstr): Document the bug.
79417 2008-01-10  Bruno Haible  <bruno@clisp.org>
79419         * lib/relocatable.h (relocate): State whether result is freshly
79420         allocated or not.
79421         * lib/relocatable.c (relocate): Return a freshly allocated string
79422         instead of a pointer to a privately held string.
79423         Reported by Sylvain Beucler <beuc@gnu.org>.
79425 2008-01-10  Colin Watson  <cjwatson@debian.org>
79427         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
79428         s/S_ISNLK/S_ISLNK/.
79430 2008-01-09  Bruno Haible  <bruno@clisp.org>
79432         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
79433         and other files.
79434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
79435         if it's only a guess.
79436         * modules/memmem: Simplify by depending on memmem-simple.
79438 2008-01-09  Bruno Haible  <bruno@clisp.org>
79440         Work around OpenBSD 4.0 tdelete() bug.
79441         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
79442         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
79443         macros and don't redefine the enum values.
79444         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
79445         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
79446         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
79448 2008-01-09  Bruno Haible  <bruno@clisp.org>
79450         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
79451         (main): Don't perform the tests if setlocale did not install a UTF-8
79452         locale. Needed on OpenBSD 4.0.
79453         * modules/wcwidth-tests (Depends-on): Add localcharset.
79455 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79457         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
79458         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
79459         * NEWS: announce this.
79460         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
79462 2008-01-09  Simon Josefsson  <simon@josefsson.org>
79463         and Eric Blake  <ebb9@byu.net>
79465         Add memmem-simple module.
79466         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
79467         (gl_FUNC_MEMMEM): Separate performance from presence checks.
79468         * modules/memmem-simple: New file.
79469         * modules/memmem (Description): Tweak.
79470         * MODULES.html.sh (string handling): Mention new module.
79471         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
79472         addressed by memmem-simple.
79473         * NEWS: Document the difference.
79475 2008-01-09  Eric Blake  <ebb9@byu.net>
79477         Give gcc some memmem optimization hints.
79478         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
79479         (strcasestr): Declare as pure.
79480         * modules/memmem (Maintainer): Claim my implementation.
79482 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79484         Support AIX 6.1 and higher.
79485         * build-aux/config.libpath: Likewise.
79486         * build-aux/config.rpath: Likewise.
79488 2008-01-08  Jim Meyering  <meyering@redhat.com>
79489             Bruno Haible  <bruno@clisp.org>
79491         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
79492         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
79493         Reported by Peter Fales in
79494         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
79496 2008-01-08  Bruno Haible  <bruno@clisp.org>
79498         * modules/unictype/category-of (Depends-on): Add
79499         unictype/category-none.
79500         * modules/unictype/category-and-tests (Depends-on): Add
79501         unictype/category-{L,N,Lu,Nd}.
79502         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
79503         * modules/unictype/category-or-tests (Depends-on): Add
79504         unictype/category-{L,N}.
79505         * modules/unictype/category-name-tests (Depends-on): Add
79506         unictype/category-{Z,Nl}.
79507         Reported by Simon Josefsson.
79509 2008-01-08  Bruno Haible  <bruno@clisp.org>
79511         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
79512         convention better.
79513         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
79514         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
79515         Reported by Peter Miller <millerp@canb.auug.org.au>.
79517 2008-01-08  Eric Blake  <ebb9@byu.net>
79519         Rewrite memmem to guarantee linear complexity without malloc.
79520         * lib/memmem.c (memmem): Use Two-Way rather than
79521         Knuth-Morris-Pratt, to allow O(1) space usage.
79522         (critical_factorization, two_way_short_needle)
79523         (two_way_long_needle): New functions.
79524         (knuth_morris_pratt): Delete.
79525         * modules/memmem (Depends-on): No longer need malloca or stdbool.
79526         Add stdint.
79527         * tests/test-memmem.c (main): Add tests for periodic needle and
79528         sublinear performance.
79529         * doc/functions/memmem.texi (memmem): Document other deficiencies
79530         in cygwin and older glibc.
79532 2008-01-08  Bruno Haible  <bruno@clisp.org>
79534         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
79535         augmentation.
79537 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
79539         Add a configure time option: --disable-acl.
79540         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
79541         AC_ARG_ENABLE(acl).
79543 2008-01-06  Simon Josefsson  <simon@josefsson.org>
79545         * tests/test-localename.c: Don't include obsolete "setenv.h".
79547         * modules/localename-tests (Depends-on): Need unsetenv.
79549 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79551         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
79553 2008-01-06  Colin Watson  <cjwatson@debian.org>
79555         * users.txt: Add man-db.
79557 2008-01-07  Bruno Haible  <bruno@clisp.org>
79559         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
79560         previous section name.
79562 2008-01-07  Bruno Haible  <bruno@clisp.org>
79564         * lib/progname.c (set_program_name): Don't strip off a leading
79565         "lt-" prefix outside a .libs directory.
79566         Suggested by Paul Eggert.
79568 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
79569             Bruno Haible  <bruno@clisp.org>
79571         Improve memory cleanup in 'relocatable' module.
79572         * lib/relocatable.h (compute_curr_prefix): Change return type to
79573         'char *'.
79574         * lib/relocatable.c (compute_curr_prefix): Change return type to
79575         'char *'. Free curr_installdir after use.
79576         (relocate): Free curr_prefix_better after use.
79577         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
79579 2008-01-01  Bruno Haible  <bruno@clisp.org>
79581         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
79582         failure on older glibc systems.
79583         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79585 2008-01-05  Eric Blake  <ebb9@byu.net>
79587         Avoid quadratic system memmem.
79588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
79589         Reported by Ralf Wildenhues.
79591         Fix memmem test for mingw.
79592         * modules/memmem-tests (configure.ac): Check for alarm.
79593         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79594         it.
79595         * doc/functions/memmem.texi: New file.
79596         * doc/gnulib.texi (Function Substitutes): Add memmem.
79597         Reported by Bruno Haible.
79599 2008-01-04  Bruno Haible  <bruno@clisp.org>
79601         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79602         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79603         gl_HEADER_STRING_H_DEFAULTS.
79605 2008-01-04  Eric Blake  <ebb9@byu.net>
79607         Shorten duration of memmem test.
79608         * tests/test-memmem.c (main): Use alarm to declare failure if test
79609         is taking too long.
79610         Reported by Ralf Wildenhues.
79612 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79614         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79615         string, needed by strerror.
79617 2008-01-03  Colin Watson  <cjwatson@debian.org>
79618             Bruno Haible  <bruno@clisp.org>
79620         * doc/gnulib-tool.texi (Localization): New section.
79622 2008-01-02  Bruno Haible  <bruno@clisp.org>
79624         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79625         variables to 'unsigned char *' type.
79626         Reported by Paul Eggert.
79628 2008-01-02  Jim Meyering  <jim@meyering.net>
79630         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79632 2007-12-31  Jim Meyering  <jim@meyering.net>
79634         Avoid use of private FTS type name.
79635         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79637 2007-12-30  Karl Berry  <karl@gnu.org>
79639         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79640         work around defect in Texinfo and/or the standalone Info browser.
79642 2007-12-30  Bruno Haible  <bruno@clisp.org>
79644         Unify 5 copies of the KMP code.
79645         * lib/str-kmp.h: New file.
79646         * lib/c-strcasestr.c: Include str-kmp.h.
79647         (knuth_morris_pratt): Remove function.
79648         (c_strcasestr): Update.
79649         * lib/c-strstr.c: Include str-kmp.h.
79650         (knuth_morris_pratt): Remove function.
79651         (c_strcasestr): Update.
79652         * lib/mbscasestr.c: Include str-kmp.h.
79653         (knuth_morris_pratt_unibyte): Remove function.
79654         * lib/mbsstr.c: Include str-kmp.h.
79655         (knuth_morris_pratt_unibyte): Remove function.
79656         * lib/strcasestr.c: Include str-kmp.h.
79657         (knuth_morris_pratt): Remove function.
79658         (strcasestr): Update.
79659         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79660         * modules/c-strstr (Files): Likewise.
79661         * modules/mbscasestr (Files): Likewise.
79662         * modules/mbsstr (Files): Likewise.
79663         * modules/strcasestr (Files): Likewise.
79664         Suggested by Paul Eggert.
79666 2007-12-30  Bruno Haible  <bruno@clisp.org>
79668         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79669         defined.
79671 2007-12-30  Bruno Haible  <bruno@clisp.org>
79673         * lib/xmalloca.h: Include xalloc.h.
79674         (xnmalloca): New macro.
79676 2007-12-30  Bruno Haible  <bruno@clisp.org>
79678         * lib/malloca.h (nmalloca): New macro.
79679         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79680         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79681         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79682         knuth_morris_pratt_multibyte): Likewise.
79683         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79684         knuth_morris_pratt_multibyte): Likewise.
79685         * lib/memmem.c (knuth_morris_pratt): Likewise.
79686         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79688 2007-12-25  Bruno Haible  <bruno@clisp.org>
79690         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79691         * lib/glob.c: Don't include openat.h.
79692         (link_exists2_p): Add back the code that deals with the
79693         !GLOB_ALTDIRFUNC case.
79694         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79695         let it do the filename concatenation.
79696         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79697         * modules/glob (Depends-on): Remove openat.
79699 2007-12-31  Bruno Haible  <bruno@clisp.org>
79701         * modules/dirfd (License): Change to LGPLv2+.
79702         Approved by Jim Meyering.
79704 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79706         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79707         when multiplying M by sizeof (size_t).
79709 2007-12-10  Martin Lambers  <marlam@marlam.de>
79711         Override getpagesize on mingw.
79712         * lib/getpagesize.c: New file.
79713         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79714         * modules/getpagesize (Files): Add lib/getpagesize.c.
79715         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79717         REPLACE_GETPAGESIZE.
79718         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79720 2007-12-25  Bruno Haible  <bruno@clisp.org>
79722         * modules/localcharset (Notice): New field.
79723         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79724         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79726 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79727             Bruno Haible  <bruno@clisp.org>
79729         Avoid using the syntax symbol() in formatted documentation.
79730         * MODULES.html.sh (func_module): When replacing symbol() with a
79731         hyperlink, remove the parentheses. Show an error if some remain.
79732         Recognize and render the '...' syntax.
79733         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79734         Rework. Add paragraph about GCC's inlining.
79735         * doc/alloca.texi: Likewise.
79736         * doc/error.texi: Remove parentheses from symbol reference.
79737         * doc/gnulib-intro.texi: Likewise.
79738         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79739         * modules/fnmatch (Description): Reword to say "the ... function".
79740         * modules/full-read (Description): Likewise.
79741         * modules/full-write (Description): Likewise.
79742         * modules/safe-read (Description): Likewise.
79743         * modules/safe-write (Description): Likewise.
79744         * modules/strchrnul (Description): Likewise.
79745         * modules/trim (Description): Likewise.
79746         * modules/error (Description): Remove parentheses from symbol
79747         references.
79748         * modules/verror (Description): Likewise.
79749         Reported by Karl Berry.
79751 2007-12-25  Bruno Haible  <bruno@clisp.org>
79753         Fixup after 2007-10-16 commit.
79754         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
79756 2007-12-24  Bruno Haible  <bruno@clisp.org>
79758         Make --enable-relocatable work with DESTDIR.
79759         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
79760         to compute installdir from destprog.
79761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
79762         also set the RELOC_DESTDIR variable.
79763         Reported by Левашев Иван <octagram@bluebottle.com>.
79765 2007-12-24  Bruno Haible  <bruno@clisp.org>
79767         Fix link error due to xalloc_die().
79768         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
79769         of xreadlink.
79770         * lib/relocwrapper.c: Update comments.
79771         * build-aux/install-reloc: Remove xreadlink.c from file list.
79772         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
79773         xreadlink.c.
79774         Reported by Левашев Иван <octagram@bluebottle.com>.
79776 2007-12-24  Bruno Haible  <bruno@clisp.org>
79778         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
79779         * lib/setenv.h: Remove file.
79780         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
79781         lib/setenv.h.
79782         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
79783         (Depends-on): Add stdlib.
79784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
79785         gl_FUNC_UNSETENV.
79786         (Include): Replace setenv.h with <stdlib.h>.
79787         * modules/unsetenv: New file.
79788         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
79789         * lib/unsetenv.c: Include <stdlib.h> first.
79790         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
79791         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
79792         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
79793         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
79794         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
79795         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
79797         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79798         * doc/functions/unsetenv.texi: Update.
79799         * modules/xsetenv (Depends-on): Add unsetenv.
79800         * modules/getdate (Depends-on): Likewise.
79801         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
79802         * lib/xsetenv.c: Don't include setenv.h.
79803         * lib/getdate.y: Likewise.
79804         * lib/relocwrapper.c: Likewise.
79805         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
79806         (Depends-on): Add stdlib.
79807         * NEWS: Mention the changes.
79808         Reported by Левашев Иван <octagram@bluebottle.com>.
79810 2007-12-23  Bruno Haible  <bruno@clisp.org>
79812         * lib/memmem.c (memmem): Use lowercase variable names. Tab
79813         indentation.
79815 2007-12-23  Bruno Haible  <bruno@clisp.org>
79817         * lib/c-strcasestr.c: Add more comments.
79818         * lib/c-strstr.c: Likewise.
79819         * lib/mbscasestr.c: Likewise.
79820         * lib/mbsstr.c: Likewise.
79821         * lib/strcasestr.c: Likewise.
79822         * lib/memmem.c: Likewise.
79824 2007-12-23  Bruno Haible  <bruno@clisp.org>
79826         * tests/test-memmem.c: Include <string.h> first.
79828 2007-12-22  Bruno Haible  <bruno@clisp.org>
79830         * gnulib-tool (func_create_testdir): Change $auxdir while generating
79831         the contents of $testsbase.
79832         Reported by Ralf Wildenhues.
79834 2007-12-22  Bruno Haible  <bruno@clisp.org>
79836         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
79837         two variables local_ldadd_before, local_ldadd_last.
79839 2007-12-20  Eric Blake  <ebb9@byu.net>
79841         Work around circular library issue when cross-compiling.
79842         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79843         that progname.o does not need to pull in rpl_memcmp.
79845 2007-12-19  Eric Blake  <ebb9@byu.net>
79847         Fix memmem to avoid O(n^2) worst-case complexity.
79848         * lib/memmem.c (knuth_morris_pratt): New function.
79849         (memmem): Use it if first few naive iterations fail.
79850         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
79851         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
79852         * modules/memchr (License): Likewise.
79853         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
79854         malloca.
79855         * tests/test-memmem.c: Rewrite, borrowing ideas from
79856         test-mbsstr1.c; the old version wouldn't even compile!
79857         * modules/memmem-tests: New file.
79858         * lib/string.in.h (rpl_memmem): Add declaration.
79859         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79861         REPLACE_MEMMEM.
79863 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79865         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79866         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79867         before any system include files, and undef after them all.  This
79868         should fix a problem on VMS reported by John E. Malmberg in
79869         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79871 2007-12-17  Eric Blake  <ebb9@byu.net>
79873         Revert addition of verify, for BSD/OS.
79874         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79875         can't handle large files, for the sake of obsolete platforms.
79876         * modules/fseeko (Depends-on): Remove verify.
79877         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79878         * doc/functions/ftello.texi (ftello): Likewise.
79879         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79880         Reported by Larry Jones.
79882 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79884         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79885         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79887 2007-12-17  Jim Meyering  <meyering@redhat.com>
79889         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79890         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79891         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79892         * modules/getcwd (Depends-on): Add openat.
79893         Reported by Petr Salinger.
79895 2007-12-17  Bruno Haible  <bruno@clisp.org>
79897         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79898         avoid a segmentation fault of the configure test on x86_64 systems.
79900 2007-12-15  Jim Meyering  <meyering@redhat.com>
79902         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79904 2007-12-13  Eric Blake  <ebb9@byu.net>
79906         Another fseek test.
79907         * tests/test-fseek.c (main): Also test ungetc handling.
79908         * tests/test-fseeko.c (main): Likewise.
79909         * modules/fseeko (Depends-on): Add verify.
79910         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79911         large.
79912         Reported by Larry Jones.
79914         Fix fseeko on mingw.
79915         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79916         seek.
79918         Beef up fseek tests.
79919         * tests/test-fseek.c (main): Also test eof handling.
79920         * tests/test-fseeko.c (main): Likewise.
79921         Reported by Larry Jones.
79923 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
79925         Fix fseeko on BSD-based platforms.
79926         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
79927         successful seek.
79929 2007-12-12  Eric Blake  <ebb9@byu.net>
79931         Allow circular dependency of separate libtests.a
79932         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
79933         when use_libtests.
79935 2007-12-11  Eric Blake  <ebb9@byu.net>
79937         Fix bug with -0.0L in previous patch.
79938         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
79939         * tests/test-isnan.c (main): Also test on zeroes.
79940         * tests/test-isnanf.c (main): Likewise.
79941         * tests/test-isnanl.h (main): Likewise.
79943         Detect pseudo-denormals on x86 even when cross-compiling.
79944         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
79945         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
79946         invalid bit patterns that happen to satisfy ==.
79948         Avoid link failures with separate libtests.a.
79949         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
79950         last, to satisfy circular dependencies.
79952 2007-12-11  Eric Blake  <ebb9@byu.net>
79953         and Bruno Haible  <bruno@clisp.org>
79955         Fix OpenBSD 4.0 <float.h> handling of long double.
79956         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
79957         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
79958         * doc/headers/float.texi (float.h): Document OpenBSD bug.
79960 2007-12-11  Jim Meyering  <meyering@redhat.com>
79962         * users.txt: Add libvirt.
79964         Support versions of autoconf prior to 2.59c.
79965         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
79966         if it is not already defined.
79968 2007-12-09  Bruno Haible  <bruno@clisp.org>
79970         Let 'gnulib-tool --import' collect sources needed for the tests in
79971         tests/ rather than in lib/.
79972         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
79973         argument. If true, add rules to generate libtests.a, and put libtests.a
79974         into $(LDADD). Consider source files in subdirectories and set
79975         uses_subdirs.
79976         (func_emit_initmacro_start, func_emit_initmacro_end,
79977         func_emit_initmacro_done): Pass all arguments explicitly.
79978         (func_import): Determine two module lists main_modules,
79979         testsrelated_modules. Determine use_libtests. Determine two variables
79980         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
79981         instead of just sed_transform_lib_file. Determine two variables
79982         main_files and testsrelated_files. Compute 'files' as the union of
79983         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
79984         func_add_or_update. In the generated gnulib-comp.m4, collect the
79985         object files for tests/ in different variables than those for lib/.
79986         Substitute LIBTESTS_LIBDEPS.
79987         (func_create_testdir): Combine the uses_subdirs results from
79988         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
79990 2007-12-09  Bruno Haible  <bruno@clisp.org>
79992         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
79993         the build-aux directory.
79995 2007-12-09  Bruno Haible  <bruno@clisp.org>
79997         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
79998         introduced on 2006-09-09.
80000 2007-12-07  Jim Meyering  <meyering@redhat.com>
80002         Let these macros work also with autoconf-2.59.
80003         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
80004         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
80005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80007 2007-12-06  Jim Meyering  <meyering@redhat.com>
80009         Avoid a configure-time syntax error in gl_FUNC_ACL.
80010         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
80011         function in each branch, before testing the cache variable.
80013 2007-12-04  Eric Blake  <ebb9@byu.net>
80015         Make scripts executable.
80016         * build-aux/config.guess: Add execute permissions.
80017         * build-aux/config.sub: Likewise.
80018         * build-aux/gendocs.sh: Likewise.
80020         Fix frexp on mingw.
80021         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
80022         cross-compiling.
80023         * doc/functions/frexp.texi (frexp): Document the bug.
80025         Make cygwin fseeko check more reliable.
80026         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
80027         version numbers, rather than unrelated feature check.
80028         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
80029         * doc/functions/ftello.texi (ftello): Likewise.
80030         Reported by Bruno Haible.
80032         * m4/strerror.m4: Bump version number.
80034 2007-12-03  Bruno Haible  <bruno@clisp.org>
80036         * doc/functions/mprotect.texi: Mention the mingw problem.
80038 2007-12-03  Eric Blake  <ebb9@byu.net>
80040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
80041         REPLACE_STRERROR is initialized before this macro.
80043 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
80045         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
80046         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
80047         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
80048         put -lsec in even for programs other than 'ls'.  This fixes a problem
80049         for gettext reported by Bruno Haible in
80050         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
80051         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
80052         Add support for Solaris 10.  This isn't efficient, but should get the
80053         job done for now.
80055 2007-12-03  James Youngman  <jay@gnu.org>
80057         * doc/regexprops-generic.texi: change "an close-group" to "a
80058         close-group" and "illegal" to "not allowed".
80060 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80062         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
80063         pr_byname.h. Needed for the rare case when the maintainer has done
80064         "make maintainer-clean" in the source directory and then attempts a
80065         build outside the source directory.
80066         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
80067         scripts_byname.h.
80069 2007-12-02  Martin Lambers  <marlam@marlam.de>
80070             Bruno Haible  <bruno@clisp.org>
80072         * lib/getpagesize.h: Remove file.
80073         * lib/unistd.in.h: Include declaration of getpagesize here.
80074         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
80075         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
80076         HAVE_SYS_PARAM_H.
80077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
80078         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80079         * modules/getpagesize (Files): Remove lib/getpagesize.h.
80080         (Depends-on): Add unistd.
80081         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80082         (Include): Use <unistd.h> instead of getpagesize.h.
80083         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
80084         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80085         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
80086         gl_GETPAGESIZE invocation, already handled by module dependency.
80087         * lib/pagealign_alloc.c: Don't include getpagesize.h.
80089 2007-12-02  Bruno Haible  <bruno@clisp.org>
80091         * modules/strings-tests: New file.
80092         * tests/test-strings.c: New file.
80094         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
80095         * lib/strings.in.h: New file.
80096         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
80097         * m4/strings_h.m4: New file.
80098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
80099         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
80100         * modules/strings: New file.
80101         * modules/string (Makefile.am): Update.
80102         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
80103         Reported by Karl Berry.
80105 2007-12-01  Eric Blake  <ebb9@byu.net>
80107         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
80108         accommodate fix in cygwin 1.5.25.
80110 2007-12-01  Jim Meyering  <meyering@redhat.com>
80112         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
80113         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
80114         that would inhibit utf8-optimization of a regexp containing line-
80115         or buffer-anchors, e.g., `^', `$'.
80117 2007-11-30  Bruno Haible  <bruno@clisp.org>
80119         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
80120         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
80121         glthread_recursive_lock_init.
80122         * lib/lock.c (glthread_recursive_lock_init)
80123         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
80124         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80126 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
80128         New function qset_acl, like set_acl but with syscall semantics.
80129         * lib/acl.h (qset_acl): New decl.
80130         * lib/acl.c (qset_acl): New function.
80131         (set_acl): Use new function.  Use more-consistent diagnostics.
80133 2007-11-28  Jim Meyering  <meyering@redhat.com>
80135         * modules/physmem (License): Change from GPL to LGPLv2+.
80137 2007-11-26  Bruno Haible  <bruno@clisp.org>
80139         * lib/vasnprintf.c (decode_long_double): Don't abort if the
80140         'long double' type has excess precision.
80141         Reported by Jim Meyering in
80142         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
80144 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80146         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
80147         Sync from <http://gnu.org/licenses>.
80148         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
80149         with license text from same location.
80150         * doc/maintain.texi, doc/standards.texi:  Sync from
80151         <http://savannah.gnu.org/projects/gnustandards>.
80153 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
80154         and Jim Meyering  <meyering@redhat.com>
80156         Adjust getdate' grammar to accept a slightly more regular language.
80157         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
80158         Before, the former was rejected.
80159         * lib/getdate.y (digits_to_date_time): New function, factored
80160         out of ...
80161         (number): ...here.  Just call digits_to_date_time.
80162         (hybrid): New non-terminal to handle an <unsigned number,
80163         signed relative offset> sequence consistently.
80165 2007-11-18  Jim Meyering  <meyering@redhat.com>
80167         Pull my changes from coreutils:
80168         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
80169         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
80170         use of $gnulib_tool_option_extras, so that it's separated from the
80171         preceding argument.
80173         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
80174         * build-aux/bootstrap (cp_mark_as_generated): Create any required
80175         parent destination directories before copying a file into place.
80177 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
80179         bootstrap: work also with 4-argument variant of AC_INIT
80180         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
80182 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80184         Port test-getaddrinfo to Solaris.
80185         Problem reported by Bruno Haible in
80186         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
80187         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
80188         explanation of setting 'hints'.
80189         Don't reject an implementation merely because it returns EAI_SERVICE.
80190         (EAI_SERVICE): Define to 0 if not defined.
80192 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80194         The license of gnu-make and posix-shell is now "GPLed build tool".
80195         * modules/gnu-make (License): Likewise.
80196         * modules/posix-shell (License): Likewise.
80198         New module posix-shell, for determining a POSIX shell
80199         or perhaps something that is close enough to a POSIX shell.
80200         * m4/posix-shell.m4: New file.
80201         * modules/posix-shell: New file.
80203         * MODULES.html.sh: Mention new module.
80205         New module gnu-make, for determining whether we're using GNU Make.
80206         * m4/gnu-make.m4: New file.
80207         * modules/gnu-make: New file.
80208         * MODULES.html.sh: Mention new module.
80210 2007-11-14  Jim Meyering  <meyering@redhat.com>
80212         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
80213         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
80214         use this macro to create a function _definition_.
80215         Remove useless "#undef ARGMATCH_DIE".
80217 2007-11-14  Bruno Haible  <bruno@clisp.org>
80219         * lib/config.charset: Update for OpenBSD 4.1.
80220         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
80222 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
80224         Document 64-bit #if problems in stdint.texi.
80225         * doc/headers/stdint.texi (stdint.h): Mention problems with
80226         64-bit-#if, and how to work around them.
80228         Don't insist on 'long long int' support in the preprocessor.  It
80229         breaks too many things.  For example, PRIdMAX still uses a 'long
80230         long int' format with the latest Sun compiler, even though
80231         HAVE_LONG_LONG_INT isn't defined due to that compiler's
80232         preprocessor problem.  This causes the latest coreutils to dump
80233         core on Solaris 10 sparc with the Sun C compiler.
80234         Instead, fix the 2007-10-16 problem in a different way, by evaluating
80235         the troublesome expressions at configure-time, not at #if-time.
80236         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
80237         preprocessor.
80238         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
80239         compile-time C checks, done at 'configure'-time.
80240         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
80241         * modules/inttypes (Makefile): Substitute the new symbols that
80242         gl_INTTYPES_H now generates.
80243         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
80245 2007-11-12  Bruno Haible  <bruno@clisp.org>
80247         Tests for Unicode character classification functions.
80249         * modules/unictype/bidicategory-byname-tests: New file.
80250         * modules/unictype/bidicategory-name-tests: New file.
80251         * modules/unictype/bidicategory-of-tests: New file.
80252         * modules/unictype/bidicategory-test-tests: New file.
80253         * modules/unictype/block-list-tests: New file.
80254         * modules/unictype/block-of-tests: New file.
80255         * modules/unictype/block-test-tests: New file.
80256         * modules/unictype/category-C-tests: New file.
80257         * modules/unictype/category-Cc-tests: New file.
80258         * modules/unictype/category-Cf-tests: New file.
80259         * modules/unictype/category-Cn-tests: New file.
80260         * modules/unictype/category-Co-tests: New file.
80261         * modules/unictype/category-Cs-tests: New file.
80262         * modules/unictype/category-L-tests: New file.
80263         * modules/unictype/category-Ll-tests: New file.
80264         * modules/unictype/category-Lm-tests: New file.
80265         * modules/unictype/category-Lo-tests: New file.
80266         * modules/unictype/category-Lt-tests: New file.
80267         * modules/unictype/category-Lu-tests: New file.
80268         * modules/unictype/category-M-tests: New file.
80269         * modules/unictype/category-Mc-tests: New file.
80270         * modules/unictype/category-Me-tests: New file.
80271         * modules/unictype/category-Mn-tests: New file.
80272         * modules/unictype/category-N-tests: New file.
80273         * modules/unictype/category-Nd-tests: New file.
80274         * modules/unictype/category-Nl-tests: New file.
80275         * modules/unictype/category-No-tests: New file.
80276         * modules/unictype/category-P-tests: New file.
80277         * modules/unictype/category-Pc-tests: New file.
80278         * modules/unictype/category-Pd-tests: New file.
80279         * modules/unictype/category-Pe-tests: New file.
80280         * modules/unictype/category-Pf-tests: New file.
80281         * modules/unictype/category-Pi-tests: New file.
80282         * modules/unictype/category-Po-tests: New file.
80283         * modules/unictype/category-Ps-tests: New file.
80284         * modules/unictype/category-S-tests: New file.
80285         * modules/unictype/category-Sc-tests: New file.
80286         * modules/unictype/category-Sk-tests: New file.
80287         * modules/unictype/category-Sm-tests: New file.
80288         * modules/unictype/category-So-tests: New file.
80289         * modules/unictype/category-Z-tests: New file.
80290         * modules/unictype/category-Zl-tests: New file.
80291         * modules/unictype/category-Zp-tests: New file.
80292         * modules/unictype/category-Zs-tests: New file.
80293         * modules/unictype/category-and-not-tests: New file.
80294         * modules/unictype/category-and-tests: New file.
80295         * modules/unictype/category-byname-tests: New file.
80296         * modules/unictype/category-name-tests: New file.
80297         * modules/unictype/category-none-tests: New file.
80298         * modules/unictype/category-of-tests: New file.
80299         * modules/unictype/category-or-tests: New file.
80300         * modules/unictype/category-test-withtable-tests: New file.
80301         * modules/unictype/combining-class-tests: New file.
80302         * modules/unictype/ctype-alnum-tests: New file.
80303         * modules/unictype/ctype-alpha-tests: New file.
80304         * modules/unictype/ctype-blank-tests: New file.
80305         * modules/unictype/ctype-cntrl-tests: New file.
80306         * modules/unictype/ctype-digit-tests: New file.
80307         * modules/unictype/ctype-graph-tests: New file.
80308         * modules/unictype/ctype-lower-tests: New file.
80309         * modules/unictype/ctype-print-tests: New file.
80310         * modules/unictype/ctype-punct-tests: New file.
80311         * modules/unictype/ctype-space-tests: New file.
80312         * modules/unictype/ctype-upper-tests: New file.
80313         * modules/unictype/ctype-xdigit-tests: New file.
80314         * modules/unictype/decimal-digit-tests: New file.
80315         * modules/unictype/digit-tests: New file.
80316         * modules/unictype/mirror-tests: New file.
80317         * modules/unictype/numeric-tests: New file.
80318         * modules/unictype/property-alphabetic-tests: New file.
80319         * modules/unictype/property-ascii-hex-digit-tests: New file.
80320         * modules/unictype/property-bidi-arabic-digit-tests: New file.
80321         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
80322         * modules/unictype/property-bidi-block-separator-tests: New file.
80323         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
80324         * modules/unictype/property-bidi-common-separator-tests: New file.
80325         * modules/unictype/property-bidi-control-tests: New file.
80326         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
80327         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
80328         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
80329         * modules/unictype/property-bidi-european-digit-tests: New file.
80330         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
80331         * modules/unictype/property-bidi-left-to-right-tests: New file.
80332         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
80333         * modules/unictype/property-bidi-other-neutral-tests: New file.
80334         * modules/unictype/property-bidi-pdf-tests: New file.
80335         * modules/unictype/property-bidi-segment-separator-tests: New file.
80336         * modules/unictype/property-bidi-whitespace-tests: New file.
80337         * modules/unictype/property-byname-tests: New file.
80338         * modules/unictype/property-combining-tests: New file.
80339         * modules/unictype/property-composite-tests: New file.
80340         * modules/unictype/property-currency-symbol-tests: New file.
80341         * modules/unictype/property-dash-tests: New file.
80342         * modules/unictype/property-decimal-digit-tests: New file.
80343         * modules/unictype/property-default-ignorable-code-point-tests: New file.
80344         * modules/unictype/property-deprecated-tests: New file.
80345         * modules/unictype/property-diacritic-tests: New file.
80346         * modules/unictype/property-extender-tests: New file.
80347         * modules/unictype/property-format-control-tests: New file.
80348         * modules/unictype/property-grapheme-base-tests: New file.
80349         * modules/unictype/property-grapheme-extend-tests: New file.
80350         * modules/unictype/property-grapheme-link-tests: New file.
80351         * modules/unictype/property-hex-digit-tests: New file.
80352         * modules/unictype/property-hyphen-tests: New file.
80353         * modules/unictype/property-id-continue-tests: New file.
80354         * modules/unictype/property-id-start-tests: New file.
80355         * modules/unictype/property-ideographic-tests: New file.
80356         * modules/unictype/property-ids-binary-operator-tests: New file.
80357         * modules/unictype/property-ids-trinary-operator-tests: New file.
80358         * modules/unictype/property-ignorable-control-tests: New file.
80359         * modules/unictype/property-iso-control-tests: New file.
80360         * modules/unictype/property-join-control-tests: New file.
80361         * modules/unictype/property-left-of-pair-tests: New file.
80362         * modules/unictype/property-line-separator-tests: New file.
80363         * modules/unictype/property-logical-order-exception-tests: New file.
80364         * modules/unictype/property-lowercase-tests: New file.
80365         * modules/unictype/property-math-tests: New file.
80366         * modules/unictype/property-non-break-tests: New file.
80367         * modules/unictype/property-not-a-character-tests: New file.
80368         * modules/unictype/property-numeric-tests: New file.
80369         * modules/unictype/property-other-alphabetic-tests: New file.
80370         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
80371         * modules/unictype/property-other-grapheme-extend-tests: New file.
80372         * modules/unictype/property-other-id-continue-tests: New file.
80373         * modules/unictype/property-other-id-start-tests: New file.
80374         * modules/unictype/property-other-lowercase-tests: New file.
80375         * modules/unictype/property-other-math-tests: New file.
80376         * modules/unictype/property-other-uppercase-tests: New file.
80377         * modules/unictype/property-paired-punctuation-tests: New file.
80378         * modules/unictype/property-paragraph-separator-tests: New file.
80379         * modules/unictype/property-pattern-syntax-tests: New file.
80380         * modules/unictype/property-pattern-white-space-tests: New file.
80381         * modules/unictype/property-private-use-tests: New file.
80382         * modules/unictype/property-punctuation-tests: New file.
80383         * modules/unictype/property-quotation-mark-tests: New file.
80384         * modules/unictype/property-radical-tests: New file.
80385         * modules/unictype/property-sentence-terminal-tests: New file.
80386         * modules/unictype/property-soft-dotted-tests: New file.
80387         * modules/unictype/property-space-tests: New file.
80388         * modules/unictype/property-terminal-punctuation-tests: New file.
80389         * modules/unictype/property-test-tests: New file.
80390         * modules/unictype/property-titlecase-tests: New file.
80391         * modules/unictype/property-unassigned-code-value-tests: New file.
80392         * modules/unictype/property-unified-ideograph-tests: New file.
80393         * modules/unictype/property-uppercase-tests: New file.
80394         * modules/unictype/property-variation-selector-tests: New file.
80395         * modules/unictype/property-white-space-tests: New file.
80396         * modules/unictype/property-xid-continue-tests: New file.
80397         * modules/unictype/property-xid-start-tests: New file.
80398         * modules/unictype/property-zero-width-tests: New file.
80399         * modules/unictype/scripts-tests: New file.
80400         * modules/unictype/syntax-c-ident-tests: New file.
80401         * modules/unictype/syntax-c-whitespace-tests: New file.
80402         * modules/unictype/syntax-java-ident-tests: New file.
80403         * modules/unictype/syntax-java-whitespace-tests: New file.
80404         * tests/unictype/test-bidi_byname.c: New file.
80405         * tests/unictype/test-bidi_name.c: New file.
80406         * tests/unictype/test-bidi_of.c: New file.
80407         * tests/unictype/test-bidi_test.c: New file.
80408         * tests/unictype/test-block_list.c: New file.
80409         * tests/unictype/test-block_of.c: New file.
80410         * tests/unictype/test-block_test.c: New file.
80411         * tests/unictype/test-categ_and.c: New file.
80412         * tests/unictype/test-categ_and_not.c: New file.
80413         * tests/unictype/test-categ_byname.c: New file.
80414         * tests/unictype/test-categ_name.c: New file.
80415         * tests/unictype/test-categ_none.c: New file.
80416         * tests/unictype/test-categ_of.c: New file.
80417         * tests/unictype/test-categ_or.c: New file.
80418         * tests/unictype/test-categ_test_withtable.c: New file.
80419         * tests/unictype/test-combining.c: New file.
80420         * tests/unictype/test-decdigit.c: New file.
80421         * tests/unictype/test-digit.c: New file.
80422         * tests/unictype/test-mirror.c: New file.
80423         * tests/unictype/test-numeric.c: New file.
80424         * tests/unictype/test-pr_byname.c: New file.
80425         * tests/unictype/test-pr_test.c: New file.
80426         * tests/unictype/test-predicate-part1.h: New file.
80427         * tests/unictype/test-predicate-part2.h: New file.
80428         * tests/unictype/test-scripts.c: New file.
80429         * tests/unictype/test-sy_c_ident.c: New file.
80430         * tests/unictype/test-sy_java_ident.c: New file.
80432         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
80433         for Unicode 5.0.0.
80434         * tests/unictype/test-categ_Cc.c: Likewise.
80435         * tests/unictype/test-categ_Cf.c: Likewise.
80436         * tests/unictype/test-categ_Cn.c: Likewise.
80437         * tests/unictype/test-categ_Co.c: Likewise.
80438         * tests/unictype/test-categ_Cs.c: Likewise.
80439         * tests/unictype/test-categ_L.c: Likewise.
80440         * tests/unictype/test-categ_Ll.c: Likewise.
80441         * tests/unictype/test-categ_Lm.c: Likewise.
80442         * tests/unictype/test-categ_Lo.c: Likewise.
80443         * tests/unictype/test-categ_Lt.c: Likewise.
80444         * tests/unictype/test-categ_Lu.c: Likewise.
80445         * tests/unictype/test-categ_M.c: Likewise.
80446         * tests/unictype/test-categ_Mc.c: Likewise.
80447         * tests/unictype/test-categ_Me.c: Likewise.
80448         * tests/unictype/test-categ_Mn.c: Likewise.
80449         * tests/unictype/test-categ_N.c: Likewise.
80450         * tests/unictype/test-categ_Nd.c: Likewise.
80451         * tests/unictype/test-categ_Nl.c: Likewise.
80452         * tests/unictype/test-categ_No.c: Likewise.
80453         * tests/unictype/test-categ_P.c: Likewise.
80454         * tests/unictype/test-categ_Pc.c: Likewise.
80455         * tests/unictype/test-categ_Pd.c: Likewise.
80456         * tests/unictype/test-categ_Pe.c: Likewise.
80457         * tests/unictype/test-categ_Pf.c: Likewise.
80458         * tests/unictype/test-categ_Pi.c: Likewise.
80459         * tests/unictype/test-categ_Po.c: Likewise.
80460         * tests/unictype/test-categ_Ps.c: Likewise.
80461         * tests/unictype/test-categ_S.c: Likewise.
80462         * tests/unictype/test-categ_Sc.c: Likewise.
80463         * tests/unictype/test-categ_Sk.c: Likewise.
80464         * tests/unictype/test-categ_Sm.c: Likewise.
80465         * tests/unictype/test-categ_So.c: Likewise.
80466         * tests/unictype/test-categ_Z.c: Likewise.
80467         * tests/unictype/test-categ_Zl.c: Likewise.
80468         * tests/unictype/test-categ_Zp.c: Likewise.
80469         * tests/unictype/test-categ_Zs.c: Likewise.
80470         * tests/unictype/test-ctype_alnum.c: Likewise.
80471         * tests/unictype/test-ctype_alpha.c: Likewise.
80472         * tests/unictype/test-ctype_blank.c: Likewise.
80473         * tests/unictype/test-ctype_cntrl.c: Likewise.
80474         * tests/unictype/test-ctype_digit.c: Likewise.
80475         * tests/unictype/test-ctype_graph.c: Likewise.
80476         * tests/unictype/test-ctype_lower.c: Likewise.
80477         * tests/unictype/test-ctype_print.c: Likewise.
80478         * tests/unictype/test-ctype_punct.c: Likewise.
80479         * tests/unictype/test-ctype_space.c: Likewise.
80480         * tests/unictype/test-ctype_upper.c: Likewise.
80481         * tests/unictype/test-ctype_xdigit.c: Likewise.
80482         * tests/unictype/test-decdigit.h: Likewise.
80483         * tests/unictype/test-digit.h: Likewise.
80484         * tests/unictype/test-numeric.h: Likewise.
80485         * tests/unictype/test-pr_alphabetic.c: Likewise.
80486         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
80487         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
80488         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
80489         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
80490         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
80491         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
80492         * tests/unictype/test-pr_bidi_control.c: Likewise.
80493         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
80494         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
80495         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
80496         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
80497         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
80498         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
80499         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
80500         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
80501         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
80502         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
80503         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
80504         * tests/unictype/test-pr_combining.c: Likewise.
80505         * tests/unictype/test-pr_composite.c: Likewise.
80506         * tests/unictype/test-pr_currency_symbol.c: Likewise.
80507         * tests/unictype/test-pr_dash.c: Likewise.
80508         * tests/unictype/test-pr_decimal_digit.c: Likewise.
80509         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
80510         * tests/unictype/test-pr_deprecated.c: Likewise.
80511         * tests/unictype/test-pr_diacritic.c: Likewise.
80512         * tests/unictype/test-pr_extender.c: Likewise.
80513         * tests/unictype/test-pr_format_control.c: Likewise.
80514         * tests/unictype/test-pr_grapheme_base.c: Likewise.
80515         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
80516         * tests/unictype/test-pr_grapheme_link.c: Likewise.
80517         * tests/unictype/test-pr_hex_digit.c: Likewise.
80518         * tests/unictype/test-pr_hyphen.c: Likewise.
80519         * tests/unictype/test-pr_id_continue.c: Likewise.
80520         * tests/unictype/test-pr_id_start.c: Likewise.
80521         * tests/unictype/test-pr_ideographic.c: Likewise.
80522         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
80523         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
80524         * tests/unictype/test-pr_ignorable_control.c: Likewise.
80525         * tests/unictype/test-pr_iso_control.c: Likewise.
80526         * tests/unictype/test-pr_join_control.c: Likewise.
80527         * tests/unictype/test-pr_left_of_pair.c: Likewise.
80528         * tests/unictype/test-pr_line_separator.c: Likewise.
80529         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
80530         * tests/unictype/test-pr_lowercase.c: Likewise.
80531         * tests/unictype/test-pr_math.c: Likewise.
80532         * tests/unictype/test-pr_non_break.c: Likewise.
80533         * tests/unictype/test-pr_not_a_character.c: Likewise.
80534         * tests/unictype/test-pr_numeric.c: Likewise.
80535         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
80536         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
80537         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
80538         * tests/unictype/test-pr_other_id_continue.c: Likewise.
80539         * tests/unictype/test-pr_other_id_start.c: Likewise.
80540         * tests/unictype/test-pr_other_lowercase.c: Likewise.
80541         * tests/unictype/test-pr_other_math.c: Likewise.
80542         * tests/unictype/test-pr_other_uppercase.c: Likewise.
80543         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
80544         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
80545         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
80546         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
80547         * tests/unictype/test-pr_private_use.c: Likewise.
80548         * tests/unictype/test-pr_punctuation.c: Likewise.
80549         * tests/unictype/test-pr_quotation_mark.c: Likewise.
80550         * tests/unictype/test-pr_radical.c: Likewise.
80551         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
80552         * tests/unictype/test-pr_soft_dotted.c: Likewise.
80553         * tests/unictype/test-pr_space.c: Likewise.
80554         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
80555         * tests/unictype/test-pr_titlecase.c: Likewise.
80556         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
80557         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
80558         * tests/unictype/test-pr_uppercase.c: Likewise.
80559         * tests/unictype/test-pr_variation_selector.c: Likewise.
80560         * tests/unictype/test-pr_white_space.c: Likewise.
80561         * tests/unictype/test-pr_xid_continue.c: Likewise.
80562         * tests/unictype/test-pr_xid_start.c: Likewise.
80563         * tests/unictype/test-pr_zero_width.c: Likewise.
80564         * tests/unictype/test-sy_c_whitespace.c: Likewise.
80565         * tests/unictype/test-sy_java_whitespace.c: Likewise.
80567 2007-11-12  Bruno Haible  <bruno@clisp.org>
80569         Unicode character classification functions.
80570         * lib/unictype.h: New file.
80571         * modules/unictype/base: New file.
80572         * modules/unictype/category-L: New file.
80573         * modules/unictype/category-Lu: New file.
80574         * modules/unictype/category-Ll: New file.
80575         * modules/unictype/category-Lt: New file.
80576         * modules/unictype/category-Lm: New file.
80577         * modules/unictype/category-Lo: New file.
80578         * modules/unictype/category-M: New file.
80579         * modules/unictype/category-Mn: New file.
80580         * modules/unictype/category-Mc: New file.
80581         * modules/unictype/category-Me: New file.
80582         * modules/unictype/category-N: New file.
80583         * modules/unictype/category-Nd: New file.
80584         * modules/unictype/category-Nl: New file.
80585         * modules/unictype/category-No: New file.
80586         * modules/unictype/category-P: New file.
80587         * modules/unictype/category-Pc: New file.
80588         * modules/unictype/category-Pd: New file.
80589         * modules/unictype/category-Ps: New file.
80590         * modules/unictype/category-Pe: New file.
80591         * modules/unictype/category-Pi: New file.
80592         * modules/unictype/category-Pf: New file.
80593         * modules/unictype/category-Po: New file.
80594         * modules/unictype/category-S: New file.
80595         * modules/unictype/category-Sm: New file.
80596         * modules/unictype/category-Sc: New file.
80597         * modules/unictype/category-Sk: New file.
80598         * modules/unictype/category-So: New file.
80599         * modules/unictype/category-Z: New file.
80600         * modules/unictype/category-Zs: New file.
80601         * modules/unictype/category-Zl: New file.
80602         * modules/unictype/category-Zp: New file.
80603         * modules/unictype/category-C: New file.
80604         * modules/unictype/category-Cc: New file.
80605         * modules/unictype/category-Cf: New file.
80606         * modules/unictype/category-Cs: New file.
80607         * modules/unictype/category-Co: New file.
80608         * modules/unictype/category-Cn: New file.
80609         * modules/unictype/category-or: New file.
80610         * modules/unictype/category-of: New file.
80611         * modules/unictype/category-test: New file.
80612         * modules/unictype/category-test-withtable: New file.
80613         * modules/unictype/category-byname: New file.
80614         * modules/unictype/category-none: New file.
80615         * modules/unictype/category-and: New file.
80616         * modules/unictype/category-and-not: New file.
80617         * modules/unictype/category-name: New file.
80618         * modules/unictype/combining-class: New file.
80619         * modules/unictype/category-all: New file.
80620         * modules/unictype/bidicategory-all: New file.
80621         * modules/unictype/bidicategory-byname: New file.
80622         * modules/unictype/bidicategory-name: New file.
80623         * modules/unictype/bidicategory-of: New file.
80624         * modules/unictype/bidicategory-test: New file.
80625         * modules/unictype/decimal-digit: New file.
80626         * modules/unictype/digit: New file.
80627         * modules/unictype/numeric: New file.
80628         * modules/unictype/mirror: New file.
80629         * modules/unictype/property-white-space: New file.
80630         * modules/unictype/property-alphabetic: New file.
80631         * modules/unictype/property-other-alphabetic: New file.
80632         * modules/unictype/property-not-a-character: New file.
80633         * modules/unictype/property-default-ignorable-code-point: New file.
80634         * modules/unictype/property-other-default-ignorable-code-point: New
80635         file.
80636         * modules/unictype/property-deprecated: New file.
80637         * modules/unictype/property-logical-order-exception: New file.
80638         * modules/unictype/property-variation-selector: New file.
80639         * modules/unictype/property-private-use: New file.
80640         * modules/unictype/property-unassigned-code-value: New file.
80641         * modules/unictype/property-uppercase: New file.
80642         * modules/unictype/property-other-uppercase: New file.
80643         * modules/unictype/property-lowercase: New file.
80644         * modules/unictype/property-other-lowercase: New file.
80645         * modules/unictype/property-titlecase: New file.
80646         * modules/unictype/property-soft-dotted: New file.
80647         * modules/unictype/property-id-start: New file.
80648         * modules/unictype/property-other-id-start: New file.
80649         * modules/unictype/property-id-continue: New file.
80650         * modules/unictype/property-other-id-continue: New file.
80651         * modules/unictype/property-xid-start: New file.
80652         * modules/unictype/property-xid-continue: New file.
80653         * modules/unictype/property-pattern-white-space: New file.
80654         * modules/unictype/property-pattern-syntax: New file.
80655         * modules/unictype/property-join-control: New file.
80656         * modules/unictype/property-grapheme-base: New file.
80657         * modules/unictype/property-grapheme-extend: New file.
80658         * modules/unictype/property-other-grapheme-extend: New file.
80659         * modules/unictype/property-grapheme-link: New file.
80660         * modules/unictype/property-bidi-control: New file.
80661         * modules/unictype/property-bidi-left-to-right: New file.
80662         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80663         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80664         * modules/unictype/property-bidi-european-digit: New file.
80665         * modules/unictype/property-bidi-eur-num-separator: New file.
80666         * modules/unictype/property-bidi-eur-num-terminator: New file.
80667         * modules/unictype/property-bidi-arabic-digit: New file.
80668         * modules/unictype/property-bidi-common-separator: New file.
80669         * modules/unictype/property-bidi-block-separator: New file.
80670         * modules/unictype/property-bidi-segment-separator: New file.
80671         * modules/unictype/property-bidi-whitespace: New file.
80672         * modules/unictype/property-bidi-non-spacing-mark: New file.
80673         * modules/unictype/property-bidi-boundary-neutral: New file.
80674         * modules/unictype/property-bidi-pdf: New file.
80675         * modules/unictype/property-bidi-embedding-or-override: New file.
80676         * modules/unictype/property-bidi-other-neutral: New file.
80677         * modules/unictype/property-hex-digit: New file.
80678         * modules/unictype/property-ascii-hex-digit: New file.
80679         * modules/unictype/property-ideographic: New file.
80680         * modules/unictype/property-unified-ideograph: New file.
80681         * modules/unictype/property-radical: New file.
80682         * modules/unictype/property-ids-binary-operator: New file.
80683         * modules/unictype/property-ids-trinary-operator: New file.
80684         * modules/unictype/property-zero-width: New file.
80685         * modules/unictype/property-space: New file.
80686         * modules/unictype/property-non-break: New file.
80687         * modules/unictype/property-iso-control: New file.
80688         * modules/unictype/property-format-control: New file.
80689         * modules/unictype/property-dash: New file.
80690         * modules/unictype/property-hyphen: New file.
80691         * modules/unictype/property-punctuation: New file.
80692         * modules/unictype/property-line-separator: New file.
80693         * modules/unictype/property-paragraph-separator: New file.
80694         * modules/unictype/property-quotation-mark: New file.
80695         * modules/unictype/property-sentence-terminal: New file.
80696         * modules/unictype/property-terminal-punctuation: New file.
80697         * modules/unictype/property-currency-symbol: New file.
80698         * modules/unictype/property-math: New file.
80699         * modules/unictype/property-other-math: New file.
80700         * modules/unictype/property-paired-punctuation: New file.
80701         * modules/unictype/property-left-of-pair: New file.
80702         * modules/unictype/property-combining: New file.
80703         * modules/unictype/property-composite: New file.
80704         * modules/unictype/property-decimal-digit: New file.
80705         * modules/unictype/property-numeric: New file.
80706         * modules/unictype/property-diacritic: New file.
80707         * modules/unictype/property-extender: New file.
80708         * modules/unictype/property-ignorable-control: New file.
80709         * modules/unictype/property-test: New file.
80710         * modules/unictype/property-byname: New file.
80711         * modules/unictype/property-all: New file.
80712         * modules/unictype/scripts: New file.
80713         * modules/unictype/scripts-all: New file.
80714         * modules/unictype/block-of: New file.
80715         * modules/unictype/block-test: New file.
80716         * modules/unictype/block-list: New file.
80717         * modules/unictype/block-all: New file.
80718         * modules/unictype/syntax-c-whitespace: New file.
80719         * modules/unictype/syntax-java-whitespace: New file.
80720         * modules/unictype/syntax-c-ident: New file.
80721         * modules/unictype/syntax-java-ident: New file.
80722         * modules/unictype/ctype-alnum: New file.
80723         * modules/unictype/ctype-alpha: New file.
80724         * modules/unictype/ctype-cntrl: New file.
80725         * modules/unictype/ctype-digit: New file.
80726         * modules/unictype/ctype-graph: New file.
80727         * modules/unictype/ctype-lower: New file.
80728         * modules/unictype/ctype-print: New file.
80729         * modules/unictype/ctype-punct: New file.
80730         * modules/unictype/ctype-space: New file.
80731         * modules/unictype/ctype-upper: New file.
80732         * modules/unictype/ctype-xdigit: New file.
80733         * modules/unictype/ctype-blank: New file.
80734         * lib/unictype/bidi_byname.c: New file.
80735         * lib/unictype/bidi_name.c: New file.
80736         * lib/unictype/bidi_of.c: New file.
80737         * lib/unictype/bidi_test.c: New file.
80738         * lib/unictype/bitmap.h: New file.
80739         * lib/unictype/block_test.c: New file.
80740         * lib/unictype/blocks.c: New file.
80741         * lib/unictype/categ_C.c: New file.
80742         * lib/unictype/categ_Cc.c: New file.
80743         * lib/unictype/categ_Cf.c: New file.
80744         * lib/unictype/categ_Cn.c: New file.
80745         * lib/unictype/categ_Co.c: New file.
80746         * lib/unictype/categ_Cs.c: New file.
80747         * lib/unictype/categ_L.c: New file.
80748         * lib/unictype/categ_Ll.c: New file.
80749         * lib/unictype/categ_Lm.c: New file.
80750         * lib/unictype/categ_Lo.c: New file.
80751         * lib/unictype/categ_Lt.c: New file.
80752         * lib/unictype/categ_Lu.c: New file.
80753         * lib/unictype/categ_M.c: New file.
80754         * lib/unictype/categ_Mc.c: New file.
80755         * lib/unictype/categ_Me.c: New file.
80756         * lib/unictype/categ_Mn.c: New file.
80757         * lib/unictype/categ_N.c: New file.
80758         * lib/unictype/categ_Nd.c: New file.
80759         * lib/unictype/categ_Nl.c: New file.
80760         * lib/unictype/categ_No.c: New file.
80761         * lib/unictype/categ_P.c: New file.
80762         * lib/unictype/categ_Pc.c: New file.
80763         * lib/unictype/categ_Pd.c: New file.
80764         * lib/unictype/categ_Pe.c: New file.
80765         * lib/unictype/categ_Pf.c: New file.
80766         * lib/unictype/categ_Pi.c: New file.
80767         * lib/unictype/categ_Po.c: New file.
80768         * lib/unictype/categ_Ps.c: New file.
80769         * lib/unictype/categ_S.c: New file.
80770         * lib/unictype/categ_Sc.c: New file.
80771         * lib/unictype/categ_Sk.c: New file.
80772         * lib/unictype/categ_Sm.c: New file.
80773         * lib/unictype/categ_So.c: New file.
80774         * lib/unictype/categ_Z.c: New file.
80775         * lib/unictype/categ_Zl.c: New file.
80776         * lib/unictype/categ_Zp.c: New file.
80777         * lib/unictype/categ_Zs.c: New file.
80778         * lib/unictype/categ_and.c: New file.
80779         * lib/unictype/categ_and_not.c: New file.
80780         * lib/unictype/categ_byname.c: New file.
80781         * lib/unictype/categ_name.c: New file.
80782         * lib/unictype/categ_none.c: New file.
80783         * lib/unictype/categ_of.c: New file.
80784         * lib/unictype/categ_or.c: New file.
80785         * lib/unictype/categ_test.c: New file.
80786         * lib/unictype/combining.c: New file.
80787         * lib/unictype/ctype_alnum.c: New file.
80788         * lib/unictype/ctype_alpha.c: New file.
80789         * lib/unictype/ctype_blank.c: New file.
80790         * lib/unictype/ctype_cntrl.c: New file.
80791         * lib/unictype/ctype_digit.c: New file.
80792         * lib/unictype/ctype_graph.c: New file.
80793         * lib/unictype/ctype_lower.c: New file.
80794         * lib/unictype/ctype_print.c: New file.
80795         * lib/unictype/ctype_punct.c: New file.
80796         * lib/unictype/ctype_space.c: New file.
80797         * lib/unictype/ctype_upper.c: New file.
80798         * lib/unictype/ctype_xdigit.c: New file.
80799         * lib/unictype/decdigit.c: New file.
80800         * lib/unictype/digit.c: New file.
80801         * lib/unictype/identsyntaxmap.h: New file.
80802         * lib/unictype/mirror.c: New file.
80803         * lib/unictype/numeric.c: New file.
80804         * lib/unictype/pr_alphabetic.c: New file.
80805         * lib/unictype/pr_ascii_hex_digit.c: New file.
80806         * lib/unictype/pr_bidi_arabic_digit.c: New file.
80807         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
80808         * lib/unictype/pr_bidi_block_separator.c: New file.
80809         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
80810         * lib/unictype/pr_bidi_common_separator.c: New file.
80811         * lib/unictype/pr_bidi_control.c: New file.
80812         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
80813         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
80814         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
80815         * lib/unictype/pr_bidi_european_digit.c: New file.
80816         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
80817         * lib/unictype/pr_bidi_left_to_right.c: New file.
80818         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
80819         * lib/unictype/pr_bidi_other_neutral.c: New file.
80820         * lib/unictype/pr_bidi_pdf.c: New file.
80821         * lib/unictype/pr_bidi_segment_separator.c: New file.
80822         * lib/unictype/pr_bidi_whitespace.c: New file.
80823         * lib/unictype/pr_byname.c: New file.
80824         * lib/unictype/pr_byname.gperf: New file.
80825         * lib/unictype/pr_combining.c: New file.
80826         * lib/unictype/pr_composite.c: New file.
80827         * lib/unictype/pr_currency_symbol.c: New file.
80828         * lib/unictype/pr_dash.c: New file.
80829         * lib/unictype/pr_decimal_digit.c: New file.
80830         * lib/unictype/pr_default_ignorable_code_point.c: New file.
80831         * lib/unictype/pr_deprecated.c: New file.
80832         * lib/unictype/pr_diacritic.c: New file.
80833         * lib/unictype/pr_extender.c: New file.
80834         * lib/unictype/pr_format_control.c: New file.
80835         * lib/unictype/pr_grapheme_base.c: New file.
80836         * lib/unictype/pr_grapheme_extend.c: New file.
80837         * lib/unictype/pr_grapheme_link.c: New file.
80838         * lib/unictype/pr_hex_digit.c: New file.
80839         * lib/unictype/pr_hyphen.c: New file.
80840         * lib/unictype/pr_id_continue.c: New file.
80841         * lib/unictype/pr_id_start.c: New file.
80842         * lib/unictype/pr_ideographic.c: New file.
80843         * lib/unictype/pr_ids_binary_operator.c: New file.
80844         * lib/unictype/pr_ids_trinary_operator.c: New file.
80845         * lib/unictype/pr_ignorable_control.c: New file.
80846         * lib/unictype/pr_iso_control.c: New file.
80847         * lib/unictype/pr_join_control.c: New file.
80848         * lib/unictype/pr_left_of_pair.c: New file.
80849         * lib/unictype/pr_line_separator.c: New file.
80850         * lib/unictype/pr_logical_order_exception.c: New file.
80851         * lib/unictype/pr_lowercase.c: New file.
80852         * lib/unictype/pr_math.c: New file.
80853         * lib/unictype/pr_non_break.c: New file.
80854         * lib/unictype/pr_not_a_character.c: New file.
80855         * lib/unictype/pr_numeric.c: New file.
80856         * lib/unictype/pr_other_alphabetic.c: New file.
80857         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80858         * lib/unictype/pr_other_grapheme_extend.c: New file.
80859         * lib/unictype/pr_other_id_continue.c: New file.
80860         * lib/unictype/pr_other_id_start.c: New file.
80861         * lib/unictype/pr_other_lowercase.c: New file.
80862         * lib/unictype/pr_other_math.c: New file.
80863         * lib/unictype/pr_other_uppercase.c: New file.
80864         * lib/unictype/pr_paired_punctuation.c: New file.
80865         * lib/unictype/pr_paragraph_separator.c: New file.
80866         * lib/unictype/pr_pattern_syntax.c: New file.
80867         * lib/unictype/pr_pattern_white_space.c: New file.
80868         * lib/unictype/pr_private_use.c: New file.
80869         * lib/unictype/pr_punctuation.c: New file.
80870         * lib/unictype/pr_quotation_mark.c: New file.
80871         * lib/unictype/pr_radical.c: New file.
80872         * lib/unictype/pr_sentence_terminal.c: New file.
80873         * lib/unictype/pr_soft_dotted.c: New file.
80874         * lib/unictype/pr_space.c: New file.
80875         * lib/unictype/pr_terminal_punctuation.c: New file.
80876         * lib/unictype/pr_test.c: New file.
80877         * lib/unictype/pr_titlecase.c: New file.
80878         * lib/unictype/pr_unassigned_code_value.c: New file.
80879         * lib/unictype/pr_unified_ideograph.c: New file.
80880         * lib/unictype/pr_uppercase.c: New file.
80881         * lib/unictype/pr_variation_selector.c: New file.
80882         * lib/unictype/pr_white_space.c: New file.
80883         * lib/unictype/pr_xid_continue.c: New file.
80884         * lib/unictype/pr_xid_start.c: New file.
80885         * lib/unictype/pr_zero_width.c: New file.
80886         * lib/unictype/scripts.c: New file.
80887         * lib/unictype/sy_c_ident.c: New file.
80888         * lib/unictype/sy_c_whitespace.c: New file.
80889         * lib/unictype/sy_java_ident.c: New file.
80890         * lib/unictype/sy_java_whitespace.c: New file.
80892         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80893         Unicode 5.0.0.
80894         * lib/unictype/blocks.h: Likewise.
80895         * lib/unictype/categ_C.h: Likewise.
80896         * lib/unictype/categ_Cc.h: Likewise.
80897         * lib/unictype/categ_Cf.h: Likewise.
80898         * lib/unictype/categ_Cn.h: Likewise.
80899         * lib/unictype/categ_Co.h: Likewise.
80900         * lib/unictype/categ_Cs.h: Likewise.
80901         * lib/unictype/categ_L.h: Likewise.
80902         * lib/unictype/categ_Ll.h: Likewise.
80903         * lib/unictype/categ_Lm.h: Likewise.
80904         * lib/unictype/categ_Lo.h: Likewise.
80905         * lib/unictype/categ_Lt.h: Likewise.
80906         * lib/unictype/categ_Lu.h: Likewise.
80907         * lib/unictype/categ_M.h: Likewise.
80908         * lib/unictype/categ_Mc.h: Likewise.
80909         * lib/unictype/categ_Me.h: Likewise.
80910         * lib/unictype/categ_Mn.h: Likewise.
80911         * lib/unictype/categ_N.h: Likewise.
80912         * lib/unictype/categ_Nd.h: Likewise.
80913         * lib/unictype/categ_Nl.h: Likewise.
80914         * lib/unictype/categ_No.h: Likewise.
80915         * lib/unictype/categ_P.h: Likewise.
80916         * lib/unictype/categ_Pc.h: Likewise.
80917         * lib/unictype/categ_Pd.h: Likewise.
80918         * lib/unictype/categ_Pe.h: Likewise.
80919         * lib/unictype/categ_Pf.h: Likewise.
80920         * lib/unictype/categ_Pi.h: Likewise.
80921         * lib/unictype/categ_Po.h: Likewise.
80922         * lib/unictype/categ_Ps.h: Likewise.
80923         * lib/unictype/categ_S.h: Likewise.
80924         * lib/unictype/categ_Sc.h: Likewise.
80925         * lib/unictype/categ_Sk.h: Likewise.
80926         * lib/unictype/categ_Sm.h: Likewise.
80927         * lib/unictype/categ_So.h: Likewise.
80928         * lib/unictype/categ_Z.h: Likewise.
80929         * lib/unictype/categ_Zl.h: Likewise.
80930         * lib/unictype/categ_Zp.h: Likewise.
80931         * lib/unictype/categ_Zs.h: Likewise.
80932         * lib/unictype/categ_of.h: Likewise.
80933         * lib/unictype/combining.h: Likewise.
80934         * lib/unictype/ctype_alnum.h: Likewise.
80935         * lib/unictype/ctype_alpha.h: Likewise.
80936         * lib/unictype/ctype_blank.h: Likewise.
80937         * lib/unictype/ctype_cntrl.h: Likewise.
80938         * lib/unictype/ctype_digit.h: Likewise.
80939         * lib/unictype/ctype_graph.h: Likewise.
80940         * lib/unictype/ctype_lower.h: Likewise.
80941         * lib/unictype/ctype_print.h: Likewise.
80942         * lib/unictype/ctype_punct.h: Likewise.
80943         * lib/unictype/ctype_space.h: Likewise.
80944         * lib/unictype/ctype_upper.h: Likewise.
80945         * lib/unictype/ctype_xdigit.h: Likewise.
80946         * lib/unictype/decdigit.h: Likewise.
80947         * lib/unictype/digit.h: Likewise.
80948         * lib/unictype/mirror.h: Likewise.
80949         * lib/unictype/numeric.h: Likewise.
80950         * lib/unictype/pr_alphabetic.h: Likewise.
80951         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
80952         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
80953         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
80954         * lib/unictype/pr_bidi_block_separator.h: Likewise.
80955         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
80956         * lib/unictype/pr_bidi_common_separator.h: Likewise.
80957         * lib/unictype/pr_bidi_control.h: Likewise.
80958         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
80959         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
80960         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
80961         * lib/unictype/pr_bidi_european_digit.h: Likewise.
80962         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
80963         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
80964         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
80965         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
80966         * lib/unictype/pr_bidi_pdf.h: Likewise.
80967         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
80968         * lib/unictype/pr_bidi_whitespace.h: Likewise.
80969         * lib/unictype/pr_combining.h: Likewise.
80970         * lib/unictype/pr_composite.h: Likewise.
80971         * lib/unictype/pr_currency_symbol.h: Likewise.
80972         * lib/unictype/pr_dash.h: Likewise.
80973         * lib/unictype/pr_decimal_digit.h: Likewise.
80974         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
80975         * lib/unictype/pr_deprecated.h: Likewise.
80976         * lib/unictype/pr_diacritic.h: Likewise.
80977         * lib/unictype/pr_extender.h: Likewise.
80978         * lib/unictype/pr_format_control.h: Likewise.
80979         * lib/unictype/pr_grapheme_base.h: Likewise.
80980         * lib/unictype/pr_grapheme_extend.h: Likewise.
80981         * lib/unictype/pr_grapheme_link.h: Likewise.
80982         * lib/unictype/pr_hex_digit.h: Likewise.
80983         * lib/unictype/pr_hyphen.h: Likewise.
80984         * lib/unictype/pr_id_continue.h: Likewise.
80985         * lib/unictype/pr_id_start.h: Likewise.
80986         * lib/unictype/pr_ideographic.h: Likewise.
80987         * lib/unictype/pr_ids_binary_operator.h: Likewise.
80988         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
80989         * lib/unictype/pr_ignorable_control.h: Likewise.
80990         * lib/unictype/pr_iso_control.h: Likewise.
80991         * lib/unictype/pr_join_control.h: Likewise.
80992         * lib/unictype/pr_left_of_pair.h: Likewise.
80993         * lib/unictype/pr_line_separator.h: Likewise.
80994         * lib/unictype/pr_logical_order_exception.h: Likewise.
80995         * lib/unictype/pr_lowercase.h: Likewise.
80996         * lib/unictype/pr_math.h: Likewise.
80997         * lib/unictype/pr_non_break.h: Likewise.
80998         * lib/unictype/pr_not_a_character.h: Likewise.
80999         * lib/unictype/pr_numeric.h: Likewise.
81000         * lib/unictype/pr_other_alphabetic.h: Likewise.
81001         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
81002         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
81003         * lib/unictype/pr_other_id_continue.h: Likewise.
81004         * lib/unictype/pr_other_id_start.h: Likewise.
81005         * lib/unictype/pr_other_lowercase.h: Likewise.
81006         * lib/unictype/pr_other_math.h: Likewise.
81007         * lib/unictype/pr_other_uppercase.h: Likewise.
81008         * lib/unictype/pr_paired_punctuation.h: Likewise.
81009         * lib/unictype/pr_paragraph_separator.h: Likewise.
81010         * lib/unictype/pr_pattern_syntax.h: Likewise.
81011         * lib/unictype/pr_pattern_white_space.h: Likewise.
81012         * lib/unictype/pr_private_use.h: Likewise.
81013         * lib/unictype/pr_punctuation.h: Likewise.
81014         * lib/unictype/pr_quotation_mark.h: Likewise.
81015         * lib/unictype/pr_radical.h: Likewise.
81016         * lib/unictype/pr_sentence_terminal.h: Likewise.
81017         * lib/unictype/pr_soft_dotted.h: Likewise.
81018         * lib/unictype/pr_space.h: Likewise.
81019         * lib/unictype/pr_terminal_punctuation.h: Likewise.
81020         * lib/unictype/pr_titlecase.h: Likewise.
81021         * lib/unictype/pr_unassigned_code_value.h: Likewise.
81022         * lib/unictype/pr_unified_ideograph.h: Likewise.
81023         * lib/unictype/pr_uppercase.h: Likewise.
81024         * lib/unictype/pr_variation_selector.h: Likewise.
81025         * lib/unictype/pr_white_space.h: Likewise.
81026         * lib/unictype/pr_xid_continue.h: Likewise.
81027         * lib/unictype/pr_xid_start.h: Likewise.
81028         * lib/unictype/pr_zero_width.h: Likewise.
81029         * lib/unictype/scripts.h: Likewise.
81030         * lib/unictype/scripts_byname.gperf: Likewise.
81031         * lib/unictype/sy_c_ident.h: Likewise.
81032         * lib/unictype/sy_c_whitespace.h: Likewise.
81033         * lib/unictype/sy_java_ident.h: Likewise.
81034         * lib/unictype/sy_java_whitespace.h: Likewise.
81036         * lib/unictype/Makefile: New file.
81037         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
81038         glibc.
81039         * lib/unictype/3level.h: New file, copied from glibc.
81040         * lib/unictype/3levelbit.h: New file.
81042 2007-11-11  Bruno Haible  <bruno@clisp.org>
81044         * modules/gperf: New file.
81045         * modules/iconv_open (Depends-on): Add it.
81046         (Makefile.am): Remove the GPERF definition.
81048 2007-11-11  Bruno Haible  <bruno@clisp.org>
81050         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
81051         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
81053 2007-11-11  Bruno Haible  <bruno@clisp.org>
81055         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
81056         (usage): Remove function.
81058 2007-11-11  Bruno Haible  <bruno@clisp.org>
81060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
81061         gl_FUNC_CEILF_LIBS.
81062         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
81063         gl_FUNC_CEIL_LIBS.
81064         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
81065         gl_FUNC_CEILL_LIBS.
81066         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
81067         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
81068         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
81070 2007-11-11  Bruno Haible  <bruno@clisp.org>
81072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
81073         roundf were declared but do not exist on functions.
81074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
81075         roundl were declared but do not exist on functions.
81076         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
81077         HAVE_FLOORL_AND_CEILL, respectively.
81078         Needed for Sun C on Solaris 10.
81080 2007-11-11  Bruno Haible  <bruno@clisp.org>
81082         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
81083         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
81084         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
81085         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
81086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
81087         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
81088         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
81089         HAVE_DECL_ROUNDF.
81090         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
81091         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
81092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
81093         of HAVE_DECL_ROUND*.
81094         * modules/math (Makefile.am): Update.
81096 2007-11-10  Bruno Haible  <bruno@clisp.org>
81098         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
81099         ptrdiff_t as m4/intl.m4.
81101 2007-11-10  Jim Meyering  <meyering@redhat.com>
81103         Avoid link failure for the argmatch test.
81104         * tests/test-argmatch.c (usage): Define function to avoid a link
81105         failure: argmatch_die requires a usage function.
81107 2007-11-09  Bruno Haible  <bruno@clisp.org>
81109         * doc/functions/snprintf.texi: Mention BeOS deficiency.
81110         * doc/functions/vsnprintf.texi: Likewise.
81111         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
81112         with a size argument < 2.
81114 2007-11-09  Bruno Haible  <bruno@clisp.org>
81116         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
81117         buffer. Fixes an inefficiency introduced on 2007-11-03.
81119 2007-11-09  Bruno Haible  <bruno@clisp.org>
81121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
81122         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
81124 2007-11-08  Jim Meyering  <meyering@redhat.com>
81126         Change cache variable name prefix "jm_" to "gl_" everywhere.
81127         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
81128         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
81129         * m4/uptime.m4: s/gl_/jm_/
81131 2007-11-07  Bruno Haible  <bruno@clisp.org>
81133         Update to GNU gettext 0.17.
81134         * m4/intl.m4: Update to GNU gettext 0.17.
81135         * m4/po.m4: Likewise.
81136         * modules/gettext (Files): Remove m4/ulonglong.m4.
81137         (configure.ac): Require gettext infrastructure from version 0.17.
81139 2007-11-06  Bruno Haible  <bruno@clisp.org>
81141         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
81142         symbolic values are not defined in a public header.
81143         * lib/freadable.c (freadable) [QNX]: Likewise.
81144         * lib/freadahead.c (freadahead) [QNX]: Likewise.
81145         * lib/freading.c (freading) [QNX]: Likewise.
81146         * lib/fseterr.c (fseterr) [QNX]: Likewise.
81147         * lib/fwritable.c (fwritable) [QNX]: Likewise.
81148         * lib/fwriting.c (fwriting) [QNX]: Likewise.
81149         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
81150         Reported by Alain Magloire.
81152         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
81154 2007-11-05  Bruno Haible  <bruno@clisp.org>
81156         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
81157         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
81158         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
81159         Reported by Eric Blake.
81161 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81162             Bruno Haible  <bruno@clisp.org>
81164         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
81165         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
81166         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
81167         (malloc): Undefine also before including <stdlib.h>.
81168         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
81169         Needed on OSF/1 4.0.
81171 2007-11-05  Jim Meyering  <meyering@redhat.com>
81173         git-version-gen: sync from coreutils.
81174         * build-aux/git-version-gen: Add comments.
81175         Change the first '-' to '.' in the snapshot version string,
81176         e.g., 6.9-377-08144 -> 6.9.377-08144
81177         Remove first parameter.
81178         Don't declare a version "-dirty" merely because a time
81179         stamp has changed.
81181 2007-11-04  Bruno Haible  <bruno@clisp.org>
81183         * lib/lock.h: Protect all macro definitions containing an 'if'
81184         statement through a "do { ... } while (0)".
81185         * lib/tls.h: Likewise.
81187 2007-11-04  Bruno Haible  <bruno@clisp.org>
81189         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
81191 2007-11-04  Bruno Haible  <bruno@clisp.org>
81193         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
81194         * modules/fprintf-posix (Depends-on): Add nocrash.
81195         * modules/snprintf-posix (Depends-on): Likewise.
81196         * modules/sprintf-posix (Depends-on): Likewise.
81197         * modules/vasnprintf-posix (Depends-on): Likewise.
81198         * modules/vasprintf-posix (Depends-on): Likewise.
81199         * modules/vfprintf-posix (Depends-on): Likewise.
81200         * modules/vsnprintf-posix (Depends-on): Likewise.
81201         * modules/vsprintf-posix (Depends-on): Likewise.
81202         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81204         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81205         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81206         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81207         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81210 2007-11-04  Bruno Haible  <bruno@clisp.org>
81212         * modules/nocrash: New file.
81213         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
81214         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
81216 2007-11-04  Bruno Haible  <bruno@clisp.org>
81218         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
81219         precision handling.
81220         * tests/test-vasprintf-posix.c (test_function): Likewise.
81221         * tests/test-snprintf-posix.h (test_function): Likewise.
81222         * tests/test-sprintf-posix.h (test_function): Likewise.
81224         Fix *printf behaviour for large precisions on mingw and BeOS.
81225         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
81226         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
81227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
81228         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81230         gl_PRINTF_PRECISION and test its result. Invoke
81231         gl_PREREQ_VASNPRINTF_PRECISION.
81232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81239         * doc/functions/fprintf.texi: Update.
81240         * doc/functions/printf.texi: Update.
81241         * doc/functions/snprintf.texi: Update.
81242         * doc/functions/sprintf.texi: Update.
81243         * doc/functions/vfprintf.texi: Update.
81244         * doc/functions/vprintf.texi: Update.
81245         * doc/functions/vsnprintf.texi: Update.
81246         * doc/functions/vsprintf.texi: Update.
81248 2007-11-04  Bruno Haible  <bruno@clisp.org>
81250         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
81252 2007-11-04  Bruno Haible  <bruno@clisp.org>
81254         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
81255         Reported by Sylvain Beucler <beuc@gnu.org>.
81257 2007-11-03  Bruno Haible  <bruno@clisp.org>
81259         * tests/test-fprintf-posix2.sh: New file.
81260         * tests/test-fprintf-posix2.c: New file.
81261         * modules/fprintf-posix-tests (Files): Add them.
81262         (TESTS): Add test-fprintf-posix2.sh.
81263         (configure.ac): Check for getrlimit and setrlimit.
81264         (check_PROGRAMS): Add test-fprintf-posix2.
81266         * tests/test-printf-posix2.sh: New file.
81267         * tests/test-printf-posix2.c: New file.
81268         * modules/printf-posix-tests (Files): Add them.
81269         (TESTS): Add test-printf-posix2.sh.
81270         (configure.ac): Check for getrlimit and setrlimit.
81271         (check_PROGRAMS): Add test-printf-posix2.
81273         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
81274         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
81275         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
81276         (decode_double): New function, copied from decode_long_double.
81277         (scale10_round_decimal_decoded): New function, extracted from
81278         scale10_round_decimal_long_double.
81279         (scale10_round_decimal_long_double): Use it.
81280         (scale10_round_decimal_double): New function.
81281         (floorlog10): New function.
81282         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
81283         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
81284         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81285         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81286         gl_PRINTF_ENOMEM and test its result. Invoke
81287         gl_PREREQ_VASNPRINTF_ENOMEM.
81288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81289         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81290         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81295         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
81296         * modules/snprintf-posix (Depends-on): Likewise.
81297         * modules/sprintf-posix (Depends-on): Likewise.
81298         * modules/vasnprintf-posix (Depends-on): Likewise.
81299         * modules/vasprintf-posix (Depends-on): Likewise.
81300         * modules/vfprintf-posix (Depends-on): Likewise.
81301         * modules/vsnprintf-posix (Depends-on): Likewise.
81302         * modules/vsprintf-posix (Depends-on): Likewise.
81303         * doc/functions/fprintf.texi: Update.
81304         * doc/functions/printf.texi: Update.
81305         * doc/functions/snprintf.texi: Update.
81306         * doc/functions/sprintf.texi: Update.
81307         * doc/functions/vfprintf.texi: Update.
81308         * doc/functions/vprintf.texi: Update.
81309         * doc/functions/vsnprintf.texi: Update.
81310         * doc/functions/vsprintf.texi: Update.
81312 2007-11-03  Bruno Haible  <bruno@clisp.org>
81314         * modules/frexp-nolibm-tests: New file.
81316         * modules/frexp-nolibm: New file.
81317         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
81319 2007-11-03  Bruno Haible  <bruno@clisp.org>
81321         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
81322         value is C99 compliant.
81323         Needed for OSF/1 5.1.
81325 2007-11-03  Bruno Haible  <bruno@clisp.org>
81327         Fix out-of-memory handling of vasnprintf.
81328         * lib/printf-parse.c: Include <errno.h>.
81329         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
81330         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
81331         is already set.
81333 2007-11-02  Eric Blake  <ebb9@byu.net>
81335         Fix tests on cygwin.
81336         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
81338 2007-11-01  Bruno Haible  <bruno@clisp.org>
81340         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
81341         warning.
81342         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
81343         needed for POSIX compatibility.
81345 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81347         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
81348         for compatibility with GNU.
81350 2007-11-01  Bruno Haible  <bruno@clisp.org>
81352         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
81353         (putenv): Renamed from rpl_putenv. Change argument type from
81354         'const char *' to 'char *'.
81355         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
81356         of defining putenv in config.h, just set REPLACE_PUTENV.
81357         * modules/putenv (Depends-on): Add stdlib.
81358         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81359         (Include): Use <stdlib.h>.
81360         * lib/stdlib.in.h (putenv): New declaration.
81361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
81362         REPLACE_PUTENV.
81363         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
81364         REPLACE_PUTENV.
81365         Needed for MacOS X 10.5.0.
81366         Reported by Peter O'Gorman <peter@pogma.com>.
81368 2007-11-01  Jim Meyering  <meyering@redhat.com>
81370         Treat an empty date string exactly like "0".
81371         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
81372         if the remaining date string (to be parsed) is empty, use "0".
81373         Reported by Mischa Molhoek and discussed in this thread:
81374         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
81376 2007-10-31  Bruno Haible  <bruno@clisp.org>
81378         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
81379         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
81380         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
81381         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
81382         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
81383         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
81385 2007-10-31  Bruno Haible  <bruno@clisp.org>
81387         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
81388         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
81389         (AC_TYPE_LONG_LONG_INT): Use it.
81390         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
81391         it as well.
81392         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
81393         to m4/longlong.m4.
81394         * modules/stdint (Files): Remove m4/ulonglong.m4.
81395         * modules/strtoull (Files): Use m4/longlong.m4 instead of
81396         m4/ulonglong.m4.
81397         * modules/strtoumax (Files): Likewise.
81399 2007-10-30  Bruno Haible  <bruno@clisp.org>
81401         * modules/xvasprintf-posix: New file.
81402         Suggested by Eric Blake.
81404 2007-10-30  Bruno Haible  <bruno@clisp.org>
81406         * modules/xprintf-posix-tests: New file.
81407         * tests/test-xprintf-posix.sh: New file.
81408         * tests/test-xprintf-posix.c: New file.
81409         * tests/test-xfprintf-posix.c: New file.
81411         * modules/xprintf-posix: New file.
81413 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81415         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
81416         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
81417         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
81419 2007-10-29  Bruno Haible  <bruno@clisp.org>
81421         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
81422         contain the special marker '_cv_'.
81423         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81424         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81425         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81426         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
81427         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81428         Reported by Ralf Wildenhues.
81430 2007-10-29  Bruno Haible  <bruno@clisp.org>
81432         * gnulib-tool (func_import): When --lgpl is not specified, set
81433         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
81434         GPLv3.
81435         Reported by Simon Josefsson.
81437 2007-10-28  Bruno Haible  <bruno@clisp.org>
81439         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
81440         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
81441         HAVE_DECL_ISFINITE.
81442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81443         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
81444         HAVE_DECL_ISFINITE.
81446 2007-10-28  Bruno Haible  <bruno@clisp.org>
81448         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
81449         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
81451 2007-10-28  Bruno Haible  <bruno@clisp.org>
81453         Fix link errors with Sun C 5.0 on Solaris 10.
81454         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
81455         function is declared but not present in the compiler's libm.
81456         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
81457         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
81458         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
81459         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
81460         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
81461         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
81462         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
81463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81464         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
81465         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
81466         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
81467         HAVE_DECL_FLOORL.
81469 2007-10-28  Bruno Haible  <bruno@clisp.org>
81471         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
81472         gl_FUNC_FLOORL. Cache the result.
81473         (gl_FUNC_FLOORL): Use it.
81474         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
81475         gl_FUNC_CEILL. Cache the result.
81476         (gl_FUNC_CEILL): Use it.
81478         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
81479         gl_FUNC_FLOOR. Cache the result.
81480         (gl_FUNC_FLOOR): Use it.
81481         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
81482         gl_FUNC_CEIL. Cache the result.
81483         (gl_FUNC_CEIL): Use it.
81485         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
81486         gl_FUNC_FLOORF. Cache the result.
81487         (gl_FUNC_FLOORF): Use it.
81488         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
81489         gl_FUNC_CEILF. Cache the result.
81490         (gl_FUNC_CEILF): Use it.
81492 2007-10-28  Bruno Haible  <bruno@clisp.org>
81494         * gnulib-tool: Allow specifying the LGPL version number through
81495         --lgpl=2 or --lgpl=3.
81496         (func_usage): Document --lgpl with argument.
81497         Handle --lgpl=... arguments.
81498         (func_import): Recognize also gl_LGPL calls with an argument. When
81499         --lgpl=2 is used and the module's license is just LGPL, report an
81500         error. Set sed_transform_lib_file according to the lgpl variable. In
81501         the generated files, use --lgpl or gl_LGPL invocations with argument,
81502         if necessary.
81503         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
81504         an LGPv2+ license.
81505         * doc/gnulib-tool.texi (Modified imports): Update explanation of
81506         gl_LGPL macro.
81508 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81509             Bruno Haible  <bruno@clisp.org>
81511         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
81512         (u16_uctomb_aux): Likewise.
81513         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
81514         !HAVE_INLINE.
81515         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
81517 2007-10-28  Bruno Haible  <bruno@clisp.org>
81519         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
81520         Invoke AM_GETTEXT_OPTION if it exists.
81521         * modules/vasprintf: Likewise.
81522         * modules/verror: Likewise.
81523         * modules/xprintf: Likewise.
81524         * modules/xvasprintf: Likewise.
81526 2007-10-27  Ben Pfaff  <blp@gnu.org>
81528         * lib/math.in.h: Define isfinite macro and prototypes for
81529         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
81530         implementations.
81531         * m4/math_h.m4: New substitutions for isfinite module.
81532         * lib/isfinite.c: New file.
81533         * m4/isfinite.m4: New file.
81534         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
81535         * modules/isfinite: New file.
81536         * modules/isfinite-tests: New file.
81537         * tests/tests-isfinite.c: New file.
81538         * doc/functions/isfinite.texi: Mention isfinite module.
81539         * MODULES.html.sh: Mention new module.
81541 2007-10-27  Ben Pfaff  <blp@gnu.org>
81543         Ralf Wildenhues reported that Tru64 4.0D declares the round
81544         functions but does not have definitions.
81545         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
81546         cannot be found in any library, set the output variable to
81547         "missing" instead of "".
81548         * m4/round.m4: Also use our substitute if we cannot find round in
81549         any library, even if it is declared.
81550         * m4/roundf.m4: Likewise for roundf.
81551         * m4/roundl.m4: Likewise for roundl.
81552         * lib/math.in.h: Undefine roundf, round, roundl before defining
81553         their replacements, to allow for hypothetical systems where these
81554         may be defined as macros but not available in libraries.
81556 2007-10-27  Bruno Haible  <bruno@clisp.org>
81558         * doc/gnulib.texi: Invoke @firstparagraphindent.
81559         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
81560         changes in gnulib.
81561         (Source changes): New section.
81563 2007-10-26  Bruno Haible  <bruno@clisp.org>
81565         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
81566         borrowed from autoconf.
81568 2007-10-26  Bruno Haible  <bruno@clisp.org>
81570         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
81571         strerror returned the empty string. Needed on HP-UX 11.00.
81573 2007-10-24  Micah Cowan  <micah@cowan.name>
81575         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
81576         * build-aux/bootstrap: Remove support for now-unnecessary option,
81577         --cvs-user, and envvars CVS_USER, CVS_RSH.
81579 2007-10-24  Jim Meyering  <meyering@redhat.com>
81581         Avoid diagnostics from sha1sum when there is no cached checksum.
81582         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
81583         if the po.s1 file hasn't been created yet.
81585         * build-aux/bootstrap: Sync from coreutils:
81586         2007-10-24  Jim Meyering  <meyering@redhat.com>
81587         Get gnulib from the git repository, not from an obsolete cvs one.
81588         * build-aux/bootstrap: Suggestion from Micah Cowan.
81589         2007-10-04  Jim Meyering  <jim@meyering.net>
81590         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
81591         (update_po_files): Work also when there are no .po files in po/.
81593 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81595         * README: Append ".git" to git and cg examples.
81596         Problem reported by Benoit Sigoure.
81598 2007-10-23  Micah Cowan  <micah@cowan.name>
81600         * users.txt: Add wget.
81602 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81604         Fix linking of some unistdio tests on FreeBSD.
81605         * modules/unistdio/u16-vsnprintf-tests
81606         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81607         * modules/unistdio/u16-vsprintf-tests
81608         (test_u16_vsnprintf1_LDADD): Likewise.
81609         * modules/unistdio/u32-vsnprintf-tests
81610         (test_u32_vsnprintf1_LDADD): Likewise.
81611         * modules/unistdio/u32-vsprintf-tests
81612         (test_u32_vsprintf1_LDADD): Likewise.
81613         * modules/unistdio/u8-vsnprintf-tests
81614         (test_u8_vsnprintf1_LDADD): Likewise.
81615         * modules/unistdio/u8-vsprintf-tests
81616         (test_u8_vsprintf1_LDADD): Likewise.
81617         * modules/unistdio/ulc-vsnprintf-tests
81618         (test_ulc_vsnprintf1_LDADD): Likewise.
81619         * modules/unistdio/ulc-vsprintf-tests
81620         (test_ulc_vsprintf1_LDADD): Likewise.
81622         Fix linking of some uniconv tests on FreeBSD.
81623         * modules/uniconv/u16-conv-from-enc-tests
81624         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81625         * modules/uniconv/u16-conv-to-enc-tests
81626         (test_u16_conv_to_enc_LDADD): Likewise.
81627         * modules/uniconv/u16-strconv-from-enc-tests
81628         (test_u16_strconv_from_enc_LDADD): Likewise.
81629         * modules/uniconv/u16-strconv-to-enc-tests
81630         (test_u16_strconv_to_enc_LDADD): Likewise.
81631         * modules/uniconv/u32-conv-from-enc-tests
81632         (test_u32_conv_from_enc_LDADD): Likewise.
81633         * modules/uniconv/u32-conv-to-enc-tests
81634         (test_u32_conv_to_enc_LDADD): Likewise.
81635         * modules/uniconv/u32-strconv-from-enc-tests
81636         (test_u32_strconv_from_enc_LDADD): Likewise.
81637         * modules/uniconv/u32-strconv-to-enc-tests
81638         (test_u32_strconv_to_enc_LDADD): Likewise.
81639         * modules/uniconv/u8-conv-from-enc-tests
81640         (test_u8_conv_from_enc_LDADD): Likewise.
81641         * modules/uniconv/u8-conv-to-enc-tests
81642         (test_u8_conv_to_enc_LDADD): Likewise.
81643         * modules/uniconv/u8-strconv-from-enc-tests
81644         (test_u8_strconv_from_enc_LDADD): Likewise.
81645         * modules/uniconv/u8-strconv-to-enc-tests
81646         (test_u8_strconv_to_enc_LDADD): Likewise.
81648 2007-10-22  Bruno Haible  <bruno@clisp.org>
81650         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81651         size.
81653 2007-10-22  Eric Blake  <ebb9@byu.net>
81655         Tweak x*printf documentation.
81656         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81657         variable name and comments.
81658         Suggested by Bruno Haible.
81660 2007-10-22  Bruno Haible  <bruno@clisp.org>
81662         * lib/acl.c (copy_acl): Fix file name in comment.
81664 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81666         Fix Tru64 problem with stdbool.h.
81667         * lib/stdbool.in.h (false, true):
81668         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81669         Don't declare as an enum in this situation; it runs afoul of Tru64.
81670         Problem reported by Steven M. Schweda in
81671         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81673 2007-10-22  Eric Blake  <ebb9@byu.net>
81675         Also wrap vf?printf.
81676         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81677         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81678         (xvprintf, xvfprintf): New functions.
81680 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81682         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81683         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81685         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81686         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81688 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81690         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81691         by Bruno Haible.
81693 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81695         * lib/getloadavg.c
81696         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81697         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81699         * tests/test-i-ring.c: Work for C89.
81701 2007-10-22  Bruno Haible  <bruno@clisp.org>
81703         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81704         -1u, in preprocessor expression, so that we don't test for the bug
81705         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81706         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81708 2007-10-22  Eric Blake  <ebb9@byu.net>
81710         * tests/test-yesno.sh: Silence stderr during test.
81712 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81714         * modules/crypto/gc-camellia: New file.
81716         * m4/gc-camellia.m4: New file.
81718         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81720         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81722 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81724         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81725         --help to stdout.  Reported by sms@antinode.org (Steven
81726         M. Schweda).
81728 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81730         * users.txt: Fix link to libksba.
81732 2007-10-21  Ben Pfaff  <blp@gnu.org>
81734         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81735         round.c roundf implementation that depends on floorf and ceilf to
81736         be tested unconditionally.
81738 2007-10-21  Ben Pfaff  <blp@gnu.org>
81740         * m4/check-libm-func.m4: Removed.
81741         * m4/check-math-lib.m4: New file.
81742         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81743         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
81744         definition and lack of AC_LIBOBJ([roundf]).
81745         * m4/roundl.m4: Ditto, and similarly for roundl.
81746         * modules/round: Reference new m4 file.
81747         * modules/roundf: Ditto.
81748         * modules/roundl: Ditto.
81749         * tests/test-round2.c (main): Use ROUND instead of round.
81750         Bug report from Bruno Haible.
81752 2007-10-21  Bruno Haible  <bruno@clisp.org>
81754         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
81755         context.
81757 2007-10-21  Bruno Haible  <bruno@clisp.org>
81759         * tests/test-wcwidth.c (main): Allow negative result for some control
81760         characters.
81762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
81763         Needed on OSF/1 5.1.
81765 2007-10-21  Bruno Haible  <bruno@clisp.org>
81767         * tests/test-floorf1.c: Include isnanf.h.
81768         (main): Use isnanf() instead of isnan().
81769         * tests/test-ceilf1.c: Include isnanf.h.
81770         (main): Use isnanf() instead of isnan().
81771         * tests/test-truncf1.c: Include isnanf.h.
81772         (main): Use isnanf() instead of isnan().
81773         * tests/test-roundf1.c: Include isnanf.h.
81774         (main): Use isnanf() instead of isnan().
81776 2007-10-21  Eric Blake  <ebb9@byu.net>
81778         * users.txt: Update URL for m4.
81780 2007-10-21  Bruno Haible  <bruno@clisp.org>
81782         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
81784 2007-10-21  Bruno Haible  <bruno@clisp.org>
81786         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
81787         Git's management files if the CVS files are not present.
81789 2007-10-20  Bruno Haible  <bruno@clisp.org>
81791         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
81792         gcc-3.4.x.
81794 2007-10-20  Ben Pfaff  <blp@gnu.org>
81796         * lib/math.in.h: Declare round, roundf, roundl if we are providing
81797         implementations.
81798         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
81799         * lib/round.c: New file.
81800         * lib/roundf.c: New file.
81801         * lib/roundl.c: New file.
81802         * m4/round.m4: New file.
81803         * m4/roundf.m4: New file.
81804         * m4/roundl.m4: New file.
81805         * m4/check-libm-func-m4: New file.
81806         * modules/math: Replace round, roundf, roundl related @VARS@ in
81807         math.in.h.
81808         * modules/round: New file.
81809         * modules/round-tests: New file.
81810         * modules/roundf: New file.
81811         * modules/roundf-tests: New file.
81812         * modules/roundl: New file.
81813         * modules/roundl-tests: New file.
81814         * tests/test-round1.c: New file.
81815         * tests/test-round2.c: New file.
81816         * tests/test-roundf1.c: New file.
81817         * tests/test-roundf2.c: New file.
81818         * tests/test-roundl.c: New file.
81819         * doc/functions/round.texi: Mention round module.
81820         * doc/functions/roundf.texi: Mention roundf module.
81821         * doc/functions/roundl.texi: Mention roundl module.
81822         * MODULES.html.sh: Mention new modules.
81823         Thanks to Bruno Haible for suggestions.
81825 2007-10-20  Jim Meyering  <meyering@redhat.com>
81827         * lib/xprintf.c: Include <config.h> unconditionally.
81829         Change xprintf's license to GPL.
81830         * modules/xprintf (License): s/LGPL/GPL/, since this module
81831         depends on modules (exit and exitfail) which are GPL.
81832         Suggestion from Bruno Haible.
81834         xprintf fixes.
81835         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
81836         Use a clearer diagnostic.
81837         Patch from Bruno Haible.
81839 2007-10-20  Bruno Haible  <bruno@clisp.org>
81841         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
81842         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
81843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81845 2007-10-20  Bruno Haible  <bruno@clisp.org>
81847         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
81848         precision in the comparison result > x - 1 or similar.
81849         * tests/test-ceilf2.c (correct_result_p): Likewise.
81850         * tests/test-truncf2.c (correct_result_p): Likewise.
81851         * tests/test-trunc2.c (correct_result_p): Likewise.
81852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81854 2007-10-20  Bruno Haible  <bruno@clisp.org>
81856         * modules/ceil: New file.
81857         * m4/ceil.m4: New file.
81858         * doc/functions/ceil.texi: Mention the 'ceil' module.
81860 2007-10-20  Bruno Haible  <bruno@clisp.org>
81862         * modules/floor: New file.
81863         * m4/floor.m4: New file.
81864         * doc/functions/floor.texi: Mention the 'floor' module.
81866 2007-10-20  Bruno Haible  <bruno@clisp.org>
81868         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81869         of %a.
81870         * modules/floorf-tests (Depends-on): Likewise.
81871         * modules/truncf-tests (Depends-on): Likewise.
81872         * modules/trunc-tests (Depends-on): Likewise.
81873         Reported by Ben Pfaff.
81875 2007-10-19  Jim Meyering  <meyering@redhat.com>
81877         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81878         Don't bother testing specific errno values.  Just test ferror.
81880         New module: xprintf
81881         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81883 2007-10-19  Bruno Haible  <bruno@clisp.org>
81885         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81886         syntax.
81887         * modules/javaexec (Makefile.am): Likewise.
81888         * modules/relocatable-prog (Makefile.am): Likewise.
81889         Suggested by Jim Meyering.
81891 2007-10-18  Bruno Haible  <bruno@clisp.org>
81893         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81894         Reported by Jim Meyering.
81896 2007-10-18  Eric Blake  <ebb9@byu.net>
81898         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81900 2007-10-18  Bruno Haible  <bruno@clisp.org>
81902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81903         the format string into writable memory. Needed in Fortify conditions.
81905 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81906             Bruno Haible  <bruno@clisp.org>
81908         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81909         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81910         * modules/trim (Depends-on): Add mbchar.
81911         (configure.ac): Add gl_FUNC_MBRTOWC.
81912         (Makefile.am): Augment lib_SOURCES.
81914 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81916         Modify glob.c to use fstatat and dirfd, to simplify it.
81917         Suggested by Eric Blake.
81918         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
81919         Don't include <stdbool.h>; not used.
81920         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
81921         (link_exists_p): Simplify implementation, since we can now assume
81922         dirfd and fstatat.
81923         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
81925 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81927         * gnulib-tool (func_get_dependencies): Fix sed script to
81928         match only tests.
81930 2007-10-17  Bruno Haible  <bruno@clisp.org>
81932         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
81933         allow locale names without encoding suffix.
81934         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81935         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81937 2007-10-16  Bruno Haible  <bruno@clisp.org>
81939         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
81940         * lib/getgroups.c (getgroups): Likewise.
81941         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
81943 2007-10-16  Bruno Haible  <bruno@clisp.org>
81945         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
81946         * modules/malloc-posix (License): Likewise.
81947         * modules/realloc-posix (License): Likewise.
81948         * modules/calloc-posix (License): Likewise.
81949         * modules/intprops (License): Change from GPL to LGPL, with
81950         Paul Eggert's approval.
81952 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81954         Merge glibc changes into lib/glob.c.
81956         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
81957         2007-10-15 04:59:03 UTC.  Here are the changes:
81959         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
81961         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
81963         * lib/glob.c: Add some branch prediction throughout.
81965         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
81967         [BZ #5103]
81968         * lib/glob.c (glob): Recognize patterns starting \/.
81970         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
81972         [BZ #3996]
81973         * lib/glob.c (attribute_hidden): Define if not defined.
81974         (glob): Unescape dirname, filename or username when needed and not
81975         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
81976         is NULL.  Handle unescaped [ in pattern without closing ].
81977         Don't pass GLOB_CHECK down to recursive glob for directories.
81978         (__glob_pattern_type): New function.
81979         (__glob_pattern_p): Implement using __glob_pattern_type.
81980         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
81981         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
81982         Remove unreachable code.
81984         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
81986         * lib/glob.c (glob_in_dir): Add some comments and asserts to
81987         explain why there are no leaks.
81989         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
81991         [BZ #3253]
81992         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
81993         time, rather allocate increasingly bigger arrays of pointers, if
81994         possible with alloca, if too large with malloc.
81996 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81998         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
81999         Problem reported by H.Merijn Brand in
82000         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
82001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
82002         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82004 2007-10-15  Bruno Haible  <bruno@clisp.org>
82006         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
82007         with explicit rpl_ prefix.
82008         * lib/fopen.c (fopen): Likewise.
82009         * lib/freopen.c (freopen): Likewise.
82010         * lib/iconv.c (iconv): Likewise.
82011         * lib/iconv_close.c (iconv_close): Likewise.
82013 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82015         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
82017 2007-10-15  Bruno Haible  <bruno@clisp.org>
82019         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
82020         <stddef.h> instead of <stdlib.h> since we only need NULL.
82021         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82023 2007-10-15  Bruno Haible  <bruno@clisp.org>
82025         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
82026         Replace paragraph talking about LIBOBJS.
82027         Reported by Colin Watson <cjwatson@debian.org>.
82029 2007-10-15  Bruno Haible  <bruno@clisp.org>
82031         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
82032         <stdlib.h> before using NULL.
82034 2007-10-15  Simon Josefsson  <simon@josefsson.org>
82036         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
82037         Reported by Albert Chin <china@thewrittenword.com>.
82039 2007-10-14  Bruno Haible  <bruno@clisp.org>
82041         * modules/iconv_open-utf-tests: New file.
82042         * tests/test-iconv-utf.c: New file.
82044         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
82045         * modules/iconv_open-utf: New file.
82046         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
82047         (iconv, iconv_close): New declarations.
82048         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
82049         be defined.
82050         (iconv_open): Add special handling of conversion between UTF-8 and
82051         UTF-{16,32}{BE,LE}.
82052         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
82053         * lib/iconv_close.c: New file.
82054         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
82055         gl_FUNC_ICONV_OPEN.
82056         (gl_FUNC_ICONV_OPEN): Use it.
82057         (gl_FUNC_ICONV_OPEN_UTF): New macro.
82058         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
82059         and REPLACE_ICONV_UTF.
82060         * modules/iconv_open (Depends-on): Add c-strcase.
82061         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
82062         ICONV_CONST.
82063         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
82065 2007-10-13  Albert Chin  <china@thewrittenword.com>
82066             Bruno Haible  <bruno@clisp.org>
82068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
82069         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
82071 2007-10-13  Bruno Haible  <bruno@clisp.org>
82073         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
82074         defined, use the ISO C99 inline semantics.
82075         * lib/argp.h (ARGP_EI): Likewise.
82077 2007-10-13  Bruno Haible  <bruno@clisp.org>
82079         Handle 'inline' change in gcc 4.3.0.
82080         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
82081         argp_fmtstream_write, argp_fmtstream_set_lmargin,
82082         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
82083         argp_fmtstream_point): Disable 'extern' declaration if the function
82084         definition is going to be provided inline.
82085         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
82086         semantics, not the ISO C99 inline semantics.
82087         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
82088         'extern' declaration if the function definition is going to be provided
82089         inline.
82090         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
82091         the GNU C inline semantics, not the ISO C99 inline semantics. With
82092         GCC 4.2, avoid a warning.
82094 2007-10-13  Bruno Haible  <bruno@clisp.org>
82096         * lib/freading.h (freading): Enable the use of __freading for
82097         glibc >= 2.7.
82098         * lib/freading.c (freading): Likewise.
82100 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
82102         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
82103         "warning: C99 inline functions are not supported; using GNU89".
82105 2007-10-12  Bruno Haible  <bruno@clisp.org>
82107         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
82108         of 2.
82109         * tests/test-ceilf2.c: New file.
82110         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
82112         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
82113         * modules/ceilf-tests: Update.
82115 2007-10-12  Bruno Haible  <bruno@clisp.org>
82117         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
82118         of 2.
82119         * tests/test-floorf2.c: New file.
82120         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
82122         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
82123         * modules/floorf-tests: Update.
82125 2007-10-12  Bruno Haible  <bruno@clisp.org>
82127         * tests/test-trunc2.c: New file.
82128         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
82130         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
82131         * modules/trunc-tests: Update.
82133 2007-10-12  Bruno Haible  <bruno@clisp.org>
82135         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
82136         of 2.
82137         * tests/test-truncf2.c: New file.
82138         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
82140         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
82141         * modules/truncf-tests: Update.
82143 2007-10-11  Eric Blake  <ebb9@byu.net>
82145         Don't claim strerror is broken on Interix.
82146         * doc/functions/strerror.texi (strerror): Known broken systems are
82147         now Solaris 8, and not Interix.
82148         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
82149         Interix on cross-compile.
82150         Reported by Martin Koeppe in
82151         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
82153 2007-10-11  Bruno Haible  <bruno@clisp.org>
82155         * modules/i-ring-tests: New file.
82156         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
82157         instead of assert.
82159 2007-10-11  Bruno Haible  <bruno@clisp.org>
82161         * modules/filenamecat-tests: New file.
82162         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
82163         * lib/filenamecat.c: Remove test code.
82165 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
82167         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
82169         * lib/strerror.c: Include <string.h> always, to test interface,
82170         and to remove the need for the dummy.
82171         Include intprops.h to compute width instead of doing it ourselves
82172         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
82173         (strerror): Define it to return NULL if there's no system strerror.
82174         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
82175         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
82176         ancient pre-strerror Unix systems well any more.  Saying "unknown
82177         system error" is enough.
82178         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
82179         simpler strerror.c implementation.
82180         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
82181         Simplify the tests to reflect the simpler strerror implementation.
82182         * modules/strerror (Depends-on): Add intprops.
82184 2007-10-09  Eric Blake  <ebb9@byu.net>
82186         Silence test-fpending.
82187         * modules/fpending-tests (Files): Add wrapper script.
82188         * tests/test-fpending.sh: New file.
82190 2007-10-09  Bruno Haible  <bruno@clisp.org>
82192         * MODULES.html.sh (func_module): Don't create a hyperlink for
82193         function names like 'printf_frexp'.
82194         (Misc): Add crc, memxor.
82195         (Characteristics of floating types): New section.
82196         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
82197         isnanf-nolibm, signbit, trunc, truncf, truncl.
82198         (Enhancements for ISO C 99 functions): New subsection Input/output.
82199         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
82200         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
82201         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
82202         (Compatibility checks for POSIX:2001 functions): Add clock-time.
82203         (Enhancements for POSIX:2001 functions): Add chdir-long.
82204         (File system functions): Add areadlink, chdir-safer, read-file.
82205         Remove cycle-check.
82206         (File system as inode set): New section.
82207         (Date and time): Add gethrxtime.
82208         (Multithreading): Add openmp.
82209         (Internationalization functions): Add localename.
82210         (Unicode string functions): Add unistr/u*-mbsnlen.
82211         (Support for maintaining and releasing projects): Add git-version-gen.
82212         (Lone files): Remove directories.
82214 2007-10-08  Ben Pfaff  <blp@gnu.org>
82216         * lib/xmalloca.h: Fix typo in comment.
82218 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
82220         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
82221         when avoiding problems with integer overflow.  Use a portable test
82222         instead.
82224 2007-10-08  Simon Josefsson  <simon@josefsson.org>
82226         * modules/dummy (License): Change to LGPLv2+.
82227         * modules/float (License): Likewise
82228         * modules/realloc (License): Likewise
82229         * modules/stdlib (License): Likewise
82231 2007-10-07  Bruno Haible  <bruno@clisp.org>
82233         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
82234         * floor.c (TWO_MANT_DIG): Likewise.
82235         * ceil.c (TWO_MANT_DIG): Likewise.
82236         Reported by Ben Pfaff.
82238 2007-10-07  Bruno Haible  <bruno@clisp.org>
82240         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
82241         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
82242         * lib/frexp.c (FUNC): Likewise.
82243         * lib/printf-frexp.h (printf_frexp): Likewise.
82244         * lib/printf-frexpl.h (printf_frexpl): Likewise.
82245         * lib/printf-frexp.c (FUNC): Likewise.
82246         Suggested by Jim Meyering.
82248 2007-10-07  Jim Meyering  <meyering@redhat.com>
82250         Make xnanosleep's integer overflow test more robust.
82251         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
82252         so that gcc-4.3.0 doesn't optimize away this test for overflow.
82254 2007-10-07  Bruno Haible  <bruno@clisp.org>
82256         * NEWS: Mention the license change.
82258         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
82259         abbreviations in the modules files.
82261         Change copyright notice from GPLv2+ to GPLv3+.
82262         * README: Change copyright notice.
82263         * MODULES.html.sh: Likewise.
82264         * build-aux/bootstrap.conf: Likewise.
82265         * build-aux/config.libpath: Likewise.
82266         * build-aux/csharpcomp.sh.in: Likewise.
82267         * build-aux/csharpexec.sh.in: Likewise.
82268         * build-aux/install-reloc: Likewise.
82269         * build-aux/javacomp.sh.in: Likewise.
82270         * build-aux/javaexec.sh.in: Likewise.
82271         * build-aux/ldd.sh.in: Likewise.
82272         * build-aux/reloc-ldflags: Likewise.
82273         * build-aux/relocatable.sh.in: Likewise.
82274         * build-aux/x-to-1.in: Likewise.
82275         * check-module: Likewise.
82276         * config/srclistvars.sh: Likewise.
82277         * gnulib-tool: Likewise.
82278         * lib/acl-internal.h: Likewise.
82279         * lib/acl.c: Likewise.
82280         * lib/acl.h: Likewise.
82281         * lib/acl_entries.c: Likewise.
82282         * lib/areadlink-with-size.c: Likewise.
82283         * lib/areadlink.c: Likewise.
82284         * lib/areadlink.h: Likewise.
82285         * lib/argmatch.c: Likewise.
82286         * lib/argmatch.h: Likewise.
82287         * lib/argp-ba.c: Likewise.
82288         * lib/argp-eexst.c: Likewise.
82289         * lib/argp-fmtstream.c: Likewise.
82290         * lib/argp-fmtstream.h: Likewise.
82291         * lib/argp-fs-xinl.c: Likewise.
82292         * lib/argp-help.c: Likewise.
82293         * lib/argp-namefrob.h: Likewise.
82294         * lib/argp-parse.c: Likewise.
82295         * lib/argp-pin.c: Likewise.
82296         * lib/argp-pv.c: Likewise.
82297         * lib/argp-pvh.c: Likewise.
82298         * lib/argp-xinl.c: Likewise.
82299         * lib/argp.h: Likewise.
82300         * lib/at-func.c: Likewise.
82301         * lib/atanl.c: Likewise.
82302         * lib/backupfile.c: Likewise.
82303         * lib/backupfile.h: Likewise.
82304         * lib/basename.c: Likewise.
82305         * lib/binary-io.h: Likewise.
82306         * lib/byteswap.in.h: Likewise.
82307         * lib/c-stack.c: Likewise.
82308         * lib/c-stack.h: Likewise.
82309         * lib/c-strcasestr.c: Likewise.
82310         * lib/c-strcasestr.h: Likewise.
82311         * lib/c-strstr.c: Likewise.
82312         * lib/c-strstr.h: Likewise.
82313         * lib/c-strtod.c: Likewise.
82314         * lib/calloc.c: Likewise.
82315         * lib/canon-host.c: Likewise.
82316         * lib/canon-host.h: Likewise.
82317         * lib/canonicalize-lgpl.c: Likewise.
82318         * lib/canonicalize.c: Likewise.
82319         * lib/canonicalize.h: Likewise.
82320         * lib/ceil.c: Likewise.
82321         * lib/ceilf.c: Likewise.
82322         * lib/ceill.c: Likewise.
82323         * lib/chdir-long.c: Likewise.
82324         * lib/chdir-long.h: Likewise.
82325         * lib/chdir-safer.c: Likewise.
82326         * lib/chdir-safer.h: Likewise.
82327         * lib/chown.c: Likewise.
82328         * lib/classpath.c: Likewise.
82329         * lib/classpath.h: Likewise.
82330         * lib/clean-temp.c: Likewise.
82331         * lib/clean-temp.h: Likewise.
82332         * lib/cloexec.c: Likewise.
82333         * lib/close-stream.c: Likewise.
82334         * lib/closein.c: Likewise.
82335         * lib/closein.h: Likewise.
82336         * lib/closeout.c: Likewise.
82337         * lib/closeout.h: Likewise.
82338         * lib/concat-filename.c: Likewise.
82339         * lib/copy-file.c: Likewise.
82340         * lib/copy-file.h: Likewise.
82341         * lib/count-one-bits.h: Likewise.
82342         * lib/crc.c: Likewise.
82343         * lib/crc.h: Likewise.
82344         * lib/creat-safer.c: Likewise.
82345         * lib/csharpcomp.c: Likewise.
82346         * lib/csharpcomp.h: Likewise.
82347         * lib/csharpexec.c: Likewise.
82348         * lib/csharpexec.h: Likewise.
82349         * lib/cycle-check.c: Likewise.
82350         * lib/cycle-check.h: Likewise.
82351         * lib/diacrit.c: Likewise.
82352         * lib/diacrit.h: Likewise.
82353         * lib/diffseq.h: Likewise.
82354         * lib/dirchownmod.c: Likewise.
82355         * lib/dirent.in.h: Likewise.
82356         * lib/dirfd.c: Likewise.
82357         * lib/dirfd.h: Likewise.
82358         * lib/dirname.c: Likewise.
82359         * lib/dirname.h: Likewise.
82360         * lib/dummy.c: Likewise.
82361         * lib/dup-safer.c: Likewise.
82362         * lib/dup2.c: Likewise.
82363         * lib/eealloc.h: Likewise.
82364         * lib/error.c: Likewise.
82365         * lib/error.h: Likewise.
82366         * lib/euidaccess.c: Likewise.
82367         * lib/exclude.c: Likewise.
82368         * lib/exclude.h: Likewise.
82369         * lib/execute.c: Likewise.
82370         * lib/execute.h: Likewise.
82371         * lib/exitfail.c: Likewise.
82372         * lib/exitfail.h: Likewise.
82373         * lib/expl.c: Likewise.
82374         * lib/fatal-signal.c: Likewise.
82375         * lib/fatal-signal.h: Likewise.
82376         * lib/fbufmode.c: Likewise.
82377         * lib/fbufmode.h: Likewise.
82378         * lib/fchdir.c: Likewise.
82379         * lib/fchmodat.c: Likewise.
82380         * lib/fchownat.c: Likewise.
82381         * lib/fcntl--.h: Likewise.
82382         * lib/fcntl-safer.h: Likewise.
82383         * lib/fcntl.in.h: Likewise.
82384         * lib/fd-safer.c: Likewise.
82385         * lib/fflush.c: Likewise.
82386         * lib/file-has-acl.c: Likewise.
82387         * lib/file-set.c: Likewise.
82388         * lib/file-type.c: Likewise.
82389         * lib/file-type.h: Likewise.
82390         * lib/fileblocks.c: Likewise.
82391         * lib/filemode.c: Likewise.
82392         * lib/filemode.h: Likewise.
82393         * lib/filename.h: Likewise.
82394         * lib/filenamecat.c: Likewise.
82395         * lib/filenamecat.h: Likewise.
82396         * lib/findprog.c: Likewise.
82397         * lib/findprog.h: Likewise.
82398         * lib/float.in.h: Likewise.
82399         * lib/floor.c: Likewise.
82400         * lib/floorf.c: Likewise.
82401         * lib/floorl.c: Likewise.
82402         * lib/fopen-safer.c: Likewise.
82403         * lib/fopen.c: Likewise.
82404         * lib/fpending.c: Likewise.
82405         * lib/fpending.h: Likewise.
82406         * lib/fprintf.c: Likewise.
82407         * lib/fprintftime.h: Likewise.
82408         * lib/fpucw.h: Likewise.
82409         * lib/fpurge.c: Likewise.
82410         * lib/fpurge.h: Likewise.
82411         * lib/freadable.c: Likewise.
82412         * lib/freadable.h: Likewise.
82413         * lib/freadahead.c: Likewise.
82414         * lib/freadahead.h: Likewise.
82415         * lib/freading.c: Likewise.
82416         * lib/freading.h: Likewise.
82417         * lib/free.c: Likewise.
82418         * lib/freopen.c: Likewise.
82419         * lib/frexp.c: Likewise.
82420         * lib/frexpl.c: Likewise.
82421         * lib/fseek.c: Likewise.
82422         * lib/fseterr.c: Likewise.
82423         * lib/fseterr.h: Likewise.
82424         * lib/fstatat.c: Likewise.
82425         * lib/fstrcmp.c: Likewise.
82426         * lib/fstrcmp.h: Likewise.
82427         * lib/fsusage.c: Likewise.
82428         * lib/fsusage.h: Likewise.
82429         * lib/ftell.c: Likewise.
82430         * lib/ftello.c: Likewise.
82431         * lib/fts-cycle.c: Likewise.
82432         * lib/fts.c: Likewise.
82433         * lib/fts_.h: Likewise.
82434         * lib/full-read.c: Likewise.
82435         * lib/full-read.h: Likewise.
82436         * lib/full-write.c: Likewise.
82437         * lib/full-write.h: Likewise.
82438         * lib/fwritable.c: Likewise.
82439         * lib/fwritable.h: Likewise.
82440         * lib/fwriteerror.c: Likewise.
82441         * lib/fwriteerror.h: Likewise.
82442         * lib/fwriting.c: Likewise.
82443         * lib/fwriting.h: Likewise.
82444         * lib/gcd.c: Likewise.
82445         * lib/gcd.h: Likewise.
82446         * lib/getcwd.c: Likewise.
82447         * lib/getdate.h: Likewise.
82448         * lib/getdate.y: Likewise.
82449         * lib/getdomainname.c: Likewise.
82450         * lib/getdomainname.h: Likewise.
82451         * lib/getgroups.c: Likewise.
82452         * lib/gethostname.c: Likewise.
82453         * lib/gethrxtime.c: Likewise.
82454         * lib/gethrxtime.h: Likewise.
82455         * lib/getloadavg.c: Likewise.
82456         * lib/getndelim2.c: Likewise.
82457         * lib/getndelim2.h: Likewise.
82458         * lib/getnline.c: Likewise.
82459         * lib/getnline.h: Likewise.
82460         * lib/getopt.c: Likewise.
82461         * lib/getopt.in.h: Likewise.
82462         * lib/getopt1.c: Likewise.
82463         * lib/getopt_int.h: Likewise.
82464         * lib/getpagesize.h: Likewise.
82465         * lib/getsubopt.c: Likewise.
82466         * lib/gettime.c: Likewise.
82467         * lib/getugroups.c: Likewise.
82468         * lib/getugroups.h: Likewise.
82469         * lib/getusershell.c: Likewise.
82470         * lib/gl_anyavltree_list1.h: Likewise.
82471         * lib/gl_anyavltree_list2.h: Likewise.
82472         * lib/gl_anyhash_list1.h: Likewise.
82473         * lib/gl_anyhash_list2.h: Likewise.
82474         * lib/gl_anylinked_list1.h: Likewise.
82475         * lib/gl_anylinked_list2.h: Likewise.
82476         * lib/gl_anyrbtree_list1.h: Likewise.
82477         * lib/gl_anyrbtree_list2.h: Likewise.
82478         * lib/gl_anytree_list1.h: Likewise.
82479         * lib/gl_anytree_list2.h: Likewise.
82480         * lib/gl_anytree_oset.h: Likewise.
82481         * lib/gl_anytreehash_list1.h: Likewise.
82482         * lib/gl_anytreehash_list2.h: Likewise.
82483         * lib/gl_array_list.c: Likewise.
82484         * lib/gl_array_list.h: Likewise.
82485         * lib/gl_array_oset.c: Likewise.
82486         * lib/gl_array_oset.h: Likewise.
82487         * lib/gl_avltree_list.c: Likewise.
82488         * lib/gl_avltree_list.h: Likewise.
82489         * lib/gl_avltree_oset.c: Likewise.
82490         * lib/gl_avltree_oset.h: Likewise.
82491         * lib/gl_avltreehash_list.c: Likewise.
82492         * lib/gl_avltreehash_list.h: Likewise.
82493         * lib/gl_carray_list.c: Likewise.
82494         * lib/gl_carray_list.h: Likewise.
82495         * lib/gl_linked_list.c: Likewise.
82496         * lib/gl_linked_list.h: Likewise.
82497         * lib/gl_linkedhash_list.c: Likewise.
82498         * lib/gl_linkedhash_list.h: Likewise.
82499         * lib/gl_list.c: Likewise.
82500         * lib/gl_list.h: Likewise.
82501         * lib/gl_oset.c: Likewise.
82502         * lib/gl_oset.h: Likewise.
82503         * lib/gl_rbtree_list.c: Likewise.
82504         * lib/gl_rbtree_list.h: Likewise.
82505         * lib/gl_rbtree_oset.c: Likewise.
82506         * lib/gl_rbtree_oset.h: Likewise.
82507         * lib/gl_rbtreehash_list.c: Likewise.
82508         * lib/gl_rbtreehash_list.h: Likewise.
82509         * lib/gl_sublist.c: Likewise.
82510         * lib/gl_sublist.h: Likewise.
82511         * lib/group-member.c: Likewise.
82512         * lib/group-member.h: Likewise.
82513         * lib/hard-locale.c: Likewise.
82514         * lib/hard-locale.h: Likewise.
82515         * lib/hash-pjw.c: Likewise.
82516         * lib/hash-pjw.h: Likewise.
82517         * lib/hash-triple.c: Likewise.
82518         * lib/hash.c: Likewise.
82519         * lib/hash.h: Likewise.
82520         * lib/human.c: Likewise.
82521         * lib/human.h: Likewise.
82522         * lib/i-ring.c: Likewise.
82523         * lib/i-ring.h: Likewise.
82524         * lib/idcache.c: Likewise.
82525         * lib/imaxabs.c: Likewise.
82526         * lib/imaxdiv.c: Likewise.
82527         * lib/inet_pton.c: Likewise.
82528         * lib/inet_pton.h: Likewise.
82529         * lib/intprops.h: Likewise.
82530         * lib/inttostr.c: Likewise.
82531         * lib/inttostr.h: Likewise.
82532         * lib/inttypes.in.h: Likewise.
82533         * lib/isapipe.c: Likewise.
82534         * lib/isdir.c: Likewise.
82535         * lib/isnan.c: Likewise.
82536         * lib/isnan.h: Likewise.
82537         * lib/isnanf.c: Likewise.
82538         * lib/isnanf.h: Likewise.
82539         * lib/isnanl-nolibm.h: Likewise.
82540         * lib/isnanl.c: Likewise.
82541         * lib/isnanl.h: Likewise.
82542         * lib/javacomp.c: Likewise.
82543         * lib/javacomp.h: Likewise.
82544         * lib/javaexec.c: Likewise.
82545         * lib/javaexec.h: Likewise.
82546         * lib/javaversion.c: Likewise.
82547         * lib/javaversion.h: Likewise.
82548         * lib/javaversion.java: Likewise.
82549         * lib/lbrkprop.h: Likewise.
82550         * lib/lchmod.h: Likewise.
82551         * lib/lchown.c: Likewise.
82552         * lib/ldexpl.c: Likewise.
82553         * lib/linebreak.c: Likewise.
82554         * lib/linebreak.h: Likewise.
82555         * lib/linebuffer.c: Likewise.
82556         * lib/linebuffer.h: Likewise.
82557         * lib/locale.in.h: Likewise.
82558         * lib/logl.c: Likewise.
82559         * lib/long-options.c: Likewise.
82560         * lib/long-options.h: Likewise.
82561         * lib/lstat.c: Likewise.
82562         * lib/lstat.h: Likewise.
82563         * lib/math.in.h: Likewise.
82564         * lib/mbchar.c: Likewise.
82565         * lib/mbchar.h: Likewise.
82566         * lib/mbfile.h: Likewise.
82567         * lib/mbiter.h: Likewise.
82568         * lib/mbscasecmp.c: Likewise.
82569         * lib/mbscasestr.c: Likewise.
82570         * lib/mbschr.c: Likewise.
82571         * lib/mbscspn.c: Likewise.
82572         * lib/mbslen.c: Likewise.
82573         * lib/mbsncasecmp.c: Likewise.
82574         * lib/mbsnlen.c: Likewise.
82575         * lib/mbspbrk.c: Likewise.
82576         * lib/mbspcasecmp.c: Likewise.
82577         * lib/mbsrchr.c: Likewise.
82578         * lib/mbssep.c: Likewise.
82579         * lib/mbsspn.c: Likewise.
82580         * lib/mbsstr.c: Likewise.
82581         * lib/mbstok_r.c: Likewise.
82582         * lib/mbswidth.c: Likewise.
82583         * lib/mbswidth.h: Likewise.
82584         * lib/mbuiter.h: Likewise.
82585         * lib/memcasecmp.c: Likewise.
82586         * lib/memcasecmp.h: Likewise.
82587         * lib/memchr.c: Likewise.
82588         * lib/memcmp.c: Likewise.
82589         * lib/memcoll.c: Likewise.
82590         * lib/memcoll.h: Likewise.
82591         * lib/memcpy.c: Likewise.
82592         * lib/memrchr.c: Likewise.
82593         * lib/mkancesdirs.c: Likewise.
82594         * lib/mkdir-p.c: Likewise.
82595         * lib/mkdir-p.h: Likewise.
82596         * lib/mkdir.c: Likewise.
82597         * lib/mkdirat.c: Likewise.
82598         * lib/mkdtemp.c: Likewise.
82599         * lib/mkstemp-safer.c: Likewise.
82600         * lib/mkstemp.c: Likewise.
82601         * lib/modechange.c: Likewise.
82602         * lib/modechange.h: Likewise.
82603         * lib/mountlist.c: Likewise.
82604         * lib/mountlist.h: Likewise.
82605         * lib/mpsort.c: Likewise.
82606         * lib/nanosleep.c: Likewise.
82607         * lib/obstack.c: Likewise.
82608         * lib/obstack.h: Likewise.
82609         * lib/open-safer.c: Likewise.
82610         * lib/open.c: Likewise.
82611         * lib/openat-die.c: Likewise.
82612         * lib/openat-priv.h: Likewise.
82613         * lib/openat-proc.c: Likewise.
82614         * lib/openat.c: Likewise.
82615         * lib/openat.h: Likewise.
82616         * lib/pagealign_alloc.c: Likewise.
82617         * lib/pagealign_alloc.h: Likewise.
82618         * lib/physmem.c: Likewise.
82619         * lib/physmem.h: Likewise.
82620         * lib/pipe-safer.c: Likewise.
82621         * lib/pipe.c: Likewise.
82622         * lib/pipe.h: Likewise.
82623         * lib/posixtm.c: Likewise.
82624         * lib/posixtm.h: Likewise.
82625         * lib/posixver.c: Likewise.
82626         * lib/printf-frexp.c: Likewise.
82627         * lib/printf-frexp.h: Likewise.
82628         * lib/printf-frexpl.c: Likewise.
82629         * lib/printf-frexpl.h: Likewise.
82630         * lib/printf.c: Likewise.
82631         * lib/progname.c: Likewise.
82632         * lib/progname.h: Likewise.
82633         * lib/progreloc.c: Likewise.
82634         * lib/putenv.c: Likewise.
82635         * lib/quote.c: Likewise.
82636         * lib/quote.h: Likewise.
82637         * lib/quotearg.c: Likewise.
82638         * lib/quotearg.h: Likewise.
82639         * lib/raise.c: Likewise.
82640         * lib/readline.c: Likewise.
82641         * lib/readline.h: Likewise.
82642         * lib/readlink.c: Likewise.
82643         * lib/readtokens.c: Likewise.
82644         * lib/readtokens.h: Likewise.
82645         * lib/readtokens0.c: Likewise.
82646         * lib/readtokens0.h: Likewise.
82647         * lib/readutmp.c: Likewise.
82648         * lib/readutmp.h: Likewise.
82649         * lib/realloc.c: Likewise.
82650         * lib/relocwrapper.c: Likewise.
82651         * lib/rename-dest-slash.c: Likewise.
82652         * lib/rename.c: Likewise.
82653         * lib/rmdir.c: Likewise.
82654         * lib/rpmatch.c: Likewise.
82655         * lib/safe-read.c: Likewise.
82656         * lib/safe-read.h: Likewise.
82657         * lib/safe-write.c: Likewise.
82658         * lib/safe-write.h: Likewise.
82659         * lib/same-inode.h: Likewise.
82660         * lib/same.c: Likewise.
82661         * lib/same.h: Likewise.
82662         * lib/save-cwd.c: Likewise.
82663         * lib/save-cwd.h: Likewise.
82664         * lib/savedir.c: Likewise.
82665         * lib/savedir.h: Likewise.
82666         * lib/savewd.c: Likewise.
82667         * lib/savewd.h: Likewise.
82668         * lib/search.in.h: Likewise.
82669         * lib/setenv.c: Likewise.
82670         * lib/setenv.h: Likewise.
82671         * lib/settime.c: Likewise.
82672         * lib/sh-quote.c: Likewise.
82673         * lib/sh-quote.h: Likewise.
82674         * lib/sig2str.c: Likewise.
82675         * lib/sig2str.h: Likewise.
82676         * lib/signal.in.h: Likewise.
82677         * lib/signbitd.c: Likewise.
82678         * lib/signbitf.c: Likewise.
82679         * lib/signbitl.c: Likewise.
82680         * lib/sigprocmask.c: Likewise.
82681         * lib/sincosl.c: Likewise.
82682         * lib/sleep.c: Likewise.
82683         * lib/sprintf.c: Likewise.
82684         * lib/sqrtl.c: Likewise.
82685         * lib/stat-time.h: Likewise.
82686         * lib/stdio--.h: Likewise.
82687         * lib/stdio-safer.h: Likewise.
82688         * lib/stdlib--.h: Likewise.
82689         * lib/stdlib-safer.h: Likewise.
82690         * lib/stdlib.in.h: Likewise.
82691         * lib/stpcpy.c: Likewise.
82692         * lib/stpncpy.c: Likewise.
82693         * lib/strchrnul.c: Likewise.
82694         * lib/strcspn.c: Likewise.
82695         * lib/strerror.c: Likewise.
82696         * lib/strftime.c: Likewise.
82697         * lib/strftime.h: Likewise.
82698         * lib/striconveh.c: Likewise.
82699         * lib/striconveh.h: Likewise.
82700         * lib/striconveha.c: Likewise.
82701         * lib/striconveha.h: Likewise.
82702         * lib/stripslash.c: Likewise.
82703         * lib/strnlen1.c: Likewise.
82704         * lib/strnlen1.h: Likewise.
82705         * lib/strtod.c: Likewise.
82706         * lib/strtoimax.c: Likewise.
82707         * lib/strtok_r.c: Likewise.
82708         * lib/strtol.c: Likewise.
82709         * lib/strtoll.c: Likewise.
82710         * lib/strtoul.c: Likewise.
82711         * lib/strtoull.c: Likewise.
82712         * lib/sysexits.in.h: Likewise.
82713         * lib/tempname.c: Likewise.
82714         * lib/tempname.h: Likewise.
82715         * lib/timespec.h: Likewise.
82716         * lib/tls.c: Likewise.
82717         * lib/tls.h: Likewise.
82718         * lib/tmpdir.c: Likewise.
82719         * lib/tmpdir.h: Likewise.
82720         * lib/tmpfile-safer.c: Likewise.
82721         * lib/tmpfile.c: Likewise.
82722         * lib/trigl.c: Likewise.
82723         * lib/trigl.h: Likewise.
82724         * lib/trim.c: Likewise.
82725         * lib/trim.h: Likewise.
82726         * lib/trunc.c: Likewise.
82727         * lib/truncf.c: Likewise.
82728         * lib/truncl.c: Likewise.
82729         * lib/tsearch.c: Likewise.
82730         * lib/unicodeio.c: Likewise.
82731         * lib/unicodeio.h: Likewise.
82732         * lib/unistd--.h: Likewise.
82733         * lib/unistd-safer.h: Likewise.
82734         * lib/unistdio/ulc-fprintf.c: Likewise.
82735         * lib/unistdio/ulc-vfprintf.c: Likewise.
82736         * lib/unlinkdir.c: Likewise.
82737         * lib/unlinkdir.h: Likewise.
82738         * lib/unlocked-io.h: Likewise.
82739         * lib/unsetenv.c: Likewise.
82740         * lib/userspec.c: Likewise.
82741         * lib/utime.c: Likewise.
82742         * lib/utimecmp.c: Likewise.
82743         * lib/utimecmp.h: Likewise.
82744         * lib/utimens.c: Likewise.
82745         * lib/verify.h: Likewise.
82746         * lib/verror.c: Likewise.
82747         * lib/verror.h: Likewise.
82748         * lib/version-etc-fsf.c: Likewise.
82749         * lib/version-etc.c: Likewise.
82750         * lib/version-etc.h: Likewise.
82751         * lib/vfprintf.c: Likewise.
82752         * lib/vprintf.c: Likewise.
82753         * lib/vsprintf.c: Likewise.
82754         * lib/w32spawn.h: Likewise.
82755         * lib/wait-process.c: Likewise.
82756         * lib/wait-process.h: Likewise.
82757         * lib/wcwidth.c: Likewise.
82758         * lib/write-any-file.c: Likewise.
82759         * lib/xalloc-die.c: Likewise.
82760         * lib/xalloc.h: Likewise.
82761         * lib/xasprintf.c: Likewise.
82762         * lib/xgetcwd.c: Likewise.
82763         * lib/xgetcwd.h: Likewise.
82764         * lib/xgetdomainname.c: Likewise.
82765         * lib/xgetdomainname.h: Likewise.
82766         * lib/xgethostname.c: Likewise.
82767         * lib/xmalloc.c: Likewise.
82768         * lib/xmalloca.c: Likewise.
82769         * lib/xmalloca.h: Likewise.
82770         * lib/xmemcoll.c: Likewise.
82771         * lib/xnanosleep.c: Likewise.
82772         * lib/xreadlink.c: Likewise.
82773         * lib/xreadlink.h: Likewise.
82774         * lib/xsetenv.c: Likewise.
82775         * lib/xsetenv.h: Likewise.
82776         * lib/xstriconv.c: Likewise.
82777         * lib/xstriconv.h: Likewise.
82778         * lib/xstrndup.c: Likewise.
82779         * lib/xstrndup.h: Likewise.
82780         * lib/xstrtod.c: Likewise.
82781         * lib/xstrtod.h: Likewise.
82782         * lib/xstrtol-error.c: Likewise.
82783         * lib/xstrtol.c: Likewise.
82784         * lib/xstrtol.h: Likewise.
82785         * lib/xtime.h: Likewise.
82786         * lib/xvasprintf.c: Likewise.
82787         * lib/xvasprintf.h: Likewise.
82788         * lib/yesno.c: Likewise.
82789         * lib/yesno.h: Likewise.
82790         * posix-modules: Likewise.
82791         * tests/test-alloca-opt.c: Likewise.
82792         * tests/test-arcfour.c: Likewise.
82793         * tests/test-arctwo.c: Likewise.
82794         * tests/test-argmatch.c: Likewise.
82795         * tests/test-argp-2.sh: Likewise.
82796         * tests/test-argp.c: Likewise.
82797         * tests/test-arpa_inet.c: Likewise.
82798         * tests/test-array_list.c: Likewise.
82799         * tests/test-array_oset.c: Likewise.
82800         * tests/test-atexit.c: Likewise.
82801         * tests/test-avltree_list.c: Likewise.
82802         * tests/test-avltree_oset.c: Likewise.
82803         * tests/test-avltreehash_list.c: Likewise.
82804         * tests/test-base64.c: Likewise.
82805         * tests/test-binary-io.c: Likewise.
82806         * tests/test-byteswap.c: Likewise.
82807         * tests/test-c-ctype.c: Likewise.
82808         * tests/test-c-strcasecmp.c: Likewise.
82809         * tests/test-c-strcasestr.c: Likewise.
82810         * tests/test-c-strncasecmp.c: Likewise.
82811         * tests/test-c-strstr.c: Likewise.
82812         * tests/test-canonicalize-lgpl.c: Likewise.
82813         * tests/test-canonicalize.c: Likewise.
82814         * tests/test-carray_list.c: Likewise.
82815         * tests/test-ceilf.c: Likewise.
82816         * tests/test-ceill.c: Likewise.
82817         * tests/test-count-one-bits.c: Likewise.
82818         * tests/test-crc.c: Likewise.
82819         * tests/test-dirname.c: Likewise.
82820         * tests/test-fbufmode.c: Likewise.
82821         * tests/test-fcntl.c: Likewise.
82822         * tests/test-fflush.c: Likewise.
82823         * tests/test-floorf.c: Likewise.
82824         * tests/test-floorl.c: Likewise.
82825         * tests/test-fopen.c: Likewise.
82826         * tests/test-fprintf-posix.c: Likewise.
82827         * tests/test-fprintf-posix.h: Likewise.
82828         * tests/test-fpurge.c: Likewise.
82829         * tests/test-freadable.c: Likewise.
82830         * tests/test-freadahead.c: Likewise.
82831         * tests/test-freading.c: Likewise.
82832         * tests/test-freopen.c: Likewise.
82833         * tests/test-frexp.c: Likewise.
82834         * tests/test-frexpl.c: Likewise.
82835         * tests/test-fseek.c: Likewise.
82836         * tests/test-fseeko.c: Likewise.
82837         * tests/test-fseterr.c: Likewise.
82838         * tests/test-fstrcmp.c: Likewise.
82839         * tests/test-ftell.c: Likewise.
82840         * tests/test-ftello.c: Likewise.
82841         * tests/test-fwritable.c: Likewise.
82842         * tests/test-fwriting.c: Likewise.
82843         * tests/test-getaddrinfo.c: Likewise.
82844         * tests/test-getpass.c: Likewise.
82845         * tests/test-gettimeofday.c: Likewise.
82846         * tests/test-hmac-md5.c: Likewise.
82847         * tests/test-hmac-sha1.c: Likewise.
82848         * tests/test-iconv.c: Likewise.
82849         * tests/test-iconvme.c: Likewise.
82850         * tests/test-inttypes.c: Likewise.
82851         * tests/test-isnan.c: Likewise.
82852         * tests/test-isnanf.c: Likewise.
82853         * tests/test-isnanl-nolibm.c: Likewise.
82854         * tests/test-isnanl.c: Likewise.
82855         * tests/test-isnanl.h: Likewise.
82856         * tests/test-ldexpl.c: Likewise.
82857         * tests/test-linked_list.c: Likewise.
82858         * tests/test-linkedhash_list.c: Likewise.
82859         * tests/test-locale.c: Likewise.
82860         * tests/test-localename.c: Likewise.
82861         * tests/test-lock.c: Likewise.
82862         * tests/test-lseek.c: Likewise.
82863         * tests/test-malloca.c: Likewise.
82864         * tests/test-math.c: Likewise.
82865         * tests/test-mbscasecmp.c: Likewise.
82866         * tests/test-mbscasestr1.c: Likewise.
82867         * tests/test-mbscasestr2.c: Likewise.
82868         * tests/test-mbscasestr3.c: Likewise.
82869         * tests/test-mbscasestr4.c: Likewise.
82870         * tests/test-mbschr.c: Likewise.
82871         * tests/test-mbscspn.c: Likewise.
82872         * tests/test-mbsncasecmp.c: Likewise.
82873         * tests/test-mbspbrk.c: Likewise.
82874         * tests/test-mbspcasecmp.c: Likewise.
82875         * tests/test-mbsrchr.c: Likewise.
82876         * tests/test-mbsspn.c: Likewise.
82877         * tests/test-mbsstr1.c: Likewise.
82878         * tests/test-mbsstr2.c: Likewise.
82879         * tests/test-mbsstr3.c: Likewise.
82880         * tests/test-md5.c: Likewise.
82881         * tests/test-memmem.c: Likewise.
82882         * tests/test-netinet_in.c: Likewise.
82883         * tests/test-open.c: Likewise.
82884         * tests/test-printf-frexp.c: Likewise.
82885         * tests/test-printf-frexpl.c: Likewise.
82886         * tests/test-printf-posix.c: Likewise.
82887         * tests/test-printf-posix.h: Likewise.
82888         * tests/test-rbtree_list.c: Likewise.
82889         * tests/test-rbtree_oset.c: Likewise.
82890         * tests/test-rbtreehash_list.c: Likewise.
82891         * tests/test-read-file.c: Likewise.
82892         * tests/test-rijndael.c: Likewise.
82893         * tests/test-search.c: Likewise.
82894         * tests/test-signbit.c: Likewise.
82895         * tests/test-sleep.c: Likewise.
82896         * tests/test-snprintf-posix.c: Likewise.
82897         * tests/test-snprintf-posix.h: Likewise.
82898         * tests/test-snprintf.c: Likewise.
82899         * tests/test-sprintf-posix.c: Likewise.
82900         * tests/test-sprintf-posix.h: Likewise.
82901         * tests/test-stat-time.c: Likewise.
82902         * tests/test-stdbool.c: Likewise.
82903         * tests/test-stdint.c: Likewise.
82904         * tests/test-stdio.c: Likewise.
82905         * tests/test-stdlib.c: Likewise.
82906         * tests/test-stpncpy.c: Likewise.
82907         * tests/test-strcasestr.c: Likewise.
82908         * tests/test-striconv.c: Likewise.
82909         * tests/test-striconveh.c: Likewise.
82910         * tests/test-striconveha.c: Likewise.
82911         * tests/test-string.c: Likewise.
82912         * tests/test-sys_select.c: Likewise.
82913         * tests/test-sys_socket.c: Likewise.
82914         * tests/test-sys_stat.c: Likewise.
82915         * tests/test-sys_time.c: Likewise.
82916         * tests/test-sysexits.c: Likewise.
82917         * tests/test-time.c: Likewise.
82918         * tests/test-tls.c: Likewise.
82919         * tests/test-trunc.c: Likewise.
82920         * tests/test-truncf.c: Likewise.
82921         * tests/test-truncl.c: Likewise.
82922         * tests/test-unistd.c: Likewise.
82923         * tests/test-vasnprintf-posix.c: Likewise.
82924         * tests/test-vasnprintf-posix2.c: Likewise.
82925         * tests/test-vasnprintf.c: Likewise.
82926         * tests/test-vasprintf-posix.c: Likewise.
82927         * tests/test-vasprintf.c: Likewise.
82928         * tests/test-verify.c: Likewise.
82929         * tests/test-vfprintf-posix.c: Likewise.
82930         * tests/test-vprintf-posix.c: Likewise.
82931         * tests/test-vsnprintf-posix.c: Likewise.
82932         * tests/test-vsnprintf.c: Likewise.
82933         * tests/test-vsprintf-posix.c: Likewise.
82934         * tests/test-wchar.c: Likewise.
82935         * tests/test-wctype.c: Likewise.
82936         * tests/test-wcwidth.c: Likewise.
82937         * tests/test-xstrtol.c: Likewise.
82938         * tests/test-xvasprintf.c: Likewise.
82939         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
82940         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
82941         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82942         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82943         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82944         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
82945         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82946         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82947         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82948         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
82949         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82950         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82951         * tests/uniname/test-uninames.c: Likewise.
82952         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
82953         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
82954         * tests/unistdio/test-u16-printf1.h: Likewise.
82955         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
82956         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
82957         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
82958         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
82959         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
82960         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
82961         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
82962         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
82963         * tests/unistdio/test-u32-printf1.h: Likewise.
82964         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
82965         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
82966         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
82967         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
82968         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
82969         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
82970         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
82971         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
82972         * tests/unistdio/test-u8-printf1.h: Likewise.
82973         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
82974         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
82975         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
82976         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
82977         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
82978         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
82979         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
82980         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
82981         * tests/unistdio/test-ulc-printf1.h: Likewise.
82982         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
82983         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
82984         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
82985         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
82986         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
82987         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
82988         * tests/uniwidth/test-u16-strwidth.c: Likewise.
82989         * tests/uniwidth/test-u16-width.c: Likewise.
82990         * tests/uniwidth/test-u32-strwidth.c: Likewise.
82991         * tests/uniwidth/test-u32-width.c: Likewise.
82992         * tests/uniwidth/test-u8-strwidth.c: Likewise.
82993         * tests/uniwidth/test-u8-width.c: Likewise.
82994         * tests/uniwidth/test-uc_width.c: Likewise.
82995         * config/srclist-update: Likewise.
82996         (fixlicense): Update to GPLv3+.
82998         Change copyright notice from LGPLv2.1+ to LGPLv3+.
82999         * tests/test-tsearch.c: Change copyright notice.
83001         Change copyright notice from LGPLv2.0+ to LGPLv3+.
83002         * lib/c-strcaseeq.h: Change copyright notice.
83003         * lib/streq.h: Likewise.
83004         * lib/uniconv.h: Likewise.
83005         * lib/uniconv/u-conv-from-enc.h: Likewise.
83006         * lib/uniconv/u-conv-to-enc.h: Likewise.
83007         * lib/uniconv/u-strconv-from-enc.h: Likewise.
83008         * lib/uniconv/u-strconv-to-enc.h: Likewise.
83009         * lib/uniconv/u16-conv-from-enc.c: Likewise.
83010         * lib/uniconv/u16-conv-to-enc.c: Likewise.
83011         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
83012         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
83013         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
83014         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
83015         * lib/uniconv/u32-conv-from-enc.c: Likewise.
83016         * lib/uniconv/u32-conv-to-enc.c: Likewise.
83017         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
83018         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
83019         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
83020         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
83021         * lib/uniconv/u8-conv-from-enc.c: Likewise.
83022         * lib/uniconv/u8-conv-to-enc.c: Likewise.
83023         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
83024         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
83025         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
83026         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
83027         * lib/uniname.h: Likewise.
83028         * lib/uniname/uniname.c: Likewise.
83029         * lib/unistdio.h: Likewise.
83030         * lib/unistdio/u-asnprintf.h: Likewise.
83031         * lib/unistdio/u-asprintf.h: Likewise.
83032         * lib/unistdio/u-printf-args.c: Likewise.
83033         * lib/unistdio/u-printf-args.h: Likewise.
83034         * lib/unistdio/u-printf-parse.h: Likewise.
83035         * lib/unistdio/u-snprintf.h: Likewise.
83036         * lib/unistdio/u-sprintf.h: Likewise.
83037         * lib/unistdio/u-vasprintf.h: Likewise.
83038         * lib/unistdio/u-vsnprintf.h: Likewise.
83039         * lib/unistdio/u-vsprintf.h: Likewise.
83040         * lib/unistdio/u16-asnprintf.c: Likewise.
83041         * lib/unistdio/u16-asprintf.c: Likewise.
83042         * lib/unistdio/u16-printf-parse.c: Likewise.
83043         * lib/unistdio/u16-snprintf.c: Likewise.
83044         * lib/unistdio/u16-sprintf.c: Likewise.
83045         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
83046         * lib/unistdio/u16-u16-asprintf.c: Likewise.
83047         * lib/unistdio/u16-u16-snprintf.c: Likewise.
83048         * lib/unistdio/u16-u16-sprintf.c: Likewise.
83049         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
83050         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
83051         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
83052         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
83053         * lib/unistdio/u16-vasnprintf.c: Likewise.
83054         * lib/unistdio/u16-vasprintf.c: Likewise.
83055         * lib/unistdio/u16-vsnprintf.c: Likewise.
83056         * lib/unistdio/u16-vsprintf.c: Likewise.
83057         * lib/unistdio/u32-asnprintf.c: Likewise.
83058         * lib/unistdio/u32-asprintf.c: Likewise.
83059         * lib/unistdio/u32-printf-parse.c: Likewise.
83060         * lib/unistdio/u32-snprintf.c: Likewise.
83061         * lib/unistdio/u32-sprintf.c: Likewise.
83062         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
83063         * lib/unistdio/u32-u32-asprintf.c: Likewise.
83064         * lib/unistdio/u32-u32-snprintf.c: Likewise.
83065         * lib/unistdio/u32-u32-sprintf.c: Likewise.
83066         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
83067         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
83068         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
83069         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
83070         * lib/unistdio/u32-vasnprintf.c: Likewise.
83071         * lib/unistdio/u32-vasprintf.c: Likewise.
83072         * lib/unistdio/u32-vsnprintf.c: Likewise.
83073         * lib/unistdio/u32-vsprintf.c: Likewise.
83074         * lib/unistdio/u8-asnprintf.c: Likewise.
83075         * lib/unistdio/u8-asprintf.c: Likewise.
83076         * lib/unistdio/u8-printf-parse.c: Likewise.
83077         * lib/unistdio/u8-snprintf.c: Likewise.
83078         * lib/unistdio/u8-sprintf.c: Likewise.
83079         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
83080         * lib/unistdio/u8-u8-asprintf.c: Likewise.
83081         * lib/unistdio/u8-u8-snprintf.c: Likewise.
83082         * lib/unistdio/u8-u8-sprintf.c: Likewise.
83083         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
83084         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
83085         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
83086         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
83087         * lib/unistdio/u8-vasnprintf.c: Likewise.
83088         * lib/unistdio/u8-vasprintf.c: Likewise.
83089         * lib/unistdio/u8-vsnprintf.c: Likewise.
83090         * lib/unistdio/u8-vsprintf.c: Likewise.
83091         * lib/unistdio/ulc-asnprintf.c: Likewise.
83092         * lib/unistdio/ulc-asprintf.c: Likewise.
83093         * lib/unistdio/ulc-printf-parse.c: Likewise.
83094         * lib/unistdio/ulc-snprintf.c: Likewise.
83095         * lib/unistdio/ulc-sprintf.c: Likewise.
83096         * lib/unistdio/ulc-vasnprintf.c: Likewise.
83097         * lib/unistdio/ulc-vasprintf.c: Likewise.
83098         * lib/unistdio/ulc-vsnprintf.c: Likewise.
83099         * lib/unistdio/ulc-vsprintf.c: Likewise.
83100         * lib/unistr.h: Likewise.
83101         * lib/unistr/u-cpy-alloc.h: Likewise.
83102         * lib/unistr/u-cpy.h: Likewise.
83103         * lib/unistr/u-endswith.h: Likewise.
83104         * lib/unistr/u-move.h: Likewise.
83105         * lib/unistr/u-set.h: Likewise.
83106         * lib/unistr/u-startswith.h: Likewise.
83107         * lib/unistr/u-stpcpy.h: Likewise.
83108         * lib/unistr/u-stpncpy.h: Likewise.
83109         * lib/unistr/u-strcat.h: Likewise.
83110         * lib/unistr/u-strcpy.h: Likewise.
83111         * lib/unistr/u-strcspn.h: Likewise.
83112         * lib/unistr/u-strdup.h: Likewise.
83113         * lib/unistr/u-strlen.h: Likewise.
83114         * lib/unistr/u-strncat.h: Likewise.
83115         * lib/unistr/u-strncpy.h: Likewise.
83116         * lib/unistr/u-strnlen.h: Likewise.
83117         * lib/unistr/u-strpbrk.h: Likewise.
83118         * lib/unistr/u-strspn.h: Likewise.
83119         * lib/unistr/u-strstr.h: Likewise.
83120         * lib/unistr/u-strtok.h: Likewise.
83121         * lib/unistr/u16-check.c: Likewise.
83122         * lib/unistr/u16-chr.c: Likewise.
83123         * lib/unistr/u16-cmp.c: Likewise.
83124         * lib/unistr/u16-cpy-alloc.c: Likewise.
83125         * lib/unistr/u16-cpy.c: Likewise.
83126         * lib/unistr/u16-endswith.c: Likewise.
83127         * lib/unistr/u16-mblen.c: Likewise.
83128         * lib/unistr/u16-mbsnlen.c: Likewise.
83129         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83131         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83132         * lib/unistr/u16-mbtouc.c: Likewise.
83133         * lib/unistr/u16-mbtoucr.c: Likewise.
83134         * lib/unistr/u16-move.c: Likewise.
83135         * lib/unistr/u16-next.c: Likewise.
83136         * lib/unistr/u16-prev.c: Likewise.
83137         * lib/unistr/u16-set.c: Likewise.
83138         * lib/unistr/u16-startswith.c: Likewise.
83139         * lib/unistr/u16-stpcpy.c: Likewise.
83140         * lib/unistr/u16-stpncpy.c: Likewise.
83141         * lib/unistr/u16-strcat.c: Likewise.
83142         * lib/unistr/u16-strchr.c: Likewise.
83143         * lib/unistr/u16-strcmp.c: Likewise.
83144         * lib/unistr/u16-strcpy.c: Likewise.
83145         * lib/unistr/u16-strcspn.c: Likewise.
83146         * lib/unistr/u16-strdup.c: Likewise.
83147         * lib/unistr/u16-strlen.c: Likewise.
83148         * lib/unistr/u16-strmblen.c: Likewise.
83149         * lib/unistr/u16-strmbtouc.c: Likewise.
83150         * lib/unistr/u16-strncat.c: Likewise.
83151         * lib/unistr/u16-strncmp.c: Likewise.
83152         * lib/unistr/u16-strncpy.c: Likewise.
83153         * lib/unistr/u16-strnlen.c: Likewise.
83154         * lib/unistr/u16-strpbrk.c: Likewise.
83155         * lib/unistr/u16-strrchr.c: Likewise.
83156         * lib/unistr/u16-strspn.c: Likewise.
83157         * lib/unistr/u16-strstr.c: Likewise.
83158         * lib/unistr/u16-strtok.c: Likewise.
83159         * lib/unistr/u16-to-u32.c: Likewise.
83160         * lib/unistr/u16-to-u8.c: Likewise.
83161         * lib/unistr/u16-uctomb-aux.c: Likewise.
83162         * lib/unistr/u16-uctomb.c: Likewise.
83163         * lib/unistr/u32-check.c: Likewise.
83164         * lib/unistr/u32-chr.c: Likewise.
83165         * lib/unistr/u32-cmp.c: Likewise.
83166         * lib/unistr/u32-cpy-alloc.c: Likewise.
83167         * lib/unistr/u32-cpy.c: Likewise.
83168         * lib/unistr/u32-endswith.c: Likewise.
83169         * lib/unistr/u32-mblen.c: Likewise.
83170         * lib/unistr/u32-mbsnlen.c: Likewise.
83171         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83172         * lib/unistr/u32-mbtouc.c: Likewise.
83173         * lib/unistr/u32-mbtoucr.c: Likewise.
83174         * lib/unistr/u32-move.c: Likewise.
83175         * lib/unistr/u32-next.c: Likewise.
83176         * lib/unistr/u32-prev.c: Likewise.
83177         * lib/unistr/u32-set.c: Likewise.
83178         * lib/unistr/u32-startswith.c: Likewise.
83179         * lib/unistr/u32-stpcpy.c: Likewise.
83180         * lib/unistr/u32-stpncpy.c: Likewise.
83181         * lib/unistr/u32-strcat.c: Likewise.
83182         * lib/unistr/u32-strchr.c: Likewise.
83183         * lib/unistr/u32-strcmp.c: Likewise.
83184         * lib/unistr/u32-strcpy.c: Likewise.
83185         * lib/unistr/u32-strcspn.c: Likewise.
83186         * lib/unistr/u32-strdup.c: Likewise.
83187         * lib/unistr/u32-strlen.c: Likewise.
83188         * lib/unistr/u32-strmblen.c: Likewise.
83189         * lib/unistr/u32-strmbtouc.c: Likewise.
83190         * lib/unistr/u32-strncat.c: Likewise.
83191         * lib/unistr/u32-strncmp.c: Likewise.
83192         * lib/unistr/u32-strncpy.c: Likewise.
83193         * lib/unistr/u32-strnlen.c: Likewise.
83194         * lib/unistr/u32-strpbrk.c: Likewise.
83195         * lib/unistr/u32-strrchr.c: Likewise.
83196         * lib/unistr/u32-strspn.c: Likewise.
83197         * lib/unistr/u32-strstr.c: Likewise.
83198         * lib/unistr/u32-strtok.c: Likewise.
83199         * lib/unistr/u32-to-u16.c: Likewise.
83200         * lib/unistr/u32-to-u8.c: Likewise.
83201         * lib/unistr/u32-uctomb.c: Likewise.
83202         * lib/unistr/u8-check.c: Likewise.
83203         * lib/unistr/u8-chr.c: Likewise.
83204         * lib/unistr/u8-cmp.c: Likewise.
83205         * lib/unistr/u8-cpy-alloc.c: Likewise.
83206         * lib/unistr/u8-cpy.c: Likewise.
83207         * lib/unistr/u8-endswith.c: Likewise.
83208         * lib/unistr/u8-mblen.c: Likewise.
83209         * lib/unistr/u8-mbsnlen.c: Likewise.
83210         * lib/unistr/u8-mbtouc-aux.c: Likewise.
83211         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83212         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83213         * lib/unistr/u8-mbtouc.c: Likewise.
83214         * lib/unistr/u8-mbtoucr.c: Likewise.
83215         * lib/unistr/u8-move.c: Likewise.
83216         * lib/unistr/u8-next.c: Likewise.
83217         * lib/unistr/u8-prev.c: Likewise.
83218         * lib/unistr/u8-set.c: Likewise.
83219         * lib/unistr/u8-startswith.c: Likewise.
83220         * lib/unistr/u8-stpcpy.c: Likewise.
83221         * lib/unistr/u8-stpncpy.c: Likewise.
83222         * lib/unistr/u8-strcat.c: Likewise.
83223         * lib/unistr/u8-strchr.c: Likewise.
83224         * lib/unistr/u8-strcmp.c: Likewise.
83225         * lib/unistr/u8-strcpy.c: Likewise.
83226         * lib/unistr/u8-strcspn.c: Likewise.
83227         * lib/unistr/u8-strdup.c: Likewise.
83228         * lib/unistr/u8-strlen.c: Likewise.
83229         * lib/unistr/u8-strmblen.c: Likewise.
83230         * lib/unistr/u8-strmbtouc.c: Likewise.
83231         * lib/unistr/u8-strncat.c: Likewise.
83232         * lib/unistr/u8-strncmp.c: Likewise.
83233         * lib/unistr/u8-strncpy.c: Likewise.
83234         * lib/unistr/u8-strnlen.c: Likewise.
83235         * lib/unistr/u8-strpbrk.c: Likewise.
83236         * lib/unistr/u8-strrchr.c: Likewise.
83237         * lib/unistr/u8-strspn.c: Likewise.
83238         * lib/unistr/u8-strstr.c: Likewise.
83239         * lib/unistr/u8-strtok.c: Likewise.
83240         * lib/unistr/u8-to-u16.c: Likewise.
83241         * lib/unistr/u8-to-u32.c: Likewise.
83242         * lib/unistr/u8-uctomb-aux.c: Likewise.
83243         * lib/unistr/u8-uctomb.c: Likewise.
83244         * lib/unitypes.h: Likewise.
83245         * lib/uniwidth.h: Likewise.
83246         * lib/uniwidth/cjk.h: Likewise.
83247         * lib/uniwidth/u16-strwidth.c: Likewise.
83248         * lib/uniwidth/u16-width.c: Likewise.
83249         * lib/uniwidth/u32-strwidth.c: Likewise.
83250         * lib/uniwidth/u32-width.c: Likewise.
83251         * lib/uniwidth/u8-strwidth.c: Likewise.
83252         * lib/uniwidth/u8-width.c: Likewise.
83253         * lib/uniwidth/width.c: Likewise.
83255 2007-10-07  Bruno Haible  <bruno@clisp.org>
83257         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
83258         The file is still under LGPL (see modules/inttypes).
83260 2007-10-06  Bruno Haible  <bruno@clisp.org>
83262         * modules/trunc (Dependencies): Add 'extensions'.
83263         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
83264         Reported by Ben Pfaff <blp@gnu.org>.
83266 2007-10-06  Bruno Haible  <bruno@clisp.org>
83268         * modules/freopen-tests: New file.
83269         * tests/test-freopen.c: New file.
83271         * modules/fopen-tests: New file.
83272         * tests/test-fopen.c: New file.
83274         * modules/fopen: New file.
83275         * lib/fopen.c: New file.
83276         * m4/fopen.m4: New file.
83277         * modules/freopen: New file.
83278         * lib/freopen.c: New file.
83279         * m4/freopen.m4: New file.
83280         * lib/stdio.in.h (fopen, freopen): New declarations.
83281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
83282         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83283         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
83284         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83285         * doc/functions/fopen.texi: Mention the 'fopen' module.
83286         * doc/functions/freopen.texi: Mention the 'freopen' module.
83288 2007-10-06  Bruno Haible  <bruno@clisp.org>
83290         * modules/open-tests: New file.
83291         * tests/test-open.c: New file.
83293         * modules/open: New file.
83294         * lib/open.c: New file.
83295         * m4/open.m4: New file.
83296         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
83297         lib/open.c does.
83298         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
83299         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
83300         macros.
83301         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
83302         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
83303         REPLACE_OPEN.
83304         * doc/functions/open.texi: Mention the 'open' module.
83306 2007-10-04  Bruno Haible  <bruno@clisp.org>
83308         * modules/ceill-tests: New file.
83309         * tests/test-ceill.c: New file.
83311         * modules/ceill: New file.
83312         * lib/ceill.c: Replace entire file.
83313         * m4/ceill.m4: New file.
83314         * lib/math.in.h (ceill): Replace declaration.
83315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
83316         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
83317         * doc/functions/ceill.texi: Mention the 'ceill' module.
83318         * modules/mathl (Files): Remove lib/ceill.c.
83319         (Depends-on): Add ceill.
83321 2007-10-04  Bruno Haible  <bruno@clisp.org>
83323         * modules/ceilf-tests: New file.
83324         * tests/test-ceilf.c: New file.
83326         * modules/ceilf: New file.
83327         * lib/ceil.c: New file.
83328         * lib/ceilf.c: New file.
83329         * m4/ceilf.m4: New file.
83330         * lib/math.in.h (ceilf): New declaration.
83331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
83332         HAVE_DECL_CEILF.
83333         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
83334         HAVE_DECL_CEILF.
83335         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
83337 2007-10-04  Bruno Haible  <bruno@clisp.org>
83339         * modules/floorl-tests: New file.
83340         * tests/test-floorl.c: New file.
83342         * modules/floorl: New file.
83343         * lib/floorl.c: Replace entire file.
83344         * m4/floorl.m4: New file.
83345         * lib/math.in.h (floorl): Replace declaration.
83346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
83347         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
83348         * doc/functions/floorl.texi: Mention the 'floorl' module.
83349         * modules/mathl (Files): Remove lib/floorl.c.
83350         (Depends-on): Add floorl.
83352 2007-10-04  Bruno Haible  <bruno@clisp.org>
83354         * modules/floorf-tests: New file.
83355         * tests/test-floorf.c: New file.
83357         * modules/floorf: New file.
83358         * lib/floor.c: New file.
83359         * lib/floorf.c: New file.
83360         * m4/floorf.m4: New file.
83361         * lib/math.in.h (floorf): New declaration.
83362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
83363         HAVE_DECL_FLOORF.
83364         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
83365         HAVE_DECL_FLOORF.
83366         * doc/functions/floorf.texi: Mention the 'floorf' module.
83368 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
83369             Bruno Haible  <bruno@clisp.org>
83371         Advertise for the Git server instead of the CVS server.
83372         * doc/gnulib-intro.texi (Steady Development): Mention the Git
83373         repository instead of the CVS one.
83374         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
83375         about all VCS systems generically.
83376         * doc/gnulib.texi (Introduction): Capitalize `Git'.
83378 2007-10-04  Bruno Haible  <bruno@clisp.org>
83380         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
83381         means.
83382         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
83384 2007-10-04  Bruno Haible  <bruno@clisp.org>
83386         * modules/truncl-tests: New file.
83387         * tests/test-truncl.c: New file.
83389         * modules/truncl: New file.
83390         * lib/truncl.c: New file.
83391         * m4/truncl.m4: New file.
83392         * lib/math.in.h (truncl): New declaration.
83393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
83394         HAVE_DECL_TRUNCL.
83395         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
83396         HAVE_DECL_TRUNCL.
83397         * doc/functions/truncl.texi: Mention the 'truncl' module.
83399 2007-10-04  Bruno Haible  <bruno@clisp.org>
83401         * modules/truncf-tests: New file.
83402         * tests/test-truncf.c: New file.
83404         * modules/truncf: New file.
83405         * lib/trunc.c: Make paramerizable through USE_* macros.
83406         * lib/truncf.c: New file.
83407         * m4/truncf.m4: New file.
83408         * lib/math.in.h (truncf): New declaration.
83409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
83410         HAVE_DECL_TRUNCF.
83411         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
83412         HAVE_DECL_TRUNCF.
83413         * doc/functions/truncf.texi: Mention the 'truncf' module.
83415 2007-10-03  Bruno Haible  <bruno@clisp.org>
83417         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
83418         augmentation also for tests modules.
83419         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
83420         * modules/atexit-tests (Makefile.am): Likewise.
83421         * modules/binary-io-tests (Makefile.am): Likewise.
83422         * modules/c-strcase-tests (Makefile.am): Likewise.
83423         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
83424         * modules/canonicalize-tests (Makefile.am): Likewise.
83425         * modules/closein-tests (Makefile.am): Likewise.
83426         * modules/fprintf-posix-tests (Makefile.am): Likewise.
83427         * modules/freadahead-tests (Makefile.am): Likewise.
83428         * modules/fseek-tests (Makefile.am): Likewise.
83429         * modules/fseeko-tests (Makefile.am): Likewise.
83430         * modules/ftell-tests (Makefile.am): Likewise.
83431         * modules/ftello-tests (Makefile.am): Likewise.
83432         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
83433         * modules/isnanl-tests (Makefile.am): Likewise.
83434         * modules/lseek-tests (Makefile.am): Likewise.
83435         * modules/mbscasecmp-tests (Makefile.am): Likewise.
83436         * modules/mbscasestr-tests (Makefile.am): Likewise.
83437         * modules/mbschr-tests (Makefile.am): Likewise.
83438         * modules/mbscspn-tests (Makefile.am): Likewise.
83439         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
83440         * modules/mbspbrk-tests (Makefile.am): Likewise.
83441         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
83442         * modules/mbsrchr-tests (Makefile.am): Likewise.
83443         * modules/mbsspn-tests (Makefile.am): Likewise.
83444         * modules/mbsstr-tests (Makefile.am): Likewise.
83445         * modules/printf-posix-tests (Makefile.am): Likewise.
83446         * modules/snprintf-posix-tests (Makefile.am): Likewise.
83447         * modules/sprintf-posix-tests (Makefile.am): Likewise.
83448         * modules/tsearch-tests (Makefile.am): Likewise.
83449         * modules/uniname/uniname-tests (Makefile.am): Likewise.
83450         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
83451         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
83452         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
83453         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
83454         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
83455         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
83456         * modules/vprintf-posix-tests (Makefile.am): Likewise.
83457         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
83458         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
83459         * modules/xstrtoimax-tests (Makefile.am): Likewise.
83460         * modules/xstrtol-tests (Makefile.am): Likewise.
83461         * modules/xstrtoumax-tests (Makefile.am): Likewise.
83462         * modules/yesno-tests (Makefile.am): Likewise.
83464 2007-10-03  Bruno Haible  <bruno@clisp.org>
83466         * modules/trunc-tests: New file.
83467         * tests/test-trunc.c: New file.
83469         * modules/trunc: New file.
83470         * lib/trunc.c: New file.
83471         * m4/trunc.m4: New file.
83472         * lib/math.in.h (trunc): New declaration.
83473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
83474         HAVE_DECL_TRUNC.
83475         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
83476         HAVE_DECL_TRUNC.
83477         * doc/functions/trunc.texi: Mention the 'trunc' module.
83479 2007-10-03  Bruno Haible  <bruno@clisp.org>
83481         * tests/test-fpending.c: New file, mostly copied
83482         from coreutils/lib/t-fpending.c.
83483         * modules/fpending-tests: New file.
83485 2007-10-03  Bruno Haible  <bruno@clisp.org>
83487         Port the stdio extensions to QNX (untested).
83488         * lib/fseterr.c (fseterr): Add support for QNX.
83489         * lib/fbufmode.c (fbufmode): Likewise.
83490         * lib/freadable.c (freadable): Likewise.
83491         * lib/fwritable.c (fwritable): Likewise.
83492         * lib/freading.c (freading): Likewise.
83493         * lib/fwriting.c (fwriting): Likewise.
83494         * lib/freadahead.c (freadahed): Likewise.
83495         * lib/fpurge.c (fpurge): Likewise.
83496         * lib/fseeko.c (rpl_fseeko): Likewise.
83498 2007-10-03  Bruno Haible  <bruno@clisp.org>
83499             Jim Meyering  <jim@meyering.net>
83500             Eric Blake  <ebb9@byu.net>
83502         * doc/relocatable.texi: Use @command instead of @program.
83504 2007-10-02  Jim Meyering  <jim@meyering.net>
83506         Perform one more "_.h" -> ".in.h" substitution.
83507         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
83508         instead of unistd_.h here, too.
83510 2007-10-01  Bruno Haible  <bruno@clisp.org>
83512         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
83513         Needed for the alloca-opt module.
83515 2007-09-30  Bruno Haible  <bruno@clisp.org>
83517         * lib/alloca.in.h: Renamed from lib/alloca_.h.
83518         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
83519         alloca_.h.
83520         * lib/argz.in.h: Renamed from lib/argz_.h.
83521         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
83522         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
83523         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
83524         byteswap_.h.
83525         * lib/dirent.in.h: Renamed from lib/dirent_.h.
83526         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
83527         dirent_.h.
83528         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
83529         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
83530         fcntl_.h.
83531         * lib/float.in.h: Renamed from lib/float_.h.
83532         * modules/float (Files, Makefile.am): Use float.in.h instead of
83533         float_.h.
83534         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
83535         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
83536         fnmatch_.h.
83537         * lib/getopt.in.h: Renamed from lib/getopt_.h.
83538         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
83539         getopt_.h.
83540         * lib/glob.in.h: Renamed from lib/glob_.h.
83541         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
83542         * lib/iconv.in.h: Renamed from lib/iconv_.h.
83543         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
83544         iconv_.h.
83545         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
83546         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
83547         inttypes_.h.
83548         * lib/locale.in.h: Renamed from lib/locale_.h.
83549         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
83550         locale_.h.
83551         * lib/math.in.h: Renamed from lib/math_.h.
83552         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
83553         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
83554         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
83555         of netinet_in_.h. Add dependency.
83556         * lib/poll.in.h: Renamed from lib/poll_.h.
83557         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
83558         * lib/search.in.h: Renamed from lib/search_.h.
83559         * modules/search (Files, Makefile.am): Use search.in.h instead of
83560         search_.h.
83561         * lib/signal.in.h: Renamed from lib/signal_.h.
83562         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
83563         _signal.h.
83564         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
83565         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83566         stdbool_.h.
83567         * lib/stdint.in.h: Renamed from lib/stdint_.h.
83568         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
83569         stdint_.h.
83570         * lib/stdio.in.h: Renamed from lib/stdio_.h.
83571         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
83572         stdio_.h.
83573         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
83574         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
83575         stdlib_.h.
83576         * lib/string.in.h: Renamed from lib/string_.h.
83577         * modules/string (Files, Makefile.am): Use string.in.h instead of
83578         string_.h.
83579         * doc/gnulib-tool.texi (Initial import): Update.
83580         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
83581         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
83582         of sys_select_.h. Add dependency.
83583         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
83584         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
83585         of sys_socket_.h.
83586         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
83587         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
83588         sys_stat_.h.
83589         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
83590         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
83591         sys_time_.h.
83592         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
83593         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83594         sysexits_.h.
83595         * lib/time.in.h: Renamed from lib/time_.h.
83596         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83597         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83598         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83599         unistd_.h.
83600         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83601         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83602         wchar_.h.
83603         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83604         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83605         wctype_.h.
83606         * build-aux/bootstrap (slurp): Update.
83607         * lib/.cppi-disable: Update.
83609 2007-09-30  Bruno Haible  <bruno@clisp.org>
83611         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83612         Needed on BeOS.
83614 2007-09-30  Bruno Haible  <bruno@clisp.org>
83616         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83618 2007-09-29  Bruno Haible  <bruno@clisp.org>
83620         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83622 2007-09-29  Bruno Haible  <bruno@clisp.org>
83624         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83625         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83626         * build-aux/install-reloc: Compile also areadlink.c.
83627         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83629 2007-09-29  Bruno Haible  <bruno@clisp.org>
83631         * gnulib-tool (func_emit_initmacro_done): Indentation.
83633 2007-09-29  Bruno Haible  <bruno@clisp.org>
83635         * README: Add CVS checkout update instructions.
83636         Info from Bob Proulx <bob@proulx.com>.
83638 2007-09-28  Eric Blake  <ebb9@byu.net>
83640         Provide move-if-change.
83641         * build-aux/move-if-change: New file, based on best practice
83642         rather than any canonical upstream location.
83644 2007-09-28  Jim Meyering  <jim@meyering.net>
83646         Fix canonicalize loop-detection corner case.
83647         Do not attempt to stat the symlink values stored via seen_triple.
83648         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83649         on linux-2.6.18, (but not 2.6.22).
83650         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83651         triple_compare.  The former compares dev,ino,filename, while the latter
83652         would actually stat dirname(filename) when dev and ino were equal.
83653         * lib/hash-triple.c: Install <string.h>.
83654         (STREQ): Define.
83655         (triple_compare_ino_str): New function.
83656         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83658 2007-09-28  Eric Blake  <ebb9@byu.net>
83660         Enforce that AC_REPLACE_FUNCS files exist.
83661         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83662         override check for typos.
83664         Fix test-closein on Solaris 10.
83665         * tests/test-closein.c (main): Don't assume stdin can be inherited
83666         closed on all systems.
83667         * tests/test-closein.sh: Likewise.
83668         Reported by Piotr Tarnowski.
83670 2007-09-28  Jim Meyering  <jim@meyering.net>
83672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83674 2007-09-27  Jim Meyering  <jim@meyering.net>
83676         canonicalize: Avoid a false-positive cycle failure.
83677         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83678         Sort.  Remove cycle-check.
83679         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83680         not cycle-check.h.
83681         (seen_triple): New function.
83682         (canonicalize_filename_mode): Use it instead of cycle-check.
83683         * tests/test-canonicalize.c: Add a test for this bug.
83684         * tests/test-canonicalize.sh: Set up and run the test.
83686         New module, file-set, from coreutils.
83687         * modules/file-set: Define it.
83688         * lib/file-set.c, lib/file-set.h: Implement.
83690         New module, hash-triple, from coreutils.
83691         * modules/hash-triple: Define it.
83692         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83694 2007-09-25  Eric Blake  <ebb9@byu.net>
83696         Fix strerror on Interix.
83697         * lib/string_.h (strerror): Declare replacement.
83698         * doc/functions/strerror.texi (strerror): Document the Interix
83699         shortcoming.
83700         * modules/string (Makefile.am): Support new hooks.
83701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83702         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83703         gl_FUNC_STRERROR_SEPARATE.
83704         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83705         * lib/strerror.c (rpl_strerror): Provide replacement.
83706         * modules/strerror (Depends-on): Add string.
83707         (configure.ac): Detect use of module.
83708         * tests/test-strerror.c: New file.
83709         * modules/strerror-tests: New test module.
83710         * modules/argp (Depends-on): Add strerror.
83711         * modules/error (Depends-on): Likewise.
83712         Reported by Martin Koeppe.
83714 2007-09-24  Bruno Haible  <bruno@clisp.org>
83716         * README: Update git instructions.
83718 2007-09-24  Eric Blake  <ebb9@byu.net>
83720         Revert fpending breakage from 2007-09-08.
83721         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83722         __fpending.c.
83724 2007-09-24  Jim Meyering  <jim@meyering.net>
83726         filenamecat.c: Add a test.
83727         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83728         showing how the function works when DIR is the empty string.
83730 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83732         * tests/test-canonicalize.sh: Turn on executable bit.
83734 2007-09-19  Eric Blake  <ebb9@byu.net>
83736         * README: Update CVS instructions.
83738 2007-09-18  Bruno Haible  <bruno@clisp.org>
83740         * modules/areadlink: New file.
83741         * lib/areadlink.h (areadlink): New declaration.
83742         * lib/areadlink.c: New file, based on lib/xreadlink.c.
83744 2007-09-17  Jim Meyering  <jim@meyering.net>
83746         * lib/savewd.c (ESTALE) [!defined]: Define.
83747         Reported to be required on Interix by Martin Koeppe.
83749 2007-09-17  Bruno Haible  <bruno@clisp.org>
83751         * gnulib-tool (func_version): Use $version.
83753 2007-09-16  Bruno Haible  <bruno@clisp.org>
83755         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
83756         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
83757         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
83758         Reported by Greg Schafer <gschafer@zip.com.au>.
83760 2007-09-15  Bruno Haible  <bruno@clisp.org>
83762         * gnulib-tool (sed): Try a little harder to make bash understand the
83763         alias.
83764         Reported by Bruce Korb <bruce.korb@gmail.com>.
83766 2007-09-13  Eric Blake  <ebb9@byu.net>
83768         * ChangeLog: Remove conflict markers.
83770 2007-09-13  Simon Josefsson  <simon@josefsson.org>
83772         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
83773         Reported by Bruno Haible <bruno@clisp.org>.
83775 2007-09-12  Bruno Haible  <bruno@clisp.org>
83777         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
83778         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
83779         is not defined.
83781 2007-09-12  Eric Blake  <ebb9@byu.net>
83783         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
83784         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
83785         Autoconf definition.
83786         * modules/euidaccess (Depends-on): Add extensions, for
83787         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
83788         * modules/fnmatch (Depends-on): Likewise.
83789         * modules/getaddrinfo (Depends-on): Likewise.
83790         * modules/getdelim (Depends-on): Likewise.
83791         * modules/getline (Depends-on): Likewise.
83792         * modules/getsubopt (Depends-on): Likewise.
83793         * modules/gettext (Depends-on): Likewise.
83794         * modules/group-member (Depends-on): Likewise.
83795         * modules/mbchar (Depends-on): Likewise.
83796         * modules/memmem (Depends-on): Likewise.
83797         * modules/mempcpy (Depends-on): Likewise.
83798         * modules/memrchr (Depends-on): Likewise.
83799         * modules/pagealign_alloc (Depends-on): Likewise.
83800         * modules/readutmp (Depends-on): Likewise.
83801         * modules/stpcpy (Depends-on): Likewise.
83802         * modules/stpncpy (Depends-on): Likewise.
83803         * modules/strchrnul (Depends-on): Likewise.
83804         * modules/strndup (Depends-on): Likewise.
83805         * modules/strsep (Depends-on): Likewise.
83806         * modules/strverscmp (Depends-on): Likewise.
83807         * modules/vasprintf (Depends-on): Likewise.
83808         * modules/wcwidth (Depends-on): Likewise.
83809         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
83810         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
83811         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
83812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
83813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
83814         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83815         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
83816         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
83817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
83818         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
83819         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83820         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83821         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
83823         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
83824         * m4/readutmp.m4 (gl_READUTMP): Likewise.
83825         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83826         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83828         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83829         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83830         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83831         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83832         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
83833         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
83834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
83835         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
83836         so that lock.m4 can be used in gettext without extensions module.
83838 2007-09-11  Bruno Haible  <bruno@clisp.org>
83840         * m4/isc-posix.m4: Remove file.
83841         Suggested by Eric Blake.
83843 2007-09-11  Eric Blake  <ebb9@byu.net>
83845         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
83847 2007-09-10  Bruno Haible  <bruno@clisp.org>
83849         * posix-modules: Fix typo in error message.
83850         Reported by Matt <mkraai@beckman.com>.
83852 2007-09-09  Bruno Haible  <bruno@clisp.org>
83854         * doc/functions/getdelim.texi: Update list of platforms lacking the
83855         function.
83856         * doc/functions/getline.texi: Likewise.
83858 2007-09-09  Jim Meyering  <jim@meyering.net>
83860         * lib/hash.c (hash_initialize): Detect calloc failure.
83861         Reported by Bruno Haible.
83863 2007-09-09  Bruno Haible  <bruno@clisp.org>
83865         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83866         malloc or realloc fails.
83868 2007-09-09  Bruno Haible  <bruno@clisp.org>
83870         * modules/getcwd (Depends-on): Add malloc-posix.
83871         * modules/glob (Depends-on): Likewise.
83872         * modules/putenv (Depends-on): Likewise.
83873         * modules/strdup (Depends-on): Likewise.
83874         * modules/getdelim (Depends-on): Add realloc-posix.
83875         * modules/read-file (Depends-on): Likewise.
83877 2007-09-09  Bruno Haible  <bruno@clisp.org>
83879         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83880         (gl_FUNC_MALLOC_POSIX): Require it.
83881         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83882         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83883         * modules/realloc (Files): Add m4/malloc.m4.
83884         * modules/calloc (Files): Likewise.
83886 2007-09-09  Bruno Haible  <bruno@clisp.org>
83888         * modules/malloc-posix: New file.
83889         * modules/malloc (Depends-on): Add malloc-posix.
83890         * lib/malloc.c: Include errno.h.
83891         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83892         and a POSIX-compatible malloc into a single function. Set ENOMEM
83893         when returning NULL.
83894         * m4/malloc.m4: New file.
83895         * doc/functions/malloc.texi: Mention the malloc-posix module.
83896         * lib/stdlib_.h (malloc): New declaration.
83897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83898         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83899         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83900         and HAVE_MALLOC_POSIX.
83902 2007-09-09  Bruno Haible  <bruno@clisp.org>
83904         * modules/realloc-posix: New file.
83905         * modules/realloc (Depends-on): Add realloc-posix.
83906         * lib/realloc.c: Include errno.h.
83907         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83908         and a POSIX-compatible realloc into a single function. Set ENOMEM
83909         when returning NULL.
83910         * m4/realloc.m4: New file.
83911         * doc/functions/realloc.texi: Mention the realloc-posix module.
83912         * lib/stdlib_.h (realloc): New declaration.
83913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83914         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83915         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83916         and HAVE_REALLOC_POSIX.
83918 2007-09-09  Bruno Haible  <bruno@clisp.org>
83920         * modules/calloc-posix: New file.
83921         * modules/calloc (Depends-on): Add calloc-posix.
83922         * lib/calloc.c: Include errno.h.
83923         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
83924         and a POSIX-compatible calloc into a single function. Set ENOMEM
83925         when returning NULL.
83926         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
83927         * doc/functions/calloc.texi: Mention the calloc-posix module.
83928         * lib/stdlib_.h (calloc): New declaration.
83929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83930         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
83931         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
83932         and HAVE_CALLOC_POSIX.
83934 2007-09-09  Bruno Haible  <bruno@clisp.org>
83936         Allow for modules to show an arbitrary notice.
83937         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
83938         * gnulib-tool: New option --extract-notice.
83939         (func_usage): Document it.
83940         (sed_extract_prog): Update.
83941         (func_get_notice): New function.
83942         (func_modules_notice): New function.
83943         (func_import, func_create_testdir): Invoke it.
83944         Suggested by Jim Meyering.
83946 2007-09-09  Bruno Haible  <bruno@clisp.org>
83948         * gnulib-tool: New options --verbose, --quiet.
83949         (func_usage): Document them.
83950         (verbose): New variable.
83951         (func_execute_command): New function.
83952         (func_import): Don't show the module list and the file list if
83953         $verbose < 0.
83954         (func_create_testdir): Likewise. Use func_execute_command.
83955         (func_create_megatestdir): Use func_execute_command.
83957 2007-09-08  Bruno Haible  <bruno@clisp.org>
83959         * gnulib-tool (func_import): Prefer rsync over wget when available,
83960         for fetching the PO files.
83962 2007-09-08  Bruno Haible  <bruno@clisp.org>
83964         * posix-modules: New file. Portions copied from gnulib-tool.
83965         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
83967 2007-09-08  Jim Meyering  <jim@meyering.net>
83969         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
83970         * lib/fpending.h: Rename from __fpending.h.
83971         * lib/fpending.c: Rename from __fpending.c.
83972         Include "fpending.h", not "__fpending.h".
83973         * lib/__fpending.h, lib/__fpending.c: Remove files.
83974         * modules/fpending (Files): Reflect new file names.
83975         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
83977 2007-09-08  Bruno Haible  <bruno@clisp.org>
83979         * m4/inttypes-h.m4: Remove stub file.
83981 2007-09-07  Simon Josefsson  <simon@josefsson.org>
83983         * doc/headers/stdint.texi: Discuss #include_next issue.
83985 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83987         * build-aux/bootstrap: Remove obsolete comment about wget --help.
83989 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83991         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
83992         in variable name.
83994 2007-09-03  Jim Meyering  <jim@meyering.net>
83996         New module: git-version-gen.
83997         * modules/git-version-gen: New file.
83999         Import changes from coreutils for bootstrap script.
84001         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
84003         bootstrap: uses rsync to download the .po files
84004         * build-aux/bootstrap (po_download_command_format): New global.
84005         (download_po_files): Use rsync.
84006         (update_po_files): Don't remove .po files after download,
84007         so future rsync runs can take advantage of the copies.
84009         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
84011         Solve the unnecessary-.po-file-regeneration problem once and for all.
84012         * build-aux/bootstrap (download_po_files): New function, renamed from
84013         get_translations.  Now, downloads, but doesn't update LINGUAS.
84014         (update_po_files): New function.
84016         bootstrap: Ignore more.
84017         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
84018         uniwidth to e.g., lib/.gitignore.
84019         (slurp): Handle the sys_stat_.h -> sys mapping, too.
84021         * build-aux/bootstrap: New setting: vc_ignore.
84022         (insert_sorted_if_absent): Create $file if absent.
84023         Adapt to new, possibly empty, list: $vc_ignore.
84025         bootstrap: generate more ignorable names
84026         * build-aux/bootstrap (slurp): When generating ignorable names,
84027         also map .sin to .sed, .gperf to .c, and .y to .c.
84029 2007-09-03  Jim Meyering  <jim@meyering.net>
84031         * build-aux/git-version-gen: New file, from coreutils.  For details, see
84032         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
84034 2007-09-02  Bruno Haible  <bruno@clisp.org>
84036         Fix mis-recognition of 'mcs' on QNX 6.
84037         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
84038         output contains the string "Mono".
84039         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
84040         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
84042 2007-09-01  Bruno Haible  <bruno@clisp.org>
84044         Fix collision between uniwidth/* and linebreak modules.
84045         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
84046         u32_width): Remove declarations.
84047         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
84048         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
84049         streq3, streq2, streq1, streq0): Remove functions.
84050         (STREQ): Remove macro.
84051         (is_cjk_encoding): Remove function.
84052         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
84053         (uc_width, u8_width, u16_width, u32_width): Remove functions.
84054         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
84055         * NEWS: Document the change.
84057 2007-09-01  Bruno Haible  <bruno@clisp.org>
84059         * lib/streq.h: Add double-inclusion guard.
84061 2007-09-01  Karl Berry  <karl@gnu.org>
84063         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
84065 2007-08-28  Jim Meyering  <jim@meyering.net>
84067         Rename mreadlink_with_size to areadlink_with_size.
84068         * NEWS: Document the change.
84069         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
84070         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
84071         * lib/mreadlink.h: Rename this to...
84072         * lib/areadlink.h: ...this.
84073         * modules/mreadlink-with-size: Rename this to...
84074         * modules/areadlink-with-size: ...this.
84075         * lib/canonicalize.c: Reflect the renaming.
84076         * modules/canonicalize: Likewise.
84078 2007-08-26  Bruno Haible  <bruno@clisp.org>
84080         * gnulib-tool (func_import): When deciding which files to remove,
84081         consider also dangling symbolic links.
84082         Reported by Eric Blake.
84084 2007-08-26  Bruno Haible  <bruno@clisp.org>
84086         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
84088 2007-08-23  Simon Josefsson  <simon@josefsson.org>
84090         * lib/readline.c: Don't include getline.h, the prototype is now
84091         found in stdio.h.
84093 2007-08-23  Jim Meyering  <jim@meyering.net>
84095         Getdelim touchup.
84096         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
84097         around the funlockfile call, since funlockfile never sets errno.
84098         Don't set errno upon failed realloc.
84100 2007-08-22  Eric Blake  <ebb9@byu.net>
84102         Getline touchups.
84103         * lib/getdelim.c (getdelim): Revert regression that required *n to
84104         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
84105         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
84106         getdelim, rather than whether implementation is missing.
84107         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
84108         * lib/stdio_.h (getline): Also declare if replacement is
84109         required.
84110         * doc/functions/getdelim.texi: New file.
84111         * doc/functions/getline.texi: Likewise.
84112         * doc/gnulib.texi (Function Substitutes): Add new files.
84113         Reported by Bruno Haible.
84115 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
84117         * users.txt: Add Guile.
84119 2007-08-22  Eric Blake  <ebb9@byu.net>
84121         * tests/test-getdelim.c (main): Use remove, not unlink.
84122         * tests/test-getline.c (main): Likewise.
84124         Move getline and getdelim into stdio.h, per POSIX 200x.
84125         * modules/getline (Files): Remove getline.h.
84126         (Depends-on): Add stdio.
84127         (configure.ac): Add module indicator.
84128         * modules/getdelim (Files): Remove getdelim.h.
84129         (Depends-on): Add stdio.
84130         (configure.ac): Add module indicator.
84131         * modules/stdio (Makefile.am): Work with new indicators.
84132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
84133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
84134         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
84135         * lib/getdelim.h: Delete.
84136         * lib/getline.h: Delete.
84137         * lib/stdio_.h (getdelim, getline): Declare.
84138         * modules/getdelim-tests: New module.
84139         * modules/getline-tests: Likewise.
84140         * tests/test-getdelim.c: New file.
84141         * tests/test-getline.c: Likewise.
84142         * NEWS: Document the change.
84143         * lib/getline.c: Update choice of header.
84144         * lib/csharpcomp.c: Likewise.
84145         * lib/getpass.c: Likewise.
84146         * lib/javacomp.c: Likewise.
84147         * lib/javaversion.c: Likewise.
84148         * lib/yesno.c: Likewise.
84149         * lib/getdelim.c: Likewise.
84150         (getdelim): Set errno on failure, and avoid memory leak.
84152 2007-08-19  Bruno Haible  <bruno@clisp.org>
84154         * modules/closein (Depends-on): Add freadahead.
84155         * lib/closein.c: Include freadahead.h.
84156         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
84157         is zero.
84159 2007-08-19  Bruno Haible  <bruno@clisp.org>
84161         * modules/freadahead-tests: New file.
84162         * tests/test-freadahead.sh: New file.
84163         * tests/test-freadahead.c: New file.
84165         * modules/freadahead: New file.
84166         * lib/freadahead.h: New file.
84167         * lib/freadahead.c: New file.
84168         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
84169         fbufmode, fpurge, freadable, fwritable.
84171 2007-08-19  Eric Blake  <ebb9@byu.net>
84173         Test yesno in combination with closein.
84174         * lib/yesno.c (yesno): Document use of stdin.
84175         * modules/yesno-tests (Files): New module.
84176         * tests/test-yesno.c (main): New file.
84177         * tests/test-yesno.sh: Likewise.
84179 2007-08-19  Bruno Haible  <bruno@clisp.org>
84181         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
84182         * lib/fseeko.c (rpl_fseeko): Likewise.
84183         * lib/fseterr.c (fseterr): Likewise.
84185 2007-08-19  Bruno Haible  <bruno@clisp.org>
84187         * tests/test-lseek.c (main): Disable a test for BeOS.
84188         * doc/functions/lseek.texi: Document the BeOS bug.
84190 2007-08-19  Bruno Haible  <bruno@clisp.org>
84191             Eric Blake  <ebb9@byu.net>
84193         * lib/lseek.c: Include <sys/stat.h>.
84194         (rpl_lseek): Add workaround code also for Unix platforms.
84195         Needed for BeOS.
84196         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
84197         * doc/functions/lseek.texi: Document BeOS definiency.
84199 2007-08-18  Bruno Haible  <bruno@clisp.org>
84201         * modules/fstrcmp-tests: New file.
84202         * tests/test-fstrcmp.c: New file.
84204 2007-08-18  Bruno Haible  <bruno@clisp.org>
84206         * modules/fstrcmp: New file, from GNU gettext with modifications.
84207         * lib/fstrcmp.h: New file, from GNU gettext.
84208         * lib/fstrcmp.c: New file, from GNU gettext.
84209         * MODULES.html.sh (String handling): Add fstrcmp.
84211 2007-08-18  Bruno Haible  <bruno@clisp.org>
84213         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
84214         'bool'.
84215         (diag, compareseq): Remove const from the ctxt argument.
84216         (USE_HEURISTIC): Undefine at the end.
84218 2007-08-18  Jim Meyering  <jim@meyering.net>
84220         New file: lib/idcache.h
84221         * NEWS: Mention the addition.
84222         * modules/idcache (Files): Add lib/idcache.h
84223         * lib/idcache.c: Include "idcache.h".
84224         Don't include <sys/types.h>.
84225         Add a FIXME comment.
84226         Move file-scoped "static" declarations to the top.
84227         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
84229 2007-08-17  Bruno Haible  <bruno@clisp.org>
84230         and Paul Eggert  <eggert@cs.ucla.edu>
84232         * MODULES.html.sh: Add diffseq.
84233         * modules/diffseq: New file.
84234         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
84235         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
84237 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84239         Import changes from coreutils for bootstrap script.
84241         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
84243         * build-aux/bootstrap (slurp): Work even in environments where
84244         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
84245         current code does not slurp files whose names start with ".", and
84246         this looks like it might be a troublesome area.
84248         2007-07-11  Jim Meyering  <jim@meyering.net>
84250         If there's a GPL vN copyright comment, require that N == 3.
84252         2007-07-08  Jim Meyering  <jim@meyering.net>
84254         Run the coreutils-specific code only if tests/Makefile.am.in exists.
84255         * build-aux/bootstrap (mam_template): Move definition out of loop.
84257         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
84259         * build-aux/bootstrap (symlink_to_dir): Rename function from
84260         symlink_to_gnulib.  Add a directory parameter.  Update all
84261         callers.
84262         (cp_mark_as_generated): Also check for -- and link to -- files in
84263         gl/.
84265         2007-07-08  Jim Meyering  <jim@meyering.net>
84267         Adapt to deeper hierarchy in gnulib.
84268         * build-aux/bootstrap (symlink_to_dir): If the destination
84269         directory doesn't exist, create it. This is required at least for
84270         "lib/uniwidth/cjk.h".
84272         2007-05-15  Jim Meyering  <jim@meyering.net>
84274         * build-aux/bootstrap: Now that generated Makefile.am files
84275         are no longer under version control, they must be created at
84276         bootstrap time.
84278 2007-08-14  Ben Pfaff  <blp@gnu.org>
84280         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
84282 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
84284         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
84285         given the changes below.
84286         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
84287         even on hosts that have padding bits beyond the supported 64.
84289 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
84291         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
84292         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
84293         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
84294         depends on it.
84295         (xstrtol_error): Remove.
84296         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
84297         but with a different signature.
84298         (ATTRIBUTE_NORETURN, __attribute__): New macros.
84299         * lib/xstrtol-error.c: Include exitfail.h.
84300         (xstrtol_fatal): New function, with a different signature from the
84301         old xstrtol_error, so that the caller need not worry about passing
84302         in an exit status, or about storage management of the option argument.
84303         (xstrtol_error): Now a static function.  Redo signature to
84304         implement xstrtol_fatal.  Output the correct number of hyphens in
84305         front of the option so that the caller need not worry about
84306         storage management.
84307         (N_): New macro.
84308         (_): Remove; not used now.
84309         * modules/xstrtol: Depend on getopt.
84310         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
84311         of old STRTOL_FATAL_ERROR macro.
84312         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
84313         of test program.
84314         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
84315         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
84317 2007-08-08  Eric Blake  <ebb9@byu.net>
84319         * lib/xstrtol-error.c: Add missing include.
84321         Move xstrtol messages into gnulib domain, when --pobase is used.
84322         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
84323         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
84324         * modules/xstrtol (Files): Distribute new file.
84325         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
84326         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
84327         * tests/test-xstrtol.c: ...into new file.
84328         * tests/test-xstrtoul.c: Also test xstrtoul.
84329         * tests/test-xstrtoimax.c: Also test xstrtoimax.
84330         * tests/test-xstrtoumax.c: Also test xstrtoumax.
84331         * tests/test-xstrtol.sh: Drive the tests.
84332         * tests/test-xstrtoimax.sh: Likewise.
84333         * tests/test-xstrtoumax.sh: Likewise.
84334         * modules/xstrtol-tests: New module.
84335         * modules/xstrtoimax-tests: Likewise.
84336         * modules/xstrtoumax-tests: Likewise.
84338 2007-08-08  Jim Meyering  <jim@meyering.net>
84340         New function: mfile_name_concat.
84341         * lib/filenamecat.c (mfile_name_concat): New function, just like
84342         file_name_concat, but return NULL upon failure rather than exiting
84343         with a diagnostic.
84344         * lib/filenamecat.h: Declare it.
84346 2007-08-07  Bruno Haible  <bruno@clisp.org>
84348         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
84349         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
84350         warning from gcc.
84351         Reported by Eric Blake.
84353 2007-08-07  Simon Josefsson  <simon@josefsson.org>
84355         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
84356         * modules/crypto/arcfour (License): Likewise.
84357         * modules/crypto/des-tests (License): Likewise.
84358         * modules/crypto/gc-arctwo-tests (License): Likewise.
84359         * modules/crypto/gc-des-tests (License): Likewise.
84360         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
84361         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
84362         * modules/crypto/gc-md2-tests (License): Likewise.
84363         * modules/crypto/gc-md4-tests (License): Likewise.
84364         * modules/crypto/gc-md5-tests (License): Likewise.
84365         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
84366         * modules/crypto/gc-rijndael-tests (License): Likewise.
84367         * modules/crypto/gc-sha1-tests (License): Likewise.
84368         * modules/crypto/gc-tests (License): Likewise.
84369         * modules/crypto/hmac-md5 (License): Likewise.
84370         * modules/crypto/hmac-sha1 (License): Likewise.
84371         * modules/crypto/md2-tests (License): Likewise.
84372         * modules/crypto/md4-tests (License): Likewise.
84373         * modules/crypto/md5 (License): Likewise.
84374         * modules/crypto/rijndael (License): Likewise.
84375         * modules/crypto/sha1 (License): Likewise.
84376         * modules/memxor (License): Likewise.
84378 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84379         and Bruno Haible  <bruno@clisp.org>
84381         * NEWS: Describe interface changes to human, xstrtol.
84382         * lib/human.h: Include <xstrtol.h>.
84383         (human_options): Return enum strtol_error, not int.  Remove
84384         bool arg; take int * instead.
84385         * lib/human.c: Don't include "gettext.h".
84386         (_): Remove; no longer used.
84387         Don't include <xstrtol.h>, since human.h does it.
84388         (human_options): Adjust to abovementioned interface changes.
84389         Do not report error to stderr; that's now the caller's
84390         responsibility.
84391         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
84392         interface change.
84393         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
84394         Str, Argument_type_string.  All uses changed.  Put " argument"
84395         in diagnostics to make them clearer.  Change wording of suffix
84396         message for clarity.
84397         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
84398         Argument_type_string.
84399         (STRTOL_FATAL_WARN): Remove; no longer used.
84400         * modules/human (Depends-on): Remove gettext-h.
84402 2007-08-06  Simon Josefsson  <simon@josefsson.org>
84404         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
84406 2007-07-31  Bruno Haible  <bruno@clisp.org>
84408         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
84409         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
84410         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
84412 2007-07-31  Bruno Haible  <bruno@clisp.org>
84414         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
84415         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
84417 2007-07-30  Bruno Haible  <bruno@clisp.org>
84419         * modules/base64 (License): Use the synonymous term "LGPLv2+".
84420         * modules/c-ctype (License): Likewise.
84421         * modules/c-strcase (License): Likewise.
84422         * modules/check-version (License): Likewise.
84423         * modules/iconv (License): Likewise.
84424         * modules/iconv_open (License): Likewise.
84425         * modules/read-file (License): Likewise.
84426         * modules/striconv (License): Likewise.
84427         * modules/strverscmp (License): Likewise.
84428         * modules/vasprintf (License): Likewise.
84429         * modules/crypto/des (License): Likewise.
84430         * modules/crypto/gc (License): Likewise.
84431         * modules/crypto/gc-arcfour (License): Likewise.
84432         * modules/crypto/gc-arctwo (License): Likewise.
84433         * modules/crypto/gc-des (License): Likewise.
84434         * modules/crypto/gc-hmac-md5 (License): Likewise.
84435         * modules/crypto/gc-hmac-sha1 (License): Likewise.
84436         * modules/crypto/gc-md2 (License): Likewise.
84437         * modules/crypto/gc-md4 (License): Likewise.
84438         * modules/crypto/gc-md5 (License): Likewise.
84439         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
84440         * modules/crypto/gc-random (License): Likewise.
84441         * modules/crypto/gc-rijndael (License): Likewise.
84442         * modules/crypto/gc-sha1 (License): Likewise.
84443         * modules/crypto/md2 (License): Likewise.
84444         * modules/crypto/md4 (License): Likewise.
84446 2007-07-30  Jim Meyering  <jim@meyering.net>
84448         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
84449         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
84450         it has valid stat data.  This bug would cause du not to count the
84451         sizes of inaccessible directories.
84452         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
84453         in <http://bugzilla.redhat.com/250077>.
84455 2007-07-25  Peter O'Gorman  <peter@pogma.com>
84456             Bruno Haible  <bruno@clisp.org>
84458         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
84459         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
84460         #include_next, gives a diagnostic about it, but reports no error in
84461         the exit code.
84462         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
84464 2007-07-24  Ben Pfaff  <blp@gnu.org>
84466         Improve name: "count-one-bits" is better than "popcount".
84467         * MODULES.html.sh: Update name.
84468         * lib/popcount.h: Renamed lib/count-one-bits.h.
84469         (popcount): Renamed count_one_bits.
84470         (popcountl): Renamed count_one_bits_l.
84471         (popcountll): Renamed count_one_bits_ll.
84472         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
84473         * modules/popcount: Renamed module/count-one-bits.
84474         * modules/popcount-tests: Renamed module/count-one-bits-tests.
84475         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
84477 2007-07-23  Ben Pfaff  <blp@gnu.org>
84479         * lib/popcount.h (popcount32): Reduce size of constants, to allow
84480         better code generation, and add U to large constants to avoid
84481         warnings, in non-GCC case.
84482         Suggested by Bruno Haible.
84484 2007-07-23  Ben Pfaff  <blp@gnu.org>
84486         * lib/popcount.h: Use verify_true instead of if...abort.
84487         * modules/popcount: Depend on verify module.
84488         Suggested by Jim Meyering.
84490 2007-07-23  Bruno Haible  <bruno@clisp.org>
84492         * gnulib-tool (func_import): Create a .cvsignore file also when the
84493         directory is not yet in CVS but the toplevel directory is. When
84494         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
84495         Reported by Karl Berry.
84497 2007-07-22  Ben Pfaff  <blp@gnu.org>
84499         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
84500         case.
84501         Suggested by Eric Blake.
84503 2007-07-22  Ben Pfaff  <blp@gnu.org>
84505         New module: popcount.
84506         * MODULES.html.sh: Add popcount.
84507         * modules/popcount: New file.
84508         * modules/popcount-tests: New file.
84509         * tests/test-popcount.c: New file.
84510         * lib/popcount.h: New file.
84511         * m4/popcount.m4: New file.
84513 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
84515         * build-aux/announce-gen: Update to GPLv3.
84517         * build-aux/config.guess: Update from config.
84519 2007-07-21  Bruno Haible  <bruno@clisp.org>
84521         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
84522         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
84524 2007-07-20  Jim Meyering  <jim@meyering.net>
84526         * check-module: Diagnose a self-dependency.
84528 2007-07-19  Bruno Haible  <bruno@clisp.org>
84530         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
84531         empty.
84532         Reported by Eric Blake.
84534 2007-07-18  Bruno Haible  <bruno@clisp.org>
84536         * gnulib-tool: New options --po-base, --po-domain.
84537         (func_usage): Document them.
84538         (pobase, po_domain): New variables.
84539         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
84540         DEFAULT_TEXT_DOMAIN.
84541         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
84542         (func_import): Consider pobase and po_domain. Create a po/ directory.
84543         (func_create_testdir): Set pobase and po_domain to empty.
84544         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
84545         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
84547 2007-07-18  Bruno Haible  <bruno@clisp.org>
84549         * gnulib-tool (func_get_automake_snippet): Synthesize also an
84550         EXTRA_DIST augmentation for files in build-aux/.
84552 2007-07-16  Bruno Haible  <bruno@clisp.org>
84554         * modules/lseek (License): Use the synonymous term "LGPLv2+".
84555         * modules/getdelim (License): Likewise.
84557 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84559         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
84560         * modules/d-type (License): Likewise.
84561         * modules/extensions (License): Likewise.
84562         * modules/fnmatch (License): Likewise.
84563         * modules/fseeko (License): Likewise.
84564         * modules/getaddrinfo (License): Likewise.
84565         * modules/getline (License): Likewise.
84566         * modules/getlogin_r (License): Likewise.
84567         * modules/getpass (License): Likewise.
84568         * modules/gettimeofday (License): Likewise.
84569         * modules/glob (License): Likewise.
84570         * modules/inet_ntop (License): Likewise.
84571         * modules/malloc (License): Likewise.
84572         * modules/malloca (License): Likewise.
84573         * modules/memmem (License): Likewise.
84574         * modules/mempcpy (License): Likewise.
84575         * modules/memset (License): Likewise.
84576         * modules/minmax (License): Likewise.
84577         * modules/mktime (License): Likewise.
84578         * modules/netinet_in (License): Likewise.
84579         * modules/pathmax (License): Likewise.
84580         * modules/poll (License): Likewise.
84581         * modules/regex (License): Likewise.
84582         * modules/snprintf (License): Likewise.
84583         * modules/stdbool (License): Likewise.
84584         * modules/stdint (License): Likewise.
84585         * modules/stdio (License): Likewise.
84586         * modules/strcase (License): Likewise.
84587         * modules/strcasestr (License): Likewise.
84588         * modules/strdup (License): Likewise.
84589         * modules/string (License): Likewise.
84590         * modules/strndup (License): Likewise.
84591         * modules/strnlen (License): Likewise.
84592         * modules/strpbrk (License): Likewise.
84593         * modules/strptime (License): Likewise.
84594         * modules/strsep (License): Likewise.
84595         * modules/sys_select (License): Likewise.
84596         * modules/sys_socket (License): Likewise.
84597         * modules/sys_stat (License): Likewise.
84598         * modules/sys_time (License): Likewise.
84599         * modules/time (License): Likewise.
84600         * modules/time_r (License): Likewise.
84601         * modules/timegm (License): Likewise.
84602         * modules/unistd (License): Likewise.
84603         * modules/vsnprintf (License): Likewise.
84604         * modules/wctype (License): Likewise.
84606 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84608         * modules/argz (License): LGPLv2+.
84610 2007-07-15  Karl Berry  <karl@gnu.org>
84612         * doc/gnulib.texi: revise node structure per new fdl.texi.
84614 2007-07-14  Bruno Haible  <bruno@clisp.org>
84616         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84617         the output file.
84618         * lib/uniname/uninames.h: Regenerated.
84620 2007-07-14  Karl Berry  <karl@gnu.org>
84622         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84623         omitting sectioning and index commands.
84625 2007-07-13  Bruno Haible  <bruno@clisp.org>
84627         New gnulib-tool option --more-symlinks.
84628         * gnulib-tool (func_usage): Document --more-symlinks.
84629         (do_copyrights): New variable.
84630         Recognize option --more-symlinks.
84631         (func_import): Don't add a copyright notice transform to
84632         sed_transform_lib_file if do_copyrights is empty.
84634 2007-07-13  Bruno Haible  <bruno@clisp.org>
84636         * lib/vasnprintf.c (decimal_point_char): Define also if
84637         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84638         && !NEED_PRINTF_DIRECTIVE_A.
84639         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84640         Gary V. Vaughan <gary@gnu.org>.
84642 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84644         * lib/inttypes_.h: Undo previous change, since it was fixed
84645         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84647 2007-07-13  Bruno Haible  <bruno@clisp.org>
84649         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84650         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84652 2007-07-13  Jim Meyering  <jim@meyering.net>
84654         df: Don't fail for Tru64's "file-on-file mount".
84655         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84656         so we fall through and use statfs instead.  Details here:
84657         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84658         Reported by Albert Chin.
84660 2007-07-13  Bruno Haible  <bruno@clisp.org>
84662         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84663         * modules/configmake (License): Likewise.
84664         * modules/gettext (License): Likewise.
84665         * modules/gettext-h (License): Likewise.
84666         * modules/include_next (License): Likewise.
84667         * modules/link-warning (License): Likewise.
84668         * modules/localcharset (License): Likewise.
84669         * modules/localename (License): Likewise.
84670         * modules/lock (License): Likewise.
84671         * modules/relocatable-lib-lgpl (License): Likewise.
84672         * modules/size_max (License): Likewise.
84673         * modules/vasnprintf (License): Likewise.
84674         * modules/wchar (License): Likewise.
84675         * modules/xsize (License): Likewise.
84677 2007-07-13  Bruno Haible  <bruno@clisp.org>
84679         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84680         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84682 2007-07-12  Bruno Haible  <bruno@clisp.org>
84684         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84685         in the modules files.
84687 2007-07-11  Karl Berry  <karl@gnu.org>
84689         * MODULES.html.sh (func_module): use
84690          sed -e '\|^'"${includefile}"'$|d'
84691          instead of /.../d, to avoid errors on $includefile's containing /.
84693 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84695         * gnulib-tool (func_import): Avoid duplication of --avoid
84696         statements
84697         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84698         names to `_' in variable names.
84700 2007-07-10  Eric Blake  <ebb9@byu.net>
84702         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84703         * NEWS: Document this change.
84705 2007-07-08  Bruno Haible  <bruno@clisp.org>
84707         Update to Unicode 5.0.
84708         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84709         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84710         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84711         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84712         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84713         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84714         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84715         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84716         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84717         U+10A3F, U+1D242..U+1D244.
84718         (nonspacing_table_ind): Update.
84719         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84720         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84722 2007-07-08  Bruno Haible  <bruno@clisp.org>
84724         Update to Unicode 5.0.
84725         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84726         code transform. Extend the name index field of unicode_name_to_code and
84727         unicode_code_to_name from 16 to 24 bits.
84728         * lib/uniname/uniname.c (unicode_character_name,
84729         unicode_name_character): Add the range 0x12xxx to the code transform.
84730         * lib/uniname/uninames.h: Regenerated.
84731         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84733 2007-07-07  Bruno Haible  <bruno@clisp.org>
84735         * modules/wcwidth-tests: New file.
84736         * tests/test-wcwidth.c: New file.
84738         Work around MacOS X wcwidth() bug.
84739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84740         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84741         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84742         original wcwidth in non-UTF-8 locales.
84743         * modules/wcwidth (Depends-on): Add localcharset, streq,
84744         uniwidth/width.
84745         * doc/functions/wcwidth.texi: Update.
84747 2007-07-07  Bruno Haible  <bruno@clisp.org>
84749         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
84750         (wcwidth): New declaration.
84751         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
84752         macros.
84753         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
84754         here. Prepare for creating <wchar.h> unconditionally.
84755         * modules/wchar (Depends-on): Add link-warning.
84756         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
84757         REPLACE_WCWIDTH, and GL_LINK_WARNING.
84758         * lib/wcwidth.h: Remove file.
84759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
84760         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
84761         * modules/wcwidth (Files): Remove lib/wcwidth.h.
84762         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
84763         (Include): Replace wcwidth.h with <wchar.h>.
84764         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
84765         * lib/mbchar.h: Don't include wcwidth.h.
84766         * lib/mbswidth.c: Likewise.
84767         * NEWS: Mention the change.
84769 2007-07-07  Bruno Haible  <bruno@clisp.org>
84771         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
84772         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
84773         definition with an external declaration.
84774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
84775         defined as a function. Remove AC_C_INLINE requirement.
84776         * modules/wcwidth (Files): Add lib/wcwidth.c.
84777         (Makefile.am): Remove redundant statement.
84779 2007-07-07  Bruno Haible  <bruno@clisp.org>
84781         * MODULES.html.sh (Unicode string functions): Add the new modules.
84783         * tests/uniwidth/test-u32-strwidth.c: New file.
84784         * modules/uniwidth/u32-strwidth-tests: New file.
84786         * lib/uniwidth/u32-strwidth.c: New file.
84787         * modules/uniwidth/u32-strwidth: New file.
84789         * tests/uniwidth/test-u16-strwidth.c: New file.
84790         * modules/uniwidth/u16-strwidth-tests: New file.
84792         * lib/uniwidth/u16-strwidth.c: New file.
84793         * modules/uniwidth/u16-strwidth: New file.
84795         * tests/uniwidth/test-u8-strwidth.c: New file.
84796         * modules/uniwidth/u8-strwidth-tests: New file.
84798         * lib/uniwidth/u8-strwidth.c: New file.
84799         * modules/uniwidth/u8-strwidth: New file.
84801         * tests/uniwidth/test-u32-width.c: New file.
84802         * modules/uniwidth/u32-width-tests: New file.
84804         * lib/uniwidth/u32-width.c: New file.
84805         * modules/uniwidth/u32-width: New file.
84807         * tests/uniwidth/test-u16-width.c: New file.
84808         * modules/uniwidth/u16-width-tests: New file.
84810         * lib/uniwidth/u16-width.c: New file.
84811         * modules/uniwidth/u16-width: New file.
84813         * tests/uniwidth/test-u8-width.c: New file.
84814         * modules/uniwidth/u8-width-tests: New file.
84816         * lib/uniwidth/u8-width.c: New file.
84817         * modules/uniwidth/u8-width: New file.
84819         * tests/uniwidth/test-uc_width.c: New file.
84820         * modules/uniwidth/width-tests: New file.
84822         * lib/uniwidth/width.c: New file, from GNU libiconv.
84823         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
84824         * modules/uniwidth/width: New file.
84826         * lib/uniwidth.h: New file, from GNU libiconv.
84827         * modules/uniwidth/base: New file.
84829 2007-07-07  Bruno Haible  <bruno@clisp.org>
84831         * lib/uniname.h: New file, from GNU gettext.
84832         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
84833         * lib/uniname/uninames.h: New file, from GNU gettext.
84834         * lib/uniname/uniname.c: New file, from GNU gettext.
84835         * tests/uniname/test-uninames.sh: New file.
84836         * tests/uniname/test-uninames.c: New file, from GNU gettext.
84837         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
84838         * modules/uniname/base: New file.
84839         * modules/uniname/uniname: New file.
84840         * modules/uniname/uniname-tests: New file.
84841         * MODULES.html.sh (Unicode string functions): Add the new modules.
84843 2007-07-06  Bruno Haible  <bruno@clisp.org>
84845         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
84847 2007-07-06  Bruno Haible  <bruno@clisp.org>
84849         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
84850         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
84851         includes <cygwin/sys_time.h> which includes <sys/select.h> which
84852         include <sys/time.h>.
84853         Reported by Eric Blake.
84855 2007-07-06  Eric Blake  <ebb9@byu.net>
84857         Fix testing canonicalize on cygwin.
84858         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84859         Revert patch from 2007-06-19.
84860         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84861         canonicalize module is also in use.
84862         * tests/test-canonicalize.c: New file.
84863         * tests/test-canonicalize.sh: Likewise.
84864         * modules/canonicalize-tests: Likewise.
84866 2007-07-06  Jim Meyering  <jim@meyering.net>
84868         * lib/getugroups.c (getugroups): Detect getgrent failure.
84869         Adjust comment to reflect reality: this function may return -1.
84871 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84873         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84874         the new TP address.
84875         (usage): Fix typo
84876         (gnulib_mk): New variable.
84878 2007-07-05  Jim Meyering  <jim@meyering.net>
84880         Don't let endgrent clobber errno, no matter how improbable.
84881         * lib/getugroups.c (getugroups): Save and restore errno around
84882         endgrent call.
84884         Close the group DB even when failing with 2^31 or more members.
84885         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84887 2007-07-04  Jim Meyering  <jim@meyering.net>
84889         * lib/getugroups.h: New file.
84890         * lib/getugroups.c: Include "getugroups.h".
84891         Remove uses of "register" keyword.
84892         Move local variable, "cp", down into scope where used.
84893         Give "username" parameter the "const" attribute.
84894         * modules/getugroups (Files): Add lib/getugroups.h
84896 2007-07-04  Karl Berry  <karl@gnu.org>
84898         * MODULES.html.sh (func_all_modules): Complete rename of
84899         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84901 2007-07-02  Bruno Haible  <bruno@clisp.org>
84903         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84904         mode, when inttypes.h comes from gnulib.
84905         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84907 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84909         * NEWS: Mention lgpl module name change.
84911         * modules/lgpl-2.1: Renamed from lgpl.
84913         * NEWS: Mention gpl module name change.
84915         * modules/gpl-3.0: New file, based on gpl-2.0.
84917         * modules/gpl-2.0: Renamed from gpl.
84919         * modules/gpl: Fix filename, doc/gpl.texi is now found at
84920         doc/gpl-2.0.texi.
84922 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
84924         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
84925         #define __STDC_LIMIT_MACROS temporarily while including
84926         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
84927         Problem reported by Joel E. Denny in
84928         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
84930 2007-07-01  Bruno Haible  <bruno@clisp.org>
84932         * lib/unistdio.h: New file.
84933         * lib/unistdio/u-asnprintf.h: New file.
84934         * lib/unistdio/u-asprintf.h: New file.
84935         * lib/unistdio/u-printf-args.c: New file.
84936         * lib/unistdio/u-printf-args.h: New file.
84937         * lib/unistdio/u-printf-parse.h: New file.
84938         * lib/unistdio/u-snprintf.h: New file.
84939         * lib/unistdio/u-sprintf.h: New file.
84940         * lib/unistdio/u-vasprintf.h: New file.
84941         * lib/unistdio/u-vsnprintf.h: New file.
84942         * lib/unistdio/u-vsprintf.h: New file.
84943         * lib/unistdio/ulc-asnprintf.c: New file.
84944         * lib/unistdio/ulc-asprintf.c: New file.
84945         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
84946         * lib/unistdio/ulc-printf-parse.c: New file.
84947         * lib/unistdio/ulc-snprintf.c: New file.
84948         * lib/unistdio/ulc-sprintf.c: New file.
84949         * lib/unistdio/ulc-vasnprintf.c: New file.
84950         * lib/unistdio/ulc-vasprintf.c: New file.
84951         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
84952         * lib/unistdio/ulc-vsnprintf.c: New file.
84953         * lib/unistdio/ulc-vsprintf.c: New file.
84954         * lib/unistdio/u8-asnprintf.c: New file.
84955         * lib/unistdio/u8-asprintf.c: New file.
84956         * lib/unistdio/u8-printf-parse.c: New file.
84957         * lib/unistdio/u8-snprintf.c: New file.
84958         * lib/unistdio/u8-sprintf.c: New file.
84959         * lib/unistdio/u8-vasnprintf.c: New file.
84960         * lib/unistdio/u8-vasprintf.c: New file.
84961         * lib/unistdio/u8-vsnprintf.c: New file.
84962         * lib/unistdio/u8-vsprintf.c: New file.
84963         * lib/unistdio/u8-u8-asnprintf.c: New file.
84964         * lib/unistdio/u8-u8-asprintf.c: New file.
84965         * lib/unistdio/u8-u8-snprintf.c: New file.
84966         * lib/unistdio/u8-u8-sprintf.c: New file.
84967         * lib/unistdio/u8-u8-vasnprintf.c: New file.
84968         * lib/unistdio/u8-u8-vasprintf.c: New file.
84969         * lib/unistdio/u8-u8-vsnprintf.c: New file.
84970         * lib/unistdio/u8-u8-vsprintf.c: New file.
84971         * lib/unistdio/u16-asnprintf.c: New file.
84972         * lib/unistdio/u16-asprintf.c: New file.
84973         * lib/unistdio/u16-printf-parse.c: New file.
84974         * lib/unistdio/u16-snprintf.c: New file.
84975         * lib/unistdio/u16-sprintf.c: New file.
84976         * lib/unistdio/u16-vasnprintf.c: New file.
84977         * lib/unistdio/u16-vasprintf.c: New file.
84978         * lib/unistdio/u16-vsnprintf.c: New file.
84979         * lib/unistdio/u16-vsprintf.c: New file.
84980         * lib/unistdio/u16-u16-asnprintf.c: New file.
84981         * lib/unistdio/u16-u16-asprintf.c: New file.
84982         * lib/unistdio/u16-u16-snprintf.c: New file.
84983         * lib/unistdio/u16-u16-sprintf.c: New file.
84984         * lib/unistdio/u16-u16-vasnprintf.c: New file.
84985         * lib/unistdio/u16-u16-vasprintf.c: New file.
84986         * lib/unistdio/u16-u16-vsnprintf.c: New file.
84987         * lib/unistdio/u16-u16-vsprintf.c: New file.
84988         * lib/unistdio/u32-asnprintf.c: New file.
84989         * lib/unistdio/u32-asprintf.c: New file.
84990         * lib/unistdio/u32-printf-parse.c: New file.
84991         * lib/unistdio/u32-snprintf.c: New file.
84992         * lib/unistdio/u32-sprintf.c: New file.
84993         * lib/unistdio/u32-vasnprintf.c: New file.
84994         * lib/unistdio/u32-vasprintf.c: New file.
84995         * lib/unistdio/u32-vsnprintf.c: New file.
84996         * lib/unistdio/u32-vsprintf.c: New file.
84997         * lib/unistdio/u32-u32-asnprintf.c: New file.
84998         * lib/unistdio/u32-u32-asprintf.c: New file.
84999         * lib/unistdio/u32-u32-snprintf.c: New file.
85000         * lib/unistdio/u32-u32-sprintf.c: New file.
85001         * lib/unistdio/u32-u32-vasnprintf.c: New file.
85002         * lib/unistdio/u32-u32-vasprintf.c: New file.
85003         * lib/unistdio/u32-u32-vsnprintf.c: New file.
85004         * lib/unistdio/u32-u32-vsprintf.c: New file.
85005         * tests/unistdio/test-ulc-asnprintf1.c: New file.
85006         * tests/unistdio/test-ulc-asnprintf1.h: New file.
85007         * tests/unistdio/test-ulc-printf1.h: New file.
85008         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
85009         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
85010         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
85011         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
85012         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
85013         * tests/unistdio/test-ulc-vasprintf1.c: New file.
85014         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
85015         * tests/unistdio/test-ulc-vsprintf1.c: New file.
85016         * tests/unistdio/test-u8-asnprintf1.c: New file.
85017         * tests/unistdio/test-u8-asnprintf1.h: New file.
85018         * tests/unistdio/test-u8-printf1.h: New file.
85019         * tests/unistdio/test-u8-vasnprintf1.c: New file.
85020         * tests/unistdio/test-u8-vasnprintf2.c: New file.
85021         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
85022         * tests/unistdio/test-u8-vasnprintf3.c: New file.
85023         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
85024         * tests/unistdio/test-u8-vasprintf1.c: New file.
85025         * tests/unistdio/test-u8-vsnprintf1.c: New file.
85026         * tests/unistdio/test-u8-vsprintf1.c: New file.
85027         * tests/unistdio/test-u16-asnprintf1.c: New file.
85028         * tests/unistdio/test-u16-asnprintf1.h: New file.
85029         * tests/unistdio/test-u16-printf1.h: New file.
85030         * tests/unistdio/test-u16-vasnprintf1.c: New file.
85031         * tests/unistdio/test-u16-vasnprintf2.c: New file.
85032         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
85033         * tests/unistdio/test-u16-vasnprintf3.c: New file.
85034         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
85035         * tests/unistdio/test-u16-vasprintf1.c: New file.
85036         * tests/unistdio/test-u16-vsnprintf1.c: New file.
85037         * tests/unistdio/test-u16-vsprintf1.c: New file.
85038         * tests/unistdio/test-u32-asnprintf1.c: New file.
85039         * tests/unistdio/test-u32-asnprintf1.h: New file.
85040         * tests/unistdio/test-u32-printf1.h: New file.
85041         * tests/unistdio/test-u32-vasnprintf1.c: New file.
85042         * tests/unistdio/test-u32-vasnprintf2.c: New file.
85043         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
85044         * tests/unistdio/test-u32-vasnprintf3.c: New file.
85045         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
85046         * tests/unistdio/test-u32-vasprintf1.c: New file.
85047         * tests/unistdio/test-u32-vsnprintf1.c: New file.
85048         * tests/unistdio/test-u32-vsprintf1.c: New file.
85049         * modules/unistdio/base: New file.
85050         * modules/unistdio/u-printf-args: New file.
85051         * modules/unistdio/ulc-asnprintf: New file.
85052         * modules/unistdio/ulc-asprintf: New file.
85053         * modules/unistdio/ulc-fprintf: New file.
85054         * modules/unistdio/ulc-printf-parse: New file.
85055         * modules/unistdio/ulc-snprintf: New file.
85056         * modules/unistdio/ulc-sprintf: New file.
85057         * modules/unistdio/ulc-vasnprintf: New file.
85058         * modules/unistdio/ulc-vasprintf: New file.
85059         * modules/unistdio/ulc-vfprintf: New file.
85060         * modules/unistdio/ulc-vsnprintf: New file.
85061         * modules/unistdio/ulc-vsprintf: New file.
85062         * modules/unistdio/u8-asnprintf: New file.
85063         * modules/unistdio/u8-asprintf: New file.
85064         * modules/unistdio/u8-printf-parse: New file.
85065         * modules/unistdio/u8-snprintf: New file.
85066         * modules/unistdio/u8-sprintf: New file.
85067         * modules/unistdio/u8-vasnprintf: New file.
85068         * modules/unistdio/u8-vasprintf: New file.
85069         * modules/unistdio/u8-vsnprintf: New file.
85070         * modules/unistdio/u8-vsprintf: New file.
85071         * modules/unistdio/u8-u8-asnprintf: New file.
85072         * modules/unistdio/u8-u8-asprintf: New file.
85073         * modules/unistdio/u8-u8-snprintf: New file.
85074         * modules/unistdio/u8-u8-sprintf: New file.
85075         * modules/unistdio/u8-u8-vasnprintf: New file.
85076         * modules/unistdio/u8-u8-vasprintf: New file.
85077         * modules/unistdio/u8-u8-vsnprintf: New file.
85078         * modules/unistdio/u8-u8-vsprintf: New file.
85079         * modules/unistdio/u16-asnprintf: New file.
85080         * modules/unistdio/u16-asprintf: New file.
85081         * modules/unistdio/u16-printf-parse: New file.
85082         * modules/unistdio/u16-snprintf: New file.
85083         * modules/unistdio/u16-sprintf: New file.
85084         * modules/unistdio/u16-vasnprintf: New file.
85085         * modules/unistdio/u16-vasprintf: New file.
85086         * modules/unistdio/u16-vsnprintf: New file.
85087         * modules/unistdio/u16-vsprintf: New file.
85088         * modules/unistdio/u16-u16-asnprintf: New file.
85089         * modules/unistdio/u16-u16-asprintf: New file.
85090         * modules/unistdio/u16-u16-snprintf: New file.
85091         * modules/unistdio/u16-u16-sprintf: New file.
85092         * modules/unistdio/u16-u16-vasnprintf: New file.
85093         * modules/unistdio/u16-u16-vasprintf: New file.
85094         * modules/unistdio/u16-u16-vsnprintf: New file.
85095         * modules/unistdio/u16-u16-vsprintf: New file.
85096         * modules/unistdio/u32-asnprintf: New file.
85097         * modules/unistdio/u32-asprintf: New file.
85098         * modules/unistdio/u32-printf-parse: New file.
85099         * modules/unistdio/u32-snprintf: New file.
85100         * modules/unistdio/u32-sprintf: New file.
85101         * modules/unistdio/u32-vasnprintf: New file.
85102         * modules/unistdio/u32-vasprintf: New file.
85103         * modules/unistdio/u32-vsnprintf: New file.
85104         * modules/unistdio/u32-vsprintf: New file.
85105         * modules/unistdio/u32-u32-asnprintf: New file.
85106         * modules/unistdio/u32-u32-asprintf: New file.
85107         * modules/unistdio/u32-u32-snprintf: New file.
85108         * modules/unistdio/u32-u32-sprintf: New file.
85109         * modules/unistdio/u32-u32-vasnprintf: New file.
85110         * modules/unistdio/u32-u32-vasprintf: New file.
85111         * modules/unistdio/u32-u32-vsnprintf: New file.
85112         * modules/unistdio/u32-u32-vsprintf: New file.
85113         * modules/unistdio/ulc-asnprintf-tests: New file.
85114         * modules/unistdio/ulc-vasnprintf-tests: New file.
85115         * modules/unistdio/ulc-vasprintf-tests: New file.
85116         * modules/unistdio/ulc-vsnprintf-tests: New file.
85117         * modules/unistdio/ulc-vsprintf-tests: New file.
85118         * modules/unistdio/u8-asnprintf-tests: New file.
85119         * modules/unistdio/u8-vasnprintf-tests: New file.
85120         * modules/unistdio/u8-vasprintf-tests: New file.
85121         * modules/unistdio/u8-vsnprintf-tests: New file.
85122         * modules/unistdio/u8-vsprintf-tests: New file.
85123         * modules/unistdio/u16-asnprintf-tests: New file.
85124         * modules/unistdio/u16-vasnprintf-tests: New file.
85125         * modules/unistdio/u16-vasprintf-tests: New file.
85126         * modules/unistdio/u16-vsnprintf-tests: New file.
85127         * modules/unistdio/u16-vsprintf-tests: New file.
85128         * modules/unistdio/u32-asnprintf-tests: New file.
85129         * modules/unistdio/u32-vasnprintf-tests: New file.
85130         * modules/unistdio/u32-vasprintf-tests: New file.
85131         * modules/unistdio/u32-vsnprintf-tests: New file.
85132         * modules/unistdio/u32-vsprintf-tests: New file.
85133         * MODULES.html.sh (Unicode string functions): Add the new modules.
85135 2007-07-01  Bruno Haible  <bruno@clisp.org>
85137         * lib/sprintf.c (sprintf): Limit the available length estimation,
85138         to avoid address wraparound.
85139         * lib/vsprintf.c (vsprintf): Likewise.
85140         * modules/sprintf-posix (Dependencies): Add stdint.
85141         * modules/vsprintf-posix (Dependencies): Likewise.
85143 2007-07-01  Bruno Haible  <bruno@clisp.org>
85145         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
85146         Windows PATH as well. Conservative double-quoting. Comments.
85148 2007-07-01  Bruno Haible  <bruno@clisp.org>
85149             Eric Blake  <ebb9@byu.net>
85150             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85152         * gnulib-tool (self_abspathname): Fix algorithm to cope with
85153         empty components in $PATH, denoting '.'.
85155 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85157         * gnulib-tool: Fix indentation.
85158         (func_create_megatestdir): Likewise.
85159         Report by Bruno Haible.
85161 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85163         Sync from Automake.
85164         * build-aux/gnupload: Fix shell portability issues with for loops.
85165         Report by Karl Berry.
85167 2007-06-29  Simon Josefsson  <simon@josefsson.org>
85169         * build-aux/maint.mk (POURL): Use translationproject.org.
85171 2007-06-27  Simon Josefsson  <simon@josefsson.org>
85172             Bruno Haible  <bruno@clisp.org>
85174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
85175         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
85176         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
85177         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
85178         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
85180 2007-06-27  Bruno Haible  <bruno@clisp.org>
85182         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
85183         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
85185 2007-06-26  Karl Berry  <karl@gnu.org>
85187         * MODULES.html.sh: remove xreadlink-with-size.
85189 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85191         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
85192         method that I hope also handles the double-include problem noted
85193         by Bruno Haible in
85194         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
85196 2007-06-23  Bruno Haible  <bruno@clisp.org>
85198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
85199         Don't let the 'mostlyclean' target fail if the last subdirectory could
85200         not be removed.
85201         Reported by Karl Berry.
85203 2007-06-23  Bruno Haible  <bruno@clisp.org>
85205         * gnulib-tool (echo): Add a speedier workaround for ksh.
85206         * tests/test-echo.sh: Likewise.
85208 2007-06-23  Bruno Haible  <bruno@clisp.org>
85210         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
85211         * tests/test-echo.sh: Likewise.
85213 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85215         * gnulib-tool (IFS): Initialize early, so we don't set it to
85216         empty later.
85217         (self_abspathname): Rewrite algorithm to set it, reindent.
85218         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
85219         (func_create_megatestdir): Merge some sed scripts.
85221 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85223         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
85224         exposed by Sun Studio 11 cc on Solaris 8.
85226 2007-06-22  Bruno Haible  <bruno@clisp.org>
85228         * gnulib-tool (echo): Ensure the echo primitive does not interpret
85229         backslashes.
85230         * tests/test-echo.sh: New file.
85232 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85234         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
85235         simplify `sed_replace_build_aux' scripts, they are portable but
85236         echoing them with `echo' is not.
85237         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
85239 2007-06-21  Karl Berry  <karl@gnu.org>
85241         * config/srclist.txt: guess we can't handle the licenses via
85242         srclist at the moment.
85244 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
85246         * MODULES.html.sh: Add include_next.
85247         * modules/include_next: New file.
85249 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
85251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
85252         INCLUDE_NEXT.
85253         (gl_CHECK_NEXT_HEADERS): New macro.
85254         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
85255         the obsolescent gl_ABSOLUTE_HEADER.
85256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
85257         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
85258         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
85259         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
85260         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
85261         * m4/math_h.m4 (gl_MATH_H): Likewise.
85262         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85263         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
85264         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
85265         * m4/stdint.m4 (gl_STDINT_H): Likewise.
85266         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
85267         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
85268         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
85269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
85272         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
85273         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
85274         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
85275         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
85276         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
85277         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
85278         * m4/inttypes.m4 (gl_INTTYPES_H): Define
85279         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
85280         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
85281         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
85282         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
85283         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
85284         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
85285         * lib/float_.h: Likewise.
85286         * lib/inttypes_.h: Likewise.
85287         * lib/math_.h: Likewise.
85288         * lib/search_.h: Likewise.
85289         * lib/signal_.h: Likewise.
85290         * lib/stdint_.h: Likewise.
85291         * lib/stdio_.h: Likewise.
85292         * lib/stdlib_.h: Likewise.
85293         * lib/string_.h: Likewise.
85294         * lib/sys_stat_.h: Likewise.
85295         * lib/sys_time_.h: Likewise.
85296         * lib/time_.h: Likewise.
85297         * lib/unistd_.h: Likewise.
85298         * lib/wchar_.h: Likewise.
85299         * lib/wctype_.h: Likewise.
85300         * lib/dirent_.h: Likewise.
85301         * lib/iconv_.h: Likewise.
85302         * lib/locale_.h: Likewise.
85303         * lib/netinet_in_.h: Likewise.
85304         * lib/sys_select_.h: Likewise.
85305         * lib/sys_socket_.h: Likewise.
85306         * lib/sysexits_.h: Likewise.
85307         * modules/fcntl (Depends-on): Depend on include_next, not
85308         absolute_header.
85309         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
85310         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
85311         * modules/fchdir: Likewise.
85312         * modules/float: Likewise.
85313         * modules/iconv_open: Likewise.
85314         * modules/inttypes: Likewise.
85315         * modules/locale: Likewise.
85316         * modules/math: Likewise.
85317         * modules/netinet_in: Likewise.
85318         * modules/search: Likewise.
85319         * modules/signal: Likewise.
85320         * modules/stdint: Likewise.
85321         * modules/stdio: Likewise.
85322         * modules/stdlib: Likewise.
85323         * modules/string: Likewise.
85324         * modules/sys_select: Likewise.
85325         * modules/sys_socket: Likewise.
85326         * modules/sys_stat: Likewise.
85327         * modules/sys_time: Likewise.
85328         * modules/sysexits: Likewise.
85329         * modules/time: Likewise.
85330         * modules/unistd: Likewise.
85331         * modules/wchar: Likewise.
85332         * modules/wctype: Likewise.
85333         * modules/sys_stat: Change maintainer to "all".
85334         * modules/unistd: Likewise.
85336 2007-06-20  Karl Berry  <karl@gnu.org>
85338         * config/srclist.txt: track www changes in license files.
85340 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
85342         * build-aux/bootstrap: Remove stray dot.
85343         Make sure build_aux settings are honored when linking
85344         gnulib_extra_files.
85346 2007-06-19  Eric Blake  <ebb9@byu.net>
85348         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85349         Allow compilation on cygwin.
85351 2007-06-19  Jim Meyering  <jim@meyering.net>
85353         xreadlink-with-size: Remove module.  No longer used.
85354         Ex-callers now use xreadlink or mreadlink-with-size.
85355         * modules/xreadlink-with-size: Remove module.
85356         * lib/xreadlink-with-size.c: Remove file.
85357         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
85358         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
85359         just before the function definition *is* accurate.
85361         Eliminate one way canonicalize_filename_mode could exit.
85362         * lib/canonicalize.c (canonicalize_filename_mode):
85363         Use mreadlink_with_size, not xreadlink_with_size.
85365 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
85367         Detect porting problems to FreeBSD/arm, which has time_t wider than
85368         long int.  Original problem reported for GNU diff by Xin Li in
85369         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
85370         * modules/getdate (Depends-on): Add intprops, verify.
85371         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
85372         is an integer type no wider than long int.
85374 2007-06-18  Jim Meyering  <jim@meyering.net>
85376         New module: mreadlink-with-size.
85377         * MODULES.html.sh: Add mreadlink-with-size.
85378         * modules/mreadlink-with-size: New module
85379         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
85380         not xreadlink-with-size.
85381         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
85383 2007-06-16  Bruno Haible  <bruno@clisp.org>
85385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
85386         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
85387         Reported by Gary V. Vaughan <gary@gnu.org>.
85389 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
85391         Revamp lchown so that it lives in unistd.h where it belongs.
85392         * lib/lchown.h: Remove.
85393         * lib/dirchownmod.c: Don't include lib/lchown.h.
85394         * lib/fchownat.c: Likewise.
85395         * lib/openat.c: Likewise.
85396         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
85397         does not follow symlinks.
85398         (EOPNOTSUPP): Define if not defined.
85399         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
85400         is defined to 0.
85401         (lchown): New decl.
85402         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
85403         Do not check for lchown decl.
85404         Set REPLACE_LCHOWN.
85405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
85406         REPLACE_LCHOWN.
85407         * modules/chown: Make it clear it follows symlinks.
85408         * modules/lchown: Make it clear it doesn't follow symlinks.
85409         (Files): Remove lib/lchown.h
85410         (Depends-on): Add unistd.
85411         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
85412         (Include): Include <unistd.h>, not "lchown.h".
85413         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
85414         REPLACE_LCHOWN.
85416 2007-06-15  Jim Meyering  <jim@meyering.net>
85418         Change license (GPL to LGPL) of fsusage and dependents.
85419         * modules/fsusage (License): Change to LGPL.
85420         * modules/full-read (License): Likewise.
85421         * modules/full-write (License): Likewise.
85422         * modules/safe-read (License): Likewise.
85423         * modules/safe-write (License): Likewise.
85425 2007-06-14  Ben Pfaff  <blp@gnu.org>
85427         Missing part of allocsa -> malloca transition.
85428         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
85429         gl_MALLOCA.
85431 2007-06-12  Bruno Haible  <bruno@clisp.org>
85433         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
85434         to ia64, x86_64, i386.
85435         Reported by Eric Blake.
85437 2007-06-12  Bruno Haible  <bruno@clisp.org>
85439         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
85440         cross-compiling to x86_64.
85442 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
85444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
85445         glitch reported by Ralf Wildenhues in
85446         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
85448         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
85449         Vin Shelton.
85451 2007-06-11  Bruno Haible  <bruno@clisp.org>
85453         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
85454         replacement string.
85455         Reported by Eric Blake.
85457 2007-06-10  Bruno Haible  <bruno@clisp.org>
85459         Prepare vasnprintf code for use with Unicode strings.
85460         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
85461         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
85462         TYPE_U32_STRING.
85463         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
85464         a_u32_string variants.
85465         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85466         * lib/printf-args.c: Don't include config.h and the specification
85467         header if PRINTF_FETCHARGS is already defined.
85468         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85469         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
85470         TYPE_U16_STRING, TYPE_U32_STRING.
85471         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
85472         u16_directive, u16_directives, u32_directive, u32_directives): New
85473         types.
85474         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
85475         New declarations.
85476         * lib/printf-parse.c: Don't include config.h and the specification
85477         header if PRINTF_PARSE is already defined. Eliminate the set of
85478         parameters for WIDE_CHAR_VERSION; the user of this file must provide
85479         them now. Include c-ctype.h.
85480         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
85481         directive and CHAR_T_ONLY_ASCII.
85482         * lib/vasnprintf.c: Don't include config.h and the specification header
85483         if VASNPRINTF is already defined.
85484         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
85485         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
85486         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
85487         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
85488         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
85489         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
85490         code accordingly.
85491         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
85492         pad_ourselves also in this case, with the 'c' and 's' directives, and
85493         with a different notion of "width".
85494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
85496 2007-06-10  Bruno Haible  <bruno@clisp.org>
85498         * modules/unistr/u32-mbsnlen: New file.
85499         * lib/unistr/u32-mbsnlen.c: New file.
85501         * modules/unistr/u16-mbsnlen: New file.
85502         * lib/unistr/u16-mbsnlen.c: New file.
85504         * modules/unistr/u8-mbsnlen: New file.
85505         * lib/unistr/u8-mbsnlen.c: New file.
85507         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
85508         declarations.
85510 2007-06-10  Bruno Haible  <bruno@clisp.org>
85512         * lib/string_.h (mbsnlen): New declaration.
85513         * lib/mbsnlen.c: New file.
85514         * m4/mbsnlen.m4: New file.
85515         * modules/mbsnlen: New file.
85516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
85517         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
85518         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
85520 2007-06-10  Bruno Haible  <bruno@clisp.org>
85522         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
85524 2007-06-10  Bruno Haible  <bruno@clisp.org>
85526         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
85527         * lib/mbuiter.h: Likewise.
85529 2007-06-10  Bruno Haible  <bruno@clisp.org>
85531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
85532         declaration.
85534 2007-06-10  Karl Berry  <karl@gnu.org>
85536         * config/srclist.txt: remove gettext entries, Bruno prefers
85537         to update individually.
85539 2007-06-10  Bruno Haible  <bruno@clisp.org>
85541         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
85542         'maxlen'. Ensure only length + width bytes are allocated, not
85543         length + 1 + width.
85545 2007-06-09  Bruno Haible  <bruno@clisp.org>
85547         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
85548         (CHAR_T): Remove macro.
85549         (VASNPRINTF): Update.
85551 2007-06-09  Bruno Haible  <bruno@clisp.org>
85553         * MODULES.html.sh (Unicode string functions): Add the new modules.
85555         * modules/uniconv/u32-conv-to-enc: New file.
85556         * lib/uniconv/u32-conv-to-enc.c: New file.
85557         * modules/uniconv/u32-conv-to-enc-tests: New file.
85558         * tests/uniconv/test-u32-conv-to-enc.c: New file.
85560         * modules/uniconv/u16-conv-to-enc: New file.
85561         * lib/uniconv/u16-conv-to-enc.c: New file.
85562         * lib/uniconv/u-conv-to-enc.h: New file.
85563         * modules/uniconv/u16-conv-to-enc-tests: New file.
85564         * tests/uniconv/test-u16-conv-to-enc.c: New file.
85566         * modules/uniconv/u8-conv-to-enc: New file.
85567         * lib/uniconv/u8-conv-to-enc.c: New file.
85568         * modules/uniconv/u8-conv-to-enc-tests: New file.
85569         * tests/uniconv/test-u8-conv-to-enc.c: New file.
85571         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
85572         u32_conv_to_encoding): New declarations.
85574 2007-06-09  Bruno Haible  <bruno@clisp.org>
85576         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
85578 2007-06-09  Bruno Haible  <bruno@clisp.org>
85580         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
85581         * modules/malloca: Renamed from modules/allocsa, updated.
85582         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
85583         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
85584         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
85585         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
85586         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
85587         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
85588         * modules/xmalloca: Renamed from modules/xallocsa, updated.
85589         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
85590         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
85591         * modules/c-strcasestr (Depends-on): Update.
85592         * lib/c-strcasestr.c: Update.
85593         * modules/c-strstr (Depends-on): Update.
85594         * lib/c-strstr.c: Update.
85595         * modules/canonicalize-lgpl (Depends-on): Update.
85596         * lib/canonicalize-lgpl.c: Update.
85597         * modules/clean-temp (Depends-on): Update.
85598         * lib/clean-temp.c: Update.
85599         * modules/csharpcomp (Depends-on): Update.
85600         * lib/csharpcomp.c: Update.
85601         * modules/csharpexec (Depends-on): Update.
85602         * lib/csharpexec.c: Update.
85603         * modules/javacomp (Depends-on): Update.
85604         * lib/javacomp.c: Update.
85605         * modules/javaexec (Depends-on): Update.
85606         * lib/javaexec.c: Update.
85607         * modules/mbscasestr (Depends-on): Update.
85608         * lib/mbscasestr.c: Update.
85609         * modules/mbsstr (Depends-on): Update.
85610         * lib/mbsstr.c: Update.
85611         * modules/setenv (Depends-on): Update.
85612         * lib/setenv.c: Update.
85613         * modules/strcasestr (Depends-on): Update.
85614         * lib/strcasestr.c: Update.
85615         * modules/striconveha (Depends-on): Update.
85616         * lib/striconveha.c: Update.
85617         * modules/relocatable-prog-wrapper (Files): Update.
85618         * lib/relocwrapper.c: Update.
85619         * build-aux/install-reloc: Update.
85620         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85622 2007-06-08  Bruno Haible  <bruno@clisp.org>
85624         Port to uClibc.
85625         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85626         * lib/fpurge.c (fpurge): Likewise.
85627         * lib/freading.c (freading): Likewise.
85628         * lib/fseeko.c (rpl_fseeko): Likewise.
85629         * lib/fseterr.c (fseterr): Likewise.
85630         * lib/fwriting.c (fwriting): Likewise.
85631         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85633 2007-06-08  Bruno Haible  <bruno@clisp.org>
85635         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85636         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85637         * modules/gettext (Files): Add m4/intlmacosx.m4.
85639 2007-06-07  Bruno Haible  <bruno@clisp.org>
85641         * modules/localename-tests: New file.
85642         * tests/test-localename.c: New file.
85644         New module 'localename'.
85645         * lib/localename.h: New file.
85646         * lib/localename.c: New file, from GNU gettext.
85647         * m4/localename.m4: New file.
85648         * modules/localename: New file.
85650 2007-06-07  Bruno Haible  <bruno@clisp.org>
85652         Work around the lack of <wchar.h> on some builds of uClibc.
85653         * doc/headers/wchar.texi: Update.
85654         * lib/wchar_.h: Include <wchar.h> only if it exists.
85655         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85656         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85657         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85658         doesn't exist.
85659         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85660         * modules/mbfile (Depends-on): Add wchar.
85661         * modules/mbiter (Depends-on): Likewise.
85662         * modules/mbuiter (Depends-on): Likewise.
85663         Reported by Simon Josefsson.
85665 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85667         Work around problem reported by Steven M. Schweda in
85668         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85669         Tru64 5.1B with the Compaq compiler environment installed declares
85670         an 'isblank' function but does not define it in the C library.
85671         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85672         * lib/regex_internal.h (isblank): Likewise.
85673         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85674         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85676 2007-06-05  Bruno Haible  <bruno@clisp.org>
85678         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85679         ia64.
85680         * modules/printf-safe: New file.
85681         * modules/fprintf-posix (Depends-on): Add printf-safe.
85682         * modules/printf-posix (Depends-on): Likewise.
85683         * modules/snprintf-posix (Depends-on): Likewise.
85684         * modules/sprintf-posix (Depends-on): Likewise.
85685         * modules/vasnprintf-posix (Depends-on): Likewise.
85686         * modules/vasprintf-posix (Depends-on): Likewise.
85687         * modules/vfprintf-posix (Depends-on): Likewise.
85688         * modules/vprintf-posix (Depends-on): Likewise.
85689         * modules/vsnprintf-posix (Depends-on): Likewise.
85690         * modules/vsprintf-posix (Depends-on): Likewise.
85691         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85692         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85693         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85694         "no" on i386, x86_64, ia64.
85695         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85696         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85697         on i386, x86_64, ia64.
85698         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85699         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85700         on i386, x86_64, ia64.
85701         * tests/test-vasnprintf-posix.c: Include float.h.
85702         (LDBL80_WORDS): New macro.
85703         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85704         on i386, x86_64, ia64.
85705         * tests/test-vasprintf-posix.c: Include float.h.
85706         (LDBL80_WORDS): New macro.
85707         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85708         on i386, x86_64, ia64.
85709         * tests/test-snprintf-posix.c: Include float.h.
85710         * tests/test-sprintf-posix.c: Likewise.
85711         * tests/test-vsnprintf-posix.c: Likewise.
85712         * tests/test-vsprintf-posix.c: Likewise.
85714 2007-06-05  Bruno Haible  <bruno@clisp.org>
85716         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85717         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85718         non-IEEE numbers on i386, x86_64, ia64.
85719         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85720         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85721         * tests/test-isnanl.h: Include float.h.
85722         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85724 2007-06-05  Bruno Haible  <bruno@clisp.org>
85726         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85727         also the %a / %A. Handle the %a / %A code before this extra handling.
85729 2007-06-05  Bruno Haible  <bruno@clisp.org>
85731         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85732         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85734 2007-06-05  Bruno Haible  <bruno@clisp.org>
85736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85737         typo in variable name.
85739 2007-06-05  Eric Blake  <ebb9@byu.net>
85741         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85742         Reported by Simon Josefsson.
85744 2007-06-04  Bruno Haible  <bruno@clisp.org>
85746         Avoid test failures on some PowerPC platforms.
85747         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
85748         Define differently for PowerPC.
85749         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
85750         Reported by Gary V. Vaughan <gary@gnu.org>.
85752 2007-06-02  Bruno Haible  <bruno@clisp.org>
85754         Fix test-stdint failure on FreeBSD/ia64.
85755         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
85756         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
85757         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
85758         * doc/headers/stdint.texi: Update.
85760 2007-06-01  Bruno Haible  <bruno@clisp.org>
85762         * tests/test-binary-io.c (main): Pass a third argument to open().
85763         Reported by Gary V. Vaughan <gary@gnu.org>.
85765 2007-06-01  Bruno Haible  <bruno@clisp.org>
85767         * doc/functions/frexpl.texi: Update for mingw.
85769 2007-06-01  Bruno Haible  <bruno@clisp.org>
85771         * tests/test-lseek.c (main): Disable test of errno for invalid third
85772         argument.
85773         * doc/functions/lseek.texi: Update.
85774         Reported by Gary V. Vaughan <gary@gnu.org>.
85776 2007-05-28  Bruno Haible  <bruno@clisp.org>
85778         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
85780 2007-05-31  Eric Blake  <ebb9@byu.net>
85782         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
85783         cross compiling.
85785 2007-05-30  Eric Blake  <ebb9@byu.net>
85786         and Bruno Haible  <bruno@clisp.org>
85788         Work around mingw test failures exposed by m4-1.4.9b.
85789         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
85790         * tests/test-unistd.c: Disable uid_t and git_t tests for the
85791         moment.
85793 2007-05-30  Bruno Haible  <bruno@clisp.org>
85795         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
85796         assuming that they are closed. Needed on HP-UX 11.
85798 2007-05-29  Bruno Haible  <bruno@clisp.org>
85800         Fix a problem with #include_next.
85801         * lib/dirent_.h: Split the double-inclusion guard.
85802         * lib/fcntl_.h: Likewise.
85803         * lib/float_.h: Likewise.
85804         * lib/iconv_.h: Likewise.
85805         * lib/inttypes_.h: Likewise.
85806         * lib/locale_.h: Likewise.
85807         * lib/math_.h: Likewise.
85808         * lib/netinet_in_.h: Likewise.
85809         * lib/search_.h: Likewise.
85810         * lib/signal_.h: Likewise.
85811         * lib/stdint_.h: Likewise.
85812         * lib/stdio_.h: Likewise.
85813         * lib/stdlib_.h: Likewise.
85814         * lib/string_.h: Likewise.
85815         * lib/sys_select_.h: Likewise.
85816         * lib/sys_socket_.h: Likewise.
85817         * lib/sys_stat_.h: Likewise.
85818         * lib/sys_time_.h: Likewise.
85819         * lib/sysexits_.h: Likewise.
85820         * lib/time_.h: Likewise.
85821         * lib/unistd_.h: Likewise.
85822         * lib/wchar_.h: Likewise.
85823         * lib/wctype_.h: Likewise.
85825 2007-05-29  Bruno Haible  <bruno@clisp.org>
85827         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
85828         for the moment.
85830 2007-05-29  Bruno Haible  <bruno@clisp.org>
85832         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
85833         invocation.
85834         Reported by Eric Blake.
85836 2007-05-29  Bruno Haible  <bruno@clisp.org>
85838         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
85839         compiling case.
85841 2007-05-29  Eric Blake  <ebb9@byu.net>
85842             Bruno Haible  <bruno@clisp.org>
85844         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
85845         cross compiles.
85847 2007-05-28  Eric Blake  <ebb9@byu.net>
85849         * modules/closein-tests (test_closein_LDADD): Support test on
85850         cygwin with libtool.
85852 2007-05-28  Bruno Haible  <bruno@clisp.org>
85854         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
85855         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85856         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85857         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85858         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85859         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85860         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85861         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85862         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85864 2007-05-28  Eric Blake  <ebb9@byu.net>
85866         Unconditionally include <config.h> in unit tests.
85867         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85868         * tests/test-allocsa.c, tests/test-arcfour.c,
85869         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85870         tests/test-array_list.c, tests/test-array_oset.c,
85871         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85872         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85873         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85874         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85875         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85876         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85877         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85878         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85879         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85880         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85881         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85882         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85883         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85884         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85885         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85886         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85887         test-md5.c, test-memmem.c, test-printf-posix.c,
85888         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85889         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85890         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85891         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85892         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85893         test-vasnprintf-posix2.c, test-vasnprintf.c,
85894         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85895         test-vfprintf-posix.c, test-vprintf-posix.c,
85896         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85897         test-xvasprintf.c: Likewise.
85899 2007-05-28  Bruno Haible  <bruno@clisp.org>
85901         * gnulib-tool (func_import): Remember the --with-tests command-line
85902         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85903         Reported by Eric Blake.
85905 2007-05-28  Bruno Haible  <bruno@clisp.org>
85907         * modules/ftell-tests: New file.
85908         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85909         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85911         * lib/ftell.c: New file.
85912         * modules/ftell: New file.
85913         * m4/ftell.m4: New file.
85914         * doc/functions/ftell.texi: Update.
85915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85916         REPLACE_FTELL.
85917         * lib/stdio_.h (rpl_ftell): New declaration.
85918         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
85919         REPLACE_FTELL.
85921 2007-05-28  Eric Blake  <ebb9@byu.net>
85923         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
85925 2007-05-28  Bruno Haible  <bruno@clisp.org>
85927         * modules/fseek-tests: New file.
85928         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
85929         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
85931         * lib/fseek.c: New file.
85932         * modules/fseek: New file.
85933         * m4/fseek.m4: New file.
85934         * doc/functions/fseek.texi: Update.
85935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
85936         REPLACE_FSEEK.
85937         * lib/stdio_.h (rpl_fseek): New declaration.
85938         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
85939         REPLACE_FSEEK.
85941 2007-05-28  Bruno Haible  <bruno@clisp.org>
85943         * lib/stdio_.h (fflush): More comments.
85945 2007-05-28  Bruno Haible  <bruno@clisp.org>
85947         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
85948         runtime test.
85950 2007-05-28  Eric Blake  <ebb9@byu.net>
85952         Improve lseek module.
85953         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
85954         * lib/unistd_.h (lseek): Scale back link warning message.
85955         * tests/test-lseek.c: Beef up test.
85956         * tests/test-lseek.sh: Exercise more facets of lseek.
85957         Reported by Bruno Haible.
85959 2007-05-28  Bruno Haible  <bruno@clisp.org>
85961         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
85962         to define.
85964 2007-05-27  Bruno Haible  <bruno@clisp.org>
85966         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
85968 2007-05-27  Bruno Haible  <bruno@clisp.org>
85970         * modules/openmp: New file.
85971         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
85972         Noah Misch.
85974 2007-05-26  Bruno Haible  <bruno@clisp.org>
85976         * modules/chdir-long (Depends-on): Add fchdir.
85977         * modules/chdir-safer (Depends-on): Likewise.
85978         * modules/fts (Depends-on): Likewise.
85979         * modules/fts-lgpl (Depends-on): Likewise.
85980         * modules/openat (Depends-on): Likewise.
85981         * modules/savewd (Depends-on): Likewise.
85983 2007-05-24  Eric Blake  <ebb9@byu.net>
85985         Fix lseek on mingw.
85986         * modules/lseek: New module.
85987         * m4/lseek.m4: New file.
85988         * lib/lseek.c: New file.
85989         * modules/lseek-tests: New file.
85990         * tests/test-lseek.c: New file.
85991         * tests/test-lseek.sh: New file.
85992         * MODULES.html.sh: Document lseek module.
85993         * modules/fflush (Depends-on): Add lseek, fseeko.
85994         * modules/fseeko (Depends-on): Likewise.
85995         * modules/ftello (Depends-on): Likewise.
85996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
85997         broken.
85998         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
85999         broken.
86000         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
86001         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
86002         * lib/ftello.c (rpl_ftello): Likewise.
86003         * tests/test-fseeko.c (main): Test this.
86004         * tests/test-fseeko.sh: Likewise.
86005         * tests/test-ftello.c (main): Likewise.
86006         * tests/test-ftello.sh: Likewise.
86007         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
86008         implies replacing fseek.
86009         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
86010         HAVE_FTELLO.
86011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
86012         * modules/unistd (Makefile.am): Likewise.
86013         * lib/unistd_.h (lseek): Declare a replacement.
86014         * doc/functions/lseek.texi (lseek): Document this fix.
86015         * doc/functions/fseek.texi (fseek): Likewise.
86016         * doc/functions/ftell.texi (ftell): Likewise.
86018 2007-05-24  Bruno Haible  <bruno@clisp.org>
86020         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
86021         in the printed representation of a NaN.
86022         * tests/test-vasprintf-posix.c (test_function): Likewise.
86023         * tests/test-snprintf-posix.h (test_function): Likewise.
86024         * tests/test-sprintf-posix.h (test_function): Likewise.
86025         Reported by Eric Blake.
86027 2007-05-23  Eric Blake  <ebb9@byu.net>
86029         Fix fseeko/ftello on cygwin 1.5.24.
86030         * doc/functions/fseeko.texi (fseeko): Document the fix.
86031         * doc/functions/ftello.texi (ftello): Document the fix.
86032         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
86033         * doc/functions/stdout.text (stdout): New file.
86034         * doc/functions/stderr.text (stderr): New file.
86035         * doc/gnulib.texi (Function Substitutes): Use new files.
86036         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
86037         prior to 1.7.0.
86038         * tests/test-ftello.c (main): Likewise for ftello.
86039         * tests/test-fseeko.sh: New file.
86040         * tests/test-ftello.sh: New file.
86041         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
86042         with seekable stdin.
86043         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
86044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
86045         (gl_REPLACE_FSEEKO): New macro.
86046         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
86047         * modules/fseeko (Files): Distribute fseeko.c.
86048         * modules/ftello (Files): Distribute ftello.c.
86049         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
86050         mode.
86051         * lib/ftello.c (rpl_ftello): New file.
86052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
86053         fseeko, ftello.
86054         (gl_STDIN_LARGE_OFFSET): New macro.
86055         * modules/stdio (Makefile.am): Perform the replacement.
86056         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
86058 2007-05-23  Bruno Haible  <bruno@clisp.org>
86060         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
86061         GNULIB_POSIXCHECK is defined.
86063 2007-05-21  Bruno Haible  <bruno@clisp.org>
86065         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
86066         Check also the output for NaN arguments. When cross-compiling, guess
86067         no on IRIX.
86068         * lib/vasnprintf.c: Update comments.
86069         * tests/test-vasnprintf-posix.c (strisnan): New function.
86070         (test_function): Use it.
86071         * tests/test-vasprintf-posix.c (strisnan): New function.
86072         (test_function): Use it.
86073         * tests/test-snprintf-posix.h (strisnan): New function.
86074         (test_function): Use it.
86075         * tests/test-sprintf-posix.h (strisnan): New function.
86076         (test_function): Use it.
86077         Reported by Eric Blake.
86079 2007-05-20  Bruno Haible  <bruno@clisp.org>
86081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
86082         numbers that fails on BeOS.
86083         * doc/functions/frexpl.texi: Update.
86085 2007-05-20  Jim Meyering  <jim@meyering.net>
86087         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
86088         forced upon us by glibc-2.6.
86090 2007-05-20  Bruno Haible  <bruno@clisp.org>
86092         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
86093         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
86094         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
86095         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
86096         NEED_PRINTF_INFINITE.
86097         (is_infinitel): New function.
86098         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
86099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
86100         gl_PREREQ_VASNPRINTF_INFINITE.
86101         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
86102         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86103         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
86104         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
86105         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
86106         gl_PREREQ_VASNPRINTF_INFINITE.
86107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86114         * doc/functions/fprintf.texi: Update.
86115         * doc/functions/printf.texi: Update.
86116         * doc/functions/snprintf.texi: Update.
86117         * doc/functions/sprintf.texi: Update.
86118         * doc/functions/vfprintf.texi: Update.
86119         * doc/functions/vprintf.texi: Update.
86120         * doc/functions/vsnprintf.texi: Update.
86121         * doc/functions/vsprintf.texi: Update.
86123 2007-05-20  Bruno Haible  <bruno@clisp.org>
86125         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
86126         was not found in libc.
86127         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
86129 2007-05-20  Bruno Haible  <bruno@clisp.org>
86131         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86132         printed as "-nan" instead of "nan".
86133         * tests/test-vasprintf-posix.c (test_function): Likewise.
86134         * tests/test-snprintf-posix.h (test_function): Likewise.
86135         * tests/test-sprintf-posix.h (test_function): Likewise.
86136         Needed for HP-UX 11.
86138 2007-05-20  Jim Meyering  <jim@meyering.net>
86140         Fix buggy test for the fchownat-deref bug.
86141         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
86142         symlink required for the run-test.  Without it, this test would
86143         always declare that fchownat doesn't work, and client code would
86144         unnecessarily use the replacement function with fixed libc.
86145         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
86146         Reported by Greg Schafer.
86148 2007-05-19  Bruno Haible  <bruno@clisp.org>
86150         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
86151         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
86152         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
86153         Needed for IRIX 6.5 and Solaris 2.5.1.
86155 2007-05-19  Bruno Haible  <bruno@clisp.org>
86157         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
86158         (test_function): Skip tests involving -0.0 on platforms where
86159         -0.0 = 0.0.
86160         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
86161         (test_function): Skip tests involving -0.0 on platforms where
86162         -0.0 = 0.0.
86163         * tests/test-snprintf-posix.h (have_minus_zero): New function.
86164         (test_function): Skip tests involving -0.0 on platforms where
86165         -0.0 = 0.0.
86166         * tests/test-sprintf-posix.h (have_minus_zero): New function.
86167         (test_function): Skip tests involving -0.0 on platforms where
86168         -0.0 = 0.0.
86169         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
86170         tests.
86171         * tests/test-printf-posix.h (test_function): Likewise.
86172         * tests/test-printf-posix.output: Remove all -0.0 related results.
86173         Needed for IRIX 6.5.
86175 2007-05-19  Bruno Haible  <bruno@clisp.org>
86177         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86178         printed as "nan0x7fffffff" instead of "nan".
86179         * tests/test-vasprintf-posix.c (test_function): Likewise.
86180         * tests/test-snprintf-posix.h (test_function): Likewise.
86181         * tests/test-sprintf-posix.h (test_function): Likewise.
86182         * tests/test-fprintf-posix.h (NaN): Remove macro.
86183         (test_function): Remove all NaN related tests.
86184         * tests/test-printf-posix.h (NaN): Remove macro.
86185         (test_function): Remove all NaN related tests.
86186         * tests/test-printf-posix.output: Remove all NaN related results.
86187         Needed for IRIX 6.5.
86189 2007-05-19  Bruno Haible  <bruno@clisp.org>
86191         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
86192         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
86194 2007-05-19  Bruno Haible  <bruno@clisp.org>
86196         * lib/float_.h: New file.
86197         * m4/float_h.m4: New file.
86198         * modules/float: New file.
86199         * modules/isnanl (Dependencies): Add float.
86200         * modules/isnanl-nolibm (Dependencies): Likewise.
86201         * modules/mathl (Dependencies): Likewise.
86202         * modules/printf-frexpl (Dependencies): Likewise.
86203         * modules/signbit (Dependencies): Likewise.
86204         * modules/vasnprintf (Dependencies): Likewise.
86205         * doc/headers/float.texi: Update.
86207 2007-05-19  Jim Meyering  <jim@meyering.net>
86209         * lib/utimens.c (gl_futimens): Rename from futimens,
86210         now that glibc-2.6 declares futimens.
86211         * lib/utimens.h: Likewise.
86213 2007-05-19  Bruno Haible  <bruno@clisp.org>
86215         Avoid test failures on mingw.
86216         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
86217         * tests/test-printf-posix.sh: Likewise.
86218         * tests/test-vfprintf-posix.sh: Likewise.
86219         * tests/test-vprintf-posix.sh: Likewise.
86221 2007-05-19  Bruno Haible  <bruno@clisp.org>
86223         Fix *printf result for NaN, Inf, -0.0 on mingw.
86224         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
86225         * lib/vasnprintf.c: Include math.h and isnan.h.
86226         (is_infinite_or_zero): New function.
86227         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
86228         values in the %f, %F, %e, %E, %g, %G directives.
86229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
86230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86231         gl_PRINTF_INFINITE and test its result. Invoke
86232         gl_PREREQ_VASNPRINTF_INFINITE.
86233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86240         * doc/functions/fprintf.texi: Update.
86241         * doc/functions/printf.texi: Update.
86242         * doc/functions/snprintf.texi: Update.
86243         * doc/functions/sprintf.texi: Update.
86244         * doc/functions/vfprintf.texi: Update.
86245         * doc/functions/vprintf.texi: Update.
86246         * doc/functions/vsnprintf.texi: Update.
86247         * doc/functions/vsprintf.texi: Update.
86249 2007-05-19  Bruno Haible  <bruno@clisp.org>
86251         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
86252         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
86253         Instead of multiplying with 10^k, set extra_zeroes to k.
86254         (scale10_round_long_double): Remove function.
86256 2007-05-18  Bruno Haible  <bruno@clisp.org>
86258         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
86259         introduced on 2007-05-06.
86261 2007-05-18  Bruno Haible  <bruno@clisp.org>
86263         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
86264         %g directives.
86265         * tests/test-vasprintf-posix.c (test_function): Likewise.
86266         * tests/test-snprintf-posix.h (test_function): Likewise.
86267         * tests/test-sprintf-posix.h (test_function): Likewise.
86269 2007-05-18  Bruno Haible  <bruno@clisp.org>
86271         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
86272         (strmatch): New function.
86273         (test_function): Test the %f directive on numbers of various exponents.
86274         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
86275         (strmatch): New function.
86276         (test_function): Test the %f directive on numbers of various exponents.
86277         * tests/test-snprintf-posix.h (strmatch): New function.
86278         (test_function): Test the %f directive on numbers of various exponents.
86279         * tests/test-sprintf-posix.h (strmatch): New function.
86280         (test_function): Test the %f directive on numbers of various exponents.
86281         * tests/test-snprintf-posix.c (SIZEOF): New macro.
86282         * tests/test-sprintf-posix.c (SIZEOF): New macro.
86283         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
86284         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
86286 2007-05-18  Bruno Haible  <bruno@clisp.org>
86288         Add support for 'long double' number output.
86289         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
86290         * lib/vasnprintf.c: Include math.h and float+.h.
86291         (mp_limb_t): New type.
86292         (GMP_LIMB_BITS): New macro.
86293         (mp_twolimb_t): New type.
86294         (GMP_TWOLIMB_BITS): New macro.
86295         (mpn_t): New type.
86296         (multiply, divide, convert_to_decimal, decode_long_double,
86297         scale10_round_long_double, scale10_round_decimal_long_double,
86298         floorlog10l): New functions.
86299         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
86300         for the %f, %F, %e, %E, %g, %G directives.
86301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
86302         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86303         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
86304         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
86305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86311         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86312         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
86313         * modules/snprintf-posix (Depends-on): Likewise.
86314         * modules/sprintf-posix (Depends-on): Likewise.
86315         * modules/vasnprintf-posix (Depends-on): Likewise.
86316         * modules/vasprintf-posix (Depends-on): Likewise.
86317         * modules/vfprintf-posix (Depends-on): Likewise.
86318         * modules/vsnprintf-posix (Depends-on): Likewise.
86319         * modules/vsprintf-posix (Depends-on): Likewise.
86320         * modules/vasnprintf (Files): Add lib/float+.h.
86321         * doc/functions/fprintf.texi: Update.
86322         * doc/functions/printf.texi: Update.
86323         * doc/functions/snprintf.texi: Update.
86324         * doc/functions/sprintf.texi: Update.
86325         * doc/functions/vfprintf.texi: Update.
86326         * doc/functions/vprintf.texi: Update.
86327         * doc/functions/vsnprintf.texi: Update.
86328         * doc/functions/vsprintf.texi: Update.
86330 2007-05-18  Bruno Haible  <bruno@clisp.org>
86332         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
86334 2007-05-18  Bruno Haible  <bruno@clisp.org>
86336         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
86337         for printing 64-bit integers. Needed for mingw.
86339 2007-05-18  Bruno Haible  <bruno@clisp.org>
86341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86342         gl_FUNC_FREXPL_WORKS.
86343         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
86345 2007-05-18  Bruno Haible  <bruno@clisp.org>
86347         * modules/frexpl-nolibm-tests: New file.
86349         * modules/frexpl-nolibm: New file.
86350         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
86352 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86354         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
86355         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86356         GCC 4.2, which otherwise issues a lot of warnings.
86357         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
86358         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
86359         Likewise.
86360         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
86361         * modules/iconv_open (iconv.h): Likewise.
86362         * modules/locale (locale.h): Likewise.
86363         * modules/netinet_in (netinet/in.h): Likewise.
86364         * modules/sys_select (sys_select.h): Likewise.
86365         * modules/sys_socket (sys/socket.h): Likewise.
86366         * modules/sys_stat (sys/stat.h): Likewise.
86367         * modules/sysexits (sysexits.h): Likewise.
86368         * modules/unistd (unistd.h): Likewise.
86370 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86372         * modules/closein-tests (Makefile.am): Distribute
86373         `test-closein.sh'.
86375 2007-05-17  Bruno Haible  <bruno@clisp.org>
86377         * tests/test-printf-posix.output: Renamed from
86378         tests/test-fprintf-posix.out.
86379         * modules/fprintf-posix-tests: Update.
86380         * modules/printf-posix-tests: Update.
86381         * modules/vfprintf-posix-tests: Update.
86382         * modules/vprintf-posix-tests: Update.
86383         * tests/test-fprintf-posix.sh: Update.
86384         * tests/test-printf-posix.sh: Update.
86385         * tests/test-vfprintf-posix.sh: Update.
86386         * tests/test-vprintf-posix.sh: Update.
86387         Reported by Ralf Wildenhues.
86389 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86391         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
86392         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86393         GCC 4.2, which otherwise issues a lot of warnings.
86394         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
86395         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
86396         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
86397         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
86398         it should no longer be needed.
86399         * lib/string_.h: Likewise.
86400         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
86401         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
86402         * modules/inttypes (inttypes.h): Likewise.
86403         * modules/math (math.h): Likewise.
86404         * modules/search (search.h): Likewise.
86405         * modules/signal (signal.h): Likewise.
86406         * modules/stdint (stdint.h): Likewise.
86407         * modules/stdio (stdio.h): Likewise.
86408         * modules/stdlib (stdlib.h): Likewise.
86409         * modules/string (string.h): Likewise.
86410         * modules/sys_time (sys/time.h): Likewise.
86411         * modules/time (time.h): Likewise.
86412         * modules/wchar (wchar.h): Likewise.
86413         * modules/wctype (wtype.h): Likewise.
86415 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86417         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
86419 2007-05-13  Bruno Haible  <bruno@clisp.org>
86421         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
86422         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86423         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
86424         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86425         (gl_PREREQ_STRTOK_R): Don't require it here.
86427 2007-05-13  Bruno Haible  <bruno@clisp.org>
86429         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
86430         when used in C++ mode.
86432 2007-05-12  Bruno Haible  <bruno@clisp.org>
86434         * lib/linebuffer.h: Tweak doc.
86435         * lib/linebuffer.c: Likewise.
86437 2007-05-12  James Youngman  <jay@gnu.org>
86439         * lib/linebuffer.c (readlinebuffer_delim): New function,
86440         like readlinebuffer, but use a caller-specified delimiter.
86441         (readlinebuffer): Just call readlinebuffer_delim with '\n'
86442         as the delimiter.
86443         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
86445 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86447         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
86448         * modules/openat (Files): Remove openat-die.c.
86449         (Depends-on): Add openat-die.
86450         * modules/openat-die: New module.
86452 2007-05-06  Bruno Haible  <bruno@clisp.org>
86454         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
86455         Update with info about Cygwin.
86456         * doc/functions/fprintf.texi: Update.
86457         * doc/functions/printf.texi: Update.
86458         * doc/functions/snprintf.texi: Update.
86459         * doc/functions/sprintf.texi: Update.
86460         * doc/functions/vfprintf.texi: Update.
86461         * doc/functions/vprintf.texi: Update.
86462         * doc/functions/vsnprintf.texi: Update.
86463         * doc/functions/vsprintf.texi: Update.
86464         Reported by Eric Blake.
86466 2007-05-06  Bruno Haible  <bruno@clisp.org>
86468         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
86469         padding ourselves for the floating-point directives.
86470         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
86471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
86472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86473         gl_PRINTF_FLAG_ZERO and test its result. Invoke
86474         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
86475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86482         * tests/test-snprintf-posix.h (test_function): Also check the width
86483         and some flags in the %f directive.
86484         * tests/test-sprintf-posix.h (test_function): Likewise.
86485         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86486         * tests/test-vasprintf-posix.c (test_function): Likewise.
86487         * doc/functions/fprintf.texi: Update.
86488         * doc/functions/printf.texi: Update.
86489         * doc/functions/snprintf.texi: Update.
86490         * doc/functions/sprintf.texi: Update.
86491         * doc/functions/vfprintf.texi: Update.
86492         * doc/functions/vprintf.texi: Update.
86493         * doc/functions/vsnprintf.texi: Update.
86494         * doc/functions/vsprintf.texi: Update.
86496 2007-05-06  Bruno Haible  <bruno@clisp.org>
86498         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
86499         pass the ' flag character to sprintf or snprintf.
86500         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
86501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
86502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86503         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
86504         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
86505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86512         * tests/test-snprintf-posix.h (test_function): Also check the grouping
86513         flag.
86514         * tests/test-sprintf-posix.h (test_function): Likewise.
86515         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86516         * tests/test-vasprintf-posix.c (test_function): Likewise.
86517         * doc/functions/fprintf.texi: Update.
86518         * doc/functions/printf.texi: Update.
86519         * doc/functions/snprintf.texi: Update.
86520         * doc/functions/sprintf.texi: Update.
86521         * doc/functions/vfprintf.texi: Update.
86522         * doc/functions/vprintf.texi: Update.
86523         * doc/functions/vsnprintf.texi: Update.
86524         * doc/functions/vsprintf.texi: Update.
86526 2007-05-01  Bruno Haible  <bruno@clisp.org>
86528         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
86530 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
86532         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
86533         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
86535 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
86537         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
86538         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
86539         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
86541 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
86543         * lib/argp-help.c (struct hol_entry): New member `ord'.
86544         (HOL_ENTRY_PTRCMP): Use ord for comparison
86545         (hol_sort): Initialize ord.
86547 2007-05-01  Bruno Haible  <bruno@clisp.org>
86549         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
86550         Reported by Eric Blake.
86551         * doc/gnulib.texi (Function Substitutes): Update.
86553 2007-05-01  Bruno Haible  <bruno@clisp.org>
86555         * doc/functions.texi: Remove file, now redundant through
86556         doc/functions/*.texi.
86558 2007-05-01  Bruno Haible  <bruno@clisp.org>
86560         * modules/argp (Depends-on): Add sleep.
86562 2007-05-01  Bruno Haible  <bruno@clisp.org>
86564         * modules/sleep-tests: New file.
86565         * tests/test-sleep.c: New file.
86567         * modules/sleep: New file.
86568         * lib/sleep.c: New file.
86569         * m4/sleep.m4: New file.
86570         * lib/unistd_.h (sleep): New declaration.
86571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
86572         HAVE_SLEEP.
86573         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
86574         * doc/functions/sleep.texi: Document the sleep module.
86576 2007-05-01  Bruno Haible  <bruno@clisp.org>
86578         * lib/sigprocmask.h: Remove file.
86579         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
86580         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
86581         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
86582         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
86583         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
86584         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
86585         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
86586         HAVE_SIGSET_T as a shell variable.
86587         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
86588         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
86589         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
86590         (Depends-on): Add signal. Remove verify.
86591         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
86592         (Include): Mention <signal.h> instead of sigprocmask.h.
86593         * NEWS: Mention the change.
86594         * lib/fatal-signal.c: Don't include sigprocmask.h.
86596 2007-05-01  Bruno Haible  <bruno@clisp.org>
86598         * modules/signal: New file.
86599         * lib/signal_.h: New file.
86600         * m4/signal_h.m4: New file.
86602 2007-05-01  Bruno Haible  <bruno@clisp.org>
86604         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86605         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86606         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86607         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86609 2007-05-01  Bruno Haible  <bruno@clisp.org>
86611         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86612         configure time.
86613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86614         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86615         * modules/sys_stat (Makefile.am): Substitute their values into
86616         sys/stat.h.
86618 2007-05-01  Bruno Haible  <bruno@clisp.org>
86620         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86621         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86622         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86624 2007-05-01  Bruno Haible  <bruno@clisp.org>
86626         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86627         'assert' module here.
86629 2007-05-01  Bruno Haible  <bruno@clisp.org>
86631         * doc/functions/*.texi: New files.
86632         * doc/functions/google-ranking.txt: New file.
86633         * doc/gnulib.texi (Function Substitutes): New chapter.
86634         (ctime, inet_ntoa): Remove sections.
86635         * doc/ctime.texi: Remove file.
86636         * doc/inet_ntoa.texi: Remove file.
86637         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86638         dependencies.
86639         (%.info): New rule, specifying a --reference-limit.
86641 2007-05-01  Bruno Haible  <bruno@clisp.org>
86643         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86645 2007-05-01  Bruno Haible  <bruno@clisp.org>
86647         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86648         the portability of 'mkdir' to mingw systems.
86650 2007-05-01  Bruno Haible  <bruno@clisp.org>
86652         * doc/headers/google-ranking.txt: New file.
86654 2007-04-30  Eric Blake  <ebb9@byu.net>
86656         Prefer fseeko to fseek.
86657         * modules/getpass (Depends-on): Add fseeko.
86658         * lib/getpass.c (getpass): Use fseeko, not fseek.
86660 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86662         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86663         assumes the sorting is stable, while most qsort implementations
86664         are not.  Use argument addresses to ensure they never compare as
86665         equal.
86667         * tests/test-argp-2.sh (usage-indent test): Fix output
86668         (func_compare): Restore diff options
86669         * tests/test-argp.c: Restore #include "progname.h"
86671 2007-04-29  Bruno Haible  <bruno@clisp.org>
86673         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86675         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86677         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86678         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86679         (TESTS, check_PROGRAMS): Add test-snprintf.
86680         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86681         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86682         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86683         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86684         assertions that fail on HP-UX, OSF/1, or IRIX.
86685         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86687 2007-04-29  Bruno Haible  <bruno@clisp.org>
86689         * MODULES.html.sh (posix_functions): Remove 'contents'.
86691 2007-04-29  Karl Berry  <karl@gnu.org>
86693         * config/srclist.txt (gendocs_template_min): new entry.
86695 2007-04-29  Bruno Haible  <bruno@clisp.org>
86697         Work around fpurge bug on BSD systems.
86698         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86699         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86700         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86701         fpurge to rpl_fpurge if the system already has this function.
86702         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86703         the case where the system already has this function. Correct invariants
86704         on BSD systems.
86705         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86706         BSD systems.
86708 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86710         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86711         proposed by Sven Verdoolaege.
86713         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86714         options.
86715         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86716         (usage and help tests): Update
86718 2007-04-29  Bruno Haible  <bruno@clisp.org>
86720         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86721         Print more information in case of failure. Disable a test on BeOS.
86723 2007-04-29  Bruno Haible  <bruno@clisp.org>
86725         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86726         This helps debugging on systems on which no gdb is available.
86728 2007-04-29  Bruno Haible  <bruno@clisp.org>
86730         * lib/freading.h: Improve comments.
86731         * lib/fwriting.h: Likewise.
86732         * tests/test-freading.c (main): Don't check freading immediately after
86733         repositioning. Needed for glibc.
86735 2007-04-29  Bruno Haible  <bruno@clisp.org>
86737         * lib/freading.c (freading): Trivial simplification.
86739 2007-04-28  Bruno Haible  <bruno@clisp.org>
86741         * tests/test-fwriting.c (main): Also test the interaction between
86742         fflush and fwriting.
86743         * modules/fwriting-tests (Depends-on): Add fflush.
86745         * tests/test-freading.c (main): Also test the interaction between
86746         fflush and freading.
86747         * modules/freading-tests (Depends-on): Add fflush.
86749 2007-04-28  Bruno Haible  <bruno@clisp.org>
86751         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
86752         fseeko and ftello.
86753         Suggested by Eric Blake.
86755 2007-04-28  Jim Meyering  <jim@meyering.net>
86757         Avoid false-negative in gl_STDINT_H's C99 conformance test.
86758         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
86759         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
86761 2007-04-27  Eric Blake  <ebb9@byu.net>
86763         * doc/headers/assert.texi (assert.h): Document assert module use.
86765 2007-04-27  Bruno Haible  <bruno@clisp.org>
86767         * doc/headers/*.texi: New files.
86768         * doc/gnulib.texi (Header File Substitutes): New chapter.
86769         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
86770         dependencies.
86771         (standards.info ,standards.html, standards.dvi): Update dependencies.
86772         (mostlyclean, clean): New targets.
86774 2007-04-27  Bruno Haible  <bruno@clisp.org>
86776         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
86777         * modules/sysexits (Files, Makefile.am): Update.
86779         * lib/sys_socket_.h: Renamed from lib/socket_.h.
86780         * modules/sys_socket (Files, Makefile.am): Update.
86782         * lib/sys_stat_.h: Renamed from lib/stat_.h.
86783         * modules/sys_stat (Files, Makefile.am): Update.
86785 2007-04-27  Eric Blake  <ebb9@byu.net>
86787         * lib/freading.h: Improve comments.
86788         * lib/fwriting.h: Likewise.
86789         * lib/fflush.c: Likewise.
86791         Fix closein for mingw.
86792         * modules/closein-tests: Add tests for closein.
86793         * tests/test-closein.c: New file.
86794         * tests/test-closein.sh: Likewise.
86795         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
86796         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
86798 2007-04-27  Bruno Haible  <bruno@clisp.org>
86800         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
86801         version is < 6.
86802         * lib/math_.h [__DECC]: Likewise.
86803         * lib/stdio_.h [__DECC]: Likewise.
86804         * lib/stdlib_.h [__DECC]: Likewise.
86805         * lib/string_.h [__DECC]: Likewise.
86806         * lib/time_.h [__DECC]: Likewise.
86807         * lib/wchar_.h [__DECC]: Likewise.
86808         * lib/wctype_.h [__DECC]: Likewise.
86810 2007-04-27  Bruno Haible  <bruno@clisp.org>
86812         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
86814 2007-04-27  Bruno Haible  <bruno@clisp.org>
86816         * lib/fflush.c: Add comments.
86817         * modules/fpurge-tests (Depends-on): Add fflush.
86818         * modules/freadable-tests (Depends-on): Likewise.
86819         * modules/fwritable-tests (Depends-on): Likewise.
86821 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
86823         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
86824         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
86825         Report by Bruno Haible <bruno@clisp.org>.
86827 2007-04-26  Eric Blake  <ebb9@byu.net>
86829         Fix fflush on mingw.
86830         * modules/fflush (Depends-on): Add freading.
86831         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
86832         but unread data.
86834 2007-04-26  Eric Blake  <ebb9@byu.net>
86835         and Bruno Haible  <bruno@clisp.org>
86837         Implement freading and fwriting.
86838         * lib/freading.c: New file.
86839         * lib/freading.h: Likewise.
86840         * m4/freading.m4: Likewise.
86841         * modules/freading: Likewise.
86842         * modules/freading-tests: Likewise.
86843         * tests/test-freading.c: Likewise.
86844         * lib/fwriting.c: New file.
86845         * lib/fwriting.h: Likewise.
86846         * m4/fwriting.m4: Likewise.
86847         * modules/fwriting: Likewise.
86848         * modules/fwriting-tests: Likewise.
86849         * tests/test-fwriting.c: Likewise.
86850         * MODULES.html.sh (File stream based Input/Output): Mention them.
86852 2007-04-26  Bruno Haible  <bruno@clisp.org>
86854         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
86855         'long' when we assume it.
86856         Suggested by Eric Blake.
86858 2007-04-26  Bruno Haible  <bruno@clisp.org>
86860         Ensure fseeko, ftello are declared on glibc systems.
86861         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86862         * modules/fseeko (configure.ac-early): Likewise.
86863         * modules/ftello (configure.ac-early): Likewise.
86864         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86865         AC_FUNC_FSEEKO for this.
86866         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86867         (gl_CHECK_FSEEKO): Remove macro.
86869 2007-04-26  Bruno Haible  <bruno@clisp.org>
86871         * tests/test-fflush.c (main): Also check the ftell result after
86872         fflush and fseek/fseeko.
86873         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86874         file descriptor position cache in the stream.
86875         * lib/fseeko.c (rpl_fseeko): Likewise.
86877 2007-04-26  Bruno Haible  <bruno@clisp.org>
86879         * modules/fflush-tests (Depends-on): Add fseeko.
86881 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86882             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86884         * lib/argz_.h: ensure error_t definition is obtained in same
86885         mechanism system argz.h would have.
86886         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86887         argz facilities are known bad.  Err on the side of caution if
86888         cross-compiling.
86890 2007-04-25  Eric Blake  <ebb9@byu.net>
86892         * lib/fpurge.c (includes): Use stdlib.h for free.
86893         * tests/test-fflush.c (main): Also test fflush-fseeko.
86895 2007-04-25  Bruno Haible  <bruno@clisp.org>
86897         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86898         * lib/fseeko.c: New file.
86899         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86900         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86901         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86902         gl_FUNC_FSEEKO.
86903         (gl_FUNC_FSEEKO): Invoke it.
86904         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86905         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86906         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86908 2007-04-25  Bruno Haible  <bruno@clisp.org>
86910         * modules/fflush (Depends-on): Add ftello.
86912 2007-04-25  Bruno Haible  <bruno@clisp.org>
86914         * modules/ftello-tests: New file.
86915         * tests/test-ftello.c: New file.
86917         * modules/ftello: New file.
86918         * m4/ftello.m4: New file.
86919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
86920         HAVE_FTELLO.
86921         * lib/stdio_.h (ftello): New declaration.
86922         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
86923         HAVE_FTELLO.
86925 2007-04-25  Bruno Haible  <bruno@clisp.org>
86927         * modules/fseeko-tests: New file.
86928         * tests/test-fseeko.c: New file.
86930         * modules/fseeko: New file.
86931         * m4/fseeko.m4: New file.
86932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
86933         HAVE_FSEEKO.
86934         * lib/stdio_.h (fseeko): New declaration.
86935         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
86936         HAVE_FSEEKO.
86938 2007-04-25  Bruno Haible  <bruno@clisp.org>
86940         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
86942 2007-04-25  Bruno Haible  <bruno@clisp.org>
86944         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
86945         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
86946         * tests/test-unistd.c: Likewise.
86947         * tests/test-fcntl.c: Likewise.
86949 2007-04-23  Eric Blake  <ebb9@byu.net>
86951         * lib/fflush.c: Fix missing include.
86952         Reported by Bruno Haible.
86954 2007-04-23  Bruno Haible  <bruno@clisp.org>
86956         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
86957         Reported by Eric Blake.
86959 2007-04-23  Bruno Haible  <bruno@clisp.org>
86961         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
86963 2007-04-23  Bruno Haible  <bruno@clisp.org>
86965         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
86967 2007-04-23  Bruno Haible  <bruno@clisp.org>
86969         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
86970         Needed on HP-UX 11.
86972 2007-04-16  Eric Blake  <ebb9@byu.net>
86974         Make fflush rely on fpurge.
86975         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
86976         open coding all variants.
86977         * modules/fflush (Depends-on): Add fpurge and unistd.
86978         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
86979         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
86981         Fix --with-tests compilation on cygwin.
86982         * modules/argmatch-tests (Makefile.am): List gnulib library first
86983         in LDADD.
86984         * modules/argp-tests (Makefile.am): Likewise.
86985         * modules/array-list-tests (Makefile.am): Likewise.
86986         * modules/array-oset-tests (Makefile.am): Likewise.
86987         * modules/avltree-list-tests (Makefile.am): Likewise.
86988         * modules/avltree-oset-tests (Makefile.am): Likewise.
86989         * modules/avltreehash-list-tests (Makefile.am): Likewise.
86990         * modules/carray-list-tests (Makefile.am): Likewise.
86991         * modules/dirname-tests (Makefile.am): Likewise.
86992         * modules/frexp-tests (Makefile.am): Likewise.
86993         * modules/isnanl-tests (Makefile.am): Likewise.
86994         * modules/linked-list-tests (Makefile.am): Likewise.
86995         * modules/linkedhash-list-tests (Makefile.am): Likewise.
86996         * modules/lock-tests (Makefile.am): Likewise.
86997         * modules/rbtree-list-tests (Makefile.am): Likewise.
86998         * modules/rbtree-oset-tests (Makefile.am): Likewise.
86999         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
87000         * modules/tls-tests (Makefile.am): Likewise.
87001         * modules/tsearch-tests (Makefile.am): Likewise.
87002         * modules/xvasprintf-tests (Makefile.am): Likewise.
87004         Fix fpurge for cygwin.
87005         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
87006         value.
87007         * modules/fpurge-tests (Depends-on): Clean up trash.
87009 2007-04-16  Simon Josefsson  <simon@josefsson.org>
87011         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
87013         * m4/autobuild.m4: Re-indent.
87015 2007-04-13  Bruno Haible  <bruno@clisp.org>
87017         * modules/fpurge-tests: New file.
87018         * tests/test-fpurge.c: New file.
87020         * modules/fpurge: New file.
87021         * lib/fpurge.h: New file.
87022         * lib/fpurge.c: New file.
87023         * m4/fpurge.m4: New file.
87025 2007-04-13  Bruno Haible  <bruno@clisp.org>
87027         * modules/fbufmode-tests: New file.
87028         * tests/test-fbufmode.c: New file.
87030         * modules/fbufmode: New file.
87031         * lib/fbufmode.h: New file.
87032         * lib/fbufmode.c: New file.
87033         * m4/fbufmode.m4: New file.
87035 2007-04-13  Bruno Haible  <bruno@clisp.org>
87037         * modules/fwritable-tests: New file.
87038         * tests/test-fwritable.c: New file.
87040         * modules/fwritable: New file.
87041         * lib/fwritable.h: New file.
87042         * lib/fwritable.c: New file.
87043         * m4/fwritable.m4: New file.
87045 2007-04-13  Bruno Haible  <bruno@clisp.org>
87047         * modules/freadable-tests: New file.
87048         * tests/test-freadable.c: New file.
87050         * modules/freadable: New file.
87051         * lib/freadable.h: New file.
87052         * lib/freadable.c: New file.
87053         * m4/freadable.m4: New file.
87055 2007-04-13  Bruno Haible  <bruno@clisp.org>
87057         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
87058         MOSTLYCLEANFILES.
87060 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87062         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
87063         gzip bootstrap.conf to avoid dragging in i18n machinery.
87064         (gnulib_tool_option): Use it.
87066 2007-04-13  Bruno Haible  <bruno@clisp.org>
87068         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
87069         %F directives.
87070         * tests/test-vasprintf-posix.c (test_function): Likewise.
87071         * tests/test-snprintf-posix.h (test_function): Likewise.
87072         * tests/test-sprintf-posix.h (test_function): Likewise.
87073         * tests/test-fprintf-posix.h (test_function): Likewise.
87074         * tests/test-printf-posix.h (test_function): Likewise.
87075         * tests/test-fprintf-posix.out: Likewise.
87077 2007-04-13  Bruno Haible  <bruno@clisp.org>
87079         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
87080         * modules/tls-tests (configure.ac): Likewise.
87081         Reported by Arto C. Nirkko <anirkko@insel.ch>.
87083 2007-04-13  Bruno Haible  <bruno@clisp.org>
87085         * lib/tls.c (glthread_tls_get): Fix return type.
87086         Patch by Arto C. Nirkko <anirkko@insel.ch>.
87088 2007-04-12  Eric Blake  <ebb9@byu.net>
87090         * modules/gettime (Depends-on): Remove gettime.
87091         Reported by Dmitry V. Levin.
87093 2007-04-12  Bruno Haible  <bruno@clisp.org>
87095         * modules/fflush (Include): Mention <stdio.h>.
87096         * modules/strtoimax (Include): Mention <inttypes.h>.
87097         * modules/strtoumax (Include): Likewise.
87099 2007-04-12  Eric Blake  <ebb9@byu.net>
87101         * .cvsignore: New file.
87102         * .gitignore: Likewise.
87104 2007-04-12  Bruno Haible  <bruno@clisp.org>
87106         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
87107         not before, since $(LDADD) often contains libgnu.a.
87108         * modules/striconv-tests (test_striconv_LDADD): Likewise.
87109         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
87110         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
87111         Needed on Cygwin.
87113 2007-04-12  Eric Blake  <ebb9@byu.net>
87115         Work around glibc's failure to flush stdin on fclose.
87116         * lib/closein.c (close_stdin): Flush stdin before closing.
87118         Work around glibc's failure to reset seekable stdin on exit.
87119         * modules/closein: New module.
87120         * lib/closein.c: New file.
87121         * lib/closein.h: Likewise.
87122         * m4/closein.m4: Likewise.
87123         * MODULES.html.sh (File stream based Input/Output): Document it.
87125 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87127         * gnulib-tool: Rename generated 'autobuild' script to
87128         'do-autobuild' in --create-megatestdir output.
87130         * doc/gnulib.texi (Build robot for gnulib): Fix.
87132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87134         * modules/sysexits (Depends-on): Add absolute-header.
87136 2007-04-12  Eric Blake  <ebb9@byu.net>
87138         No need to preserve errno on success.
87139         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
87140         Reported by Bruno Haible.
87142 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87144         * MODULES.html.sh (Support for maintaining and releasing
87145         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
87147 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87149         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
87151 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87153         * modules/autobuild: New module.
87155         * m4/autobuild.m4: New file.
87157 2007-04-11  Bruno Haible  <bruno@clisp.org>
87159         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
87160         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
87161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
87162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
87163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
87170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
87173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
87176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87178         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
87179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
87182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
87185         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87186         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87187         Reported by Eric Blake.
87189 2007-04-11  Bruno Haible  <bruno@clisp.org>
87191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
87193 2007-04-10  Bruno Haible  <bruno@clisp.org>
87195         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
87196         for NaN and Infinity. Needed on FreeBSD 6.1.
87197         * tests/test-vasnprintf-posix.c (test_function): Undo last change
87198         regarding results for "%010a" of Infinity and NaN.
87199         * tests/test-vasprintf-posix.c (test_function): Likewise.
87200         * tests/test-snprintf-posix.h (test_function): Likewise.
87201         * tests/test-sprintf-posix.h (test_function): Likewise.
87202         * tests/test-fprintf-posix.h (test_function): Likewise.
87203         * tests/test-printf-posix.h (test_function): Likewise.
87204         * tests/test-fprintf-posix.out: Likewise.
87206 2007-04-10  Bruno Haible  <bruno@clisp.org>
87208         * modules/locale-tests: New file.
87209         * tests/test-locale.c: New file.
87211         * modules/locale: New file.
87212         * lib/locale_.h: New file.
87213         * m4/locale_h.m4: New file.
87215 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
87216             Bruno Haible  <bruno@clisp.org>
87218         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
87219         be determined, test for availability of the copysignf, copysign,
87220         copysignl functions.
87221         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
87222         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
87223         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
87225 2007-04-09  Eric Blake  <ebb9@byu.net>
87227         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
87228         * modules/stdio (Makefile.am): Support fflush.
87229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87230         * modules/fflush: New file.
87231         * lib/fflush.c: Likewise.
87232         * m4/fflush.m4: Likewise.
87233         * modules/fflush-tests: New test.
87234         * tests/test-fflush.c: Likewise.
87235         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
87237 2007-04-06  Bruno Haible  <bruno@clisp.org>
87239         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
87240         (VASNPRINTF): Use signbit for faster determination whether to print a
87241         minus sign.
87242         * modules/vasnprintf (Files): Remove lib/float+.h.
87243         * modules/fprintf-posix (Depends-on): Add signbit.
87244         * modules/snprintf-posix (Depends-on): Likewise.
87245         * modules/sprintf-posix (Depends-on): Likewise.
87246         * modules/vasnprintf-posix (Depends-on): Likewise.
87247         * modules/vasprintf-posix (Depends-on): Likewise.
87248         * modules/vfprintf-posix (Depends-on): Likewise.
87249         * modules/vsnprintf-posix (Depends-on): Likewise.
87250         * modules/vsprintf-posix (Depends-on): Likewise.
87252 2007-04-06  Bruno Haible  <bruno@clisp.org>
87254         * tests/test-frexp.c (main): Test also the sign bit of zero results.
87255         * tests/test-frexpl.c (main): Likewise.
87256         * tests/test-ldexpl.c (main): Likewise.
87257         * modules/frexp-tests (Depends-on): Add signbit.
87258         * modules/frexpl-tests (Depdends-on): Likewise.
87259         * modules/ldexpl-tests (Depdends-on): Likewise.
87261 2007-04-06  Bruno Haible  <bruno@clisp.org>
87263         * modules/signbit-tests: New file.
87264         * tests/test-signbit.c: New file.
87266         * modules/signbit: New file.
87267         * lib/signbitf.c: New file.
87268         * lib/signbitd.c: New file.
87269         * lib/signbitl.c: New file.
87270         * m4/signbit.m4: New file.
87271         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
87272         (signbit): New macro.
87273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
87274         REPLACE_SIGNBIT.
87275         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
87276         REPLACE_FREXPL into math.h.
87278 2007-04-06  Bruno Haible  <bruno@clisp.org>
87280         * modules/isnanf-nolibm-tests: New file.
87281         * tests/test-isnanf.c: New file.
87283         * modules/isnanf-nolibm: New file.
87284         * lib/isnanf.h: New file.
87285         * lib/isnanf.c: New file.
87286         * lib/isnan.c: Consider the USE_FLOAT macro.
87287         * m4/isnanf.m4: New file.
87289 2007-04-06  Bruno Haible  <bruno@clisp.org>
87291         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
87292         (Link): New section.
87294         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
87296 2007-04-06  Bruno Haible  <bruno@clisp.org>
87298         Assume the 'long double' type.
87299         * m4/longdouble.m4: Remove file.
87300         * config/srclist.txt: Don't mention longdouble.m4.
87301         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
87302         * lib/float+.h: Likewise.
87303         * lib/frexp.c: Likewise.
87304         * lib/printf-args.h: Likewise.
87305         * lib/printf-args.c: Likewise.
87306         * lib/printf-frexp.c: Likewise.
87307         * lib/printf-parse.c: Likewise.
87308         * lib/vasnprintf.c: Likewise.
87309         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
87310         * m4/intl.m4: Likewise.
87311         * m4/isnanl.m4: Likewise.
87312         * m4/printf.m4: Likewise.
87313         * m4/printf-frexpl.m4: Likewise.
87314         * m4/vasnprintf.m4: Likewise.
87315         * modules/allocsa (Files): Remove m4/longdouble.m4.
87316         * modules/gettext (Files): Likewise.
87317         * modules/relocatable-prog-wrapper (Files): Likewise.
87318         * modules/vasnprintf (Files): Likewise.
87319         * modules/isnanl (Files): Likewise.
87320         (Include): Simplify.
87321         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
87322         (Include): Simplify.
87323         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
87324         (Include): Simplify.
87325         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
87326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87327         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
87328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87329         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87331         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
87332         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87333         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87334         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87335         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
87336         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87337         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
87338         * tests/test-isnanl.c: Likewise.
87339         * tests/test-snprintf-posix.h: Likewise.
87340         * tests/test-sprintf-posix.h: Likewise.
87341         * tests/test-vasnprintf-posix.c: Likewise.
87342         * tests/test-vasnprintf-posix2.c: Likewise.
87343         * tests/test-vasprintf-posix.c: Likewise.
87345 2007-04-06  Bruno Haible  <bruno@clisp.org>
87347         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
87348         * lib/math_.h [__DECC]: Include the overridden include file through
87349         #include_next, outside the double-inclusion guard.
87350         * lib/stdio_.h [__DECC]: Likewise.
87351         * lib/stdlib_.h [__DECC]: Likewise.
87352         * lib/string_.h [__DECC]: Likewise.
87353         * lib/time_.h [__DECC]: Likewise.
87354         * lib/wchar_.h [__DECC]: Likewise.
87355         * lib/wctype_.h [__DECC]: Likewise.
87356         * lib/inttypes_.h [__DECC]: Likewise.
87357         Reported by Albert Chin <china@thewrittenword.com> in
87358         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
87360 2007-04-04  Eric Blake  <ebb9@byu.net>
87362         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
87363         1.5.x.
87365 2007-04-04  Bruno Haible  <bruno@clisp.org>
87367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
87368         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
87370 2007-04-04  Bruno Haible  <bruno@clisp.org>
87372         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
87373         results for "%010a" of Infinity and NaN.
87374         * tests/test-vasprintf-posix.c (test_function): Likewise.
87375         * tests/test-snprintf-posix.h (test_function): Likewise.
87376         * tests/test-sprintf-posix.h (test_function): Likewise.
87377         * tests/test-fprintf-posix.h (test_function): Remove these tests.
87378         * tests/test-printf-posix.h (test_function): Likewise.
87379         * tests/test-fprintf-posix.out: Update.
87380         Needed for FreeBSD 6.1.
87382 2007-04-04  Bruno Haible  <bruno@clisp.org>
87384         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
87385         directly used by the gnulib modules nor by gnulib-tool.
87387 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87389         * DEPENDENCIES: Give overall description of version dependency
87390         desirability.  Use more-typical names for apps.
87391         Add shell, coreutils, diffutils, grep, tar, gzip.
87393 2007-04-04  Simon Josefsson  <simon@josefsson.org>
87395         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
87397 2007-04-04  Karl Berry  <karl@gnu.org>
87399         * MODULES.html.sh (func_module): missing '.
87401 2007-04-03  Bruno Haible  <bruno@clisp.org>
87403         * modules/argmatch-tests (Makefile.am): New variable
87404         test_argmatch_LDADD.
87405         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
87406         * modules/array-list-tests (Makefile.am): New variable
87407         test_array_list_LDADD.
87408         * modules/array-oset-tests (Makefile.am): New variable
87409         test_array_oset_LDADD.
87410         * modules/avltree-list-tests (Makefile.am): New variable
87411         test_avltree_list_LDADD.
87412         * modules/avltree-oset-tests (Makefile.am): New variable
87413         test_avltree_oset_LDADD.
87414         * modules/avltreehash-list-tests (Makefile.am): New variable
87415         test_avltreehash_list_LDADD.
87416         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
87417         test_canonicalize_lgpl_LDADD.
87418         * modules/carray-list-tests (Makefile.am): New variable
87419         test_carray_list_LDADD.
87420         * modules/dirname-tests (Makefile.am): New variable
87421         test_dirname_LDADD.
87422         * modules/linked-list-tests (Makefile.am): New variable
87423         test_linked_list_LDADD.
87424         * modules/linkedhash-list-tests (Makefile.am): New variable
87425         test_linkedhash_list_LDADD.
87426         * modules/rbtree-list-tests (Makefile.am): New variable
87427         test_rbtree_list_LDADD.
87428         * modules/rbtree-oset-tests (Makefile.am): New variable
87429         test_rbtree_oset_LDADD.
87430         * modules/rbtreehash-list-tests (Makefile.am): New variable
87431         test_rbtreehash_list_LDADD.
87432         * modules/xvasprintf-tests (Makefile.am): New variable
87433         test_xvasprintf_LDADD.
87434         Reported by Eric Blake.
87436 2007-04-03  Eric Blake  <ebb9@byu.net>
87438         * DEPENDENCIES: Weaken m4 requirements.
87440 2007-04-03  Bruno Haible  <bruno@clisp.org>
87442         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
87443         * modules/isnanl-tests (configure.ac): Likewise.
87445 2007-04-03  Ben Pfaff  <blp@gnu.org>
87447         * modules/iconv_open: Add $(srcdir)/ to source directory
87448         references in Makefile fragments that call gperf, to fix VPATH
87449         builds.
87451 2007-04-03  Bruno Haible  <bruno@clisp.org>
87453         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
87454         * lib/ldexpl.c: Undo last change.
87456 2007-04-03  Bruno Haible  <bruno@clisp.org>
87458         * modules/printf-frexpl (Depends-on): Undo last change.
87459         (Files): Add m4/ldexpl.m4.
87461 2007-04-03  Bruno Haible  <bruno@clisp.org>
87463         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
87464         * modules/isnanl (Link): New section.
87466         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
87467         * modules/frexp (Link): New section.
87469         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
87470         * modules/frexpl (Link): New section.
87472         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
87473         * modules/ldexpl (Link): New section.
87475 2007-04-03  Bruno Haible  <bruno@clisp.org>
87477         * modules/TEMPLATE-EXTENDED: New file.
87478         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
87480 2007-04-03  Bruno Haible  <bruno@clisp.org>
87482         * DEPENDENCIES: New file.
87483         Suggested by Simon Josefsson.
87485 2007-04-03  Bruno Haible  <bruno@clisp.org>
87487         * doc/gnulib.texi: Escape @.
87489 2007-04-03  James Youngman  <jay@gnu.org>
87490         and Paul Eggert  <eggert@cs.ucla.edu>
87492         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
87493         birthtime on all systems that have birthtime, not just those which
87494         use st_birthtimensec rather than st_birthtim.  Putting zero in
87495         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
87496         that the birth time is not available for files on an NFS mount.
87498 2007-04-03  Simon Josefsson  <simon@josefsson.org>
87500         * modules/memxor: Move back from crypto/, suggested by Bruno.
87501         * modules/crypto/hmac-sha1: Fix memxor dependency.
87503         * modules/crypto/gc: Moved from ../.
87505 2007-04-02  Eric Blake  <ebb9@byu.net>
87507         * lib/ldexpl.c (includes): Avoid libm.
87509         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
87511 2007-04-02  Bruno Haible  <bruno@clisp.org>
87513         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
87514         on IRIX.
87516 2007-04-02  Bruno Haible  <bruno@clisp.org>
87518         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
87519         x86 or x86_64 platforms running MacOS X.
87520         Reported by Ryan Schmidt <@ryandesign.com>.
87522 2007-04-02  Bruno Haible  <bruno@clisp.org>
87524         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
87525         i386.
87527 2007-04-01  Simon Josefsson  <simon@josefsson.org>
87529         * modules/crypto/arcfour: Moved from ../.
87530         * modules/crypto/arcfour-tests: Moved from ../.
87531         * modules/crypto/arctwo: Moved from ../.
87532         * modules/crypto/arctwo-tests: Moved from ../.
87533         * modules/crypto/des: Moved from ../.
87534         * modules/crypto/des-tests: Moved from ../.
87535         * modules/crypto/gc-arcfour: Moved from ../.
87536         * modules/crypto/gc-arcfour-tests: Moved from ../.
87537         * modules/crypto/gc-arctwo: Moved from ../.
87538         * modules/crypto/gc-arctwo-tests: Moved from ../.
87539         * modules/crypto/gc-des: Moved from ../.
87540         * modules/crypto/gc-des-tests: Moved from ../.
87541         * modules/crypto/gc-hmac-md5: Moved from ../.
87542         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
87543         * modules/crypto/gc-hmac-sha1: Moved from ../.
87544         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
87545         * modules/crypto/gc-md2: Moved from ../.
87546         * modules/crypto/gc-md2-tests: Moved from ../.
87547         * modules/crypto/gc-md4: Moved from ../.
87548         * modules/crypto/gc-md4-tests: Moved from ../.
87549         * modules/crypto/gc-md5: Moved from ../.
87550         * modules/crypto/gc-md5-tests: Moved from ../.
87551         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
87552         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
87553         * modules/crypto/gc-random: Moved from ../.
87554         * modules/crypto/gc-rijndael: Moved from ../.
87555         * modules/crypto/gc-rijndael-tests: Moved from ../.
87556         * modules/crypto/gc-sha1: Moved from ../.
87557         * modules/crypto/gc-sha1-tests: Moved from ../.
87558         * modules/crypto/gc-tests: Moved from ../.
87559         * modules/crypto/hmac-md5: Moved from ../.
87560         * modules/crypto/hmac-md5-tests: Moved from ../.
87561         * modules/crypto/hmac-sha1: Moved from ../.
87562         * modules/crypto/hmac-sha1-tests: Moved from ../.
87563         * modules/crypto/md2: Moved from ../.
87564         * modules/crypto/md2-tests: Moved from ../.
87565         * modules/crypto/md4: Moved from ../.
87566         * modules/crypto/md4-tests: Moved from ../.
87567         * modules/crypto/md5: Moved from ../.
87568         * modules/crypto/md5-tests: Moved from ../.
87569         * modules/crypto/memxor: Moved from ../.
87570         * modules/crypto/rijndael: Moved from ../.
87571         * modules/crypto/rijndael-tests: Moved from ../.
87572         * modules/crypto/sha1: Moved from ../.
87574 2007-03-30  James Youngman  <jay@gnu.org>
87576         * tests/test-stat-time.c (prepare_test): use chmod() rather than
87577         rename() to change the ctime of a file (because ctime is unaffected
87578         by rename on jfs2 on AIX 5.1).
87579         (main): Start by doing cleanup, in case a previous run failed leaving
87580         test files behind.
87582 2007-03-31  Bruno Haible  <bruno@clisp.org>
87584         Support old proprietary implementations of iconv.
87585         * modules/iconv_open: New file.
87586         * lib/iconv_.h: New file.
87587         * m4/iconv_h.m4: New file.
87588         * lib/iconv_open.c: New file.
87589         * lib/iconv_open-aix.gperf: New file.
87590         * lib/iconv_open-hpux.gperf: New file.
87591         * lib/iconv_open-irix.gperf: New file.
87592         * lib/iconv_open-osf.gperf: New file.
87593         * m4/iconv_open.m4: New file.
87594         * modules/linebreak (Depends-on): Add iconv_open.
87595         * modules/striconv (Depends-on): Likewise.
87596         * modules/striconveh (Depends-on): Likewise.
87597         * modules/unicodeio (Depends-on): Likewise.
87598         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87599         (iconv_t)(-1).
87600         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87601         conversion if cd is (iconv_t)(-1).
87602         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87603         is not possible.
87605 2007-03-31  Bruno Haible  <bruno@clisp.org>
87607         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87608         work on Solaris either. Protect also second use of "autodetect_jp".
87610 2007-03-31  Bruno Haible  <bruno@clisp.org>
87612         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87613         the function is not present.
87615 2007-03-31  Bruno Haible  <bruno@clisp.org>
87617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87618         the function is not present.
87620 2007-03-31  Bruno Haible  <bruno@clisp.org>
87622         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87623         a bug in HP-UX iconv_open().
87625 2007-03-31  Bruno Haible  <bruno@clisp.org>
87627         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87628         (Mathematics <math.h>): New section, add fpieee.
87629         (Input/output <stdio.h>): Add fseterr.
87630         (Mathematics <math.h>): New section, add printf-frexp.
87631         (Container data structures): Add sublist.
87632         (Core language properties): Add fpucw, inline.
87633         (Functions for greatest-width integer types <inttypes.h>): Add
87634         imaxabs, imaxdiv, inttypes.
87635         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87636         isnanl-nolibm, ldexp.
87637         (Mathematics <math.h>): New section, add printf-frexpl.
87638         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87639         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87640         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87641         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87642         (Unicode string functions): Add unistr/u*-mbtoucr.
87643         (Java): Add javacomp-script, javaexec-script.
87644         (C#): Add csharpcomp-script, csharpexec-script.
87645         (Support for building libraries and executables): Add havelib,
87646         relocatable-*.
87647         (Support for maintaining and releasing projects): Renamed from
87648         'Support for maintaining and release projects'. Add announce-gen.
87650 2007-03-31  Bruno Haible  <bruno@clisp.org>
87652         * README: Talk primarily about git.
87653         (git and CVS): Renamed from CVS.
87654         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87655         gnulib is available through git.
87656         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87658 2007-03-30  Bruno Haible  <bruno@clisp.org>
87660         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87661         * lib/poll_.h: Likewise.
87662         * lib/stat_.h: Likewise.
87663         * lib/sys_time_.h: Likewise.
87664         * lib/sysexit_.h: Likewise.
87665         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87666         * lib/stdbool_.h: Likewise.
87667         * lib/byteswap_.h: Add double-inclusion guard.
87669 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87671         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87673 2007-03-30  Karl Berry  <karl@gnu.org>
87675         * config/srclist-update: double space after USA in the license
87676         substitution, since that's how it's usually (?) written.
87678 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87680         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87681         reported by Bruno Haible.
87683 2007-03-29  Bruno Haible  <bruno@clisp.org>
87685         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87686         a bug in AIX iconv().
87688 2007-03-29  Bruno Haible  <bruno@clisp.org>
87690         * modules/ldexpl-tests: New file.
87691         * tests/test-ldexpl.c: New file.
87693 2007-03-29  Bruno Haible  <bruno@clisp.org>
87695         * lib/ldexpl.c: Include fpucw.h.
87696         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87697         multiplication.
87698         * modules/ldexpl (Depends-on): Add fpucw.
87700 2007-03-29  Bruno Haible  <bruno@clisp.org>
87702         * modules/ldexpl: New file.
87703         * m4/ldexpl.m4: New file.
87704         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87705         set.
87706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87707         REPLACE_LDEXPL.
87708         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87709         REPLACE_LDEXPL.
87710         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87711         gl_FUNC_LDEXPL_WORKS.
87712         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87713         * modules/mathl (Files): Remove lib/ldexpl.c.
87714         (Depends-on): Add ldexpl.
87716 2007-03-29  Bruno Haible  <bruno@clisp.org>
87718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87720 2007-03-29  Bruno Haible  <bruno@clisp.org>
87722         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87723         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87724         and possibly also HP-UX.
87725         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87726         work on AIX, IRIX, HP-UX, OSF/1.
87727         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87728         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87729         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87730         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87731         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87732         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87734 2007-03-29  Bruno Haible  <bruno@clisp.org>
87736         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87738 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87740         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87741         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87743 2007-03-29  Eric Blake  <ebb9@byu.net>
87745         * lib/acl-internal.h: Remove redundant include.
87746         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
87747         Cygwin when a file is locked.
87749 2007-03-29  Bruno Haible  <bruno@clisp.org>
87751         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
87752         file.
87753         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
87755 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
87758         try to remove a parent directory if the child couldn't be removed
87759         (except for the first rmdir, which could fail because the child
87760         doesn't exist).  Problem reported by Jeff Blaine in
87761         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
87763 2007-03-28  Bruno Haible  <bruno@clisp.org>
87765         * lib/striconveh.c (utf8conv_carefully): New function.
87766         (mem_cd_iconveh_internal): Invoke it.
87768 2007-03-28  Bruno Haible  <bruno@clisp.org>
87770         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
87771         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
87772         input.
87773         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
87774         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
87775         unistr/u8-uctomb.
87777 2007-03-28  Bruno Haible  <bruno@clisp.org>
87779         * modules/unistr/u8-mbtoucr: New file.
87780         * lib/unistr/u8-mbtoucr.c: New file.
87781         * modules/unistr/u16-mbtoucr: New file.
87782         * lib/unistr/u16-mbtoucr.c: New file.
87783         * modules/unistr/u16-mbtoucr: New file.
87784         * lib/unistr/u16-mbtoucr.c: New file.
87785         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
87787 2007-03-27  Simon Josefsson  <simon@josefsson.org>
87788             Bruno Haible  <bruno@clisp.org>
87790         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
87791         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
87792         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
87794         * m4/stdio_h.m4: Add stubs for vasprintf too.
87796         * modules/stdio: Support vasprintf in sed command.
87798         * modules/vasprintf: Depend on stdio for prototypes.  Remove
87799         vasprintf.h.  Add stdio module indicator.
87801         * lib/stdio_.h: Declare asprintf and vasprintf, based on
87802         vasprintf.h.
87804         * lib/vasprintf.h: File removed.
87806         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
87807         * lib/vasprintf.c: Ditto.
87808         * lib/xvasprintf.c: Ditto.
87809         * tests/test-vasprintf-posix.c: Ditto.
87810         * tests/test-vasprintf.c: Ditto.
87812 2007-03-27  Bruno Haible  <bruno@clisp.org>
87814         Make vasnprintf multithread-safe.
87815         * lib/vasnprintf.c (decimal_point_char): New function.
87816         (VASNPRINTF): Use it.
87817         Suggested by Simon Josefsson.
87819 2007-03-27  Eric Blake  <ebb9@byu.net>
87821         Support sub-second birthtime on cygwin.
87822         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
87823         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
87824         (get_stat_birthtime): Also work with st_birthtim.
87826 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
87828         * lib/stat-time.h (USE_BIRTHTIME): Remove.
87829         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
87830         (get_stat_birthtime_ns): Do not try to use "spare" fields.
87831         (get_stat_birthtime_ns): Simplify compile-time tests.
87832         (get_stat_birthtime): Change the API to look like
87833         get_stat_mtime etc., except return a negative tv_nsec on error.
87834         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
87835         Don't check for "spare" fields.
87836         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
87837         or for struct stat.st_birthtime, as these tests aren't used.
87838         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
87840 2007-03-27  Bruno Haible  <bruno@clisp.org>
87842         * lib/stat-time.h: Include <sys/stat.h>.
87844 2007-03-27  James Youngman  <jay@gnu.org>
87846         * lib/stat-time.h (get_stat_birthtime): New function for
87847           retrieving st_birthtime as provided by UFS2 (hence *BSD).
87848         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
87849           and its variants.
87850         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
87851         * modules/stat-time-test: New file.
87852         * tests/test-stat-time.c: New test, devised by Bruno Haible.
87854 2007-03-26  Bruno Haible  <bruno@clisp.org>
87856         Better support of signalling NaNs.
87857         * lib/atanl.c: Include isnanl.h.
87858         (atanl): Perform test for NaN at the beginning of the function and
87859         through a call to isnanl.
87860         * lib/cosl.c: Include isnanl.h.
87861         (cosl): Perform test for NaN at the beginning of the function and
87862         through a call to isnanl.
87863         * lib/ldexpl.c: Include isnanl.h.
87864         (ldexpl): Perform test for NaN through a call to isnanl.
87865         * lib/logl.c: Include isnanl.h.
87866         (logl): Perform test for NaN at the beginning of the function and
87867         through a call to isnanl.
87868         * lib/sinl.c: Include isnanl.h.
87869         (sinl): Perform test for NaN at the beginning of the function and
87870         through a call to isnanl.
87871         * lib/sqrtl.c: Include isnanl.h.
87872         (sqrtl): Perform test for NaN at the beginning of the function and
87873         through a call to isnanl.
87874         * lib/tanl.c: Include isnanl.h.
87875         (tanl): Perform test for NaN at the beginning of the function and
87876         through a call to isnanl.
87877         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87878         * modules/mathl (Depends-on): Add isnanl.
87880 2007-03-26  Eric Blake  <ebb9@byu.net>
87882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87883         regression in logic sense of previous patch.
87885 2007-03-26  Bruno Haible  <bruno@clisp.org>
87887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87888         unportable shell command "if ! ...".
87889         Reported by Ralf Wildenhues.
87891 2007-03-25  Bruno Haible  <bruno@clisp.org>
87893         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87894         <sysexits.h> file, and only add EX_CONFIG.
87895         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87896         absolute file name and whether it is sufficient. Substitute also
87897         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87898         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87899         ABSOLUTE_SYSEXITS_H into sysexits.h.
87901 2007-03-25  Bruno Haible  <bruno@clisp.org>
87903         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87904         hints is NULL.
87906 2007-03-25  Bruno Haible  <bruno@clisp.org>
87908         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87909         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87911 2007-03-25  Bruno Haible  <bruno@clisp.org>
87913         * lib/vasnprintf.c: Include langinfo.h.
87914         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87915         multithread-safe.
87916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
87918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
87924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87925         Reported by Simon Josefsson.
87927 2007-03-25  Bruno Haible  <bruno@clisp.org>
87929         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
87930         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
87931         * modules/vasnprintf (Depends-on): Add stdint.
87933 2007-03-25  Bruno Haible  <bruno@clisp.org>
87935         * modules/fpieee: New file.
87936         * m4/fpieee.m4: New file.
87937         * modules/isnan-nolibm (Depends-on): Add fpieee.
87938         * modules/isnanl-nolibm (Depends-on): Add fpieee.
87939         * modules/isnanl (Depends-on): Add fpieee.
87941 2007-03-25  Bruno Haible  <bruno@clisp.org>
87943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
87945 2007-03-25  Bruno Haible  <bruno@clisp.org>
87947         Avoid test failures on IRIX 6.5.
87948         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
87949         (main): Use it.
87950         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
87951         macros.
87952         (main): Use them.
87954 2007-03-25  Bruno Haible  <bruno@clisp.org>
87956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
87957         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
87958         exists but doesn't work.
87959         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
87960         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
87961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
87962         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
87963         math.h.
87965 2007-03-25  Bruno Haible  <bruno@clisp.org>
87967         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
87968         returns inf. Needed on IRIX 6.5.
87970 2007-03-25  Bruno Haible  <bruno@clisp.org>
87972         * tests/test-frexpl.c: Include isnanl-nolibm.h.
87973         (main): Use isnanl instead of x != x idiom.
87974         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
87976         * tests/test-frexp.c: Include isnan.h.
87977         (main): Use isnan instead of x != x idiom.
87978         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
87980 2007-03-25  Bruno Haible  <bruno@clisp.org>
87982         * tests/test-frexp.c (NaN): New function/macro.
87983         (main): Use it instead of 0.0 / 0.0.
87984         * tests/test-isnan.c (NaN): New function/macro.
87985         (main): Use it instead of 0.0 / 0.0.
87986         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
87987         (test_function): Use it instead of 0.0 / 0.0.
87988         * tests/test-vasprintf-posix.c (NaN): New function/macro.
87989         (test_function): Use it instead of 0.0 / 0.0.
87990         * tests/test-snprintf-posix.h (NaN): New function/macro.
87991         (test_function): Use it instead of 0.0 / 0.0.
87992         * tests/test-sprintf-posix.h (NaN): New function/macro.
87993         (test_function): Use it instead of 0.0 / 0.0.
87994         * tests/test-fprintf-posix.h (NaN): New function/macro.
87995         (test_function): Use it instead of 0.0 / 0.0.
87996         * tests/test-printf-posix.h (NaN): New function/macro.
87997         (test_function): Use it instead of 0.0 / 0.0.
87999         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
88001 2007-03-25  Bruno Haible  <bruno@clisp.org>
88003         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
88005 2007-03-25  Bruno Haible  <bruno@clisp.org>
88007         * lib/regexec.c (merge_state_with_log): Make static.
88009 2007-03-25  Bruno Haible  <bruno@clisp.org>
88011         * lib/trigl.c (kernel_rem_pio2): Make static.
88013 2007-03-25  Bruno Haible  <bruno@clisp.org>
88015         * lib/sincosl.c (sincosl_table): Make static.
88017 2007-03-25  Bruno Haible  <bruno@clisp.org>
88019         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
88020         if the compiler does not support C99.
88022 2007-03-25  Bruno Haible  <bruno@clisp.org>
88024         * modules/time (Makefile.am): Ensure all rule action lines start with a
88025         tab.
88027 2007-03-24  Bruno Haible  <bruno@clisp.org>
88029         * modules/tsearch-tests: New file.
88030         * tests/test-tsearch.sh: New file.
88031         * tests/test-tsearch.c: New file, mostly copied from glibc.
88033         * modules/search-tests: New file.
88034         * tests/test-search.c: New file.
88036         * modules/search: New file.
88037         * lib/search_.h: New file, incorporating lib/tsearch.h.
88038         * m4/search_h.m4: New file.
88039         * lib/tsearch.h: Remove file.
88040         * lib/tsearch.c: Include search.h instead of tsearch.h.
88041         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
88042         HAVE_TSEARCH.
88043         * modules/tsearch (Files): Remove lib/tsearch.h.
88044         (Depends-on): Add search.
88045         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
88046         (Include): Change tsearch.h into search.h.
88048 2007-03-24  Bruno Haible  <bruno@clisp.org>
88050         * modules/fpucw: New file.
88051         * lib/fpucw.h: New file.
88052         * lib/frexp.c: Include fpucw.h.
88053         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88054         (FUNC): Use them.
88055         * lib/printf-frexp.c: Include fpucw.h.
88056         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88057         (FUNC): Use them.
88058         * lib/vasnprintf.c: Include fpucw.h.
88059         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
88060         'long double' calculations.
88061         * tests/test-frexpl.c: Include fpucw.h.
88062         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88063         * tests/test-printf-frexpl.c: Include fpucw.h.
88064         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88065         * modules/frexpl (Depends-on): Add fpucw.
88066         * modules/printf-frexpl (Depends-on): Likewise.
88067         * modules/fprintf-posix (Depends-on): Likewise.
88068         * modules/snprintf-posix (Depends-on): Likewise.
88069         * modules/sprintf-posix (Depends-on): Likewise.
88070         * modules/vasnprintf-posix (Depends-on): Likewise.
88071         * modules/vasprintf-posix (Depends-on): Likewise.
88072         * modules/vfprintf-posix (Depends-on): Likewise.
88073         * modules/vsnprintf-posix (Depends-on): Likewise.
88074         * modules/vsprintf-posix (Depends-on): Likewise.
88075         * modules/frexpl-tests (Depends-on): Likewise.
88076         * modules/printf-frexpl-tests (Depends-on): Likewise.
88078 2007-03-24  Bruno Haible  <bruno@clisp.org>
88080         * lib/float+.h: New file.
88081         * lib/isnan.c: Include float+.h.
88082         (SIZE): New macro.
88083         (FUNC): Compare only SIZE bytes of the value.
88084         * lib/vasnprintf.c: Include float+.h.
88085         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
88086         SIZEOF_LDBL or SIZEOF_DBL bytes.
88087         * modules/isnan-nolibm (Files): Add lib/float+.h.
88088         * modules/isnanl-nolibm (Files): Add lib/float+.h.
88089         * modules/isnanl (Files): Add lib/float+.h.
88090         * modules/vasnprintf (Files): Add lib/float+.h.
88092 2007-03-24  Bruno Haible  <bruno@clisp.org>
88094         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
88095         include isnanl-nolibm.h.
88097 2007-03-24  Bruno Haible  <bruno@clisp.org>
88099         * tests/test-read-file.c (main): Don't produce spurious output for
88100         expected situations. Make the test fail if it encountered unexpected
88101         results.
88103 2007-03-24  Bruno Haible  <bruno@clisp.org>
88105         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
88106         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
88108 2007-03-24  Bruno Haible  <bruno@clisp.org>
88110         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
88112 2007-03-24  Bruno Haible  <bruno@clisp.org>
88114         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
88115         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
88117         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
88118         * modules/utf8-ucs4: Turn into a symbolic link to module
88119         unistr/u8-mbtouc.
88121         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
88122         utf8-ucs4-unsafe.
88123         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
88124         unistr/u8-mbtouc-unsafe.
88126         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
88127         * modules/utf16-ucs4: Turn into a symbolic link to module
88128         unistr/u16-mbtouc.
88130         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
88131         utf16-ucs4-unsafe.
88132         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
88133         unistr/u16-mbtouc-unsafe.
88135         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
88136         * modules/ucs4-utf8: Turn into a symbolic link to module
88137         unistr/u8-ubtomb.
88139         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
88140         * modules/ucs4-utf16: Turn into a symbolic link to module
88141         unistr/u16-ubtomb.
88143 2007-03-24  Bruno Haible  <bruno@clisp.org>
88145         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
88146         Enable the function only if HAVE_INLINE.
88147         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
88148         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88149         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
88150         Enable the function only if HAVE_INLINE.
88151         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
88152         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88153         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
88154         Enable the function only if HAVE_INLINE.
88155         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
88156         Enable the function only if HAVE_INLINE.
88157         * modules/utf8-ucs4: Update.
88158         * modules/utf8-ucs4-unsafe: Update.
88159         * modules/utf16-ucs4: Update.
88160         * modules/utf16-ucs4-unsafe: Update.
88161         * modules/ucs4-utf8: Update.
88162         * modules/ucs4-utf16: Update.
88164 2007-03-24  Bruno Haible  <bruno@clisp.org>
88166         * lib/utf8-ucs4.h: Remove file.
88167         * lib/utf8-ucs4-unsafe.h: Remove file.
88168         * lib/utf16-ucs4.h: Remove file.
88169         * lib/utf16-ucs4-unsafe.h: Remove file.
88170         * lib/ucs4-utf8.h: Remove file.
88171         * lib/ucs4-utf16.h: Remove file.
88172         * lib/unistr.h: Include their previous contents.
88173         * m4/utf-ucs4.m4: Remove file.
88174         * m4/ucs4-utf.m4: Remove file.
88175         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
88176         (Depends-on): Add unistr/base.
88177         (configure.ac): Remove gl_UTF_UCS4.
88178         (Makefile.am): Update.
88179         (Include): Change to unistr.h.
88180         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
88181         (Depends-on): Add unistr/base.
88182         (configure.ac): Remove gl_UTF_UCS4.
88183         (Makefile.am): Update.
88184         (Include): Change to unistr.h.
88185         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
88186         (Depends-on): Add unistr/base.
88187         (configure.ac): Remove gl_UTF_UCS4.
88188         (Makefile.am): Update.
88189         (Include): Change to unistr.h.
88190         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
88191         (Depends-on): Add unistr/base.
88192         (configure.ac): Remove gl_UTF_UCS4.
88193         (Makefile.am): Update.
88194         (Include): Change to unistr.h.
88195         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
88196         (Depends-on): Add unistr/base.
88197         (configure.ac): Remove gl_UCS4_UTF.
88198         (Makefile.am): Update.
88199         (Include): Change to unistr.h.
88200         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
88201         (Depends-on): Add unistr/base.
88202         (configure.ac): Remove gl_UCS4_UTF.
88203         (Makefile.am): Update.
88204         (Include): Change to unistr.h.
88205         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
88206         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
88207         utf8-ucs4-unsafe.h.
88208         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
88209         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
88210         utf16-ucs4-unsafe.h.
88211         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
88212         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
88213         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
88214         * lib/unistr/u8-strchr.c: Likewise.
88215         * lib/unistr/u8-strrchr.c: Likewise.
88216         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
88217         * lib/unistr/u16-strchr.c: Likewise.
88218         * lib/unistr/u16-strrchr.c: Likewise.
88219         * lib/striconveh.c: Update.
88220         * lib/linebreak.c: Update.
88222 2007-03-24  Bruno Haible  <bruno@clisp.org>
88224         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
88225         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
88227 2007-03-22  Bruno Haible  <bruno@clisp.org>
88229         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
88231 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88233         * MODULES.html.sh (File system functions): New module write-any-file.
88234         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
88235         * m4/write-any-file.m4: New files.
88237 2007-03-23  Eric Blake  <ebb9@byu.net>
88239         * gnulib-tool: Rearrange space-tab sequences, since some editors
88240         like to eat them.
88242 2007-03-23  Eric Blake  <ebb9@byu.net>
88244         * lib/version-etc.c (version_etc_va): Update license wording to
88245         be more concise.  Recommended by Richard Stallman.
88247 2007-03-22  Bruno Haible  <bruno@clisp.org>
88249         * lib/poll.c (MSG_PEEK): New fallback definition.
88251 2007-03-22  Bruno Haible  <bruno@clisp.org>
88253         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
88254         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
88255         (main): Update.
88256         Fixes a compilation error on BeOS.
88258 2007-03-22  Bruno Haible  <bruno@clisp.org>
88260         * modules/frexpl-tests: New file.
88261         * tests/test-frexpl.c: New file.
88263         * modules/frexpl: New file.
88264         * m4/frexpl.m4: New file.
88265         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
88266         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
88267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
88268         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
88269         (Depends-on): Add frexpl. Remove isnanl-nolibm.
88270         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
88272 2007-03-22  Bruno Haible  <bruno@clisp.org>
88274         * lib/frexpl.c: Share code with lib/frexp.c.
88275         * modules/mathl (Files): Add lib/frexp.c.
88276         (Depends-on): Add isnanl-nolibm.
88278 2007-03-22  Bruno Haible  <bruno@clisp.org>
88280         * modules/printf-frexp (Files): Add m4/frexp.m4.
88281         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
88282         only if the found frexp function actually works.
88284 2007-03-22  Bruno Haible  <bruno@clisp.org>
88286         * lib/frexp.c: Remove older implementation that uses divisions.
88288 2007-03-21  Bruno Haible  <bruno@clisp.org>
88290         * modules/frexp-tests: New file.
88291         * tests/test-frexp.c: New file.
88293         * modules/frexp: New file.
88294         * lib/frexp.c: New file.
88295         * m4/frexp.m4: New file.
88296         * lib/math_.h (frexp): New declaration.
88297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
88298         REPLACE_FREXP.
88299         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
88301 2007-03-21  Bruno Haible  <bruno@clisp.org>
88303         * modules/isnanl-tests: New file.
88304         * tests/test-isnanl.c: New file.
88306         * modules/isnanl: New file.
88307         * lib/isnanl.h: New file.
88308         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
88309         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
88310         gl_FUNC_ISNANL_WORKS.
88311         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
88312         New macros.
88314 2007-03-21  Bruno Haible  <bruno@clisp.org>
88316         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
88317         lib/isnanl.h.
88318         (Include): Update.
88319         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
88320         * lib/vasnprintf.c: Update.
88321         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
88322         tests/test-isnanl.h, remove tests/test-isnanl.c.
88323         (Makefile.am): Update.
88324         * tests/test-isnanl-nolibm.c: New file.
88325         * tests/test-isnanl.h: New file.
88326         * tests/test-isnanl.c: Remove file.
88328 2007-03-21  Jim Meyering  <jim@meyering.net>
88330         When trying to open ".", treat ESTALE like EACCES.
88331         * lib/savewd.c (savewd_save): Resort to forking not just upon
88332         failure with EACCES, but also when errno is ESTALE.
88334 2007-03-20  Bruno Haible  <bruno@clisp.org>
88336         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
88337         Needed on AIX 5.1. Reported by Matthew Woehlke.
88339 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88341         Suggestions by Bruno Haible:
88342         * lib/acl-internal.h: Include "gettext.h" rather than rolling
88343         our own.
88344         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
88345         * modules/acl (Depends-on): Add gettext.
88347 2007-03-19  Bruno Haible  <bruno@clisp.org>
88349         * modules/iconvme: Remove file.
88350         * lib/iconvme.h: Remove file.
88351         * lib/iconvme.c: Remove file.
88352         * m4/iconvme.m4: Remove file.
88354 2007-03-19  Bruno Haible  <bruno@clisp.org>
88356         * doc/relocatable-maint.texi: Break long shell script line.
88357         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88359 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88361         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
88362         handle file_has_acl.
88363         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
88364         * lib/acl.c: Move header inclusions and related macro defns into
88365         lib/acl-internal.h.
88366         (S_ISLNK): Remove defn, since that's now done for us.
88367         (file_has_acl): Move to lib/file-has-acl.c.
88368         Call acl_trivial if available.  This is the crucial part of the fix.
88369         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
88370         shared within the library.  Rewrite a bit, partly to make it compatible
88371         with the GNU coding style.
88372         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
88373         Remove unnecessary double-quotes.
88374         Don't test for acl_to_text; the build will catch that.
88375         Replace acl_entries if it doesn't exist and it is needed.
88376         Check for -lsec and acl_trivial (as used on Solaris 10).
88377         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
88378         lib/file-has-acl.c.
88379         (Depends-on): Add sys_stat, for S_ISLNK.
88381 2007-03-19  Ben Pfaff  <blp@gnu.org>
88383         * doc/gnulib.texi: Fix typos.
88384         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88386 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88388         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
88389         If size is zero here, buf must be zero.
88391 2007-03-19  Simon Josefsson  <simon@josefsson.org>
88393         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
88394         <bruno@clisp.org>.
88396 2007-03-18  Bruno Haible  <bruno@clisp.org>
88398         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
88399         Suggested by Eric Blake.
88401 2007-03-18  Ben Pfaff  <blp@gnu.org>
88403         * doc/relocatable.texi: Recommend using as prefix a directory
88404         that does not exist and will never be created.  Based on
88405         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
88406         and others.
88408 2007-03-17  Bruno Haible  <bruno@clisp.org>
88410         * lib/fchownat.c: Include lchown.h.
88412 2007-03-17  Bruno Haible  <bruno@clisp.org>
88414         Fix endless loop when the given allocated size was > INT_MAX.
88415         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
88416         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
88417         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
88418         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
88419         * lib/sprintf.c (sprintf): Likewise.
88421 2007-03-17  Bruno Haible  <bruno@clisp.org>
88423         * tests/test-argp-2.sh (func_compare): Output a context diff.
88425 2007-03-17  Bruno Haible  <bruno@clisp.org>
88427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
88428         locale's decimal-point character.
88430 2007-03-17  Bruno Haible  <bruno@clisp.org>
88432         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
88433         before comparing it. Needed because on some platforms (e.g. x86) a
88434         'long double' occupies less bytes than sizeof (long double).
88436 2007-03-17  Bruno Haible  <bruno@clisp.org>
88438         * tests/test-crc.c (main): Make printf statements 64-bit clean.
88439         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
88440         * tests/test-getaddrinfo.c (simple): Likewise.
88441         * tests/test-read-file.c (main): Likewise.
88443 2007-03-17  Bruno Haible  <bruno@clisp.org>
88445         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
88447 2007-03-17  Bruno Haible  <bruno@clisp.org>
88449         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
88450         unused variable.
88452 2007-03-17  Bruno Haible  <bruno@clisp.org>
88454         * tests/test-c-strcasecmp.c: Include c-strcase.h.
88455         * tests/test-c-strncasecmp.c: Likewise.
88457 2007-03-17  Bruno Haible  <bruno@clisp.org>
88459         * modules/stdlib (Depends-on): Add unistd.
88460         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
88461         Needed for MacOS X 10.3.
88463 2007-03-17  Bruno Haible  <bruno@clisp.org>
88465         * lib/unistr/u-strdup.h: Include <stdlib.h>.
88467 2007-03-17  Bruno Haible  <bruno@clisp.org>
88469         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
88471 2007-03-17  Bruno Haible  <bruno@clisp.org>
88473         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
88474         to reflect files copied from gnulib (with or without modifications).
88475         Suggested by Jim Meyering.
88477 2007-03-17  Eric Blake  <ebb9@byu.net>
88479         * NEWS: Document stdlib change from 2007-02-18.
88481 2007-03-17  Jim Meyering  <jim@meyering.net>
88483         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
88484         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
88485         someone uses a name containing shell meta-characters.
88486         Reported by Alfred M. Szmidt.
88488         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
88490 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88492         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
88493         and copy gettext configuration files only if configure.ac contains
88494         a use of AM_GNU_GETTEXT_VERSION.
88496 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88498         * build-aux/bootstrap (gnulib_name): New variable.
88499         (gnulib_tool_options): Use it.
88501 2007-03-13  Simon Josefsson  <simon@josefsson.org>
88503         * tests/test-des.c: Use new namespace.
88505 2007-03-15  Bruno Haible  <bruno@clisp.org>
88507         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
88508         Reported by James Youngman <jay@gnu.org>.
88510 2007-03-15  Bruno Haible  <bruno@clisp.org>
88512         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
88513         declared prototype. Needed with cc on OSF/1 5.1.
88515 2007-03-15  Bruno Haible  <bruno@clisp.org>
88517         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
88518         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
88519         (struct gl_list_implementation): Add dispose_fn argument to the
88520         'create_empty', 'create' methods.
88521         (struct gl_list_impl_base): Add field 'dispose_fn'.
88522         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
88523         argument.
88524         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
88525         dispose_fn argument.
88526         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
88527         dispose_fn on the dropped values.
88528         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
88529         dispose_fn argument.
88530         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
88531         dropped values.
88532         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
88533         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88534         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
88535         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88536         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
88537         argument.
88538         (gl_tree_list_free): Call dispose_fn on the dropped values.
88539         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
88540         the dropped values.
88541         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88542         Add dispose_fn argument.
88543         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
88544         Call dispose_fn on the dropped values.
88545         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
88546         Add dispose_fn argument.
88547         (gl_sublist_create): Initialize the 'dispose_fn' field.
88548         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
88549         * tests/test-array_list.c (main): Update.
88550         * tests/test-carray_list.c (main): Update.
88551         * tests/test-avltree_list.c (main): Update.
88552         * tests/test-rbtree_list.c (main): Update.
88553         * tests/test-avltreehash_list.c (main): Update.
88554         * tests/test-rbtreehash_list.c (main): Update.
88555         * tests/test-linked_list.c (main): Update.
88556         * tests/test-linkedhash_list.c (main): Update.
88557         * tests/test-array_oset.c (main): Update.
88559 2007-03-15  Bruno Haible  <bruno@clisp.org>
88561         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
88562         (gl_oset_create_empty): Add dispose_fn argument.
88563         (struct gl_oset_implementation): Add dispose_fn argument to
88564         'create_empty' method.
88565         (struct gl_oset_impl_base): Add dispose_fn field.
88566         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
88567         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
88568         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
88569         values.
88570         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
88571         (gl_tree_oset_free): Call dispose_fn on the dropped values.
88572         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88573         dropped value.
88574         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88575         dropped value.
88576         * tests/test-array_oset.c (main): Update.
88577         * tests/test-avltree_oset.c (main): Update.
88578         * tests/test-rbtree_oset.c (main): Update.
88579         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
88581 2007-03-13  Bruno Haible  <bruno@clisp.org>
88583         * tests/test-stdbool.c (i): Update after last patch.
88585 2007-03-12  Bruno Haible  <bruno@clisp.org>
88587         * lib/quotearg.c: Include <wctype.h> early, before the definition of
88588         the iswprint macro. Needed on Solaris 2.5.1.
88590 2007-03-12  Bruno Haible  <bruno@clisp.org>
88592         * tests/test-printf-frexp.c (main): Declare x as volatile.
88594 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88596         * doc/gnulib.texi (Build robot for gnulib): New section.
88598 2007-03-12  Jim Meyering  <jim@meyering.net>
88600         * build-aux/bootstrap: New file.
88601         * build-aux/bootstrap.conf: New file, from coreutils.
88603 2007-03-11  Bruno Haible  <bruno@clisp.org>
88605         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88607 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88609         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88610         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88611         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88613 2007-03-11  Bruno Haible  <bruno@clisp.org>
88615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88616         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88618 2007-03-11  Bruno Haible  <bruno@clisp.org>
88620         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88621         formula. Needed for SunPRO C 5.0.
88623 2007-03-11  Bruno Haible  <bruno@clisp.org>
88625         * modules/long-options (Depends-on): Add getopt.
88627 2007-03-11  Bruno Haible  <bruno@clisp.org>
88629         * modules/modechange (Depends-on): Add stdbool.
88631 2007-03-11  Bruno Haible  <bruno@clisp.org>
88633         * modules/i-ring (Depends-on): Add stdbool.
88635 2007-03-11  Bruno Haible  <bruno@clisp.org>
88637         * modules/gc-des (Depends-on): Add stdbool.
88639 2007-03-11  Bruno Haible  <bruno@clisp.org>
88641         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88643 2007-03-11  Bruno Haible  <bruno@clisp.org>
88645         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88647 2007-03-11  Bruno Haible  <bruno@clisp.org>
88649         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88651 2007-03-11  Bruno Haible  <bruno@clisp.org>
88653         * lib/vasnprintf.c (sprintf): Undefine.
88655 2007-03-11  Bruno Haible  <bruno@clisp.org>
88657         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88658         initializers in SunPRO C and Compaq C compilers.
88660 2007-03-11  Bruno Haible  <bruno@clisp.org>
88662         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88663         decrementing code ANSI C compliant.
88665 2007-03-11  Bruno Haible  <bruno@clisp.org>
88667         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88668         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88670 2007-03-11  Bruno Haible  <bruno@clisp.org>
88672         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88673         <stdbool.h> substitute doesn't pass.
88675 2007-03-11  Bruno Haible  <bruno@clisp.org>
88677         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88679 2007-03-11  Bruno Haible  <bruno@clisp.org>
88681         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88682         script, for submission to autobuild.josefsson.org.
88684 2007-03-10  Bruno Haible  <bruno@clisp.org>
88686         * modules/canonicalize-lgpl-tests: New file.
88687         * tests/test-canonicalize-lgpl.sh: New file.
88688         * tests/test-canonicalize-lgpl.c: New file.
88690         * modules/c-strcase-tests: New file.
88691         * tests/test-c-strcase.sh: New file.
88692         * tests/test-c-strcasecmp.c: New file.
88693         * tests/test-c-strncasecmp.c: New file.
88695         * modules/atexit-tests: New file.
88696         * tests/test-atexit.sh: New file.
88697         * tests/test-atexit.c: New file.
88699 2007-03-10  Bruno Haible  <bruno@clisp.org>
88701         * tests/test-binary-io.sh: Use temporary filenames that are not so
88702         likely to clash with those of other tests (in a parallel make).
88703         * tests/test-binary-io.c: Likewise.
88705 2007-03-10  Bruno Haible  <bruno@clisp.org>
88707         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88708         fallback; use #error instead.
88709         Suggested by Simon Josefsson.
88711 2007-03-10  Bruno Haible  <bruno@clisp.org>
88713         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88714         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88715         first and the last.
88717 2007-03-10  Bruno Haible  <bruno@clisp.org>
88719         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88721 2007-03-10  Bruno Haible  <bruno@clisp.org>
88723         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88724         "make distcheck".
88725         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88726         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88727         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88729 2007-03-10  Bruno Haible  <bruno@clisp.org>
88731         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88732         variable.
88733         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88734         variable.
88736 2007-03-09  Eric Blake  <ebb9@byu.net>
88737         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88739         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88740         types are not being provided by gnulib.
88741         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88742         types are supported.
88744 2007-03-10  Bruno Haible  <bruno@clisp.org>
88746         * lib/stdio_.h (__attribute__): New macro.
88747         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
88748         vsprintf): Specify __attribute__ __format__ for GCC.
88749         Suggested by Eric Blake.
88751 2007-03-09  Bruno Haible  <bruno@clisp.org>
88753         * modules/printf-posix-tests: New file.
88754         * tests/test-printf-posix.sh: New file.
88755         * tests/test-printf-posix.c: New file.
88757         * modules/printf-posix: New file.
88758         * lib/printf.c: New file.
88759         * m4/printf-posix-rpl.m4: New file.
88760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
88761         REPLACE_PRINTF.
88762         * lib/stdio_.h (printf): New declaration.
88763         (format, __format__, ____printf____, ____scanf____, ____strftime____,
88764         ____strfmon____): New macros.
88765         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
88766         REPLACE_PRINTF.
88768 2007-03-09  Bruno Haible  <bruno@clisp.org>
88770         * tests/test-vasnprintf-posix2.sh: New file.
88771         * tests/test-vasnprintf-posix2.c: New file.
88772         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
88773         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
88774         (Makefile.am): Activate test-vasnprintf-posix2.sh.
88776         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
88777         a locale dependent decimal point, rather than always '.'.
88779 2007-03-09  Eric Blake  <ebb9@byu.net>
88781         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
88782         spite of platforms like Tandem/NSK that define it to -1.
88784 2007-03-08  Bruno Haible  <bruno@clisp.org>
88786         * modules/vprintf-posix-tests: New file.
88787         * tests/test-vprintf-posix.sh: New file.
88788         * tests/test-vprintf-posix.c: New file.
88789         * tests/test-printf-posix.h: New file.
88791         * modules/vprintf-posix: New file.
88792         * lib/vprintf.c: New file.
88793         * m4/vprintf-posix.m4: New file.
88794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
88795         REPLACE_VPRINTF.
88796         * lib/stdio_.h (vprintf): New declaration.
88797         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
88798         REPLACE_VPRINTF.
88800 2007-03-08  Bruno Haible  <bruno@clisp.org>
88802         * modules/fprintf-posix-tests: New file.
88803         * tests/test-fprintf-posix.sh: New file.
88804         * tests/test-fprintf-posix.c: New file.
88806         * modules/fprintf-posix: New file.
88807         * lib/fprintf.c: New file.
88808         * m4/fprintf-posix.m4: New file.
88809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
88810         REPLACE_FPRINTF.
88811         * lib/stdio_.h (fprintf): New declaration.
88812         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
88813         REPLACE_FPRINTF.
88815 2007-03-08  Bruno Haible  <bruno@clisp.org>
88817         * modules/vfprintf-posix-tests: New file.
88818         * tests/test-vfprintf-posix.sh: New file.
88819         * tests/test-vfprintf-posix.c: New file.
88820         * tests/test-fprintf-posix.h: New file.
88821         * tests/test-fprintf-posix.out: New file.
88823         * modules/vfprintf-posix: New file.
88824         * lib/vfprintf.c: New file.
88825         * m4/vfprintf-posix.m4: New file.
88826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
88827         REPLACE_VFPRINTF.
88828         * lib/stdio_.h (vfprintf): New declaration.
88829         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
88830         REPLACE_VFPRINTF.
88832 2007-03-08  Bruno Haible  <bruno@clisp.org>
88834         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
88836 2007-03-08  Bruno Haible  <bruno@clisp.org>
88838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
88839         instead of 'expr' invocations.
88840         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88841         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88842         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88845         Suggested by Paul Eggert.
88847 2007-03-08  Bruno Haible  <bruno@clisp.org>
88849         * modules/fseterr-tests: New file.
88850         * tests/test-fseterr.c: New file.
88852         * modules/fseterr: New file.
88853         * lib/fseterr.h: New file.
88854         * lib/fseterr.c: New file.
88856 2007-03-08  Bruno Haible  <bruno@clisp.org>
88858         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88859         * lib/getopt_.h: Likewise.
88860         * lib/mbswidth.h: Likewise.
88861         * lib/setenv.h: Likewise.
88862         * lib/vasnprintf.h: Likewise.
88863         * lib/vasprintf.h: Likewise.
88864         * lib/verror.h: Likewise.
88865         * lib/xsetenv.h: Likewise.
88866         * lib/xvasprintf.h: Likewise.
88868 2007-03-08  Jim Meyering  <jim@meyering.net>
88870         * users.txt: Add parted.
88872         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88874 2007-03-07  Bruno Haible  <bruno@clisp.org>
88876         * m4/printf.m4: Make the shell script snippets copy&pastable.
88878 2007-03-02  Bruno Haible  <bruno@clisp.org>
88880         * lib/netinet_in_.h: New file.
88881         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88882         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88883         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88884         (Depends-on): Add absolute-header.
88885         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88886         into netinet/in.h.
88888 2007-03-03  Bruno Haible  <bruno@clisp.org>
88890         * lib/sys_select_.h: New file.
88891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88892         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88893         * modules/sys_select (Files): Add lib/sys_select_.h.
88894         (Depends-on): Add absolute-header.
88895         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88896         into sys/select.h.
88898 2007-03-02  Bruno Haible  <bruno@clisp.org>
88900         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88901         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88902         values.
88903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88904         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88905         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88906         * modules/sys_socket (Depends-on): Add absolute-header.
88907         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88908         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88909         (Include): Remove requirement of inclusion of <sys/types.h>.
88911 2007-03-02  Bruno Haible  <bruno@clisp.org>
88913         * lib/byteswap_.h (bswap_32): Fix formula.
88915 2007-03-06  Bruno Haible  <bruno@clisp.org>
88917         * modules/sprintf-posix-tests: New file.
88918         * tests/test-sprintf-posix.c: New file.
88920         * modules/sprintf-posix: New file.
88921         * lib/sprintf.c: New file.
88922         * m4/sprintf-posix.m4: New file.
88923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
88924         REPLACE_SPRINTF.
88925         * lib/stdio_.h (sprintf): New declaration.
88926         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
88927         REPLACE_SPRINTF.
88929 2007-03-06  Bruno Haible  <bruno@clisp.org>
88931         * modules/vsprintf-posix-tests: New file.
88932         * tests/test-vsprintf-posix.c: New file.
88933         * tests/test-sprintf-posix.h: New file.
88935         * modules/vsprintf-posix: New file.
88936         * lib/vsprintf.c: New file.
88937         * m4/vsprintf-posix.m4: New file.
88938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
88939         REPLACE_VSPRINTF.
88940         * lib/stdio_.h (vsprintf): New declaration.
88941         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
88942         REPLACE_VSPRINTF.
88944 2007-03-06  Bruno Haible  <bruno@clisp.org>
88946         * modules/vsnprintf (Depend-on): Remove minmax.
88948 2007-03-06  Bruno Haible  <bruno@clisp.org>
88950         * modules/snprintf-posix-tests: New file.
88951         * tests/test-snprintf-posix.c: New file.
88953         * modules/snprintf-posix: New file.
88954         * m4/snprintf-posix.m4: New file.
88955         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
88956         gl_FUNC_SNPRINTF.
88957         (gl_FUNC_SNPRINTF): Invoke it.
88958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
88959         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
88960         is set.
88961         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
88963 2007-03-06  Bruno Haible  <bruno@clisp.org>
88965         * modules/vsnprintf-posix-tests: New file.
88966         * tests/test-vsnprintf-posix.c: New file.
88967         * tests/test-snprintf-posix.h: New file.
88969         * modules/vsnprintf-posix: New file.
88970         * m4/vsnprintf-posix.m4: New file.
88971         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
88972         gl_FUNC_VSNPRINTF.
88973         (gl_FUNC_VSNPRINTF): Invoke it.
88974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
88975         * lib/stdio_.h (vsnprintf): Define as a replacement if
88976         REPLACE_VSNPRINTF is set.
88977         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
88979 2007-03-06  Bruno Haible  <bruno@clisp.org>
88981         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
88982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
88984 2007-03-06  Bruno Haible  <bruno@clisp.org>
88986         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
88987         (asinl): Declare also if HAVE_DECL_ASINL is set.
88988         (atanl): Declare also if HAVE_DECL_ATANL is set.
88989         (ceill): Declare also if HAVE_DECL_CEILL is set.
88990         (cosl): Declare also if HAVE_DECL_COSL is set.
88991         (expl): Declare also if HAVE_DECL_EXPL is set.
88992         (floorl): Declare also if HAVE_DECL_FLOORL is set.
88993         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
88994         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
88995         (logl): Declare also if HAVE_DECL_LOGL is set.
88996         (sinl): Declare also if HAVE_DECL_SINL is set.
88997         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
88998         (tanl): Declare also if HAVE_DECL_TANL is set.
88999         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
89000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
89001         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
89002         declaration of frexpl, ldexpl.
89003         * modules/printf-frexpl (Depends-on): Add math.
89004         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
89006 2007-03-05  Bruno Haible  <bruno@clisp.org>
89008         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
89009         frexpl and ldexpl are declared.
89010         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
89012 2007-03-05  Bruno Haible  <bruno@clisp.org>
89014         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
89015         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
89017 2007-03-05  Bruno Haible  <bruno@clisp.org>
89019         * lib/stdio_.h: Include <stddef.h>.
89021 2007-03-05  Bruno Haible  <bruno@clisp.org>
89023         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
89025 2007-03-05  Bruno Haible  <bruno@clisp.org>
89027         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
89028         NetBSD 4, from Ralf Wildenhues.
89030 2007-03-04  Bruno Haible  <bruno@clisp.org>
89032         * lib/vasprintf.h: Update #if logic for the case when the functions
89033         exist but are overridden.
89035 2007-03-04  Bruno Haible  <bruno@clisp.org>
89037         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
89038         implementations: glibc-2.4 and MacOS X 10.3.
89039         * tests/test-vasnprintf-posix.c (test_function): Test also the case
89040         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
89041         * tests/test-vasprintf-posix.c (test_function): Likewise.
89043 2007-03-04  Bruno Haible  <bruno@clisp.org>
89045         * modules/vasprintf-posix-tests: New file.
89046         * tests/test-vasprintf-posix.c: New file.
89048         * modules/vasprintf-posix: New file.
89049         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
89050         defined.
89051         * m4/vasprintf-posix.m4: New file.
89052         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
89053         gl_FUNC_VASPRINTF.
89054         (gl_FUNC_VASPRINTF): Invoke it.
89055         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
89056         here.
89057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
89059 2007-03-04  Bruno Haible  <bruno@clisp.org>
89061         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
89062         REPLACE_GETTIMEOFDAY.
89063         * modules/sys_time (Makefile.am): Likewise.
89064         * m4/sys_time_h.m4: Likewise.
89065         * m4/gettimeofday.m4: Likewise.
89067 2007-03-04  Bruno Haible  <bruno@clisp.org>
89069         * modules/vasnprintf-posix-tests: New file.
89070         * tests/test-vasnprintf-posix.c: New file.
89072         * modules/vasnprintf-posix: New file.
89073         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
89074         printf-frexpl.h.
89075         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
89076         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
89077         REPLACE_VASNPRINTF is defined.
89078         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
89079         gl_FUNC_VASNPRINTF.
89080         (gl_FUNC_VASNPRINTF): Invoke it.
89081         * m4/vasnprintf-posix.m4: New file.
89082         * m4/printf.m4: New file.
89084 2007-03-04  Bruno Haible  <bruno@clisp.org>
89086         Compile progreloc.c only if --enable-relocatable is specified.
89087         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
89088         if --enable-relocatable was specified.
89089         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
89090         lib_SOURCES.
89092 2007-03-04  Jim Meyering  <jim@meyering.net>
89094         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
89095         Use it consistently, rather than enumerating errno constants.
89097 2007-03-04  Bruno Haible  <bruno@clisp.org>
89099         * modules/xvasprintf-tests: New file.
89100         * tests/test-xvasprintf.c: New file.
89102         * modules/vasprintf-tests: New file.
89103         * tests/test-vasprintf.c: New file.
89105         * modules/vasnprintf-tests: New file.
89106         * tests/test-vasnprintf.c: New file.
89108         * modules/vsnprintf-tests: New file.
89109         * tests/test-vsnprintf.c: New file.
89111         * modules/snprintf-tests: New file.
89112         * tests/test-snprintf.c: New file.
89114 2007-03-04  Bruno Haible  <bruno@clisp.org>
89116         Compile relocatable.c only if --enable-relocatable is specified.
89117         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
89118         gl_RELOCATABLE_LIBRARY.
89119         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
89120         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
89121         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
89122         gl_RELOCATABLE_LIBRARY.
89123         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
89124         (Makefile.am): Remove lib_SOURCES.
89125         * modules/relocatable-lib-lgpl (configure.ac): Invoke
89126         gl_RELOCATABLE_LIBRARY.
89127         (Makefile.am): Remove lib_SOURCES.
89128         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
89129         always.
89130         * modules/relocatable-prog-wrapper (configure.ac): Invoke
89131         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
89133 2007-03-04  Bruno Haible  <bruno@clisp.org>
89135         * modules/argmatch-tests: New file.
89136         * tests/test-argmatch.c: New file.
89138         * tests/test-allocsa.c (main): Halve the number of loop runs.
89140         * modules/alloca-opt-tests: New file.
89141         * tests/test-alloca-opt.c: New file.
89143 2007-03-04  Jim Meyering  <jim@meyering.net>
89145         Work around difference between Linux ACLs and Solaris 10 ZFS.
89146         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
89147         for EINVAL.
89149 2007-03-03  Bruno Haible  <bruno@clisp.org>
89151         * modules/relocatable-prog (Depends-on): Add back progreloc's
89152         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
89154 2007-03-03  Bruno Haible  <bruno@clisp.org>
89156         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
89157         * modules/relocatable-lib: New file.
89159 2007-03-03  Bruno Haible  <bruno@clisp.org>
89161         * modules/relocatable-prog: Renamed from modules/relocatable.
89162         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
89164 2007-03-03  Bruno Haible  <bruno@clisp.org>
89166         * modules/relocatable-script (Files): Add doc/relocatable.texi,
89167         m4/relocatable-lib.m4.
89168         (Depends-on): Remove 'relocatable'.
89169         (configure.ac): Add gl_RELOCATABLE_NOP.
89171 2007-03-03  Bruno Haible  <bruno@clisp.org>
89173         * modules/relocatable-prog-wrapper: New file.
89174         * modules/relocatable (Depends-on): Add it. Remove all other
89175         dependencies except progname.
89176         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
89178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
89179         (gl_FUNC_STRERROR): Nop.
89180         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
89182         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
89183         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
89185         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
89186         (gl_FUNC_READLINK): Update.
89188         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
89190 2007-03-03  Bruno Haible  <bruno@clisp.org>
89192         * lib/xreadlink.c: Include <unistd.h> unconditionally.
89193         * modules/xreadlink (Depends-on): Add unistd.
89194         * modules/xreadlink-with-size (Depends-on): Likewise.
89196 2007-03-03  Bruno Haible  <bruno@clisp.org>
89198         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
89199         extracted from gt_FUNC_SETENV.
89200         (gt_FUNC_SETENV): Remove macro.
89201         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
89202         remove gt_FUNC_SETENV.
89204 2007-03-03  Bruno Haible  <bruno@clisp.org>
89206         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
89207         ENABLE_RELOCATABLE here.
89208         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
89210 2007-03-03  Bruno Haible  <bruno@clisp.org>
89212         * modules/rbtreehash-list-tests (Depends-on): Add progname.
89213         * tests/test-rbtreehash_list.c: Include progname.h.
89214         (main): Call set_program_name.
89216         * modules/rbtree-oset-tests (Depends-on): Add progname.
89217         * tests/test-rbtree_oset.c: Include progname.h.
89218         (main): Call set_program_name.
89220         * modules/rbtree-list-tests (Depends-on): Add progname.
89221         * tests/test-rbtree_list.c: Include progname.h.
89222         (main): Call set_program_name.
89224         * modules/linked-list-tests (Depends-on): Add progname.
89225         * tests/test-linked_list.c: Include progname.h.
89226         (main): Call set_program_name.
89228 2007-03-03  Bruno Haible  <bruno@clisp.org>
89230         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
89231         All uses of __restrict changed to _Restrict_.
89232         * lib/glob_.h (__restrict): Remove macro.
89234 2007-03-02  Bruno Haible  <bruno@clisp.org>
89236         * modules/gettext (configure.ac): Require gettext infrastructure
89237         from version 0.16.1.
89239 2007-03-02  Bruno Haible  <bruno@clisp.org>
89241         * modules/linkedhash-list-tests (Depends-on): Add progname.
89242         * tests/test-linkedhash_list.c: Include progname.h.
89243         (main): Call set_program_name.
89245         * modules/carray-list-tests (Depends-on): Add progname.
89246         * tests/test-carray_list.c: Include progname.h.
89247         (main): Call set_program_name.
89249         * modules/avltreehash-list-tests (Depends-on): Add progname.
89250         * tests/test-avltreehash_list.c: Include progname.h.
89251         (main): Call set_program_name.
89253         * modules/avltree-oset-tests (Depends-on): Add progname.
89254         * tests/test-avltree_oset.c: Include progname.h.
89255         (main): Call set_program_name.
89257         * modules/avltree-list-tests (Depends-on): Add progname.
89258         * tests/test-avltree_list.c: Include progname.h.
89259         (main): Call set_program_name.
89261         * modules/array-oset-tests (Depends-on): Add progname.
89262         * tests/test-array_oset.c: Include progname.h.
89263         (main): Call set_program_name.
89265         * modules/array-list-tests (Depends-on): Add progname.
89266         * tests/test-array_list.c: Include progname.h.
89267         (main): Call set_program_name.
89269         * modules/argp-tests (Depends-on): Add progname.
89270         * tests/test-argp.c: Include argp.h first. Include progname.h.
89271         (main): Call set_program_name.
89273 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
89275         * doc/gnulib-tool.texi (Initial import): Reword description of
89276         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
89277         limited effect even if defined after the first system include.
89279 2007-03-01  Bruno Haible  <bruno@clisp.org>
89281         * build-aux/config.libpath: Update to libtool-1.5.22.
89282         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89284 2007-03-01  Bruno Haible  <bruno@clisp.org>
89286         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
89287         foo_CFLAGS.
89288         Reported by Ralf Wildenhues.
89290 2007-03-01  Bruno Haible  <bruno@clisp.org>
89292         * build-aux/install-reloc: Remove object files left over by some
89293         compilers.
89294         Reported by Ralf Wildenhues.
89296 2007-03-01  Bruno Haible  <bruno@clisp.org>
89298         * build-aux/install-reloc: Break long lines.
89300 2007-03-01  Bruno Haible  <bruno@clisp.org>
89302         * doc/relocatable.texi: Document that it may not work on OpenBSD.
89303         Reported by Ralf Wildenhues.
89305 2007-03-01  Bruno Haible  <bruno@clisp.org>
89307         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
89308         include ordering constraints.
89310 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89312         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
89313         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
89314         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
89315         as another example.
89316         * lib/time_.h: Fix misspelling.
89317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89318         Require gl_HEADER_TIME_H_DEFAULTS.
89319         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
89320         * m4/time_r.m4 (gl_TIME_R): Likewise.
89321         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
89323 2007-03-01  Bruno Haible  <bruno@clisp.org>
89325         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
89326         * m4/utimens.m4 (gl_UTIMENS): Likewise.
89328 2007-03-01  Jim Meyering  <jim@meyering.net>
89330         * modules/xreadlink (Maintainer): Add my name.
89331         * modules/xreadlink-with-size (Depends-on): Alphabetize.
89333 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
89334             Bruno Haible  <bruno@clisp.org>
89336         * build-aux/install-reloc: Compile also c-ctype.c.
89337         * build-aux/relocatable.sh.in: New file.
89338         * doc/relocatable.texi: New file.
89339         * doc/relocatable-maint.texi: New file.
89340         * doc/gnulib.texi: Include relocatable-maint.texi.
89341         * lib/progreloc.c: Include unistd.h unconditionally.
89342         * lib/relocwrapper.c: Include unistd.h unconditionally.
89343         Include c-ctype.h.
89344         (add_dotbin): Use c_tolower.
89345         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
89346         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
89347         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
89348         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
89349         to m4/relocatable-lib.m4.
89350         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
89351         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
89352         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
89353         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
89354         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
89355         * modules/relocatable: New file.
89356         * modules/relocatable-lib: New file.
89357         * modules/relocatable-script: New file.
89359 2007-02-28  Bruno Haible  <bruno@clisp.org>
89361         Import --enable-relocatable infrastructure.
89362         * build-aux/config.libpath: New file, from GNU gettext.
89363         * build-aux/install-reloc: New file, from GNU gettext.
89364         * build-aux/reloc-ldflags: New file, from GNU gettext.
89365         * lib/relocatable.h: New file, from GNU gettext.
89366         * lib/relocatable.c: New file, from GNU gettext.
89367         * lib/relocwrapper.c: New file, from GNU gettext.
89368         * m4/relocatable.m4: New file, from GNU gettext.
89370 2007-02-28  Bruno Haible  <bruno@clisp.org>
89372         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
89374         * modules/xreadlink: New file, from GNU gettext with modifications.
89375         * lib/xreadlink.c: New file, from GNU gettext.
89376         * lib/xreadlink.h: Add comments.
89377         (xreadlink): New declaration.
89379         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
89380         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
89381         lib/xreadlink-with-size.c.
89382         (configure.ac): Remove gl_XREADLINK invocation.
89383         (Makefile.am): Augment lib_SOURCES.
89384         * m4/xreadlink.m4: Remove file.
89385         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
89386         (xreadlink_with_size): Renamed from xreadink.
89387         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
89388         * modules/canonicalize (Depends-on): Replace xreadlink with
89389         xreadlink-with-size.
89390         * lib/canonicalize.c (canonicalize_filename_mode): Update.
89392 2007-02-25  Jim Meyering  <jim@meyering.net>
89394         * build-aux/announce-gen: When complaining about excess arguments,
89395         list them.
89397 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89399         * README: Document signed integer overflow situation more
89400         accurately.
89402 2007-02-25  Bruno Haible  <bruno@clisp.org>
89404         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
89405         'a' or 'A' conversion.
89407 2007-02-25  Bruno Haible  <bruno@clisp.org>
89409         * modules/filename: Renamed from modules/pathname.
89410         (Files): Replace lib/pathname.h with lib/filename.h. Replace
89411         lib/concatpath.c with lib/concat-filename.c.
89412         (Makefile.am): Update.
89413         (Include): Replace pathname.h with filename.h.
89414         * lib/filename.h: Renamed from lib/pathname.h.
89415         (concatenated_filename): Renamed from concatenated_pathname.
89416         * lib/concat-filename.c: Renamed from lib/concatpath.c.
89417         (concatenated_filename): Renamed from concatenated_pathname.
89418         * lib/findprog.c: Include filename.h instead of pathname.h.
89419         (find_in_path): Update.
89420         * lib/javacomp.c: Include filename.h instead of pathname.h.
89421         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89422         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89423         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89424         is_oldgcj_14_13_usable, is_javac_usable): Update.
89425         * lib/javaexec.c: Include filename.h instead of pathname.h.
89426         (execute_java_class): Update.
89427         * modules/findprog: Update.
89428         * modules/javacomp: Update.
89429         * modules/javaexec: Update.
89430         * MODULES.html.sh (File system functions): Add 'filename', remove
89431         'pathname'.
89433 2007-02-25  Bruno Haible  <bruno@clisp.org>
89435         * modules/printf-frexpl-tests: New file.
89436         * tests/test-printf-frexpl.c: New file.
89438         * modules/printf-frexpl: New file.
89439         * lib/printf-frexpl.h: New file.
89440         * lib/printf-frexpl.c: New file.
89441         * m4/printf-frexpl.m4: New file.
89443 2007-02-25  Bruno Haible  <bruno@clisp.org>
89445         * modules/printf-frexp-tests: New file.
89446         * tests/test-printf-frexp.c: New file.
89448         * modules/printf-frexp: New file.
89449         * lib/printf-frexp.h: New file.
89450         * lib/printf-frexp.c: New file.
89451         * m4/printf-frexp.m4: New file.
89453 2007-02-25  Bruno Haible  <bruno@clisp.org>
89455         Assume automake >= 1.10 for the tests.
89456         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
89457         * modules/arctwo-tests: Likewise.
89458         * modules/argp-tests: Likewise.
89459         * modules/avltree-list-tests: Likewise.
89460         * modules/avltree-oset-tests: Likewise.
89461         * modules/avltreehash-list-tests: Likewise.
89462         * modules/carray-list-tests: Likewise.
89463         * modules/crc-tests: Likewise.
89464         * modules/des-tests: Likewise.
89465         * modules/gc-arcfour-tests: Likewise.
89466         * modules/gc-arctwo-tests: Likewise.
89467         * modules/gc-des-tests: Likewise.
89468         * modules/gc-hmac-md5-tests: Likewise.
89469         * modules/gc-hmac-sha1-tests: Likewise.
89470         * modules/gc-md2-tests: Likewise.
89471         * modules/gc-md4-tests: Likewise.
89472         * modules/gc-md5-tests: Likewise.
89473         * modules/gc-pbkdf2-sha1-tests: Likewise.
89474         * modules/gc-rijndael-tests: Likewise.
89475         * modules/gc-sha1-tests: Likewise.
89476         * modules/gc-tests: Likewise.
89477         * modules/getaddrinfo-tests: Likewise.
89478         * modules/hmac-md5-tests: Likewise.
89479         * modules/hmac-sha1-tests: Likewise.
89480         * modules/linked-list-tests: Likewise.
89481         * modules/linkedhash-list-tests: Likewise.
89482         * modules/lock-tests: Likewise.
89483         * modules/md2-tests: Likewise.
89484         * modules/md4-tests: Likewise.
89485         * modules/md5-tests: Likewise.
89486         * modules/rbtree-list-tests: Likewise.
89487         * modules/rbtree-oset-tests: Likewise.
89488         * modules/rbtreehash-list-tests: Likewise.
89489         * modules/read-file-tests: Likewise.
89490         * modules/rijndael-tests: Likewise.
89491         * modules/stdint-tests: Likewise.
89492         * modules/tls-tests: Likewise.
89494 2007-02-24  Bruno Haible  <bruno@clisp.org>
89496         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
89497         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
89498         function; instead check whether isnan with a double argument links.
89499         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
89500         function; instead check whether isnan with a 'long double' argument
89501         links.
89502         Reported by Eric Blake <ebb9@byu.net>.
89504 2007-02-24  Bruno Haible  <bruno@clisp.org>
89506         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
89507         defined.
89508         * lib/isnanl.c: Remove all code. Just include isnan.c.
89509         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
89511 2007-02-25  Jim Meyering  <jim@meyering.net>
89513         Avoid conflicting types for 'unsetenv' on FreeBSD.
89514         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
89515         conflicting with FreeBSD's (5.0 and 6.1) function declaration
89516         in stdlib.h.
89518 2007-02-24  Bruno Haible  <bruno@clisp.org>
89520         * modules/isnanl-nolibm-tests: New file.
89521         * tests/test-isnanl.c: New file.
89523         * modules/isnanl-nolibm: New file.
89524         * lib/isnanl.h: New file.
89525         * lib/isnanl.c: New file.
89526         * m4/isnanl.m4: New file.
89528 2007-02-24  Bruno Haible  <bruno@clisp.org>
89530         * modules/isnan-nolibm-tests: New file.
89531         * tests/test-isnan.c: New file.
89533         * modules/isnan-nolibm: New file.
89534         * lib/isnan.h: New file.
89535         * lib/isnan.c: New file.
89536         * m4/isnan.m4: New file.
89538 2007-02-24  Bruno Haible  <bruno@clisp.org>
89540         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
89541         assume that an exponent fits in 20 bits.
89543 2007-02-24  Jim Meyering  <jim@meyering.net>
89545         * m4/regex.m4: Update the description of the configure-time option,
89546         --without-included-regex, to state accurately what the defaults are,
89547         and perhaps to give people an idea why using this option is risky.
89549 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
89551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
89552         loops on small arguments.  This attempts to avoid the problem
89553         Bruno Haible reported for AIX 4.3.2 in
89554         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
89556 2007-02-23  Bruno Haible  <bruno@clisp.org>
89558         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
89559         Needed for help2man.
89561 2007-02-23  Karl Berry  <karl@gnu.org>
89563         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
89564         exists, foo.h should be cvs-ignored, not committed.
89566 2007-02-23  Eric Blake  <ebb9@byu.net>
89568         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
89569         * lib/stat-time.h (includes): Likewise.
89570         * lib/utimecmp.c (includes): Likewise.
89571         * lib/utimens.h (includes): Likewise.
89572         * lib/getdate.y (includes): Also include "timespec.h" for use
89573         internal to the module.
89574         * modules/utimens (Depends-on): Revert yesterday's patch.
89575         * modules/nanosleep (Depends-on): Add missing dependency.
89577 2007-02-22  Bruno Haible  <bruno@clisp.org>
89579         * lib/glob.c: Don't include getlogin_r.h.
89581 2007-02-22  Jim Meyering  <jim@meyering.net>
89583         * modules/utimens (Depends-on): Add timespec, required for
89584         utimens.h's inclusion of timespec.h.
89586 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
89588         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
89589         long unreadable paths in GNU/Linux.  Problem reported by Andreas
89590         Schwab in
89591         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
89592         I'll try to think of a better way to fix the Solaris problem.
89594         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89595         like glibc; on Solaris 10, it fails with errno == EINVAL.
89596         POSIX says the behavior is unspecified if the first argument is NULL,
89597         so play it safe and never pass NULL to the system getcwd.
89599 2007-02-21  Jim Meyering  <jim@meyering.net>
89601         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89602         of gettimeofday.  It would conflict with the one now always
89603         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89604         an IRIX 6.5 build failure.
89606 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89608         Minor fixups to port to Solaris 10 with Sun C 5.8.
89609         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89610         * modules/getcwd (Depends-on): Add dirfd.
89611         * lib/putenv.c (putenv): #undef it.
89612         (rpl_putenv): New decl.
89613         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89615 2007-02-20  Bruno Haible  <bruno@clisp.org>
89617         * modules/stdio-tests: New file.
89618         * tests/test-stdio.c: New file.
89620         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89621         (Depends-on): Add stdio.
89622         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89623         (Include): Use <stdio.h> instead of vsnprintf.h.
89624         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89625         HAVE_DECL_VSNPRINTF.
89626         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89628         * modules/snprintf (Files): Remove lib/snprintf.h.
89629         (Depends-on): Add stdio.
89630         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89631         (Include): Use <stdio.h> instead of snprintf.h.
89632         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89633         HAVE_DECL_SNPRINTF.
89634         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89635         * lib/getaddrinfo.c: Likewise.
89637         * modules/stdio: New file.
89638         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89639         * lib/snprintf.h: Remove file.
89640         * lib/vsnprintf.h: Remove file.
89641         * lib/.cppi-disable: Remove snprintf.h.
89642         * m4/stdio_h.m4: New file.
89643         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89645 2007-02-20  Jim Meyering  <jim@meyering.net>
89647         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89648         used by e.g., mingw.  From Bruno Haible.
89650 2007-02-19  Bruno Haible  <bruno@clisp.org>
89652         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89653         warnings.
89654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89656 2007-02-19  Bruno Haible  <bruno@clisp.org>
89658         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89659         from mingw users.
89661 2007-02-19  Bruno Haible  <bruno@clisp.org>
89663         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89664         warnings.
89665         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89667 2007-02-19  Jim Meyering  <jim@meyering.net>
89669         Don't use FD after a successful "fdopendir (fd)".
89670         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89671         Reset it by calling dirfd on the just-obtained DIR*.
89673         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89674         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89676 2007-02-18  Bruno Haible  <bruno@clisp.org>
89678         * lib/readlink.c: Include <unistd.h>.
89679         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89680         HAVE_READLINK.
89681         * modules/readlink (Depends-on): Add unistd.
89682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89683         (Include): Add <unistd.h>.
89685         * lib/getlogin_r.h: Remove file.
89686         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89687         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89688         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89689         HAVE_DECL_GETLOGIN_R.
89690         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89691         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89692         (Include): Use <unistd.h> instead of getlogin_r.h.
89694         * lib/getcwd.h: Remove file.
89695         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89696         * lib/xgetcwd.c: Likewise.
89697         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89698         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89699         * modules/getcwd (Files): Remove lib/getcwd.h.
89700         (Depends-on): Add unistd.
89701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89702         (Include): Use <unistd.h> instad of getcwd.h.
89704         * lib/ftruncate.c: Include <unistd.h> first.
89705         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89706         Set HAVE_FTRUNCATE.
89707         * modules/ftruncate (Depends-on): Add unistd.
89708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89710         * lib/fchdir.c: Include <unistd.h> first.
89711         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89712         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89713         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89714         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89715         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89717         * lib/dup2.c: Include <unistd.h> first.
89718         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89719         HAVE_DUP2.
89720         * modules/dup2 (Depends-on): Add unistd.
89721         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89723         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89724         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89725         REPLACE_CHOWN. Don't define chown as a macro here.
89726         * modules/chown (Depends-on): Add unistd.
89727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89729         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89730         Add definition for GL_LINK_WARNING.
89731         (chown, dup2): New declarations.
89732         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89733         link warning.
89734         (ftruncate): New declaration.
89735         (getcwd): New declaration, taken from old getcwd.h.
89736         (getlogin_r): New declaration, taken from old getlogin_r.h.
89737         (readlink): New declaration.
89738         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89739         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89740         (gl_PREREQ_UNISTD): Remove macro.
89741         (gl_UNISTD_MODULE_INDICATOR): New macro.
89742         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89743         many new variables. Don't set UNISTD_H.
89744         * modules/unistd (Description): Change.
89745         (Depends-on): Add link-warning.
89746         (configure.ac): Update.
89747         (Makefile.am): Create unistd.h always. Substitute many new variables
89748         into it.
89750 2007-02-18  Bruno Haible  <bruno@clisp.org>
89752         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
89753         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
89754         HAVE_GETSUBOPT.
89755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
89756         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
89757         * lib/getsubopt.h: Remove file.
89758         * modules/getsubopt (Files): Remove lib/getsubopt.h.
89759         (Depends-on): Add stdlib.
89760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89761         (Includes): Use <stdlib.h> instead of getsubopt.h.
89762         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
89763         Set HAVE_GETSUBOPT.
89764         * lib/getsubopt.c: Don't include getsubopt.h.
89766 2007-02-18  Bruno Haible  <bruno@clisp.org>
89768         * modules/fchdir (Depends-on): Add dup2.
89770 2007-02-18  Bruno Haible  <bruno@clisp.org>
89772         * lib/stdlib_.h: Handle glibc's special invocation convention
89773         specially.
89775 2007-02-18  Bruno Haible  <bruno@clisp.org>
89777         * modules/stdlib-tests: New file.
89778         * tests/test-stdlib.c: New file.
89780         * modules/mkstemp (Files): Remove lib/mkstemp.h.
89781         (Depends-on): Add stdlib.
89782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89783         (Includes): Use <stdlib.h> instead of mkstemp.h.
89784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89785         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
89786         * lib/mkstemp.c: Don't include mkstemp.h.
89787         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
89788         * lib/stdlib--.h: Don't include mkstemp.h.
89790         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
89791         (Depends-on): Add stdlib.
89792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89793         (Includes): Use <stdlib.h> instead of mkdtemp.h.
89794         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89795         HAVE_MKDTEMP.
89796         * lib/mkdtemp.c: Don't include mkdtemp.h.
89797         * lib/clean-temp.c: Don't include mkdtemp.h.
89799         * modules/exit (Files): Remove lib/exit.h.
89800         (Depends-on): Add stdlib.
89801         (Makefile.am): Remove lib_SOURCES.
89802         (Include): Use <stdlib.h> instead of exit.h.
89803         * lib/argmatch.c: Don't include exit.h.
89804         * lib/execute.c: Likewise.
89805         * lib/pagealign_alloc.c: Likewise.
89806         * lib/pipe.c: Likewise.
89807         * lib/wait-process.c: Likewise.
89808         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
89809         * lib/exitfail.c: Likewise.
89810         * lib/savewd.c: Likewise.
89811         * lib/xsetenv.c: Likewise.
89813         * modules/stdlib: New file.
89814         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
89815         and extra comments about mkstemp().
89816         * lib/exit.h: Remove file.
89817         * lib/mkdtemp.h: Remove file.
89818         * lib/mkstemp.h: Remove file.
89819         * m4/stdlib_h.m4: New file.
89820         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
89822 2007-02-18  Bruno Haible  <bruno@clisp.org>
89824         * modules/math-tests: New file.
89825         * tests/test-math.c: New file.
89827         * modules/math: New file.
89828         * modules/mathl (Files): Remove lib/mathl.h.
89829         (Depends-on): Add math.
89830         (Makefile.am): Don't mention mathl.h.
89831         (Include): Use <math.h> instead of mathl.h.
89832         * lib/math_.h: New file.
89833         * lib/mathl.h: Remove file.
89834         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
89835         mathl.h.
89836         * lib/asinl.c: Likewise.
89837         * lib/atanl.c: Likewise.
89838         * lib/ceill.c: Likewise.
89839         * lib/cosl.c: Likewise.
89840         * lib/expl.c: Likewise.
89841         * lib/floorl.c: Likewise.
89842         * lib/frexpl.c: Likewise.
89843         * lib/ldexpl.c: Likewise.
89844         * lib/logl.c: Likewise.
89845         * lib/sincosl.c: Likewise.
89846         * lib/sinl.c: Likewise.
89847         * lib/sqrtl.c: Likewise.
89848         * lib/tanl.c: Likewise.
89849         * lib/trigl.c: Likewise.
89850         * m4/math_h.m4: New file.
89851         * MODULES.html.sh (Mathematics): Add math.
89853 2007-02-17  Bruno Haible  <bruno@clisp.org>
89855         * modules/wctype-tests: New file.
89856         * tests/test-wctype.c: New file.
89858         * modules/wchar-tests: New file.
89859         * tests/test-wchar.c: New file.
89861         * modules/unistd-tests: New file.
89862         * tests/test-unistd.c: New file.
89864         * modules/time-tests: New file.
89865         * tests/test-time.c: New file.
89867         * modules/sysexits-tests: New file.
89868         * tests/test-sysexits.c: New file.
89870         * modules/sys_time-tests: New file.
89871         * tests/test-sys_time.c: New file.
89873         * modules/sys_stat-tests: New file.
89874         * tests/test-sys_stat.c: New file.
89876         * modules/sys_socket-tests: New file.
89877         * tests/test-sys_socket.c: New file.
89879         * modules/sys_select-tests: New file.
89880         * tests/test-sys_select.c: New file.
89882         * modules/string-tests: New file.
89883         * tests/test-string.c: New file.
89885         * modules/stdbool-tests: New file.
89886         * tests/test-stdbool.c: New file.
89888         * modules/netinet_in-tests: New file.
89889         * tests/test-netinet_in.c: New file.
89891         * modules/inttypes-tests: New file.
89892         * tests/test-inttypes.c: New file.
89894         * modules/fcntl-tests: New file.
89895         * tests/test-fcntl.c: New file.
89897         * modules/byteswap-tests: New file.
89898         * tests/test-byteswap.c: New file.
89900         * modules/arpa_inet-tests: New file.
89901         * tests/test-arpa_inet.c: New file.
89903 2007-02-17  Bruno Haible  <bruno@clisp.org>
89905         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89906         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89907         if the corresponding module is not enabled. Emit link warnings if
89908         the function is used nevertheless.
89909         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89910         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89911         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89912         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89913         * modules/inttypes (Depends-on): Add link-warning.
89914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89915         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89916         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89917         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
89918         * modules/imaxdiv (configure.ac): Likewise.
89919         * modules/strtoimax (configure.ac): Likewise.
89920         * modules/strtoumax (configure.ac): Likewise.
89922 2007-02-17  Bruno Haible  <bruno@clisp.org>
89924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
89925         gl_STRING_MODULE_INDICATOR_DEFAULTS.
89926         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
89927         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
89929 2007-02-17  Bruno Haible  <bruno@clisp.org>
89931         * modules/link-warning: New file.
89932         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
89933         * lib/string_.h (GL_LINK_WARNING): Remove definition.
89934         * modules/string (Depends-on): Add link-warning.
89935         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89936         string.h.
89937         * MODULES.html.sh (Support for building libraries and executables): Add
89938         link-warning.
89940 2007-02-17  Bruno Haible  <bruno@clisp.org>
89942         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
89943         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
89944         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
89945         long lines.
89947 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
89948             Bruno Haible  <bruno@clisp.org>
89950         * modules/tmpfile: New file.
89951         * lib/tmpfile.c: New file.
89952         * m4/tmpfile.m4: New file.
89953         * MODULES.html.sh (func_all_modules): New section "Input/output".
89955 2007-02-15  Bruno Haible  <bruno@clisp.org>
89957         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
89958         (supports_delete_on_close): New function.
89959         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
89961 2007-02-14  Bruno Haible  <bruno@clisp.org>
89963         * modules/mbspcasecmp-tests: New file.
89964         * tests/test-mbspcasecmp.sh: New file.
89965         * tests/test-mbspcasecmp.c: New file.
89967         New module mbspcasecmp.
89968         * modules/mbspcasecmp: New file.
89969         * lib/mbspcasecmp.c: New file.
89970         * lib/string_.h (strncasecmp): Change warning message.
89971         (mbspcasecmp): New declaration.
89972         * m4/mbspcasecmp.m4: New file.
89973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89974         GNULIB_MBSPCASECMP.
89975         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
89976         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
89978 2007-02-14  Bruno Haible  <bruno@clisp.org>
89980         * modules/mbsncasecmp-tests: New file.
89981         * tests/test-mbsncasecmp.sh: New file.
89982         * tests/test-mbsncasecmp.c: New file.
89984         New module mbsncasecmp.
89985         * modules/mbsncasecmp: New file.
89986         * lib/mbsncasecmp.c: New file.
89987         * lib/string_.h (mbsncasecmp): New declaration.
89988         * m4/mbsncasecmp.m4: New file.
89989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89990         GNULIB_MBSNCASECMP.
89991         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
89992         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
89994 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
89996         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
89997         Verify that it doesn't overlap with our flags.
89998         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
89999         do not have the desired effect in multibyte locales; instead, use
90000         mbscasecmp.
90001         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
90002         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
90003         we don't require GNU fnmatch ourselves (if our users require it, they
90004         should do so explicitly).
90006         Fix regex code so it doesn't rely on strcasecmp.
90007         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
90008         Otherwise, include gnulib's langinfo.h.
90009         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
90010         undesirable behavior in non-C locales.  Instead, rely on localecharset.
90011         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
90012         * modules/regex (FILES): Remove m4/codeset.m4.
90013         (Depends-on): Add localcharset.  Remove strcase.
90015 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90017         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
90018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
90020 2007-02-13  Bruno Haible  <bruno@clisp.org>
90022         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
90023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90025 2007-02-12  Bruno Haible  <bruno@clisp.org>
90027         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90028         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
90029         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
90030         time warning rather than a link error.
90032 2007-02-12  Bruno Haible  <bruno@clisp.org>
90034         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
90035         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
90036         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90038 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90040         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
90041         args, not 2.
90043 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90045         New module 'time', so that apps can include <time.h> as per
90046         POSIX and GNU instead of separate include files like time_r.h
90047         and timegm.h.  This implementation tries out a simpler approach
90048         for replacing decls in standard include files (as compared to
90049         the string module), somewhat as an experiment.
90051         * config/srclist.txt: Comment out mktime.c for now.
90052         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
90053         since it doesn't apply any more.  Use generic wording instead.
90054         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
90055         'time'.
90056         * lib/time_.h, m4/time_h.m4, modules/time: New files.
90057         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
90058         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
90059         Don't include <sys/types.h>; no longer needed since we assume C89.
90060         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
90061         * lib/strftime.c: Likewise.
90062         * lib/time_r.c: Likewise.
90063         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
90064         * lib/nanosleep.c: Include <time.h> first, to check interface.
90065         * lib/strptime.c: Likewise.
90066         * lib/time_r.c: Likewise.
90067         * lib/timegm.c: Likewise.
90068         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
90069         needed.
90070         * lib/timegm.c: Don't include timegm.h; no longer needed.
90071         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
90072         time.h now handles any problems in that area.
90073         (struct timespec, nanosleep): Remove; time.h now arranges for these.
90074         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
90075         that time.h defines struct timespec.
90076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
90077         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
90078         handles that.
90079         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
90080         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
90081         needed.  Set REPLACE_LOCALTIME.
90082         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
90083         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
90084         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
90085         nanosleep; time_h.m4 now does that.  Don't require
90086         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
90087         module handles this now.
90088         * modules/getdate (Depends-on): Remove timespec.  Add time.
90089         * modules/nanosleep (Depends-on): Likewise.
90090         * modules/stat-time (Depends-on): Likewise.
90091         * modules/nanosleep (Include): Include time.h, not timespec.h.
90092         * modules/strptime (Files): Remove lib/strptime.h.
90093         (Depends-on): Add extensions, time.
90094         (Include): Include time.h, not strptime.h.
90095         * modules/time_r (Files): Remove lib/time_r.h.
90096         (Depends-on): Add time.
90097         (Include): Include time.h, not time_r.h.
90098         * modules/timegm: Likewise.
90099         * modules/timespec (Description): Now does timespec-related decls
90100         of our own, instead of struct timespec itself.
90101         (Depends-on): Add time; remove extensions.
90102         (Maintainer): Add self.
90103         * modules/utimecmp (Depends-on): Add time; remove timespec.
90104         * modules/utimens (Depends-on): Likewise.
90105         * modules/xnanosleep (Depends-on): Likewise.
90107 2007-02-11  Bruno Haible  <bruno@clisp.org>
90109         * lib/c-strstr.c: Include allocsa.h.
90110         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90111         * lib/c-strcasestr.c: Include allocsa.h.
90112         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90113         * lib/strcasestr.c: Include allocsa.h.
90114         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90115         * lib/mbsstr.c: Include allocsa.h.
90116         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90117         allocsa/freesa instead of malloc/free.
90118         * lib/mbscasestr.c: Include allocsa.h.
90119         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90120         allocsa/freesa instead of malloc/free.
90121         * modules/c-strstr (Depends-on): Add allocsa.
90122         * modules/c-strcasestr (Depends-on): Likewise.
90123         * modules/strcasestr (Depends-on): Likewise.
90124         * modules/mbsstr (Depends-on): Likewise.
90125         * modules/mbscasestr (Depends-on): Likewise.
90127 2007-02-11  Bruno Haible  <bruno@clisp.org>
90129         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
90131         * modules/mbsspn-tests: New file.
90132         * tests/test-mbsspn.sh: New file.
90133         * tests/test-mbsspn.c: New file.
90135 2007-02-11  Bruno Haible  <bruno@clisp.org>
90137         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
90139         * modules/mbspbrk-tests: New file.
90140         * tests/test-mbspbrk.sh: New file.
90141         * tests/test-mbspbrk.c: New file.
90143 2007-02-11  Bruno Haible  <bruno@clisp.org>
90145         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
90146         unneeded cast.
90148         * modules/mbscspn-tests: New file.
90149         * tests/test-mbscspn.sh: New file.
90150         * tests/test-mbscspn.c: New file.
90152 2007-02-11  Bruno Haible  <bruno@clisp.org>
90154         * modules/mbscasecmp-tests: New file.
90155         * tests/test-mbscasecmp.sh: New file.
90156         * tests/test-mbscasecmp.c: New file.
90158 2007-02-11  Bruno Haible  <bruno@clisp.org>
90160         Ensure O(n) worst-case complexity of mbscasestr.
90161         * lib/mbscasestr.c: Include stdbool.h.
90162         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90163         functions.
90164         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
90165         the bookkeeping indicates that it's worth it.
90166         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
90168         * modules/mbscasestr-tests: New file.
90169         * tests/test-mbscasestr1.c: New file.
90170         * tests/test-mbscasestr2.sh: New file.
90171         * tests/test-mbscasestr2.c: New file.
90172         * tests/test-mbscasestr3.sh: New file.
90173         * tests/test-mbscasestr3.c: New file.
90174         * tests/test-mbscasestr4.sh: New file.
90175         * tests/test-mbscasestr4.c: New file.
90176         * m4/locale-tr.m4: New file.
90178 2007-02-11  Bruno Haible  <bruno@clisp.org>
90180         Ensure O(n) worst-case complexity of mbsstr.
90181         * lib/mbsstr.c: Include stdbool.h.
90182         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90183         functions.
90184         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
90185         bookkeeping indicates that it's worth it.
90186         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
90188         * modules/mbsstr-tests: New file.
90189         * tests/test-mbsstr1.c: New file.
90190         * tests/test-mbsstr2.sh: New file.
90191         * tests/test-mbsstr2.c: New file.
90192         * tests/test-mbsstr3.sh: New file.
90193         * tests/test-mbsstr3.c: New file.
90194         * m4/locale-fr.m4: New file.
90196 2007-02-11  Bruno Haible  <bruno@clisp.org>
90198         * lib/mbsrchr.c (mbsrchr): Fix bug.
90200         * modules/mbsrchr-tests: New file.
90201         * tests/test-mbsrchr.sh: New file.
90202         * tests/test-mbsrchr.c: New file.
90204 2007-02-11  Bruno Haible  <bruno@clisp.org>
90206         * lib/mbschr.c (mbschr): Fix bug.
90208         * modules/mbschr-tests: New file.
90209         * tests/test-mbschr.sh: New file.
90210         * tests/test-mbschr.c: New file.
90211         * m4/locale-zh.m4: New file.
90213 2007-02-11  Bruno Haible  <bruno@clisp.org>
90215         Support for copying multibyte string iterators.
90216         * lib/mbiter.h: Include <string.h>.
90217         (mbiter_multi_copy): New function.
90218         (mbi_copy): New macro.
90219         * lib/mbuiter.h: Include <string.h>.
90220         (mbuiter_multi_copy): New function.
90221         (mbui_copy): New macro.
90223 2007-02-11  Bruno Haible  <bruno@clisp.org>
90225         New module mbslen.
90226         * modules/mbslen: New file.
90227         * lib/mbslen.c: New file.
90228         * lib/string_.h (mbslen): New declaration.
90229         * m4/mbslen.m4: New file.
90230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90231         GNULIB_MBSLEN.
90232         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
90233         * MODULES.html.sh (Internationalization functions): Add mbslen.
90235 2007-02-11  Bruno Haible  <bruno@clisp.org>
90237         Ensure O(n) worst-case complexity of strcasestr substitute.
90238         * lib/strcasestr.c: Include stdbool.h.
90239         (knuth_morris_pratt): New function.
90240         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90241         bookkeeping indicates that it's worth it.
90242         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
90244         * modules/strcasestr-tests: New file.
90245         * tests/test-strcasestr.c: New file.
90247 2007-02-11  Bruno Haible  <bruno@clisp.org>
90249         Ensure O(n) worst-case complexity of c_strcasestr.
90250         * lib/c-strcasestr.c: Include stdbool.h, string.h.
90251         (knuth_morris_pratt): New function.
90252         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
90253         the bookkeeping indicates that it's worth it.
90254         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
90256         * modules/c-strcasestr-tests: New file.
90257         * tests/test-c-strcasestr.c: New file.
90259 2007-02-11  Bruno Haible  <bruno@clisp.org>
90261         Ensure O(n) worst-case complexity of c_strstr.
90262         * lib/c-strstr.c: Include stdbool.h, string.h.
90263         (knuth_morris_pratt): New function.
90264         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90265         bookkeeping indicates that it's worth it.
90266         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
90268         * lib/c-strstr.c: Complete rewrite for maintainability.
90270         * modules/c-strstr-tests: New file.
90271         * tests/test-c-strstr.c: New file.
90273 2007-02-11  Bruno Haible  <bruno@clisp.org>
90275         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
90276         5.2.1 and earlier, whereby \055 was treated just like the range
90277         delimiter '-'.
90278         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90280 2007-02-08  Bruno Haible  <bruno@clisp.org>
90282         * modules/regex (Depends-on): Add stdbool.
90283         Reported by Dalibor Topic <robilad@kaffe.org>.
90285 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
90287         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
90288         Prefer returning from main to exiting from it.
90289         Remove unnecessary parens after sizeof.
90291 2007-02-05  Bruno Haible  <bruno@clisp.org>
90293         New module mbssep.
90294         * modules/mbssep: New file.
90295         * lib/mbssep.c: New file.
90296         * lib/string_.h (strsep): Add a conditional link warning.
90297         (mbssep): New declaration.
90298         * m4/mbssep.m4: New file.
90299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90300         GNULIB_MBSSEP.
90301         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
90302         * MODULES.html.sh (Internationalization functions): Add mbssep.
90304 2007-02-05  Bruno Haible  <bruno@clisp.org>
90306         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
90307         Optimize search in case of 1 delimiter.
90309 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90311         * lib/acl.h: Include sys/types.h before sys/acl.h.
90313 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90315         Merge upstream fix for glibc bugzilla #3957:
90317         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
90319         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
90320         bit for RE_HAT_LISTS_NOT_NEWLINE.
90321         (build_charclass_op): Remove bogus comment.
90323 2007-02-05  Simon Josefsson  <simon@josefsson.org>
90325         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
90327 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90329         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
90330         * lib/memmem.c [!defined _LIBC]: Include config.h.
90332 2007-02-04  Bruno Haible  <bruno@clisp.org>
90334         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
90335         warning message.
90337 2007-02-04  Bruno Haible  <bruno@clisp.org>
90339         New module mbstok_r.
90340         * modules/mbstok_r: New file.
90341         * lib/mbstok_r.c: New file.
90342         * lib/string_.h (strtok_r): Change argument names to match the
90343         comments. Add a conditional link warning.
90344         (mbstok_r): New declaration.
90345         * m4/mbstok_r.m4: New file.
90346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90347         GNULIB_MBSTOK_R.
90348         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
90349         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
90351 2007-02-04  Bruno Haible  <bruno@clisp.org>
90353         New module mbsspn.
90354         * modules/mbsspn: New file.
90355         * lib/mbsspn.c: New file.
90356         * lib/string_.h (strspn): Add a conditional link warning.
90357         (mbsspn): New declaration.
90358         * m4/mbsspn.m4: New file.
90359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90360         GNULIB_MBSSPN.
90361         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
90362         * MODULES.html.sh (Internationalization functions): Add mbsspn.
90364 2007-02-04  Bruno Haible  <bruno@clisp.org>
90366         New module mbspbrk.
90367         * modules/mbspbrk: New file.
90368         * lib/mbspbrk.c: New file.
90369         * lib/string_.h (strpbrk): Add a conditional link warning.
90370         (mbspbrk): New declaration.
90371         * m4/mbspbrk.m4: New file.
90372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90373         GNULIB_MBSPBRK.
90374         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
90375         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
90377 2007-02-04  Bruno Haible  <bruno@clisp.org>
90379         New module mbscspn.
90380         * modules/mbscspn: New file.
90381         * lib/mbscspn.c: New file.
90382         * lib/string_.h (strcspn): Add a conditional link warning.
90383         (mbscspn): New declaration.
90384         * m4/mbscspn.m4: New file.
90385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90386         GNULIB_MBSCSPN.
90387         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
90388         * MODULES.html.sh (Internationalization functions): Add mbscspn.
90390 2007-02-04  Bruno Haible  <bruno@clisp.org>
90392         New module mbscasestr, reduced goal of strcasestr.
90393         * modules/mbscasestr: New file.
90394         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
90395         (mbscasestr): Renamed from strcasestr.
90396         * lib/strcasestr.c: Don't include mbuiter.h.
90397         (strcasestr): Remove support for multibyte locales.
90398         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
90399         Change the conditional link warning.
90400         (mbscasestr): New declaration.
90401         * m4/mbscasestr.m4: New file.
90402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
90403         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
90404         REPLACE_STRCASESTR.
90405         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
90406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90407         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90408         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
90409         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
90410         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90411         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
90412         (Depends-on): Remove mbuiter.
90413         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
90415 2007-02-04  Bruno Haible  <bruno@clisp.org>
90417         Simplify handling of strncasecmp.
90418         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
90419         the conditional link warning.
90420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90421         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
90422         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
90423         * modules/strcase (configure.ac): Don't invoke
90424         gl_STRING_MODULE_INDICATOR.
90425         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
90427 2007-02-04  Bruno Haible  <bruno@clisp.org>
90429         New module mbscasecmp, reduced goal of strcasecmp.
90430         * modules/mbscasecmp: New file.
90431         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
90432         (mbscasecmp): Renamed from strcasecmp.
90433         * lib/strcasecmp.c: Don't include mbuiter.h.
90434         (strcasecmp): Remove support for multibyte locales.
90435         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
90436         Change the conditional link warning.
90437         (mbscasecmp): New declaration.
90438         * m4/mbscasecmp.m4: New file.
90439         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
90440         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
90441         REPLACE_STRCASECMP.
90442         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
90443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90444         GNULIB_MBSCASECMP.
90445         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
90446         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
90447         * modules/strcase (Files): Remove m4/mbrtowc.m4.
90448         (Depends-on): Remove mbuiter.
90449         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
90451 2007-02-04  Bruno Haible  <bruno@clisp.org>
90453         New module mbsstr. Remove module strstr.
90454         * modules/mbsstr: New file.
90455         * modules/strstr: Remove file.
90456         * lib/mbsstr.c: Renamed from lib/strstr.c.
90457         (mbsstr): Renamed from strstr.
90458         * lib/string_.h (strstr): Remove declaration. Change the conditional
90459         link warning.
90460         (mbsstr): New declaration.
90461         * m4/mbsstr.m4: New file.
90462         * m4/strstr.m4: Remove file.
90463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
90464         REPLACE_STRSTR.
90465         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
90466         Don't initialize GNULIB_STRSTR.
90467         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
90468         substitute GNULIB_STRSTR and REPLACE_STRSTR.
90469         * MODULES.html.sh (Internationalization functions): Add mbsstr.
90470         (Support for systems lacking ANSI C 89): Remove strstr.
90472 2007-02-04  Bruno Haible  <bruno@clisp.org>
90474         New module mbsrchr.
90475         * modules/mbsrchr: New file.
90476         * lib/mbsrchr.c: New file.
90477         * lib/string_.h (strrchr): Add a conditional link warning.
90478         (mbsrchr): New declaration.
90479         * m4/mbsrchr.m4: New file.
90480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90481         GNULIB_MBSRCHR.
90482         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
90483         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
90485 2007-02-04  Bruno Haible  <bruno@clisp.org>
90487         New module mbschr.
90488         * modules/mbschr: New file.
90489         * lib/mbschr.c: New file.
90490         * lib/string_.h (strchr): Add a conditional link warning.
90491         (mbschr): New declaration.
90492         * m4/mbschr.m4: New file.
90493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90494         GNULIB_MBSCHR.
90495         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
90496         * MODULES.html.sh (Internationalization functions): Add mbschr.
90498 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90500         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
90502         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
90504 2007-02-04  Bruno Haible  <bruno@clisp.org>
90506         New module description section 'configure.ac-early'.
90507         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
90508         (func_get_autoconf_early_snippet): New function.
90509         (func_import, func_create_testdir): Use it. Remove special cases for
90510         modules 'extensions' and 'lock'.
90511         * modules/extensions (configure.ac-early): Require
90512         gl_USE_SYSTEM_EXTENSIONS.
90513         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
90515 2007-02-04  Bruno Haible  <bruno@clisp.org>
90517         Make use of gcj-4.3's -fsource and -ftarget option.
90518         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
90519         and if so try the options -fsource and -ftarget.
90520         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
90521         source_version, ftarget_option, target_version arguments.
90522         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
90523         (is_envjavac_oldgcj_14_14_usable): Renamed from
90524         is_envjavac_gcj_14_14_usable.
90525         (is_envjavac_oldgcj_14_13_usable): Renamed from
90526         is_envjavac_gcj_14_13_usable.
90527         (is_gcj_present): Update.
90528         (is_gcj_43, is_gcj43_usable): New functions.
90529         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
90530         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
90531         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
90532         try the options -fsource and -ftarget.
90534 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
90536         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
90537         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
90538         larger value.
90540 2007-02-03  Jim Meyering  <jim@meyering.net>
90542         Give tools a better chance to allocate space for very large buffers.
90543         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
90545         Make pwd and readlink work also when run with an unreadable parent dir
90546         on systems with openat support.
90547         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
90548         provided getcwd function, even when we have openat support.
90549         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
90551 2007-02-02  Bruno Haible  <bruno@clisp.org>
90553         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90554         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
90555         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
90556         portability problems if one of these functions is only used on specific
90557         platforms.
90558         Reported by Paul Eggert.
90560 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
90562         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
90563         is causing more trouble than it's curing.
90564         * lib/regex_internal.h (__mempcpy): Remove.
90565         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
90566         (and make the code a tad smaller to boot).
90567         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
90569 2007-02-02  Jim Meyering  <jim@meyering.net>
90571         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
90572         section, not in the Makefile.am: one.
90574 2007-02-02  Eric Blake  <ebb9@byu.net>
90576         * lib/strchrnul.c: Always include config.h first.
90578         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
90579         gnulib strstr is not necessary here.
90581 2007-02-02  Simon Josefsson  <simon@josefsson.org>
90583         * m4/socklen.m4: Fix typo.
90585 2007-02-02  Eric Blake  <ebb9@byu.net>
90587         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
90588         * modules/netinet_in (Makefile.am): Likewise.
90590 2007-02-01  Bruno Haible  <bruno@clisp.org>
90592         * lib/string_.h (GL_LINK_WARNING): New macro.
90593         (strcasecmp, strstr, strcasestr): If provided by the system,
90594         conditionally define as a macro that leads to a warning instead of to
90595         an error.
90596         (strncasecmp): Conditionally define as a macro that leads to a warning.
90598 2007-02-01  Karl Berry  <karl@gnu.org>
90600         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90602 2007-02-01  Bruno Haible  <bruno@clisp.org>
90604         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90605         renamings.
90607 2007-02-01  Eric Blake  <ebb9@byu.net>
90609         * modules/regex (Depends-on): Revert dependence on mempcpy.
90610         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90611         module's definition of mempcpy.
90612         Reported by Paul Eggert.
90614 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90616         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90617         the symbol XYZ before redefining it.  This fixes a problem with
90618         programs that don't use XYZ, when compiled on systems that define
90619         XYZ to something else.
90621 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90623         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90624         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90625         writeable to group or other and (2) is intended to have a special
90626         mode bit that is set or cleared.  In such a case, the directory
90627         should be neither group- nor other-writeable until the special
90628         mode bits are right.
90630 2007-01-31  Eric Blake  <ebb9@byu.net>
90632         * modules/mountlist (Depends-on): Add strstr.
90634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90635         bug.
90636         * modules/string (Makefile.am): Remove redundant replacement.
90637         * modules/regex (Depends-on): Add mempcpy.
90639 2007-01-31  Bruno Haible  <bruno@clisp.org>
90641         New module description field 'Link'.
90642         * gnulib-tool (func_usage): Document --extract-link-directive.
90643         (sed_extract_prog): Recognize 'Link' directive.
90644         (func_get_link_directive): New function.
90645         (func_import): Show summary of link directives.
90646         Handle --extract-link-directive option.
90647         * modules/acl (Link): New section.
90648         * modules/clock-time (Link): New section.
90649         * modules/euidaccess (Link): New section.
90650         * modules/gettext (Link): New section.
90651         * modules/iconv (Link): New section.
90652         * modules/lock (Link): New section.
90653         * modules/nanosleep (Link): New section.
90654         * modules/readline (Link): New section.
90656 2007-01-27  Bruno Haible  <bruno@clisp.org>
90658         Enforce the use of gnulib modules for unportable <string.h> functions.
90659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90660         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90661         (gl_HEADER_STRING_H_BODY): Require it.
90662         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90663         the symbol XYZ to one that gives a link error.
90664         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90665         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90666         * modules/mempcpy (configure.ac): Likewise.
90667         * modules/memrchr (configure.ac): Likewise.
90668         * modules/stpcpy (configure.ac): Likewise.
90669         * modules/stpncpy (configure.ac): Likewise.
90670         * modules/strcase (configure.ac): Likewise.
90671         * modules/strcasestr (configure.ac): Likewise.
90672         * modules/strchrnul (configure.ac): Likewise.
90673         * modules/strdup (configure.ac): Likewise.
90674         * modules/strndup (configure.ac): Likewise.
90675         * modules/strnlen (configure.ac): Likewise.
90676         * modules/strpbrk (configure.ac): Likewise.
90677         * modules/strsep (configure.ac): Likewise.
90678         * modules/strstr (configure.ac): Likewise.
90679         * modules/strtok_r (configure.ac): Likewise.
90681 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90683         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90685 2007-01-30  Jim Meyering  <jim@meyering.net>
90687         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90689 2007-01-29  Bruno Haible  <bruno@clisp.org>
90691         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90692         * lib/execute.c: Likewise.
90693         * lib/pipe.c: Likewise.
90694         * lib/printf-args.h: Likewise.
90695         * lib/printf-args.c: Likewise.
90696         * lib/printf-parse.c: Likewise.
90697         * lib/vasnprintf.c: Likewise.
90699 2007-01-29  Eric Blake  <ebb9@byu.net>
90701         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90702         declaration.
90704 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90706         * lib/strptime.h (strptime): Use 'restrict' for args where
90707         POSIX requires this.
90708         * lib/strptime.c (strptime): Likewise.
90709         Change license notice from LGPL to GPL, since gnulib-tool will
90710         change this as needed.
90711         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90712         defined.
90713         Include "strptime.h" first, to check interface.
90714         Do not #undef _LIBC and _NL_CURRENT.
90715         Do not include <stdlib.h>; no longer needed.
90716         Include "time_r.h" and declare ptime_locale_status
90717         only if _LIBC is not defined.
90718         (__P): Remove unused macro.
90719         (match_string): Bring back glibc version, but use it only if _LIBC
90720         is defined.
90721         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90722         Remove unnecessary assertion and abort() call.
90723         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90724         * m4/strptime.m4: Fix serial number comment.
90725         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90726         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90727         (Depends-on): Add time_r.
90729 2007-01-29  Bruno Haible  <bruno@clisp.org>
90731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90732         strptime.
90733         * modules/strptime (Depends-on): Add stdbool.
90734         * lib/strptime.h: Include <time.h> always. Add comments.
90736 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90738         * modules/strptime: New file.
90739         * lib/strptime.h: New file.
90740         * lib/strptime.c: New file.
90741         * m4/strptime.m4: New file.
90743 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
90745         * MODULES.html.sh: New module mpsort.
90746         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
90748         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
90749         a circularity problem with HP-UX ia64 reported by Bob Proulx in
90750         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
90751         All uses changed.
90752         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
90753         All uses changed.
90754         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
90755         to _Restrict_.
90756         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
90757         the parameter matches the prototype.
90759 2007-01-28  Jim Meyering  <jim@meyering.net>
90761         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
90762         sys/time.h here, reverting that part of the previous patch:
90763         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
90765 2007-01-28  Bruno Haible  <bruno@clisp.org>
90767         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
90768         value of $(SYS_TIME_H).
90769         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
90770         remove it conditionally, too. [added by Jim Meyering]
90771         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
90772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90773         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
90774         GETTIMEOFDAY_REPLACEMENT to 1.
90776 2007-01-28  Bruno Haible  <bruno@clisp.org>
90778         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
90779         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
90780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
90781         Set UNISTD_H instead of UNISTD_H2.
90782         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
90784 2007-01-28  Bruno Haible  <bruno@clisp.org>
90786         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
90787         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
90789 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90791         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
90792         (func_create_testdir): Ensure C locale for `grep' and `tr'
90793         character ranges.
90794         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
90795         ACLOCAL_AMFLAGS parsing state machine.
90797 2007-01-27  Bruno Haible  <bruno@clisp.org>
90799         * modules/unistr/base: Update.
90801 2007-01-27  Bruno Haible  <bruno@clisp.org>
90803         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
90804         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
90805         * modules/unistr/u32-mbtouc-unsafe: Renamed from
90806         modules/unistr/u32-mbtouc.
90807         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
90808         * lib/unistr.h: Update.
90809         * lib/linebreak.c: Update.
90810         * modules/unistr/u32-mbtouc: Renamed from
90811         modules/unistr/u32-mbtouc-safe.
90812         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
90813         * lib/unistr.h: Update.
90814         * lib/unistr/u32-to-u8.c: Update.
90815         * lib/unistr/u32-to-u16.c: Update.
90817 2007-01-27  Bruno Haible  <bruno@clisp.org>
90819         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
90820         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
90821         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
90822         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
90823         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
90824         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90825         modules/unistr/u16-mbtouc.
90826         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
90827         * lib/unistr.h: Update.
90828         * lib/linebreak.c: Update.
90829         * modules/linebreak: Update.
90830         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
90831         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
90832         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
90833         * modules/unistr/u16-mbtouc: Renamed from
90834         modules/unistr/u16-mbtouc-safe.
90835         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
90836         * lib/unistr.h: Update.
90837         * lib/unistr/u16-to-u8.c: Update.
90838         * modules/unistr/u16-to-u8: Update.
90839         * lib/unistr/u16-to-u32.c: Update.
90840         * modules/unistr/u16-to-u32: Update.
90842 2007-01-27  Bruno Haible  <bruno@clisp.org>
90844         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
90845         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
90846         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
90847         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90848         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
90849         * modules/unistr/u8-mbtouc-unsafe: Renamed from
90850         modules/unistr/u8-mbtouc.
90851         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
90852         * lib/unistr.h: Update.
90853         * lib/striconveh.c: Update.
90854         * modules/striconveh: Update.
90855         * lib/linebreak.c: Update.
90856         * modules/linebreak: Update.
90857         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90858         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90859         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90860         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90861         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90862         * lib/unistr.h: Update.
90863         * lib/striconveh.c: Update.
90864         * modules/striconveh: Update.
90865         * lib/unistr/u8-to-u16.c: Update.
90866         * modules/unistr/u8-to-u16: Update.
90867         * lib/unistr/u8-to-u32.c: Update.
90868         * modules/unistr/u8-to-u32: Update.
90870 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90872         Sync from Libtool.
90873         * lib/argz.c: Do not include strings.h nor memory.h, include
90874         string.h unconditionally.  Patch by Simon Josefsson.
90876 2007-01-27  Bruno Haible  <bruno@clisp.org>
90878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90879         from gl_HEADER_STRING_H_BODY.
90880         (gl_HEADER_STRING_H_BODY): Require it.
90881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90882         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90883         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90884         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90885         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90886         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90888         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90889         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90891         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90892         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90893         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90894         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90895         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90897 2007-01-27  Bruno Haible  <bruno@clisp.org>
90899         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90900         check_PROGRAMS into noinst_PROGRAMS.
90901         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90902         check_PROGRAMS in this case.
90903         (func_import): Set for_test to false.
90904         (func_create_testdir): Set for_test to true.
90906 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90907             Bruno Haible  <bruno@clisp.org>
90909         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90910         (Depends-on): Add string.
90911         (Includes): Use <string.h> instead of strcasestr.h.
90912         * modules/string (Makefile.am): Also substitute the value of
90913         REPLACE_STRCASESTR.
90914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90915         assume strcasestr is declared in <string.h> not <strings.h>. Also
90916         set REPLACE_STRCASESTR.
90917         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
90918         REPLACE_STRCASESTR.
90919         * lib/strcasestr.h: Remove file.
90920         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
90921         * lib/string_.h (strcasestr): New declaration.
90923 2007-01-27  Bruno Haible  <bruno@clisp.org>
90925         * lib/string_.h: Use 'extern'.
90927 2007-01-27  Jim Meyering  <jim@meyering.net>
90929         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
90930         of set-but-not-used local, "q".
90932         * lib/mempcpy.c: Include <config.h> before <string.h>.
90933         This fixes a compilation error on HP-UX, due to the system's
90934         "restrict"-using mempcpy prototype.
90936 2007-01-26  Bruno Haible  <bruno@clisp.org>
90938         Small optimization.
90939         * lib/javacomp.c: Include c-strstr.h.
90940          (is_envjavac_gcj): Use c_strstr instead of strstr.
90941         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
90943 2007-01-26  Bruno Haible  <bruno@clisp.org>
90945         * MODULES.html.sh (Unicode string functions): Add the new modules.
90947         * modules/uniconv/u32-strconv-to-locale: New file.
90948         * lib/uniconv/u32-strconv-to-locale.c: New file.
90950         * modules/uniconv/u16-strconv-to-locale: New file.
90951         * lib/uniconv/u16-strconv-to-locale.c: New file.
90953         * modules/uniconv/u8-strconv-to-locale: New file.
90954         * lib/uniconv/u8-strconv-to-locale.c: New file.
90956         * modules/uniconv/u32-strconv-from-locale: New file.
90957         * lib/uniconv/u32-strconv-from-locale.c: New file.
90959         * modules/uniconv/u16-strconv-from-locale: New file.
90960         * lib/uniconv/u16-strconv-from-locale.c: New file.
90962         * modules/uniconv/u8-strconv-from-locale: New file.
90963         * lib/uniconv/u8-strconv-from-locale.c: New file.
90965         * modules/uniconv/u32-strconv-to-enc: New file.
90966         * lib/uniconv/u32-strconv-to-enc.c: New file.
90967         * modules/uniconv/u32-strconv-to-enc-tests: New file.
90968         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
90970         * modules/uniconv/u16-strconv-to-enc: New file.
90971         * lib/uniconv/u16-strconv-to-enc.c: New file.
90972         * lib/uniconv/u-strconv-to-enc.h: New file.
90973         * modules/uniconv/u16-strconv-to-enc-tests: New file.
90974         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
90976         * modules/uniconv/u8-strconv-to-enc: New file.
90977         * lib/uniconv/u8-strconv-to-enc.c: New file.
90978         * modules/uniconv/u8-strconv-to-enc-tests: New file.
90979         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
90981         * modules/uniconv/u32-strconv-from-enc: New file.
90982         * lib/uniconv/u32-strconv-from-enc.c: New file.
90983         * modules/uniconv/u32-strconv-from-enc-tests: New file.
90984         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
90986         * modules/uniconv/u16-strconv-from-enc: New file.
90987         * lib/uniconv/u16-strconv-from-enc.c: New file.
90988         * modules/uniconv/u16-strconv-from-enc-tests: New file.
90989         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
90991         * modules/uniconv/u8-strconv-from-enc: New file.
90992         * lib/uniconv/u8-strconv-from-enc.c: New file.
90993         * lib/uniconv/u-strconv-from-enc.h: New file.
90994         * modules/uniconv/u8-strconv-from-enc-tests: New file.
90995         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
90997         * modules/uniconv/u32-conv-from-enc: New file.
90998         * lib/uniconv/u32-conv-from-enc.c: New file.
90999         * modules/uniconv/u32-conv-from-enc-tests: New file.
91000         * tests/uniconv/test-u32-conv-from-enc.c: New file.
91002         * modules/uniconv/u16-conv-from-enc: New file.
91003         * lib/uniconv/u16-conv-from-enc.c: New file.
91004         * lib/uniconv/u-conv-from-enc.h: New file.
91005         * modules/uniconv/u16-conv-from-enc-tests: New file.
91006         * tests/uniconv/test-u16-conv-from-enc.c: New file.
91008         * modules/uniconv/u8-conv-from-enc: New file.
91009         * lib/uniconv/u8-conv-from-enc.c: New file.
91010         * modules/uniconv/u8-conv-from-enc-tests: New file.
91011         * tests/uniconv/test-u8-conv-from-enc.c: New file.
91013         * modules/uniconv/base: New file.
91014         * lib/uniconv.h: New file.
91016 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
91018         * doc/gnulib-tool.texi (Initial import): Update to match current
91019         behavior with strdup module.
91020         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
91021         * lib/memmem.h: Remove; all uses removed.  This is now done
91022         by <string.h>.
91023         * lib/mempcpy.h: Likewise.
91024         * lib/memrchr.h: Likewise.
91025         * lib/stpcpy.h: Likewise.
91026         * lib/stpncpy.h: Likewise.
91027         * lib/strcase.h: Likewise.
91028         * lib/strchrnul.h: Likewise.
91029         * lib/strdup.h: Likewise.
91030         * lib/strndup.h: Likewise.
91031         * lib/strnlen.h: Likewise.
91032         * lib/strpbrk.h: Likewise.
91033         * lib/strsep.h: Likewise.
91034         * lib/strstr.h: Likewise.
91035         * lib/strtok_r.h: Likewise.
91036         * lib/string_.h: New file.
91037         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
91038         Rely on <string.h> instead.
91039         * lib/canon-host.c: Likewise.
91040         * lib/chdir-long.c: Likewise.
91041         * lib/concatpath.c: Likewise.
91042         * lib/exclude.c: Likewise.
91043         * lib/fchdir.c: Likewise.
91044         * lib/getaddrinfo.c: Likewise.
91045         * lib/getcwd.c: Likewise.
91046         * lib/getsubopt.c: Likewise.
91047         * lib/glob.c: Likewise.
91048         * lib/hard-locale.c: Likewise.
91049         * lib/iconvme.c: Likewise.
91050         * lib/javacomp.c: Likewise.
91051         * lib/mempcpy.c: Likewise.
91052         * lib/memrchr.c: Likewise.
91053         * lib/regex_internal.h: Likewise.
91054         * lib/stpncpy.c: Likewise.
91055         * lib/strcasecmp.c: Likewise.
91056         * lib/strchrnul.c: Likewise.
91057         * lib/strdup.c: Likewise.
91058         * lib/striconv.c: Likewise.
91059         * lib/striconveh.c: Likewise.
91060         * lib/striconveha.c: Likewise.
91061         * lib/strncasecmp.c: Likewise.
91062         * lib/strndup.c: Likewise.
91063         * lib/strnlen.c: Likewise.
91064         * lib/strsep.c: Likewise.
91065         * lib/strstr.c: Likewise.
91066         * lib/strtok_r.c: Likewise.
91067         * lib/userspec.c: Likewise.
91068         * lib/w32spawn.h: Likewise.
91069         * lib/xstrndup.c: Likewise.
91070         * lib/mountlist.c (strstr): Remove decl.
91071         * m4/string_h.m4: New file.
91072         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
91073         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
91074         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
91075         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
91076         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
91077         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
91078         Set REPLACE_STRCASECMP if necessary.
91079         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
91080         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
91081         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
91082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
91083         HAVE_DECL_STRDUP if necessary.
91084         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
91085         since gl_FUNC_STRNDUP does that now.
91086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
91087         Check for decl here...
91088         (gl_PREREQ_STRNLEN): ... not here.
91089         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
91090         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
91091         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
91092         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
91093         necessary.
91094         * modules/string: New file.
91095         * modules/memmem (Files): Remove special-purpose include file.
91096         (Depends-on): Add string.
91097         (Include): Include <string.h>, not the removed file.
91098         * modules/mempcpy: Likewise.
91099         * modules/memrchr: Likewise.
91100         * modules/stpcpy: Likewise.
91101         * modules/stpncpy: Likewise.
91102         * modules/strcase: Likewise.
91103         * modules/strchrnul: Likewise.
91104         * modules/strdup: Likewise.
91105         * modules/strndup: Likewise.
91106         * modules/strnlen: Likewise.
91107         * modules/strpbrk: Likewise.
91108         * modules/strsep: Likewise.
91109         * modules/strstr: Likewise.
91110         * modules/strtok_r: Likewise.
91111         * tests/test-dirname.c: Don't include "strdup.h", since
91112         <string.h> now suffices.
91113         * tests/test-memmem.c: Don't include "memmem.h", since
91114         <string.h> now suffices.
91116 2007-01-25  Bruno Haible  <bruno@clisp.org>
91118         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
91119         *resultp is 0.
91121         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
91122         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
91123         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
91124         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
91126         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
91127         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
91128         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
91129         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
91130         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
91131         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
91133 2007-01-24  Bruno Haible  <bruno@clisp.org>
91135         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
91136         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
91137         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
91138         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
91139         gl_FUNC_FTS_CORE.
91140         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
91141         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
91142         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91143         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
91144         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
91145         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
91146         gl_FUNC_FCHOWNAT.
91147         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
91148         gl_FUNC_STRFTIME.
91149         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
91150         Reported by Ralf Wildenhues.
91152 2007-01-24  Bruno Haible  <bruno@clisp.org>
91154         Drop AC_REQUIRE calls that are redundant with the module dependencies.
91155         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
91156         gl_GETADDRINFO.
91157         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
91158         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
91159         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
91161 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
91163         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
91164         Don't use 'exit'; just return from 'main'.
91165         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
91167         * lib/fnmatch_.h: Readjust white space and comments to match
91168         glibc, to avoid spurious diffs.
91170 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91172         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
91173         2004-12-01 change by Jakub Jelinek, since this code won't compile
91174         if !LIBC.  Problem reported by Bob Proulx.
91176 2007-01-23  Bruno Haible  <bruno@clisp.org>
91178         * lib/striconveh.c: Include c-strcaseeq.h.
91179         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
91180         * modules/striconveh (Depends-on): Add c-strcaseeq.
91182 2007-01-23  Bruno Haible  <bruno@clisp.org>
91184         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
91186         * modules/c-strcaseeq: New file.
91187         * lib/c-strcaseeq.h: New file.
91189         * modules/streq: New file.
91190         * lib/streq.h: New file.
91192 2007-01-23  Bruno Haible  <bruno@clisp.org>
91194         * modules/striconveha-tests: New file.
91195         * tests/test-striconveha.c: New file.
91197         * lib/striconveha.h: Include <stdbool.h>.
91198         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
91199         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
91200         (mem_iconveha_notranslit): Renamed from mem_iconveha.
91201         (mem_iconveha): New function.
91202         (str_iconveha_notranslit): Renamed from str_iconveha.
91203         (str_iconveha): New function.
91204         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
91205         c-strcase.
91207 2007-01-23  Bruno Haible  <bruno@clisp.org>
91209         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
91210         encodings without forgiving before trying any encoding with handler.
91211         (str_iconveha): Try all encodings without forgiving before trying any
91212         encoding with handler.
91214 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91216         Import the following changes from libc.
91218         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
91220         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
91222         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
91224         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
91225         normal_bracket label.
91227         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
91229         [BZ #361]
91230         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
91231         to normal_bracket after fetching the next character.
91233 2007-01-22  Bruno Haible  <bruno@clisp.org>
91235         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
91236         argument.
91237         * lib/striconveh.c (iconv_carefully_1): New function.
91238         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
91239         argument.
91240         (str_cd_iconveh): Update.
91241         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
91242         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
91243         * tests/test-striconveh.c (MAGIC): New macro.
91244         (new_offsets): New function.
91245         (main): Test call with and without offsets.
91247 2007-01-22  Bruno Haible  <bruno@clisp.org>
91249         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
91250         * modules/sys_select (Makefile.am): Likewise.
91251         * modules/sys_socket (Makefile.am): Likewise.
91252         * modules/sys_time (Makefile.am): Likewise.
91254 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
91256         * modules/gettimeofday (License): Change from GPL to LGPL, since
91257         gettimeofday is a library function.
91259 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91261         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
91263 2007-01-21  Bruno Haible  <bruno@clisp.org>
91265         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
91267 2007-01-21  Bruno Haible  <bruno@clisp.org>
91269         * modules/striconveha: New file.
91270         * lib/striconveha.h: New file.
91271         * lib/striconveha.c: New file.
91272         * MODULES.html.sh (Internationalization functions): Add striconveha.
91273         * lib/striconv.c (str_iconv): Optimize the case of an empty input
91274         string.
91275         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
91277 2007-01-21  Bruno Haible  <bruno@clisp.org>
91279         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
91280         * lib/striconveh.c (str_iconveh): Likewise.
91282 2007-01-21  Bruno Haible  <bruno@clisp.org>
91284         * lib/striconveh.h (mem_iconveh): New declaration.
91285         * lib/striconveh.c (mem_iconveh): New function.
91286         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
91288 2007-01-21  Bruno Haible  <bruno@clisp.org>
91290         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
91292         * lib/striconveh.h (mem_cd_iconveh): Change specification.
91293         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
91294         original result buffer.
91295         (str_cd_iconveh): Update.
91296         * tests/test-striconveh.c (main): Update.
91298         * lib/striconv.h (mem_cd_iconv): Change specification.
91299         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
91300         result buffer.
91301         (str_cd_iconv): Update.
91302         * tests/test-striconv.c (main): Update.
91304 2007-01-21  Bruno Haible  <bruno@clisp.org>
91306         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
91308 2007-01-20  Jim Meyering  <jim@meyering.net>
91310         * lib/userspec.c (parse_with_separator): If a user or group string
91311         starts with "+", skip the corresponding name-to-ID look-up, since
91312         such a look-up must fail: user and group names may not include "+".
91314 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
91316         * lib/poll.c: Include sys/time.h and time.h unconditionally,
91317         since we now assume the sys_time module.
91318         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
91319         check for sys/time.h; no longer needed.
91320         * modules/poll (Depends-on): Depend on sys_time.
91322 2007-01-18  Bruno Haible  <bruno@clisp.org>
91324         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
91325         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91327         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
91328         gettimeofday.
91330         * tests/test-gettimeofday.c: Include <time.h>.
91331         (dummy): Remove variable.
91333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
91334         gl_HEADER_SYS_TIME_H.
91335         (gl_HEADER_SYS_TIME_H): New macro.
91337         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
91338         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
91340         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
91341         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91342         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
91343         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
91344         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91345         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
91346         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
91347         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91349         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
91350         last change; it caused a compilation error when cross-compiling to
91351         Cygwin.
91353 2007-01-18  Jim Meyering  <jim@meyering.net>
91355         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
91356         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
91357         than the race-prone "test -d sys || mkdir sys".
91358         (configure.ac): Use AC_PROG_MKDIR_P.
91359         * modules/sys_select: Likewise.
91360         * modules/sys_socket: Likewise.
91361         * modules/sys_time: Likewise.
91363 2007-01-18  Eric Blake  <ebb9@byu.net>
91365         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
91366         replace gettimeofday.
91367         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
91368         name, to avoid infinite recursion.
91370 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
91372         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
91373         module sys_time.
91374         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
91375         assume timespec.h defines struct timeval.
91376         * lib/settime.c: Likewise.
91377         * lib/utimens.c: Likewise.
91378         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
91379         since we now assume the gettimeofday module.
91380         * lib/tempname.c (__gen_tempname): Likewise.
91381         * lib/gettimeofday.h: Remove.
91382         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
91383         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
91384         Include <time.h>, for 'time()'.
91385         (localtime_buffer_addr): Also use this workaround if
91386         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
91387         to simplify the uses.  All uses changed.
91388         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
91389         that #undef is inside {}, and 'const' follows type name consistently.
91390         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
91391         (gettimeofday): Do not use the maximum possible value for
91392         tv->tv_usec, since that might break usages other than ls.c.
91393         Instead, we'll leave ls.c alone.  This undoes today's patch
91394         by Bruno.  Add a compile-time warning for 1s-clock resolution;
91395         we've never observed the problem but might as well keep the
91396         canary.
91397         * lib/nanosleep.c: Include timespec.h first, for interface check.
91398         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
91399         now assume the sys_time module.
91400         * lib/tempname.c: Likewise.
91401         * lib/timespec.h: Likewise.
91402         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
91403         needed.
91404         * lib/strftime.c: Likewise.
91405         * lib/timespec.h: Likewise.
91406         * lib/posixtm.c: Include posixtm.h first, for interface check.
91407         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
91408         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
91409         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
91410         * lib/sys_time_.h: New file.
91411         * lib/timespec.h (struct timespec): Use long int, not long.
91412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91413         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
91414         Remove obsolescent call to AC_HEADER_TIME.
91415         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
91416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91417         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91418         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
91419         Likewise.
91420         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
91421         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
91422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
91423         into the sys_time module.  Check for gettimeofday just once.
91424         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
91425         for gettimeofday signature to just check the signature.  Merely
91426         compile it, since linking doesn't test signature.  Improve test for
91427         whether gettimeofday.o is actually needed.
91428         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
91429         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
91430         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
91431         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91432         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
91433         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
91434         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
91435         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
91436         than worrying about sys/time.h.
91437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91438         Don't bother worrying about TIME_WITH_SYS_TIME.
91439         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
91440         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
91441         * m4/sys_time_h.m4: New file.
91442         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
91443         Don't include sys/time.h.  Return from main rather than exiting.
91444         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
91445         all uses changed.
91446         * modules/gethrxtime (Depends-on): Add sys_time.
91447         * modules/gettime (Depends-on): Likewise.
91448         * modules/gettimeofday (Depends-on): Likewise.
91449         * modules/nanosleep (Depends-on): Likewise.
91450         * modules/settime (Depends-on): Likewise.
91451         * modules/tempname (Depends-on): Likewise.
91452         * modules/utimens (Depends-on): Likewise.
91453         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
91454         (Include): Change back to <sys/time.h>.
91455         (Maintainer): Add self.
91456         * modules/sys_time: New file.
91457         * modules/tempname (Depends-on): Add gettimeofday.
91458         * tests/test-gettimeofday.c: Include <sys/time.h>
91459         rather than gettimeofday.h.
91461 2007-01-17  Bruno Haible  <bruno@clisp.org>
91463         * gnulib-tool (func_get_license): Revert last patch. Instead, let
91464         the license default to GPL.
91465         (func_create_testdir): Don't complain if a module is LGPL and its
91466         tests module depends on GPLed modules.
91468 2007-01-17  Bruno Haible  <bruno@clisp.org>
91470         * lib/gettimeofday.c (gettimeofday): Add code for the case
91471         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
91472         maximum possible value for tv->tv_usec, rather than the minimum one.
91474 2005-10-08  Martin Lambers  <marlam@marlam.de>
91475 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91476 2007-01-16  Bruno Haible  <bruno@clisp.org>
91478         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
91479         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
91480         gl_FUNC_GETTIMEOFDAY.
91481         (Include): Add gettimeofday.h.
91482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
91483         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
91484         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
91485         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
91486         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
91487         * lib/gettimeofday.h: New file.
91488         * lib/gettimeofday.c: Include <sys/timeb.h>.
91489         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
91490         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91491         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
91492         fall back on time().
91494         * tests/test-gettimeofday.c: New file.
91495         * modules/gettimeofday-tests: New file.
91497 2007-01-16  Eric Blake  <ebb9@byu.net>
91499         * modules/fnmatch (Depends-on): Depend on wchar.
91500         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
91501         * m4/fnmatch.m4: Likewise.
91502         * modules/mbchar (Makefile.am): Assume <wchar.h>.
91503         * m4/mbchar.m4: Likewise.
91504         * modules/mbswidth (Depends-on): Depend on wchar.
91505         * lib/mbswidth.c: Assume <wchar.h>.
91506         * m4/mbswidth.m4: Likewise.
91507         * modules/quotearg (Depends-on): Depend on wchar.
91508         * lib/quotearg.c: Assume <wchar.h>.
91509         * m4/quotearg.m4: Likewise.
91510         * modules/regex (Depends-on): Depend on wchar.
91511         * lib/regex_internal.h: Assume <wchar.h>.
91512         * m4/regex.m4: Likewise.
91513         * modules/stdint (Depends-on): Depend on wchar.
91514         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
91515         * m4/stdint.m4: Likewise.
91516         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
91517         * modules/strftime (Depends-on): Depend on wchar.
91518         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
91519         * modules/strtol (Depends-on): Depend on wchar.
91520         * lib/strtol.c: Assume <wchar.h>.
91521         * modules/wcwidth (Depends-on): Depend on wchar.
91522         * lib/wcwidth.h: Assume <wchar.h>.
91523         * m4/wcwidth.m4: Likewise.
91525 2007-01-16  Bruno Haible  <bruno@clisp.org>
91527         * modules/csharpexec-script: New, created from...
91528         * modules/csharpexec: ... this.
91530 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91532         * modules/javaexec-script: New, created from...
91533         * modules/javaexec: ... this.
91535 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91537         * modules/poll (Dependencies): Add sys_select.
91539 2007-01-15  Jim Meyering  <jim@meyering.net>
91541         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
91542         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
91543         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
91544         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
91546 2007-01-15  Bruno Haible  <bruno@clisp.org>
91548         * modules/striconveh: New file.
91549         * lib/striconveh.h: New file.
91550         * lib/striconveh.c: New file.
91551         * MODULES.html.sh (Internationalization functions): Add striconveh.
91553         * modules/striconveh-tests: New file.
91554         * tests/test-striconveh.c: New file.
91556 2007-01-15  Bruno Haible  <bruno@clisp.org>
91558         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
91559         not from GNU libiconv or GNU libc.
91561 2007-01-15  Bruno Haible  <bruno@clisp.org>
91563         * doc/gnulib-intro.texi (Copyright): Explain the different license
91564         terms for module descriptions, autoconf macros, tests, documentation.
91566 2007-01-14  Bruno Haible  <bruno@clisp.org>
91568         * modules/striconv-tests: New file.
91569         * tests/test-striconv.c: New file.
91571 2007-01-14  Bruno Haible  <bruno@clisp.org>
91573         * modules/iconv-tests: New file.
91574         * tests/test-iconv.c: New file.
91576 2007-01-14  Bruno Haible  <bruno@clisp.org>
91578         * gnulib-tool (func_get_license): For test modules, use the license of
91579         the main module.
91581 2007-01-14  Bruno Haible  <bruno@clisp.org>
91583         * modules/iconv (Include): Clarify that <iconv.h> can only be included
91584         if iconv is found to exist.
91586 2007-01-14  Bruno Haible  <bruno@clisp.org>
91588         * modules/c-ctype-tests: New file.
91589         * tests/test-c-ctype.c: New file.
91591 2007-01-14  Bruno Haible  <bruno@clisp.org>
91593         * modules/binary-io-tests: New file.
91594         * tests/test-binary-io.sh: New file.
91595         * tests/test-binary-io.c: New file.
91597 2007-01-14  Bruno Haible  <bruno@clisp.org>
91599         * modules/array-oset-tests: New file.
91600         * tests/test-array_oset.c: New file.
91602 2007-01-14  Bruno Haible  <bruno@clisp.org>
91604         * modules/array-list-tests: New file.
91605         * tests/test-array_list.c: New file.
91607 2007-01-14  Bruno Haible  <bruno@clisp.org>
91609         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91610         and make.
91611         Reported by Simon Josefsson in
91612         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91614 2007-01-14  Bruno Haible  <bruno@clisp.org>
91616         * modules/allocsa-tests: New file.
91617         * tests/test-allocsa.c: New file.
91619 2007-01-14  Bruno Haible  <bruno@clisp.org>
91621         * modules/fchdir (Depends-on): Add absolute-header.
91622         * modules/unistd (Depends-on): Likewise.
91624 2006-12-30  Bruno Haible  <bruno@clisp.org>
91626         * modules/fchdir: New file.
91627         * modules/unistd (Files): Add lib/unistd_.h.
91628         (Makefile.am): Generate unistd.h from unistd_.h.
91629         * lib/fchdir.c: New file.
91630         * lib/dirent_.h: New file.
91631         * lib/unistd_.h: New file.
91632         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91633         * m4/fchdir.m4: New file.
91634         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91635         (gl_HEADER_UNISTD): Invoke it.
91636         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91637         function.
91638         * lib/backupfile.c (opendir, closedir): Undefine.
91639         * lib/chown.c (open, close): Undefine.
91640         * lib/clean-temp.c (open, close): Undefine.
91641         * lib/copy-file.c (open, close): Undefine.
91642         * lib/execute.c (open, close): Undefine.
91643         * lib/fsusage.c (open, close): Undefine.
91644         * lib/gc-gnulib.c (open, close): Undefine.
91645         * lib/getcwd.c (opendir, closedir): Undefine.
91646         * lib/glob.c (opendir, closedir): Undefine.
91647         * lib/javacomp.c (open, close): Undefine.
91648         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91649         * lib/openat-proc.c (open, close): Undefine.
91650         * lib/pagealign_alloc.c (open, close): Undefine.
91651         * lib/pipe.c (open, close): Undefine.
91652         * lib/progreloc.c (open, close): Undefine.
91653         * lib/savedir.c (opendir, closedir): Undefine.
91654         * lib/utime.c (open, close): Undefine.
91655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91657 2007-01-10  Bruno Haible  <bruno@clisp.org>
91659         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91661 2007-01-12  Eric Blake  <ebb9@byu.net>
91663         Provide a robust <wchar.h>.  Further simplifications are now
91664         possible in other modules, but not included here.
91665         * modules/wchar: New module.
91666         * m4/wchar.m4: New file.
91667         * lib/wchar_.h: Likewise.
91668         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91669         of the new module.
91670         * MODULES.html.sh (Extended multibyte and wide character utilities):
91671         New section.
91673 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91675         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91676         to a reasonable default for memory allocation.
91677         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91678         file system that reports garbage st_size values for symlinks.
91679         Problem reported by Liyang Hu.
91681 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91683         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91684         Emacs .#* auto-save files).
91686 2007-01-11  Bruno Haible  <bruno@clisp.org>
91688         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91689         directory.
91691 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91693         Use @...@ consistently in lib/wctype_.h.
91694         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91695         on it being set to 1 or 0.
91696         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91697         go back to AC_SUBSTing it.
91698         * modules/wctype (Makefile.am): Undo previous change.
91700 2007-01-10  Eric Blake  <ebb9@byu.net>
91702         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91703         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91704         * modules/wctype (Makefile.am): Likewise.
91705         Reported by Chris McGuire.
91707 2007-01-10  Jim Meyering  <jim@meyering.net>
91709         fts.c: a small readability/maintainability improvement
91710         * lib/fts.c (fts_read): Make this code slightly more readable and
91711         maintainable by hoisting the "sp->fts_cur = p" assignments to
91712         immediately follow the statements that set P.  Derived from
91713         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91715 2007-01-10  Eric Blake  <ebb9@byu.net>
91717         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91718         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91720         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91721         Reported by Chris McGuire.
91723 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91725         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91726         in sed script.
91728 2007-01-09  Bruno Haible  <bruno@clisp.org>
91730         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91731         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91732         variables.
91733         (func_module): Use them.
91735 2007-01-09  Bruno Haible  <bruno@clisp.org>
91737         * modules/unistr/base: New file.
91738         * lib/unistr.h: New file.
91740         * modules/unistr/u8-to-u16: New file.
91741         * lib/unistr/u8-to-u16.c: New file.
91743         * modules/unistr/u8-to-u32: New file.
91744         * lib/unistr/u8-to-u32.c: New file.
91746         * modules/unistr/u16-to-u8: New file.
91747         * lib/unistr/u16-to-u8.c: New file.
91749         * modules/unistr/u16-to-u32: New file.
91750         * lib/unistr/u16-to-u32.c: New file.
91752         * modules/unistr/u32-to-u8: New file.
91753         * lib/unistr/u32-to-u8.c: New file.
91755         * modules/unistr/u32-to-u16: New file.
91756         * lib/unistr/u32-to-u16.c: New file.
91758         * modules/unistr/u8-check: New file.
91759         * modules/unistr/u16-check: New file.
91760         * modules/unistr/u32-check: New file.
91761         * lib/unistr/u8-check.c: New file.
91762         * lib/unistr/u16-check.c: New file.
91763         * lib/unistr/u32-check.c: New file.
91765         * modules/unistr/u8-chr: New file.
91766         * modules/unistr/u16-chr: New file.
91767         * modules/unistr/u32-chr: New file.
91768         * lib/unistr/u8-chr.c: New file.
91769         * lib/unistr/u16-chr.c: New file.
91770         * lib/unistr/u32-chr.c: New file.
91772         * modules/unistr/u8-cmp: New file.
91773         * modules/unistr/u16-cmp: New file.
91774         * modules/unistr/u32-cmp: New file.
91775         * lib/unistr/u8-cmp.c: New file.
91776         * lib/unistr/u16-cmp.c: New file.
91777         * lib/unistr/u32-cmp.c: New file.
91779         * modules/unistr/u8-cpy: New file.
91780         * modules/unistr/u16-cpy: New file.
91781         * modules/unistr/u32-cpy: New file.
91782         * lib/unistr/u8-cpy.c: New file.
91783         * lib/unistr/u16-cpy.c: New file.
91784         * lib/unistr/u32-cpy.c: New file.
91785         * lib/unistr/u-cpy.h: New file.
91787         * modules/unistr/u8-cpy-alloc: New file.
91788         * modules/unistr/u16-cpy-alloc: New file.
91789         * modules/unistr/u32-cpy-alloc: New file.
91790         * lib/unistr/u8-cpy-alloc.c: New file.
91791         * lib/unistr/u16-cpy-alloc.c: New file.
91792         * lib/unistr/u32-cpy-alloc.c: New file.
91793         * lib/unistr/u-cpy-alloc.h: New file.
91795         * modules/unistr/u8-endswith: New file.
91796         * modules/unistr/u16-endswith: New file.
91797         * modules/unistr/u32-endswith: New file.
91798         * lib/unistr/u8-endswith.c: New file.
91799         * lib/unistr/u16-endswith.c: New file.
91800         * lib/unistr/u32-endswith.c: New file.
91801         * lib/unistr/u-endswith.h: New file.
91803         * modules/unistr/u8-mblen: New file.
91804         * modules/unistr/u16-mblen: New file.
91805         * modules/unistr/u32-mblen: New file.
91806         * lib/unistr/u8-mblen.c: New file.
91807         * lib/unistr/u16-mblen.c: New file.
91808         * lib/unistr/u32-mblen.c: New file.
91810         * modules/unistr/u8-mbtouc: New file.
91811         * modules/unistr/u16-mbtouc: New file.
91812         * modules/unistr/u32-mbtouc: New file.
91813         * lib/unistr/u8-mbtouc.c: New file.
91814         * lib/unistr/u16-mbtouc.c: New file.
91815         * lib/unistr/u32-mbtouc.c: New file.
91817         * modules/unistr/u8-mbtouc-safe: New file.
91818         * modules/unistr/u16-mbtouc-safe: New file.
91819         * modules/unistr/u32-mbtouc-safe: New file.
91820         * lib/unistr/u8-mbtouc-safe.c: New file.
91821         * lib/unistr/u16-mbtouc-safe.c: New file.
91822         * lib/unistr/u32-mbtouc-safe.c: New file.
91824         * modules/unistr/u8-move: New file.
91825         * modules/unistr/u16-move: New file.
91826         * modules/unistr/u32-move: New file.
91827         * lib/unistr/u8-move.c: New file.
91828         * lib/unistr/u16-move.c: New file.
91829         * lib/unistr/u32-move.c: New file.
91830         * lib/unistr/u-move.h: New file.
91832         * modules/unistr/u8-next: New file.
91833         * modules/unistr/u16-next: New file.
91834         * modules/unistr/u32-next: New file.
91835         * lib/unistr/u8-next.c: New file.
91836         * lib/unistr/u16-next.c: New file.
91837         * lib/unistr/u32-next.c: New file.
91839         * modules/unistr/u8-prev: New file.
91840         * modules/unistr/u16-prev: New file.
91841         * modules/unistr/u32-prev: New file.
91842         * lib/unistr/u8-prev.c: New file.
91843         * lib/unistr/u16-prev.c: New file.
91844         * lib/unistr/u32-prev.c: New file.
91846         * modules/unistr/u8-set: New file.
91847         * modules/unistr/u16-set: New file.
91848         * modules/unistr/u32-set: New file.
91849         * lib/unistr/u8-set.c: New file.
91850         * lib/unistr/u16-set.c: New file.
91851         * lib/unistr/u32-set.c: New file.
91852         * lib/unistr/u-set.h: New file.
91854         * modules/unistr/u8-startswith: New file.
91855         * modules/unistr/u16-startswith: New file.
91856         * modules/unistr/u32-startswith: New file.
91857         * lib/unistr/u8-startswith.c: New file.
91858         * lib/unistr/u16-startswith.c: New file.
91859         * lib/unistr/u32-startswith.c: New file.
91860         * lib/unistr/u-startswith.h: New file.
91862         * modules/unistr/u8-stpcpy: New file.
91863         * modules/unistr/u16-stpcpy: New file.
91864         * modules/unistr/u32-stpcpy: New file.
91865         * lib/unistr/u8-stpcpy.c: New file.
91866         * lib/unistr/u16-stpcpy.c: New file.
91867         * lib/unistr/u32-stpcpy.c: New file.
91868         * lib/unistr/u-stpcpy.h: New file.
91870         * modules/unistr/u8-stpncpy: New file.
91871         * modules/unistr/u16-stpncpy: New file.
91872         * modules/unistr/u32-stpncpy: New file.
91873         * lib/unistr/u8-stpncpy.c: New file.
91874         * lib/unistr/u16-stpncpy.c: New file.
91875         * lib/unistr/u32-stpncpy.c: New file.
91876         * lib/unistr/u-stpncpy.h: New file.
91878         * modules/unistr/u8-strcat: New file.
91879         * modules/unistr/u16-strcat: New file.
91880         * modules/unistr/u32-strcat: New file.
91881         * lib/unistr/u8-strcat.c: New file.
91882         * lib/unistr/u16-strcat.c: New file.
91883         * lib/unistr/u32-strcat.c: New file.
91884         * lib/unistr/u-strcat.h: New file.
91886         * modules/unistr/u8-strchr: New file.
91887         * modules/unistr/u16-strchr: New file.
91888         * modules/unistr/u32-strchr: New file.
91889         * lib/unistr/u8-strchr.c: New file.
91890         * lib/unistr/u16-strchr.c: New file.
91891         * lib/unistr/u32-strchr.c: New file.
91893         * modules/unistr/u8-strcmp: New file.
91894         * modules/unistr/u16-strcmp: New file.
91895         * modules/unistr/u32-strcmp: New file.
91896         * lib/unistr/u8-strcmp.c: New file.
91897         * lib/unistr/u16-strcmp.c: New file.
91898         * lib/unistr/u32-strcmp.c: New file.
91900         * modules/unistr/u8-strcpy: New file.
91901         * modules/unistr/u16-strcpy: New file.
91902         * modules/unistr/u32-strcpy: New file.
91903         * lib/unistr/u8-strcpy.c: New file.
91904         * lib/unistr/u16-strcpy.c: New file.
91905         * lib/unistr/u32-strcpy.c: New file.
91906         * lib/unistr/u-strcpy.h: New file.
91908         * modules/unistr/u8-strcspn: New file.
91909         * modules/unistr/u16-strcspn: New file.
91910         * modules/unistr/u32-strcspn: New file.
91911         * lib/unistr/u8-strcspn.c: New file.
91912         * lib/unistr/u16-strcspn.c: New file.
91913         * lib/unistr/u32-strcspn.c: New file.
91914         * lib/unistr/u-strcspn.h: New file.
91916         * modules/unistr/u8-strdup: New file.
91917         * modules/unistr/u16-strdup: New file.
91918         * modules/unistr/u32-strdup: New file.
91919         * lib/unistr/u8-strdup.c: New file.
91920         * lib/unistr/u16-strdup.c: New file.
91921         * lib/unistr/u32-strdup.c: New file.
91922         * lib/unistr/u-strdup.h: New file.
91924         * modules/unistr/u8-strlen: New file.
91925         * modules/unistr/u16-strlen: New file.
91926         * modules/unistr/u32-strlen: New file.
91927         * lib/unistr/u8-strlen.c: New file.
91928         * lib/unistr/u16-strlen.c: New file.
91929         * lib/unistr/u32-strlen.c: New file.
91930         * lib/unistr/u-strlen.h: New file.
91932         * modules/unistr/u8-strmblen: New file.
91933         * modules/unistr/u16-strmblen: New file.
91934         * modules/unistr/u32-strmblen: New file.
91935         * lib/unistr/u8-strmblen.c: New file.
91936         * lib/unistr/u16-strmblen.c: New file.
91937         * lib/unistr/u32-strmblen.c: New file.
91939         * modules/unistr/u8-strmbtouc: New file.
91940         * modules/unistr/u16-strmbtouc: New file.
91941         * modules/unistr/u32-strmbtouc: New file.
91942         * lib/unistr/u8-strmbtouc.c: New file.
91943         * lib/unistr/u16-strmbtouc.c: New file.
91944         * lib/unistr/u32-strmbtouc.c: New file.
91946         * modules/unistr/u8-strncat: New file.
91947         * modules/unistr/u16-strncat: New file.
91948         * modules/unistr/u32-strncat: New file.
91949         * lib/unistr/u8-strncat.c: New file.
91950         * lib/unistr/u16-strncat.c: New file.
91951         * lib/unistr/u32-strncat.c: New file.
91952         * lib/unistr/u-strncat.h: New file.
91954         * modules/unistr/u8-strncmp: New file.
91955         * modules/unistr/u16-strncmp: New file.
91956         * modules/unistr/u32-strncmp: New file.
91957         * lib/unistr/u8-strncmp.c: New file.
91958         * lib/unistr/u16-strncmp.c: New file.
91959         * lib/unistr/u32-strncmp.c: New file.
91961         * modules/unistr/u8-strncpy: New file.
91962         * modules/unistr/u16-strncpy: New file.
91963         * modules/unistr/u32-strncpy: New file.
91964         * lib/unistr/u8-strncpy.c: New file.
91965         * lib/unistr/u16-strncpy.c: New file.
91966         * lib/unistr/u32-strncpy.c: New file.
91967         * lib/unistr/u-strncpy.h: New file.
91969         * modules/unistr/u8-strnlen: New file.
91970         * modules/unistr/u16-strnlen: New file.
91971         * modules/unistr/u32-strnlen: New file.
91972         * lib/unistr/u8-strnlen.c: New file.
91973         * lib/unistr/u16-strnlen.c: New file.
91974         * lib/unistr/u32-strnlen.c: New file.
91975         * lib/unistr/u-strnlen.h: New file.
91977         * modules/unistr/u8-strpbrk: New file.
91978         * modules/unistr/u16-strpbrk: New file.
91979         * modules/unistr/u32-strpbrk: New file.
91980         * lib/unistr/u8-strpbrk.c: New file.
91981         * lib/unistr/u16-strpbrk.c: New file.
91982         * lib/unistr/u32-strpbrk.c: New file.
91983         * lib/unistr/u-strpbrk.h: New file.
91985         * modules/unistr/u8-strrchr: New file.
91986         * modules/unistr/u16-strrchr: New file.
91987         * modules/unistr/u32-strrchr: New file.
91988         * lib/unistr/u8-strrchr.c: New file.
91989         * lib/unistr/u16-strrchr.c: New file.
91990         * lib/unistr/u32-strrchr.c: New file.
91992         * modules/unistr/u8-strspn: New file.
91993         * modules/unistr/u16-strspn: New file.
91994         * modules/unistr/u32-strspn: New file.
91995         * lib/unistr/u8-strspn.c: New file.
91996         * lib/unistr/u16-strspn.c: New file.
91997         * lib/unistr/u32-strspn.c: New file.
91998         * lib/unistr/u-strspn.h: New file.
92000         * modules/unistr/u8-strstr: New file.
92001         * modules/unistr/u16-strstr: New file.
92002         * modules/unistr/u32-strstr: New file.
92003         * lib/unistr/u8-strstr.c: New file.
92004         * lib/unistr/u16-strstr.c: New file.
92005         * lib/unistr/u32-strstr.c: New file.
92006         * lib/unistr/u-strstr.h: New file.
92008         * modules/unistr/u8-strtok: New file.
92009         * modules/unistr/u16-strtok: New file.
92010         * modules/unistr/u32-strtok: New file.
92011         * lib/unistr/u8-strtok.c: New file.
92012         * lib/unistr/u16-strtok.c: New file.
92013         * lib/unistr/u32-strtok.c: New file.
92014         * lib/unistr/u-strtok.h: New file.
92016         * modules/unistr/u8-uctomb: New file.
92017         * modules/unistr/u16-uctomb: New file.
92018         * modules/unistr/u32-uctomb: New file.
92019         * lib/unistr/u8-uctomb.c: New file.
92020         * lib/unistr/u16-uctomb.c: New file.
92021         * lib/unistr/u32-uctomb.c: New file.
92023         * MODULES.html.sh (Unicode string functions): Add the new modules.
92025 2007-01-08  Bruno Haible  <bruno@clisp.org>
92027         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
92028         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
92029         subdirectories.
92031 2007-01-08  Karl Berry  <karl@gnu.org>
92033         * doc/error.texi: mention that main() fns must set program_name
92034         when progname is used.
92036 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
92038         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
92039         WCTYPE_H is empty, for the benefit of builds from non-distclean
92040         directories.  Problem reported by Eric Blake in
92041         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
92043 2007-01-08  Bruno Haible  <bruno@clisp.org>
92045         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
92046         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
92047         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
92048         PROVIDE_CANONICALIZE_FILENAME_MODE.
92049         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
92051 2007-01-08  Bruno Haible  <bruno@clisp.org>
92053         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
92054         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
92055         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
92056         * lib/fts.c: Likewise.
92057         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
92059 2006-12-25  Bruno Haible  <bruno@clisp.org>
92061         * modules/utf8-ucs4-safe: New file.
92062         * lib/utf8-ucs4-safe.h: New file.
92063         * lib/unistr/utf8-ucs4-safe.c: New file.
92065         * modules/utf16-ucs4-safe: New file.
92066         * lib/utf16-ucs4-safe.h: New file.
92067         * lib/unistr/utf16-ucs4-safe.c: New file.
92069         * MODULES.html.sh (Unicode string functions): Add the new modules.
92071 2007-01-08  Bruno Haible  <bruno@clisp.org>
92073         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
92074         (Depends-on): Add unitypes.
92075         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92076         (u8_mbtouc_aux): Move out to separate file.
92077         (u8_mbtouc): Use ucs4_t, uint8_t types.
92078         * lib/unistr/utf8-ucs4.c: New file.
92080         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
92081         (Depends-on): Add unitypes.
92082         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92083         (u16_mbtouc_aux): Move out to separate file.
92084         (u16_mbtouc): Use ucs4_t, uint16_t types.
92085         * lib/unistr/utf16-ucs4.c: New file.
92087         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
92088         (Depends-on): Add unitypes.
92089         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
92090         (u8_uctomb_aux): Move out to separate file.
92091         (u8_uctomb): Use ucs4_t, uint8_t types.
92092         * lib/unistr/ucs4-utf8.c: New file.
92094         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
92095         (Depends-on): Add unitypes.
92096         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
92097         (u16_uctomb_aux): Move out to separate file.
92098         (u16_uctomb): Use ucs4_t, uint16_t types.
92099         * lib/unistr/ucs4-utf16.c: New file.
92101 2006-12-25  Bruno Haible  <bruno@clisp.org>
92103         * modules/unitypes: New file.
92104         * lib/unitypes.h: New file.
92105         * MODULES.html.sh (func_all_modules): New section "Unicode string
92106         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
92107         this section. Add unitypes.
92109 2007-01-08  Bruno Haible  <bruno@clisp.org>
92111         Avoid variable names that conflict with those from libtool.
92112         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
92113         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
92114         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
92115         library_names_spec to acl_library_names_spec, hardcode_* to
92116         acl_hardcode_*.
92117         Reported by Ralf Wildenhues.
92119 2007-01-08  Bruno Haible  <bruno@clisp.org>
92121         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
92122         definition.
92123         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
92124         definition.
92125         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
92126         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
92127         definition.
92128         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
92129         definition.
92130         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
92131         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
92132         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
92133         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
92134         definition.
92135         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
92136         definition.
92137         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
92138         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
92139         GC_USE_<algorithm>.
92140         * lib/gc-libgcrypt.c: Likewise.
92141         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
92142         * modules/gc-arctwo (configure.ac): Likewise.
92143         * modules/gc-des (configure.ac): Likewise.
92144         * modules/gc-hmac-md5 (configure.ac): Likewise.
92145         * modules/gc-hmac-sha1 (configure.ac): Likewise.
92146         * modules/gc-md2 (configure.ac): Likewise.
92147         * modules/gc-md4 (configure.ac): Likewise.
92148         * modules/gc-md5 (configure.ac): Likewise.
92149         * modules/gc-random (configure.ac): Likewise.
92150         * modules/gc-rijndael (configure.ac): Likewise.
92151         * modules/gc-sha1 (configure.ac): Likewise.
92153 2007-01-08  Bruno Haible  <bruno@clisp.org>
92155         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
92156         macro definition.
92157         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
92158         definition.
92159         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
92160         definition.
92161         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
92162         * modules/fcntl-safer (configure.ac): Likewise.
92163         * modules/fopen-safer (configure.ac): Likewise.
92164         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
92165         GNULIB_FWRITEERROR macro definition.
92167 2007-01-08  Bruno Haible  <bruno@clisp.org>
92169         * m4/gnulib-common.m4: New file.
92170         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
92171         (func_get_filelist): Add m4/gnulib-common.m4.
92173 2007-01-08  Bruno Haible  <bruno@clisp.org>
92175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
92176         command.
92178 2007-01-08  Jim Meyering  <jim@meyering.net>
92180         Use a more robust test for a "can't happen" condition.
92181         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
92182         narrowed the st_size value.  Presuming the "can't happen" condition
92183         is true, that narrowing could conceivably convert an invalid st_size
92184         value into a valid one.  Instead, use a change based on Matthew
92185         Woehlke's original patch.
92187         Slight readability improvement: use an assert-like macro
92188         in place of literal "abort ()" uses.
92189         * lib/fts.c (fts_assert): Define.
92190         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
92191         Use this macro instead of a bare 'abort'.
92193 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
92195         Don't worry about using IRIX 5.3's wctype.h broken definitions;
92196         simply work around them.
92197         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
92198         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
92199         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
92200         declaring.
92201         Don't bother to define as macros, since the standard doesn't require it.
92202         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
92203         longer worry about IRIX 5.3.
92204         (HAVE_WCTYPE_CTMP_BUG): Remove.
92206 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
92208         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
92209         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
92210         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
92211         Problems reported by Georg Schwarz for IRIX 5.3.
92213         * gnulib-tool (autoconf_minversion): Take the maximum version number
92214         found, not the minimum.  Problem reported by James Youngman.
92216 2007-01-03  Karl Berry  <karl@gnu.org>
92218         * doc/error.texi: new file, explaining interaction with progname.
92219         * doc/gnulib.texi: include it.  Update copyright.
92221 2007-01-03  Simon Josefsson  <simon@josefsson.org>
92223         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
92224         AC_CANONICAL_HOST, to improve autobuild outputs.
92226 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
92227             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
92229         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
92230         sockets, server sockets, and other file descriptors.  Count errors
92231         to compute the return value.  Reorder the code a bit to be easier
92232         to follow.  Don't set event bits that were not requested (except
92233         POLLERR and POLLHUP).
92235 2007-01-01  Bruno Haible  <bruno@clisp.org>
92237         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
92239 2007-01-03  Jim Meyering  <jim@meyering.net>
92241         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
92243 2007-01-02  Bruno Haible  <bruno@clisp.org>
92245         * modules/settime (Include): Require timespec.h.
92246         * modules/nanosleep (Include): Likewise.
92248 2007-01-01  Bruno Haible  <bruno@clisp.org>
92250         * gnulib-tool (func_emit_copyright_notice): Bump year.
92251         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
92253 2007-01-01  Bruno Haible  <bruno@clisp.org>
92255         Improve support for OpenBSD.
92256         * build-aux/config.rpath (libname_spec): Export.
92257         (library_names_spec): New variable. Export.
92258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
92259         library_names_spec from the config.rpath output. Locate shared library
92260         through the name pattern in library_names_spec.
92262 2007-01-01  Eric Blake  <ebb9@byu.net>
92264         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
92266 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
92268         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
92269         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
92270         assume the C locale, and avoid an "eval" that could cause trouble.
92271         Problem with SORT reported by Bob Proulx.
92273         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
92274         Define.  Trivial patch from Henning Nielsen Lund, originally
92275         sent to bug-grep@gnu.org today.
92277 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
92279         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
92280         struct stat.  Problem reported by Henning Nielsen Lund.
92281         * lib/acl.c: Include acl.h first, to check interface.  Don't
92282         bother to include sys/types.h and sys/stat.h again.
92284 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
92286         Import the following change from libc; problem reported by
92287         Sven Verdoolaege.
92289         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
92291         [BZ #1373]
92292         * lib/argp.h: Remove __NTH for __argp_usage inline function.
92294 2006-12-28  Jim Meyering  <jim@meyering.net>
92296         * build-aux/announce-gen: Do not assume that the package
92297         builds any of tar.gz, tar.bz2, and .xdelta files.
92298         Suggestion from Simon Josefsson.
92300 2006-12-28  Simon Josefsson  <simon@josefsson.org>
92302         * modules/announce-gen: New file.
92304 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
92306         * lib/mbchar.h: Just include <wctype.h>; the wctype module
92307         handles its gotchas now.
92308         * lib/mbswidth.c: Likewise.
92309         * lib/wcwidth.h: Likewise.
92310         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
92311         and iswcntrl; the wctype module does this stuff now.
92312         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
92314         * modules/mbchar (Depends-on): Add wctype.
92315         * modules/mbswidth (Depends-on): Likewise.
92316         * modules/wcwidth (Depends-on): Likewise.
92318 2006-12-27  Eric Blake  <ebb9@byu.net>
92320         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
92321         module uses more than what <wctype.h> is required to provide.
92323 2006-12-26  Eric Blake  <ebb9@byu.net>
92325         * gnulib-tool (sed_extract_prog): Avoid space-tab.
92327 2006-12-26  Eric Blake  <ebb9@byu.net>
92329         * modules/absolute-header: New module.
92330         * modules/fcntl (Depends-on): Depend on it.
92331         * modules/inttypes (Depends-on): Likewise.
92332         * modules/stdint (Depends-on): Likewise.
92333         * modules/sys_stat (Depends-on): Likewise.
92334         * modules/wctype (Depends-on): Likewise.
92335         * MODULES.html.sh (Support for building libraries and
92336         executables): Document it.
92338 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
92340         * gnulib-tool (SED): Remove, undoing previous change.
92341         The problem was that it broke coreutils on Solaris, because
92342         "sed --posix" leaked into a makefile.
92343         (sed): New alias, if 'alias' and GNU sed.
92345 2006-12-24  Jim Meyering  <jim@meyering.net>
92347         Work around an fchownat bug in glibc-2.4:
92348         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
92349         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
92350         in spite of the -P option.
92351         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
92352         New macros.
92353         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
92354         * modules/openat (Files): Add lib/fchownat.c.
92355         * lib/openat.c (fchownat): Don't define here.  Move to...
92356         * lib/fchownat.c: ...this new file.
92358 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
92360         Fix bug reported by Bruno Haible in
92361         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
92362         where quotearg.c didn't compile on Mac OS X 10.2 because it
92363         lacks <wchar.h> and wint_t.
92364         * lib/wctype_.h (__wctype_wint_t): New type.
92365         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
92366         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
92367         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
92368         Arg is now of type __wctype_wint_t, not wint_t.
92369         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
92370         substitute HAVE_WINT_T.
92371         * modules/wctype (Files): Add m4/wint_t.m4.
92372         (wctype.h): Substitute HAVE_WINT_T.
92374 2006-12-23  Bruno Haible  <bruno@clisp.org>
92376         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
92378 2006-12-23  Bruno Haible  <bruno@clisp.org>
92380         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
92381         S_ISLNK.
92382         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
92383         mingw.
92385 2006-12-22  Bruno Haible  <bruno@clisp.org>
92387         * lib/copy-file.c: Include acl.h.
92388         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
92389         Close the file descriptors only after being done with copy_acl.
92390         * modules/copy-file (Depends-on): Add acl.
92392 2006-12-22  Bruno Haible  <bruno@clisp.org>
92394         * gnulib-tool (SED): New variable.
92395         Use $SED instead of sed everywhere.
92397 2006-12-22  Bruno Haible  <bruno@clisp.org>
92399         * modules/no-c++: New file.
92400         * m4/no-c++.m4: New file.
92401         * MODULES.html.sh (Support for building libraries and executables):
92402         Add no-c++.
92404 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
92406         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92407         Include <limits.h>, and use its INT_MAX to rewrite the
92408         j loop so that it does not overflow 'int'.  Problem reported by
92409         Ralf Wildenhues in
92410         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
92411         Play it safe by shifting left by 1 rather than multiplying by 2,
92412         as GCC is less likely to optimize this away when the value
92413         is signed (when it assumes overflow leads to undefined behavior).
92414         Also, don't assume time_t uses two's complement.
92416 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
92418         * MODULES.html.sh: New module wctype.
92419         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
92420         * lib/fnmatch.c: Don't bother to include <wchar.h> before
92421         <wctype.h>, since the new wctype module should fix this.
92422         * lib/quotearg.c: Include <wctype.h> unconditionally, since
92423         the wctype module should arrange for it.
92424         * lib/regex_internal.h: Likewise.
92425         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
92426         since the wctype module should handle this now.
92427         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
92428         * modules/fnmatch (Depends-on): Add wctype.
92429         * modules/quotearg (Depends-on): Likewise.
92430         * modules/regex (Depends-on): Likewise.
92432 2006-12-19  Bruno Haible  <bruno@clisp.org>
92434         * lib/strdup.h [C++]: Wrap definitions in extern "C".
92435         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
92437 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92439         * modules/savewd (Depends-on): Fix dependency on fcntl.
92441 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92443         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
92444         conforms to C99, rather than relying on the user's environment
92445         setting of STDINT_H.
92447 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92448         and Eric Blake  <ebb9@byu.net>
92450         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
92451         This is more consistent with the other defines here.
92452         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
92453         Port to z/OS.  Problem reported by Paul Gilmartin.
92454         Change local vars to use gl_ prefix rather than ac_.
92455         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
92456         with other defines.
92457         * modules/double-slash-root: New module.
92458         * modules/dirname (Files): Remove m4/double-slash-root.m4.
92459         (Depends-on): Add double-slash-root.
92460         * MODULES.html.sh (File system functions): Mention new module.
92462 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
92464         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
92465         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
92466         This is for the benefit of gzip, which doesn't do i18n.
92468 2006-12-12  Jim Meyering  <jim@meyering.net>
92470         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
92471         Reported by Andreas Schwab <schwab@suse.de>.
92473 2006-12-12  Bruno Haible  <bruno@clisp.org>
92475         Merge these changes.
92476         2006-09-05  Bruno Haible  <bruno@clisp.org>
92477         * lib/iconvme.c (iconv_string): No need to save and restore errno when
92478         iconv_alloc succeeded.
92479         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
92480         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
92481         test for " && dest " at the end - dest is always != NULL there. Call
92482         iconv with 4xNULL arguments initially, to reset the state. Call iconv
92483         with 2xNULL arguments, also to flush the state storage. Handle the
92484         IRIX iconv behaviour. Realloc the final result, to throw away unused
92485         memory.
92487 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
92489         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
92490         and fchmodat unconditionally, since glibc 2.4 has them.
92491         Problem reported by Arkadiusz Miskiewicz.
92493 2006-12-10  Bruno Haible  <bruno@clisp.org>
92495         * gnulib-tool (func_import): Show the include files only for those
92496         modules that are copied and specified.
92497         Reported by Karl Berry.
92499 2006-12-08  Jim Meyering  <jim@meyering.net>
92501         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
92502         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
92504         * build-aux/announce-gen: Add two new options, both optional:
92505         --bootstrap-tools=TOOL_LIST
92506               a comma-separated list of tools, e.g.,
92507               autoconf,automake,bison,gnulib
92508         --gnulib-snapshot-date=DATE
92509               if gnulib is in the bootstrap tool list,
92510               then report this as the snapshot date.
92511               If not specified, use the current date/time.
92512               If you specify a date here, be sure it's UTC.
92514 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92516         * tests/test-argp-2.sh: Fix test to match actual output.
92517         (func_compare): Fix sed script to be portable.
92519 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
92521         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
92522         workaround for this case.  It is not autoconfigured now; offhand
92523         it's hard to see how to autoconfigure it.
92525 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92527         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
92528         a directory that is about to be chowned.  Such a directory's
92529         initial file permissions should permit the owner only and this
92530         should not be changed until after the chown, since the group and
92531         other bits would be incorrect if they granted permission before
92532         the chown.
92534         Fix porting problem for iswctype reported by Georg Schwarz in:
92535         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
92536         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
92537         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
92538         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
92539         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92541 2006-12-03  Jim Meyering  <jim@meyering.net>
92543         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
92544         p->fts_statp may not yet be defined.
92545         (fts_read): Instead, set it in the caller, once p->fts_statp is
92546         sure to be defined, and corresponds to a top-level directory.
92547         This bug made du -x fail.  Here's the coreutils test case:
92548         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
92549         Reported by Mike Frysinger.
92551 2006-12-01  Jim Meyering  <jim@meyering.net>
92553         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
92554         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
92555         Reported by Simon Josefsson.
92557 2006-11-30  Jim Meyering  <jim@meyering.net>
92559         * m4/warning.m4: Use the all-permissive copyright notice
92560         recommended by RMS (rather than LGPL).
92561         * m4/vararrays.m4: Likewise.
92562         * m4/flexmember.m4: Likewise.
92564 2006-11-29  Bruno Haible  <bruno@clisp.org>
92566         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92567         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
92568         using +=.
92569         Reported by Simon Josefsson <simon@josefsson.org>.
92571 2006-11-28  James Youngman  <jay@gnu.org>
92573         * README: Advise users that they might find the bug-gnulib@gnu.org
92574         and autotools-announce@gnu.org mailing lists useful.
92576 2006-11-28  Bruno Haible  <bruno@clisp.org>
92578         * m4/ptrdiff_max.m4: Remove file.
92580 2006-11-21  Bruno Haible  <bruno@clisp.org>
92582         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
92583         _AC_COMPUTE_INT.
92584         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92585         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
92586         _AC_COMPUTE_INT.
92587         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92588         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
92589         _AC_COMPUTE_INT.
92590         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92592 2006-11-28  Jim Meyering  <jim@meyering.net>
92594         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92595         warning from "gcc -Wshadow" about shadowing the builtin.
92597 2006-11-27  Bruno Haible  <bruno@clisp.org>
92599         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92600         _AC_COMPUTE_INT.
92601         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92603 2006-11-27  Bruno Haible  <bruno@clisp.org>
92604             Paul Eggert  <eggert@cs.ucla.edu>
92606         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92608 2006-11-26  Bruno Haible  <bruno@clisp.org>
92610         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92611         noinst_LTLIBRARIES.
92613 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92614             Bruno Haible  <bruno@clisp.org>
92616         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92617         if compiling with "gcc -ansi".
92619 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92621         Fix some incompatibilities with gcc -ansi -pedantic.
92622         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92623         if compiling pedantically with GCC, unless it's C99 or later.
92624         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92625         it mishandles gcc -ansi -pedantic as well.
92626         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92627         if gcc -pedantic.
92628         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92629         initializers for struct if -pedantic, unless it's C99 or later.
92631 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92633         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92634         Don't close an fd more than once. Identical atimes indicate
92635         success, not failure.
92637 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92639         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92641 2006-11-23  Jim Meyering  <jim@meyering.net>
92643         * build-aux/announce-gen: New file.  From coreutils.
92645 2006-11-22  Jim Meyering  <jim@meyering.net>
92647         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92648         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92649         (fts_read): Use a temporary to narrow the overused st_size member
92650         before using it in a switch statement.  Reported by Matthew Woehlke.
92652         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92653         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92655 2006-11-20  Bruno Haible  <bruno@clisp.org>
92657         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92658         changequote instead of pairs of brackets.
92659         Reported by Andreas Schwab <schwab@suse.de>.
92661 2006-11-21  Jim Meyering  <jim@meyering.net>
92663         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92664         so as to remain compatible with older compilers.
92665         Patch from Michael Deutschmann.
92667 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92669         * MODULES.html.sh (File system functions): Add openat.
92671         * lib/openat.h (rpl_fstatat): New macro, if
92672         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92673         (fstatat): Define to rpl_fstatat under the same conditions,
92674         unless COMPILING_FSTATAT.
92675         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92676         seems to have the bug.
92677         * lib/fstatat.c: New file.
92678         * modules/openat (Files): Add it.
92680 2006-11-20  Bruno Haible  <bruno@clisp.org>
92682         * Makefile: New file.
92684 2006-11-20  Jim Meyering  <jim@meyering.net>
92686         The beginnings of syntax-related checks for gnulib.
92687         * lib/Makefile: New file.
92688         * lib/t-idcache: New script.  Ensure that the two halves of
92689         idcache.c stay in sync.
92691         * lib/idcache.c: Adjust comments in user- and group- portions to
92692         be more accurate, and to be consistent with one another.
92694 2006-11-20  Jim Meyering  <jim@meyering.net>
92696         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92697         continue using the flexible array member (thus, this module performs
92698         half as many malloc calls), with the addition that...
92699         (getgroup, getuser): Consistently record a non-match via an empty
92700         "name" string, and map an empty string match to a NULL return value.
92701         * modules/idcache (Depends-on): Re-add flexmember.
92703         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92704         (getuidbyname, getgroup, getgidbyname): Likewise.
92706         Use cleaner syntax: NULL rather than 0.
92707         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92709 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92711         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92712         It mishandled the case where the group was missing.
92713         Problem reported by Greg Schafer.
92714         * modules/idcache: Likewise.
92716 2006-11-18  Jim Meyering  <jim@meyering.net>
92718         * check-module (%exempt_header): Add exception for some
92719         conditionally-included headers.
92721         * modules/i-ring (Depends-on): Add verify.
92722         (License): Change to LGPL.
92724 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92726         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92727         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92728         and inttostr.h.  Use snprintf rather than uinttostr, so that
92729         LGPLed code doesn't depend on GPLed.
92731 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92733         * modules/inline (License): Change from GPL to LGPL.
92735 2006-11-17  Jim Meyering  <jim@meyering.net>
92737         * modules/d-type (License): Switch to LGPL.
92739 2006-11-15  Bruno Haible  <bruno@clisp.org>
92741         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92743 2006-11-15  Eric Blake  <ebb9@byu.net>
92745         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
92746         the module dependency.
92748 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92749             Bruno Haible  <bruno@clisp.org>
92751         * gnulib-tool (func_create_testdir): Add license consistency check.
92753 2006-11-15  Eric Blake  <ebb9@byu.net>
92755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
92756         random "(cached)" in configure output.
92758 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92760         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
92761         test for conforming inttypes.h is both announced and cached.
92763         * MODULES.html.sh (seen_modules, seen_files): New variables.
92764         (func_module): Rewrite to use a few less gnulib-tool and sed
92765         invocations.  Avoid a couple of quadratic algorithms for ...
92766         (missed_modules, missed_files): ... these, with ...
92767         (func_append, func_tmpdir): ... these new functions, from
92768         gnulib-tool.  Analogously, install traps for cleanup.
92770         * tests/test-gc.c (main): Remove unused variables.
92771         * tests/test-read-file.c: Include stdlib.h, for 'free'.
92773 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
92775         * modules/inttostr (License): Change to LGPL.
92777 2006-11-14  Eric Blake  <ebb9@byu.net>
92779         * modules/tempname (License): Change to LGPL.
92781 2006-11-14  Eric Blake  <ebb9@byu.net>
92783         * doc/functions.texi (Function Portability): *printf functions on
92784         Cygwin now understand all POSIX size specifiers.
92786 2006-11-14  Bruno Haible  <bruno@clisp.org>
92788         * modules/c-ctype (License): Change to LGPL.
92790 2006-11-12  Bruno Haible  <bruno@clisp.org>
92792         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92793         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
92794         for GNOME libraries, for which the include files are installed in
92795         subdirectories of $prefix/include.
92797 2006-11-12  Bruno Haible  <bruno@clisp.org>
92799         * m4/lib-link.m4: Require at least autoconf-2.54.
92800         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
92801         name to underscores for the --with option.
92803 2006-11-13  Bruno Haible  <bruno@clisp.org>
92805         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
92806         the tests directory.
92807         Reported by Ralf Wildenhues.
92809 2006-11-13  Bruno Haible  <bruno@clisp.org>
92811         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
92812         (func_emit_initmacro_end): Undo the override here.
92813         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
92814         Works around the famous automake error in coreutils.
92816 2006-11-13  Eric Blake  <ebb9@byu.net>
92818         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
92819         element, not its node.
92821 2006-11-12  Bruno Haible  <bruno@clisp.org>
92823         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
92824         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
92826 2006-11-12  Bruno Haible  <bruno@clisp.org>
92828         * gnulib-tool: New option --local-symlink.
92829         (func_usage): Document it.
92830         (lsymbolic): New variable.
92831         (func_import, func_create_testdir): If --symlink was not specified,
92832         test whether --local-symlink was specified and the file comes from
92833         the local_gnulib_dir.
92835 2006-11-12  Bruno Haible  <bruno@clisp.org>
92837         * gnulib-tool (func_ln): New function.
92838         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
92840 2006-11-12  Bruno Haible  <bruno@clisp.org>
92842         Finish support for source files in subdirectories.
92843         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
92844         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
92845         AUTOMAKE_OPTIONS.
92846         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
92848 2006-11-12  Bruno Haible  <bruno@clisp.org>
92850         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92851         EXTRA_lib_SOURCES augmentation.
92852         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
92854 2006-11-12  Jim Meyering  <jim@meyering.net>
92856         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
92857         file descriptors.  This also averts a failure on systems with
92858         native openat support when a traversed directory lacks "x" access.
92859         * lib/fts_.h: Include "i-ring.h"
92860         (struct FTS) [fts_fd_ring]: New member.
92861         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92862         (FCHDIR): Add parentheses.
92863         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92864         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92865         When descending, rather than simply closing the previous
92866         fts_cwd_fd value, push that file descriptor onto the ring.
92867         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92868         (fts_open): Initialize the new fd_ring member.
92869         (fts_close): Clear the ring.
92870         (fts_safe_changedir): When possible, use our new fd_ring to skip
92871         the diropen and fstat and dev/ino comparison that would normally
92872         accompany a virtual `chdir ("..")'.
92874         * modules/fts (Depends-on): Add i-ring.
92875         * modules/i-ring: New module.
92876         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92877         * m4/i-ring.m4: New file.
92879 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92881         * gnulib-tool (func_create_testdir): Fix replacement of
92882         `build-aux' in configure.ac.  Run autotools in gltests
92883         subdirectory.
92884         (func_create_testdir, func_create_megatestdir, test): There is
92885         no need for '--force' in most autotool invocations in a new
92886         tree.  Actually fail the whole test if any of the tools, or the
92887         configure or make stages fail.
92889         Sync from Automake.
92890         * build-aux/gnupload: Revert last change.  Add pointer to upload
92891         instructions of the GNU Maintenance Instructions.
92892         Suggestion by Karl Berry.
92894 2006-11-10  Jim Meyering  <jim@meyering.net>
92896         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92898 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92900         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92901         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92902         (bind_textdomain_codeset) [! ENABLE_NLS]:
92903         Evaluate all the arguments.  That way, callers get compatible behavior
92904         if the arguments have side effects.  Also, it avoids some GCC
92905         diagnostics in some cases; Joel E. Denny reported problems when Bison
92906         was configured with --enable-gcc-warnigs.
92908 2006-11-10  Jim Meyering  <jim@meyering.net>
92910         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92911         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92912         account.
92914 2006-11-10  Jim Meyering  <jim@meyering.net>
92916         * modules/inline: New file/module.
92917         * modules/xalloc (Files): Remove m4/inline.m4.
92918         (Depends-on): Add inline, instead.
92919         * modules/oset: Likewise.
92920         * modules/list: Likewise.
92922 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92924         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
92925         Problem reported by Matthew Woehlke.
92927 2006-11-09  Bruno Haible  <bruno@clisp.org>
92929         * lib/tempname.c (gen_tempname): Remove variant that invokes
92930         __gen_tempname.
92931         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
92932         __gen_tempname.
92934 2006-11-08  Bruno Haible  <bruno@clisp.org>
92936         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
92937         to 'yes' instead of 'cross-compiling'.
92939 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
92941         * lib/quotearg.h (quotearg_free): New decl.
92942         * lib/quotearg.c (quotearg_free): New function.
92943         (slot0, nslots, slotvec0, slotvec):
92944         Now file-scope so that quotearg_free can get at them.
92946 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92948         Sync from Automake.
92949         * build-aux/gnupload: Add missing 'gnu' to example URL.
92950         Report by Karl Berry.
92952 2006-11-08  Bruno Haible  <bruno@clisp.org>
92954         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
92955         Suggested by Paul Eggert.
92957 2006-11-08  Jim Meyering  <jim@meyering.net>
92959         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
92960         It's already included if !_LIBC.
92961         (fts_safe_changedir): Add a comment.
92963 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92965         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
92966         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
92967         Matthew Woehlke.
92969         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
92970         definitions up, to avoid colliding with change below.
92971         (static_inline) [HAVE_INLINE]: New macro.
92972         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
92973         Provide extern decls when !HAVE_INLINE.  Do not define unless
92974         static_inline is defined, either by us or by xmalloc.c.  Use
92975         static_inline rather than static inline.
92976         (XCALLOC): Optimize sizeof(T) = 1 case.
92977         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
92979 2006-11-07  Bruno Haible  <bruno@clisp.org>
92981         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
92982         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
92983         AC_C_INLINE.
92984         * modules/xalloc (Files): Add m4/inline.m4.
92986 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92988         * README: Fix typo.
92989         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
92990         (Miscellanous Notes): ...from this.
92992 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92994         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
92995         Mention that offsetof should be used instead of sizeof.
92996         From Bruno Haible.
92998 2006-11-07  Bruno Haible  <bruno@clisp.org>
93000         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
93002 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93004         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93005         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
93006         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93007         (gl_tree_add_before, gl_tree_add_after):
93008         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
93009         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
93010         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
93011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
93012         (gl_linked_add_after, gl_linked_add_at): Likewise.
93013         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
93014         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93015         (gl_tree_add_before, gl_tree_add_after): Likewise.
93016         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
93017         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
93018         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
93020 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93022         * lib/gl_oset.h: Use C comment style, not C++ comment style.
93024 2006-11-06  Bruno Haible  <bruno@clisp.org>
93026         * m4/inline.m4: New file.
93027         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
93028         * modules/list (Files): Add m4/inline.m4.
93029         * modules/oset (Files): Likewise.
93031 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93033         * lib/idcache.c: Include <stddef.h>, for offsetof.
93034         (struct userid.name): Change from char * to a flexible array member.
93035         All uses changed.
93036         * modules/idcache (Depends-on): Add flexmember.
93038         * MODULES.html.sh (Core language properties): New module flexmember.
93039         * modules/flexmember, m4/flexmember.m4: New files.
93041         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
93042         inline functions that are identical with the old xnmalloc_inline,
93043         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
93044         that we can avoid some unnecessary integer multiplications and
93045         divisions in the common case where the element size is known at
93046         compile time.
93047         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
93048         needed.
93049         (xnboundedmalloc): Remove.
93050         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
93051         arguments, for consistency with rest of this header.
93052         (xcharalloc): Rewrite using XNMALLOC.
93053         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
93054         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
93055         versions have been moved to lib/xalloc.h and renamed to be the
93056         non-*_inline versions.
93057         (xmalloc, xrealloc): Implement without reference to the xnmalloc
93058         and xnrealloc functions, since those functions are now inline and
93059         now call us.
93060         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
93061         renaming described above.
93062         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
93063         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
93064         captures the dependency in AC_C_INLINE.
93066         New module canonicalize-lgpl, proposed by Charles Wilson in
93067         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
93068         with a few small changes afterwards.
93069         * MODULES.html.sh (File system functions): New module
93070         canonicalize-lgpl.
93071         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
93072         and canonicalize_file_name.
93073         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
93074         * modules/canonicalize-lgpl: New files.
93076 2006-11-05  Bruno Haible  <bruno@clisp.org>
93078         * gnulib-tool (func_import, func_create_testdir): Create directories
93079         also for files in subdirectories of lib/.
93081 2006-11-05  Bruno Haible  <bruno@clisp.org>
93083         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
93084         ANSI C compliant.
93086 2006-11-03  Bruno Haible  <bruno@clisp.org>
93088         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93089         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
93090         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
93091         (xnboundedmalloc): New inline function.
93092         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
93093         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
93094         xmalloc.
93095         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
93096         xmalloc.
93097         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
93098         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
93099         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
93100         xmalloc.
93101         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93102         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
93103         xmalloc.
93104         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
93105         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93106         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
93107         xmalloc.
93108         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93109         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
93110         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93111         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
93112         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
93113         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
93114         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
93116 2006-11-03  Bruno Haible  <bruno@clisp.org>
93118         * lib/c-ctype.h [C++]: Define functions without name mangling.
93119         * lib/fwriteerror.h [C++]: Likewise.
93120         * lib/gcd.h [C++]: Likewise.
93121         * lib/linebreak.h [C++]: Likewise.
93123 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
93125         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
93126         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
93127         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
93128         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
93129         Check for functions and headers just once.
93130         Check for declaration of canonicalize_file_name.
93131         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
93133 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93135         * gnulib-tool (func_import): Fix typo in actioncmd.
93137 2006-11-02  Bruno Haible  <bruno@clisp.org>
93139         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
93140         newline sequence in the Makefile.am snippet as a space, like "make"
93141         does.
93142         Reported by Roger Persson <perrog@gmail.com>.
93144 2006-11-01  Bruno Haible  <bruno@clisp.org>
93146         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
93147         already declared in <string.h>.
93148         * lib/strcase.h (strncasecmp): Don't declare it if yes.
93150 2006-11-01  Bruno Haible  <bruno@clisp.org>
93152         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
93153         * lib/strcase.h: Include <string.h>.
93154         (strcasecmp): Define to rpl_strcasecmp here.
93156 2006-11-01  Bruno Haible  <bruno@clisp.org>
93158         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
93160 2006-11-01  Eric Blake  <ebb9@byu.net>
93162         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
93164         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
93166 2006-10-29  Bruno Haible  <bruno@clisp.org>
93168         Make it compile in C++ mode.
93169         * lib/full-write.c (full_rw): Add a cast.
93171 2006-11-01  Bruno Haible  <bruno@clisp.org>
93173         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
93174         be POSIX compliant.
93175         Reported by Roger Persson <perrog@gmail.com>.
93177 2006-11-01  Eric Blake  <ebb9@byu.net>
93179         * lib/getopt_.h: Fix comments.
93181 2006-10-31  Eric Blake  <ebb9@byu.net>
93183         * modules/tmpdir (Depends-on): Add sys_stat.
93184         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
93185         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
93186         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
93187         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
93188         tempname.
93190 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
93192         Avoid some C++ diagnostics reported by Bruno Haible.
93193         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
93194         xmalloc.
93195         (quotearg_alloc): Use xcharalloc rather than xmalloc.
93196         (struct slotvec): Move to top level.
93197         (quotearg_n_options): Rewrite to avoid xmalloc.
93198         * lib/xalloc.h (xcharalloc): New function.
93199         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
93200         [defined __cplusplus]: Add function template that provides result
93201         type propagation.  This part of the change is from Bruno Haible.
93203 2006-10-29  Bruno Haible  <bruno@clisp.org>
93205         Make it compile in C++ mode.
93206         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
93207         * lib/strnlen1.c (strnlen1): Cast memchr result.
93208         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
93209         * lib/clean-temp.c (string_equals, string_hash): Add casts.
93210         (create_temp_dir): Rename local variable 'template'.
93211         (compile_csharp_using_sscli): Add cast.
93212         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
93213         * lib/findprog.c (find_in_path): Likewise.
93214         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
93215         * lib/wait-process.c (register_slave_subprocess): Likewise.
93217 2006-10-22  Bruno Haible  <bruno@clisp.org>
93219         * modules/tsearch: New file.
93220         * lib/tsearch.h: New file.
93221         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
93222         * m4/tsearch.m4: New file.
93223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
93225 2006-10-29  Eric Blake  <ebb9@byu.net>
93227         * lib/arcfour.c: Assume config.h.
93228         * lib/arctwo.c: Likewise.
93229         * lib/base64.c: Likewise.
93230         * lib/check-version.c: Likewise.
93231         * lib/crc.c: Likewise.
93232         * lib/des.c: Likewise.
93233         * lib/gc-gnulib.c: Likewise.
93234         * lib/gc-libgcrypt.c: Likewise.
93235         * lib/gc-pbkdf2-sha1.c: Likewise.
93236         * lib/getaddrinfo.c: Likewise.
93237         * lib/getdelim.c: Likewise.
93238         * lib/getline.c: Likewise.
93239         * lib/hmac-md5.c: Likewise.
93240         * lib/hmac-sha1.c: Likewise.
93241         * lib/iconvme.c: Likewise.
93242         * lib/md2.c: Likewise.
93243         * lib/md4.c: Likewise.
93244         * lib/memxor.c: Likewise.
93245         * lib/read-file.c: Likewise.
93246         * lib/readline.c: Likewise.
93247         * lib/rijndael-alg-fst.c: Likewise.
93248         * lib/rijndael-api-fst.c: Likewise.
93249         * lib/xgetdomainname.c: Likewise.
93251 2006-10-28  Eric Blake  <ebb9@byu.net>
93253         * lib/xstrndup.c: Assume config.h.
93255 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
93257         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
93258         stat-macros.h is now for our own macros, whereas stat_h is for
93259         macros in the <sys/stat.h> name space.
93260         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
93261         (STAT_MACROS_H): Remove.
93262         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
93263         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
93264         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
93265         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
93266         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
93267         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
93268         Move these macros to ...
93269         * lib/stat_.h: here.  Don't include stat-macros.h.
93270         * lib/canonicalize.c: Don't include stat-macros.h.
93271         * lib/chown.c: Likewise.
93272         * lib/euidaccess.c: Likewise.
93273         * lib/file-type.c: Likewise.
93274         * lib/filemode.c: Likewise.
93275         * lib/glob.c: Likewise.
93276         * lib/isapipe.c: Likewise.
93277         * lib/lchown.c: Likewise.
93278         * lib/lstat.c: Likewise.
93279         * lib/mkdir-p.c: Likewise.
93280         * lib/rmdir.c: Likewise.
93281         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
93282         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
93283         unless mkdir isn't declared, to speed up 'configure'.
93284         Always create sys/stat.h, since it's unlikely any real sys/stat.h
93285         would define all the S_* symbols.
93286         * modules/canonicalize (Depends-on):
93287         Depend on sys_stat, not stat-macros.
93288         * modules/chown: Likewise.
93289         * modules/euidaccess: Likewise.
93290         * modules/filemode: Likewise.
93291         * modules/file-type: Likewise.
93292         * modules/glob: Likewise.
93293         * modules/isapipe: Likewise.
93294         * modules/lchown: Likewise.
93295         * modules/lstat: Likewise.
93296         * modules/mkancesdirs: Likewise.
93297         * modules/rmdir: Likewise.
93298         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
93299         * modules/modechange: Likewise.
93300         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
93301         (configure.ac): Remove gl_STAT_MACROS.
93302         * modules/sys_stat (Depends-on): Remove stat-macros.
93304 2006-10-27  Bruno Haible  <bruno@clisp.org>
93306         * m4/signed.m4: Remove file.
93307         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
93308         invocation.
93309         * modules/vasnprintf (Files): Remove m4/signed.m4.
93311 2006-10-27  Bruno Haible  <bruno@clisp.org>
93313         Update to GNU gettext 0.16.
93314         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
93315         m4/inttypes-h.m4, m4/signed.m4.
93316         * m4/gettext.m4: Update to GNU gettext 0.16.
93317         * m4/intl.m4: New file, from GNU gettext.
93318         * m4/intldir.m4: New file, from GNU gettext.
93319         * config/srclist.txt: Update
93321 2006-10-27  Eric Blake  <ebb9@byu.net>
93323         * MODULES.html.sh: Document tempname.
93324         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
93325         dependencies.
93326         (Files): Move lib/tempname.c...
93327         * modules/tempname: ...to this new module.
93328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
93329         (gl_PREREQ_TEMPNAME): Move...
93330         * m4/tempname.m4: ...to this new file.
93331         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
93332         * modules/sys_stat (Depends-on): Add stat-macros.
93333         * lib/stat_.h (includes): Pick up stat macros.
93334         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
93335         if stat macros are broken.
93336         * lib/tempname.c (includes): No need to include "stat-macros.h".
93337         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
93338         (direxists, __path_search) [!_LIBC]: Don't compile these in
93339         gnulib; the tmpdir module covers that.
93340         * lib/tempname.h: New file.
93342 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
93344         * COPYING: Explain how gnulib-tool converts licence headers.
93345         Almost all wording by Eric Blake.
93347 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
93349         * lib/mbchar.h (is_basic_table): Make read-only.
93350         * lib/mbchar.c (is_basic_table): Likewise.
93351         Reported by John Darrington.
93353 2006-10-25  Bruno Haible  <bruno@clisp.org>
93355         * lib/progname.h (set_program_name): Undefine before defining.
93357 2006-10-25  Bruno Haible  <bruno@clisp.org>
93359         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
93360         false for non-gcc C++ compilers.
93361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
93363 2006-10-24  Bruno Haible  <bruno@clisp.org>
93365         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
93366         iconv implementations like Irix iconv.
93368 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93370         * modules/vararrays: New file.
93371         * m4/vararrays.m4: New file, taken from diffutils.
93372         * MODULES.html.sh: New module vararrays.
93374 2006-10-24  Karl Berry  <karl@gnu.org>
93376         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
93377         Don't call GNU Unix.
93379 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93381         * users.txt: Add Libtool.
93383         Sync from Libtool:
93385         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93387         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
93388         to gnulib's policy of including config.h unconditionally.
93390 2006-10-24  Bruno Haible  <bruno@clisp.org>
93392         * modules/wcwidth (Files): Add m4/wint_t.m4.
93393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
93394         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
93396 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93398         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
93399         to pacify GCC with some -W flags enabled.  Problem reported by
93400         Bruno Haible.
93402 2006-10-24  Jim Meyering  <jim@meyering.net>
93404         * MODULES.html.sh: Remove uinttostr.  It's not a module.
93405         Reported by Karl Berry.
93407 2006-10-23  Bruno Haible  <bruno@clisp.org>
93409         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
93411 2006-10-24  Bruno Haible  <bruno@clisp.org>
93413         * lib/gl_list.h: Use C comment style, not C++ comment style.
93415 2006-10-23  Eric Blake  <ebb9@byu.net>
93417         * lib/getaddrinfo.c (includes): Add missing include.
93419 2006-10-23  Bruno Haible  <bruno@clisp.org>
93420             Paul Eggert  <eggert@cs.ucla.edu>
93422         Ability to rename obstack_free.
93423         * lib/obstack.h (__obstack_free): New macro. Declare instead of
93424         obstack_free.
93425         (obstack_free): Invoke the __obstack_free macro.
93426         * lib/obstack.c (obstack_free): Use __obstack_free macro.
93428 2006-10-23  Bruno Haible  <bruno@clisp.org>
93429             Paul Eggert  <eggert@cs.ucla.edu>
93431         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
93432         __argc, __argv from the declaration. (They are defined as macros on
93433         mingw.)
93435 2006-10-22  Bruno Haible  <bruno@clisp.org>
93437         * doc/gnulib-intro.texi: New file.
93438         * doc/gnulib.texi: Include it.
93440 2006-10-21  Bruno Haible  <bruno@clisp.org>
93442         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
93443         "Introduction", "Miscellanous Notes", "Particular Modules".
93445 2006-10-21  Bruno Haible  <bruno@clisp.org>
93447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93448         Change mostlyclean-local rule to avoid sh syntax error from bash
93449         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
93451 2006-10-23  Jim Meyering  <jim@meyering.net>
93453         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
93454         in place of snprintf.
93456         * modules/inttostr (Files): Add lib/uinttostr.c.
93457         * lib/uinttostr.c (inttostr): New file/function.
93458         * lib/inttostr.h (uinttostr): Declare.
93459         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
93460         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
93461         Add uinttostr.
93462         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
93464 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93466         * lib/canonicalize.c (ELOOP): Define if not already defined.
93467         Problem reported by Bruno Haible in
93468         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
93470 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93472         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
93473         Problem reported by Perry Smith and Ville Laurikari.
93475         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
93476         uses.
93478 2006-10-19  Bruno Haible  <bruno@clisp.org>
93480         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
93481         for mingw.
93483 2006-10-19  Bruno Haible  <bruno@clisp.org>
93485         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
93486         Needed for mingw.
93488 2006-10-19  Bruno Haible  <bruno@clisp.org>
93490         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
93492 2006-10-19  Bruno Haible  <bruno@clisp.org>
93494         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
93495         it.
93497 2006-10-19  Bruno Haible  <bruno@clisp.org>
93499         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
93500         invocation.
93502 2006-10-19  Bruno Haible  <bruno@clisp.org>
93504         * gnulib-tool (func_create_testdir): Don't include ftruncate and
93505         mountlist by default.
93507 2006-10-16  Bruno Haible  <bruno@clisp.org>
93509         * lib/c-strstr.c: Include c-strstr.h.
93511 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93513         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
93514         in a slash.
93516 2006-10-18  Bruno Haible  <bruno@clisp.org>
93518         * lib/lock.h [C++]: Wrap definitions in extern "C".
93520 2006-10-18  Bruno Haible  <bruno@clisp.org>
93522         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
93523         gl_LIBOBJS list.
93525 2006-10-18  Bruno Haible  <bruno@clisp.org>
93527         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
93529 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
93531         * lib/xstrtol.h: Include gettext.h.
93532         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
93533         Problem reported by Eric Blake.
93534         * modules/xstrtol (Depends-on): Add gettext-h.
93536 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
93538         * lib/strftime.c (advance): New macro.
93539         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
93540         incomplete type, so you can't add 0 to it.  Problem and patch
93541         reported by Eelco Dolstra for dietlibc.
93543 2006-10-18  Jim Meyering  <jim@meyering.net>
93545         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
93546         type for a local, and rename it: s/up/user_proc/.
93548 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93550         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
93551         READ_UTMP_USER_PROCESS.
93552         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
93554 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
93556         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
93557         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
93559 2006-10-17  Eric Blake  <ebb9@byu.net>
93561         * lib/sigprocmask.c (sigprocmask): Fix typo.
93563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
93565         * modules/clean-temp (Makefile.am): Don't add to make output...
93566         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
93567         config.h.
93569 2006-10-17  Bruno Haible  <bruno@clisp.org>
93571         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
93572         differently if DEFAULT_TEXT_DOMAIN is set.
93574 2006-10-16  Bruno Haible  <bruno@clisp.org>
93576         * lib/clean-temp.c: Include fwriteerror.h.
93578 2006-10-16  Bruno Haible  <bruno@clisp.org>
93580         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
93582 2006-10-16  Bruno Haible  <bruno@clisp.org>
93584         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
93585         * lib/sigprocmask.h: Include <sys/types.h>.
93586         (sigset_t): Use the system's definition if present.
93588 2006-10-17  Eric Blake  <ebb9@byu.net>
93590         * lib/xvasprintf.c (includes): Assume config.h.
93591         * lib/xasprintf.c (includes): Likewise.
93593 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93595         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93596         at least as wide as intmax_t.
93598 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93600         (Imported from Automake.)
93601         * build-aux/gnupload: Update to version 1.1 of directive file.
93603 2006-10-16  Eric Blake  <ebb9@byu.net>
93605         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93606         match Automake 1.10a.
93608 2006-10-14  Bruno Haible  <bruno@clisp.org>
93610         * modules/sigprocmask: New file.
93611         * lib/sigprocmask.h: New file.
93612         * lib/sigprocmask.c: New file.
93613         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93614         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93615         request sigprocmask.o.
93616         (gl_PREREQ_SIGPROCMASK): New macro.
93617         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93618         (Depends-on): Add sigprocmask.
93619         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93620         gt_SIGNALBLOCKING. Test for 'raise' only once.
93621         * lib/fatal-signal.c: Include sigprocmask.h.
93622         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93623         unblock_fatal_signals): Define always.
93624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93625         sigprocmask.
93627 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93629         Sync from Automake.
93630         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93631         which incorrectly sets the mode of an existing destination
93632         directory.  In some cases the unpatched install-sh could do the
93633         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93634         system.  We hope this is rare in practice, but it's clearly worth
93635         fixing.  Problem reported by Alex Unleashed in
93636         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93637         Also, don't bother to check for -m bugs unless we're using -m;
93638         suggested by Stepan Kasal.
93640 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93642         Sync from Automake.
93643         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93644         `-c' flag, so they appear at the same position as in %FASTDEP%
93645         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93646         which ignores unknown options only after the first non-option.
93647         Bug report against M4 by Nelson H. F. Beebe.
93649 2006-10-13  Jim Meyering  <jim@meyering.net>
93651         Fix a bug in yesterday's change.
93652         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93653         p->fts_statp->st_dev would be used uninitialized.
93654         Ensures that we always call fts_stat on the very first entry.
93655         Miklos Szeredi reported that find -xdev stopped working.
93657 2006-10-12  Bruno Haible  <bruno@clisp.org>
93659         * gnulib-tool (func_get_automake_snippet): Append an automatically
93660         computed EXTRA_DIST augmentation.
93661         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93662         * modules/alloca-opt (Makefile.am): Likewise.
93663         * modules/allocsa (Makefile.am): Likewise.
93664         * modules/arcfour (Makefile.am): Likewise.
93665         * modules/arctwo (Makefile.am): Likewise.
93666         * modules/argmatch (Makefile.am): Likewise.
93667         * modules/argz (Makefile.am): Likewise.
93668         * modules/atexit (Makefile.am): Likewise.
93669         * modules/backupfile (Makefile.am): Likewise.
93670         * modules/byteswap (Makefile.am): Likewise.
93671         * modules/c-strtod (Makefile.am): Likewise.
93672         * modules/c-strtold (Makefile.am): Likewise.
93673         * modules/calloc (Makefile.am): Likewise.
93674         * modules/canon-host (Makefile.am): Likewise.
93675         * modules/canonicalize (Makefile.am): Likewise.
93676         * modules/chdir-long (Makefile.am): Likewise.
93677         * modules/chdir-safer (Makefile.am): Likewise.
93678         * modules/check-version (Makefile.am): Likewise.
93679         * modules/chown (Makefile.am): Likewise.
93680         * modules/cloexec (Makefile.am): Likewise.
93681         * modules/close-stream (Makefile.am): Likewise.
93682         * modules/closeout (Makefile.am): Likewise.
93683         * modules/crc (Makefile.am): Likewise.
93684         * modules/csharpexec (Makefile.am): Likewise.
93685         * modules/cycle-check (Makefile.am): Likewise.
93686         * modules/des (Makefile.am): Likewise.
93687         * modules/dev-ino (Makefile.am): Likewise.
93688         * modules/dirfd (Makefile.am): Likewise.
93689         * modules/dirname (Makefile.am): Likewise.
93690         * modules/dup2 (Makefile.am): Likewise.
93691         * modules/eealloc (Makefile.am): Likewise.
93692         * modules/error (Makefile.am): Likewise.
93693         * modules/euidaccess (Makefile.am): Likewise.
93694         * modules/exclude (Makefile.am): Likewise.
93695         * modules/exitfail (Makefile.am): Likewise.
93696         * modules/fcntl-safer (Makefile.am): Likewise.
93697         * modules/fcntl (Makefile.am): Likewise.
93698         * modules/file-type (Makefile.am): Likewise.
93699         * modules/fileblocks (Makefile.am): Likewise.
93700         * modules/filemode (Makefile.am): Likewise.
93701         * modules/filenamecat (Makefile.am): Likewise.
93702         * modules/fnmatch (Makefile.am): Likewise.
93703         * modules/fopen-safer (Makefile.am): Likewise.
93704         * modules/fpending (Makefile.am): Likewise.
93705         * modules/fprintftime (Makefile.am): Likewise.
93706         * modules/free (Makefile.am): Likewise.
93707         * modules/fsusage (Makefile.am): Likewise.
93708         * modules/ftruncate (Makefile.am): Likewise.
93709         * modules/fts (Makefile.am): Likewise.
93710         * modules/gc-arcfour (Makefile.am): Likewise.
93711         * modules/gc-des (Makefile.am): Likewise.
93712         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93713         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93714         * modules/gc-md4 (Makefile.am): Likewise.
93715         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93716         * modules/gc-sha1 (Makefile.am): Likewise.
93717         * modules/gc (Makefile.am): Likewise.
93718         * modules/getaddrinfo (Makefile.am): Likewise.
93719         * modules/getcwd (Makefile.am): Likewise.
93720         * modules/getdelim (Makefile.am): Likewise.
93721         * modules/getdomainname (Makefile.am): Likewise.
93722         * modules/getgroups (Makefile.am): Likewise.
93723         * modules/gethostname (Makefile.am): Likewise.
93724         * modules/gethrxtime (Makefile.am): Likewise.
93725         * modules/getline (Makefile.am): Likewise.
93726         * modules/getloadavg (Makefile.am): Likewise.
93727         * modules/getlogin_r (Makefile.am): Likewise.
93728         * modules/getndelim2 (Makefile.am): Likewise.
93729         * modules/getopt (Makefile.am): Likewise.
93730         * modules/getpagesize (Makefile.am): Likewise.
93731         * modules/getpass-gnu (Makefile.am): Likewise.
93732         * modules/getpass (Makefile.am): Likewise.
93733         * modules/getsubopt (Makefile.am): Likewise.
93734         * modules/gettime (Makefile.am): Likewise.
93735         * modules/gettimeofday (Makefile.am): Likewise.
93736         * modules/getugroups (Makefile.am): Likewise.
93737         * modules/getusershell (Makefile.am): Likewise.
93738         * modules/glob (Makefile.am): Likewise.
93739         * modules/group-member (Makefile.am): Likewise.
93740         * modules/hard-locale (Makefile.am): Likewise.
93741         * modules/hash (Makefile.am): Likewise.
93742         * modules/hmac-md5 (Makefile.am): Likewise.
93743         * modules/hmac-sha1 (Makefile.am): Likewise.
93744         * modules/human (Makefile.am): Likewise.
93745         * modules/idcache (Makefile.am): Likewise.
93746         * modules/imaxabs (Makefile.am): Likewise.
93747         * modules/imaxdiv (Makefile.am): Likewise.
93748         * modules/inet_ntop (Makefile.am): Likewise.
93749         * modules/inet_pton (Makefile.am): Likewise.
93750         * modules/intprops (Makefile.am): Likewise.
93751         * modules/inttostr (Makefile.am): Likewise.
93752         * modules/inttypes (Makefile.am): Likewise.
93753         * modules/isapipe (Makefile.am): Likewise.
93754         * modules/javaversion (Makefile.am): Likewise.
93755         * modules/lchmod (Makefile.am): Likewise.
93756         * modules/lchown (Makefile.am): Likewise.
93757         * modules/localcharset (Makefile.am): Likewise.
93758         * modules/long-options (Makefile.am): Likewise.
93759         * modules/lstat (Makefile.am): Likewise.
93760         * modules/malloc (Makefile.am): Likewise.
93761         * modules/mathl (Makefile.am): Likewise.
93762         * modules/mbchar (Makefile.am): Likewise.
93763         * modules/md2 (Makefile.am): Likewise.
93764         * modules/md4 (Makefile.am): Likewise.
93765         * modules/md5 (Makefile.am): Likewise.
93766         * modules/memcasecmp (Makefile.am): Likewise.
93767         * modules/memchr (Makefile.am): Likewise.
93768         * modules/memcmp (Makefile.am): Likewise.
93769         * modules/memcoll (Makefile.am): Likewise.
93770         * modules/memcpy (Makefile.am): Likewise.
93771         * modules/memmem (Makefile.am): Likewise.
93772         * modules/memmove (Makefile.am): Likewise.
93773         * modules/mempcpy (Makefile.am): Likewise.
93774         * modules/memrchr (Makefile.am): Likewise.
93775         * modules/memset (Makefile.am): Likewise.
93776         * modules/memxor (Makefile.am): Likewise.
93777         * modules/mkancesdirs (Makefile.am): Likewise.
93778         * modules/mkdir-p (Makefile.am): Likewise.
93779         * modules/mkdir (Makefile.am): Likewise.
93780         * modules/mkdtemp (Makefile.am): Likewise.
93781         * modules/mkstemp (Makefile.am): Likewise.
93782         * modules/mktime (Makefile.am): Likewise.
93783         * modules/modechange (Makefile.am): Likewise.
93784         * modules/mountlist (Makefile.am): Likewise.
93785         * modules/nanosleep (Makefile.am): Likewise.
93786         * modules/obstack (Makefile.am): Likewise.
93787         * modules/openat (Makefile.am): Likewise.
93788         * modules/pagealign_alloc (Makefile.am): Likewise.
93789         * modules/pathmax (Makefile.am): Likewise.
93790         * modules/physmem (Makefile.am): Likewise.
93791         * modules/poll (Makefile.am): Likewise.
93792         * modules/posixtm (Makefile.am): Likewise.
93793         * modules/posixver (Makefile.am): Likewise.
93794         * modules/putenv (Makefile.am): Likewise.
93795         * modules/quote (Makefile.am): Likewise.
93796         * modules/quotearg (Makefile.am): Likewise.
93797         * modules/raise (Makefile.am): Likewise.
93798         * modules/read-file (Makefile.am): Likewise.
93799         * modules/readline (Makefile.am): Likewise.
93800         * modules/readlink (Makefile.am): Likewise.
93801         * modules/readtokens (Makefile.am): Likewise.
93802         * modules/readutmp (Makefile.am): Likewise.
93803         * modules/realloc (Makefile.am): Likewise.
93804         * modules/regex (Makefile.am): Likewise.
93805         * modules/rename-dest-slash (Makefile.am): Likewise.
93806         * modules/rename (Makefile.am): Likewise.
93807         * modules/rijndael (Makefile.am): Likewise.
93808         * modules/rmdir (Makefile.am): Likewise.
93809         * modules/rpmatch (Makefile.am): Likewise.
93810         * modules/safe-read (Makefile.am): Likewise.
93811         * modules/safe-write (Makefile.am): Likewise.
93812         * modules/same-inode (Makefile.am): Likewise.
93813         * modules/same (Makefile.am): Likewise.
93814         * modules/save-cwd (Makefile.am): Likewise.
93815         * modules/savedir (Makefile.am): Likewise.
93816         * modules/setenv (Makefile.am): Likewise.
93817         * modules/settime (Makefile.am): Likewise.
93818         * modules/sha1 (Makefile.am): Likewise.
93819         * modules/sig2str (Makefile.am): Likewise.
93820         * modules/snprintf (Makefile.am): Likewise.
93821         * modules/stat-macros (Makefile.am): Likewise.
93822         * modules/stat-time (Makefile.am): Likewise.
93823         * modules/stdbool (Makefile.am): Likewise.
93824         * modules/stdint (Makefile.am): Likewise.
93825         * modules/stdlib-safer (Makefile.am): Likewise.
93826         * modules/stpcpy (Makefile.am): Likewise.
93827         * modules/stpncpy (Makefile.am): Likewise.
93828         * modules/strcase (Makefile.am): Likewise.
93829         * modules/strcasestr (Makefile.am): Likewise.
93830         * modules/strchrnul (Makefile.am): Likewise.
93831         * modules/strcspn (Makefile.am): Likewise.
93832         * modules/strdup (Makefile.am): Likewise.
93833         * modules/strerror (Makefile.am): Likewise.
93834         * modules/strftime (Makefile.am): Likewise.
93835         * modules/strndup (Makefile.am): Likewise.
93836         * modules/strnlen (Makefile.am): Likewise.
93837         * modules/strpbrk (Makefile.am): Likewise.
93838         * modules/strsep (Makefile.am): Likewise.
93839         * modules/strstr (Makefile.am): Likewise.
93840         * modules/strtod (Makefile.am): Likewise.
93841         * modules/strtoimax (Makefile.am): Likewise.
93842         * modules/strtok_r (Makefile.am): Likewise.
93843         * modules/strtol (Makefile.am): Likewise.
93844         * modules/strtoll (Makefile.am): Likewise.
93845         * modules/strtoul (Makefile.am): Likewise.
93846         * modules/strtoull (Makefile.am): Likewise.
93847         * modules/strtoumax (Makefile.am): Likewise.
93848         * modules/strverscmp (Makefile.am): Likewise.
93849         * modules/sys_socket (Makefile.am): Likewise.
93850         * modules/sys_stat (Makefile.am): Likewise.
93851         * modules/sysexits (Makefile.am): Likewise.
93852         * modules/time_r (Makefile.am): Likewise.
93853         * modules/timegm (Makefile.am): Likewise.
93854         * modules/timespec (Makefile.am): Likewise.
93855         * modules/tmpfile-safer (Makefile.am): Likewise.
93856         * modules/trim (Makefile.am): Likewise.
93857         * modules/unistd-safer (Makefile.am): Likewise.
93858         * modules/unlinkdir (Makefile.am): Likewise.
93859         * modules/unlocked-io (Makefile.am): Likewise.
93860         * modules/userspec (Makefile.am): Likewise.
93861         * modules/utime (Makefile.am): Likewise.
93862         * modules/utimecmp (Makefile.am): Likewise.
93863         * modules/utimens (Makefile.am): Likewise.
93864         * modules/vasnprintf (Makefile.am): Likewise.
93865         * modules/vasprintf (Makefile.am): Likewise.
93866         * modules/vsnprintf (Makefile.am): Likewise.
93867         * modules/xalloc (Makefile.am): Likewise.
93868         * modules/xgetcwd (Makefile.am): Likewise.
93869         * modules/xnanosleep (Makefile.am): Likewise.
93870         * modules/xreadlink (Makefile.am): Likewise.
93871         * modules/xstrtod (Makefile.am): Likewise.
93872         * modules/xstrtol (Makefile.am): Likewise.
93873         * modules/xstrtold (Makefile.am): Likewise.
93874         * modules/yesno (Makefile.am): Likewise.
93875         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93877 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93879         * modules/error (Makefile.am): Distribute files through
93880         EXTRA_DIST, not lib_SOURCES.
93882 2006-10-12  Eric Blake  <ebb9@byu.net>
93884         * modules/error (Makefile.am): Distribute files in /lib.
93885         * modules/obstack (Makefile.am): Likewise.
93887 2006-10-12  Bruno Haible  <bruno@clisp.org>
93889         * modules/acl (Makefile.am): Distribute all files in lib/ through
93890         EXTRA_DIST.
93891         * modules/arcfour (Makefile.am): Likewise.
93892         * modules/arctwo (Makefile.am): Likewise.
93893         * modules/argmatch (Makefile.am): Likewise.
93894         * modules/argz (Makefile.am): Likewise.
93895         * modules/atexit (Makefile.am): Likewise.
93896         * modules/backupfile (Makefile.am): Likewise.
93897         * modules/c-strtod (Makefile.am): Likewise.
93898         * modules/c-strtold (Makefile.am): Likewise.
93899         * modules/calloc (Makefile.am): Likewise.
93900         * modules/canon-host (Makefile.am): Likewise.
93901         * modules/canonicalize (Makefile.am): Likewise.
93902         * modules/chdir-long (Makefile.am): Likewise.
93903         * modules/chdir-safer (Makefile.am): Likewise.
93904         * modules/check-version (Makefile.am): Likewise.
93905         * modules/chown (Makefile.am): Likewise.
93906         * modules/cloexec (Makefile.am): Likewise.
93907         * modules/close-stream (Makefile.am): Likewise.
93908         * modules/closeout (Makefile.am): Likewise.
93909         * modules/crc (Makefile.am): Likewise.
93910         * modules/cycle-check (Makefile.am): Likewise.
93911         * modules/des (Makefile.am): Likewise.
93912         * modules/dirfd (Makefile.am): Likewise.
93913         * modules/dirname (Makefile.am): Likewise.
93914         * modules/dup2 (Makefile.am): Likewise.
93915         * modules/euidaccess (Makefile.am): Likewise.
93916         * modules/exclude (Makefile.am): Likewise.
93917         * modules/exitfail (Makefile.am): Likewise.
93918         * modules/fcntl-safer (Makefile.am): Likewise.
93919         * modules/file-type (Makefile.am): Likewise.
93920         * modules/fileblocks (Makefile.am): Likewise.
93921         * modules/filemode (Makefile.am): Likewise.
93922         * modules/filenamecat (Makefile.am): Likewise.
93923         * modules/fnmatch (Makefile.am): Likewise.
93924         * modules/fopen-safer (Makefile.am): Likewise.
93925         * modules/fpending (Makefile.am): Likewise.
93926         * modules/fprintftime (Makefile.am): Likewise.
93927         * modules/free (Makefile.am): Likewise.
93928         * modules/fsusage (Makefile.am): Likewise.
93929         * modules/ftruncate (Makefile.am): Likewise.
93930         * modules/fts (Makefile.am): Likewise.
93931         * modules/gc (Makefile.am): Likewise.
93932         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93933         * modules/getaddrinfo (Makefile.am): Likewise.
93934         * modules/getcwd (Makefile.am): Likewise.
93935         * modules/getdelim (Makefile.am): Likewise.
93936         * modules/getdomainname (Makefile.am): Likewise.
93937         * modules/getgroups (Makefile.am): Likewise.
93938         * modules/gethostname (Makefile.am): Likewise.
93939         * modules/gethrxtime (Makefile.am): Likewise.
93940         * modules/getline (Makefile.am): Likewise.
93941         * modules/getloadavg (Makefile.am): Likewise.
93942         * modules/getlogin_r (Makefile.am): Likewise.
93943         * modules/getopt (Makefile.am): Likewise.
93944         * modules/getpass (Makefile.am): Likewise.
93945         * modules/getpass-gnu (Makefile.am): Likewise.
93946         * modules/getsubopt (Makefile.am): Likewise.
93947         * modules/gettime (Makefile.am): Likewise.
93948         * modules/gettimeofday (Makefile.am): Likewise.
93949         * modules/getugroups (Makefile.am): Likewise.
93950         * modules/getusershell (Makefile.am): Likewise.
93951         * modules/glob (Makefile.am): Likewise.
93952         * modules/group-member (Makefile.am): Likewise.
93953         * modules/hard-locale (Makefile.am): Likewise.
93954         * modules/hash (Makefile.am): Likewise.
93955         * modules/hmac-md5 (Makefile.am): Likewise.
93956         * modules/hmac-sha1 (Makefile.am): Likewise.
93957         * modules/human (Makefile.am): Likewise.
93958         * modules/idcache (Makefile.am): Likewise.
93959         * modules/imaxabs (Makefile.am): Likewise.
93960         * modules/imaxdiv (Makefile.am): Likewise.
93961         * modules/inet_ntop (Makefile.am): Likewise.
93962         * modules/inet_pton (Makefile.am): Likewise.
93963         * modules/inttostr (Makefile.am): Likewise.
93964         * modules/isapipe (Makefile.am): Likewise.
93965         * modules/lchown (Makefile.am): Likewise.
93966         * modules/long-options (Makefile.am): Likewise.
93967         * modules/lstat (Makefile.am): Likewise.
93968         * modules/malloc (Makefile.am): Likewise.
93969         * modules/mathl (Makefile.am): Likewise.
93970         * modules/mbchar (Makefile.am): Likewise.
93971         * modules/md2 (Makefile.am): Likewise.
93972         * modules/md4 (Makefile.am): Likewise.
93973         * modules/md5 (Makefile.am): Likewise.
93974         * modules/memcasecmp (Makefile.am): Likewise.
93975         * modules/memchr (Makefile.am): Likewise.
93976         * modules/memcmp (Makefile.am): Likewise.
93977         * modules/memcoll (Makefile.am): Likewise.
93978         * modules/memcpy (Makefile.am): Likewise.
93979         * modules/memmem (Makefile.am): Likewise.
93980         * modules/memmove (Makefile.am): Likewise.
93981         * modules/mempcpy (Makefile.am): Likewise.
93982         * modules/memrchr (Makefile.am): Likewise.
93983         * modules/memset (Makefile.am): Likewise.
93984         * modules/memxor (Makefile.am): Likewise.
93985         * modules/mkancesdirs (Makefile.am): Likewise.
93986         * modules/mkdir (Makefile.am): Likewise.
93987         * modules/mkdir-p (Makefile.am): Likewise.
93988         * modules/mkdtemp (Makefile.am): Likewise.
93989         * modules/mkstemp (Makefile.am): Likewise.
93990         * modules/mktime (Makefile.am): Likewise.
93991         * modules/modechange (Makefile.am): Likewise.
93992         * modules/mountlist (Makefile.am): Likewise.
93993         * modules/nanosleep (Makefile.am): Likewise.
93994         * modules/openat (Makefile.am): Likewise.
93995         * modules/pagealign_alloc (Makefile.am): Likewise.
93996         * modules/physmem (Makefile.am): Likewise.
93997         * modules/poll (Makefile.am): Likewise.
93998         * modules/posixtm (Makefile.am): Likewise.
93999         * modules/posixver (Makefile.am): Likewise.
94000         * modules/putenv (Makefile.am): Likewise.
94001         * modules/quote (Makefile.am): Likewise.
94002         * modules/quotearg (Makefile.am): Likewise.
94003         * modules/raise (Makefile.am): Likewise.
94004         * modules/read-file (Makefile.am): Likewise.
94005         * modules/readline (Makefile.am): Likewise.
94006         * modules/readlink (Makefile.am): Likewise.
94007         * modules/readtokens (Makefile.am): Likewise.
94008         * modules/readutmp (Makefile.am): Likewise.
94009         * modules/realloc (Makefile.am): Likewise.
94010         * modules/regex (Makefile.am): Likewise.
94011         * modules/rename (Makefile.am): Likewise.
94012         * modules/rename-dest-slash (Makefile.am): Likewise.
94013         * modules/rijndael (Makefile.am): Likewise.
94014         * modules/rmdir (Makefile.am): Likewise.
94015         * modules/rpmatch (Makefile.am): Likewise.
94016         * modules/safe-read (Makefile.am): Likewise.
94017         * modules/safe-write (Makefile.am): Likewise.
94018         * modules/same (Makefile.am): Likewise.
94019         * modules/save-cwd (Makefile.am): Likewise.
94020         * modules/savedir (Makefile.am): Likewise.
94021         * modules/setenv (Makefile.am): Likewise.
94022         * modules/settime (Makefile.am): Likewise.
94023         * modules/sha1 (Makefile.am): Likewise.
94024         * modules/sig2str (Makefile.am): Likewise.
94025         * modules/snprintf (Makefile.am): Likewise.
94026         * modules/stdlib-safer (Makefile.am): Likewise.
94027         * modules/stpcpy (Makefile.am): Likewise.
94028         * modules/stpncpy (Makefile.am): Likewise.
94029         * modules/strcase (Makefile.am): Likewise.
94030         * modules/strcasestr (Makefile.am): Likewise.
94031         * modules/strchrnul (Makefile.am): Likewise.
94032         * modules/strcspn (Makefile.am): Likewise.
94033         * modules/strdup (Makefile.am): Likewise.
94034         * modules/strerror (Makefile.am): Likewise.
94035         * modules/strftime (Makefile.am): Likewise.
94036         * modules/strndup (Makefile.am): Likewise.
94037         * modules/strnlen (Makefile.am): Likewise.
94038         * modules/strpbrk (Makefile.am): Likewise.
94039         * modules/strsep (Makefile.am): Likewise.
94040         * modules/strstr (Makefile.am): Likewise.
94041         * modules/strtod (Makefile.am): Likewise.
94042         * modules/strtoimax (Makefile.am): Likewise.
94043         * modules/strtok_r (Makefile.am): Likewise.
94044         * modules/strtol (Makefile.am): Likewise.
94045         * modules/strtoll (Makefile.am): Likewise.
94046         * modules/strtoul (Makefile.am): Likewise.
94047         * modules/strtoull (Makefile.am): Likewise.
94048         * modules/strtoumax (Makefile.am): Likewise.
94049         * modules/strverscmp (Makefile.am): Likewise.
94050         * modules/time_r (Makefile.am): Likewise.
94051         * modules/timegm (Makefile.am): Likewise.
94052         * modules/tmpfile-safer (Makefile.am): Likewise.
94053         * modules/unistd-safer (Makefile.am): Likewise.
94054         * modules/unlinkdir (Makefile.am): Likewise.
94055         * modules/userspec (Makefile.am): Likewise.
94056         * modules/utime (Makefile.am): Likewise.
94057         * modules/utimecmp (Makefile.am): Likewise.
94058         * modules/utimens (Makefile.am): Likewise.
94059         * modules/vasnprintf (Makefile.am): Likewise.
94060         * modules/vasprintf (Makefile.am): Likewise.
94061         * modules/vsnprintf (Makefile.am): Likewise.
94062         * modules/xalloc (Makefile.am): Likewise.
94063         * modules/xgetcwd (Makefile.am): Likewise.
94064         * modules/xnanosleep (Makefile.am): Likewise.
94065         * modules/xreadlink (Makefile.am): Likewise.
94066         * modules/xstrtod (Makefile.am): Likewise.
94067         * modules/xstrtol (Makefile.am): Likewise.
94068         * modules/xstrtold (Makefile.am): Likewise.
94069         * modules/yesno (Makefile.am): Likewise.
94071 2006-10-12  Jim Meyering  <jim@meyering.net>
94073         * m4/getloadavg.m4: Revert the change below.
94075         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
94076         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
94077         fail with a symlink, which is what coreutils' ./bootstrap now
94078         creates by default.
94080 2006-10-12  Bruno Haible  <bruno@clisp.org>
94082         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
94083         mingw.
94084         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
94085         MSVC and mingw explicitly.
94087 2006-10-11  Simon Josefsson  <jas@extundo.com>
94088             Bruno Haible  <bruno@clisp.org>
94090         Add support for multiple gnulib-tool invocations in the scope of a
94091         single configure.ac file.
94092         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
94093         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
94094         with the same contents as the _LIBADD variable.
94095         (func_emit_initmacro_start, func_emit_initmacro_end,
94096         func_emit_initmacro_done): New functions.
94097         (func_import, func_create_testdir): Invoke them. Allow the identifiers
94098         gl_LIBOBJS and gl_LTLIBOBJS.
94100 2006-10-11  Bruno Haible  <bruno@clisp.org>
94102         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
94103         (func_create_testdir): Don't create po/Makefile.am, don't invoke
94104         autoreconf. Instead, invoke autopoint explicitly but move back the
94105         *.m4 files from gnulib.
94107 2006-10-11  Bruno Haible  <bruno@clisp.org>
94109         * gnulib-tool (func_usage): Make module names after --create-testdir
94110         optional.
94111         (func_create_testdir): If no module was specified, use nearly all
94112         modules.
94114 2006-10-12  Jim Meyering  <jim@meyering.net>
94116         Big performance improvement for fts-based tools that use FTS_NOSTAT.
94117         Avoid spurious inode-mismatch problems on non-POSIX file systems.
94118         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
94119         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
94120         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
94121         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
94122         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
94123         (fts_set_stat_required): New function.
94124         (fts_open): Defer the calls to fts_stat, if possible or requested.
94125         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
94126         into fts_stat itself.
94127         (fts_read): Perform any required (deferred) fts_stat call.
94128         (fts_build): Likewise, for the directory we're about to open and read.
94129         In the readdir loop, carefully decide whether each entry will require
94130         an eventual call to fts_stat, using dirent.d_type info if available.
94131         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
94132         a command line argument into this function.  Update all callers.
94133         Map a return value of FTS_DOT to FTS_D for a command line argument.
94134         * modules/fts (Depends-on): Add d-type.  Alphabetize.
94135         Thanks to Miklos Szeredi for his tenacity and for the initial
94136         bug report about "find" failing on a FUSE-based file system.
94138         * lib/fts.c (fts_open): Use consistent indentation.
94140 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94142         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
94143         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
94144         reported by Jim Meyering.  All uses of cache variables renamed
94145         to match Autoconf's.
94146         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
94147         the other one.
94149         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
94150         Fix misspelling in diagnostic.
94152 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94154         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
94155         defined.  Problem reported by Matthew Woehlke.
94157         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
94158         Add support for Tandem NonStop R series.
94159         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
94160         Use new macro.
94162         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
94163         (has_trailing_slash): Omit size arg; all callers changed.
94164         Omit 'inline', since it doesn't help performance and we'd
94165         need to configure it.
94166         Don't count //, ///, etc. as having a trailing slash.
94167         As a side effect, this removes a C99ism reported by Matthew Woehlke.
94168         (rpl_rename_dest_slash): On failure, use rename's errno rather
94169         than (in some cases) an incorrect or junk errno.
94170         Simplify code by removing need to compute length; this does
94171         cause it to make two passes instead of one over the file name,
94172         but it's worth it.
94174         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
94175         change, since Autoconf's version may no longer be appropriate now
94176         that we are using CVS Autoconf's version.  Add support for Tandem.
94178 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94179             Bruno Haible  <bruno@clisp.org>
94181         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
94182         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
94183         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
94184         gl_AC_TYPE_LONG_LONG.
94186         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
94187         instead of HAVE_LONG_LONG.
94188         * lib/printf-args.c (printf_fetchargs): Likewise.
94189         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
94190         * lib/vasnprintf.c (VASNPRINTF): Likewise.
94191         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
94192         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
94193         gl_AC_TYPE_LONG_LONG.
94195 2006-10-11  Bruno Haible  <bruno@clisp.org>
94197         * m4/longlong.m4: Add comments.
94198         * m4/ulonglong.m4: Likewise.
94200 2006-10-10  Bruno Haible  <bruno@clisp.org>
94202         Make it possible to #define stpcpy, strdup to aliases.
94203         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
94204         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
94206 2006-10-10  Bruno Haible  <bruno@clisp.org>
94208         Make it possible to #define gcd to an alias.
94209         * lib/gcd.c: Include config.h.
94211 2006-10-10  Bruno Haible  <bruno@clisp.org>
94213         Make it possible to #define c_isascii to an alias.
94214         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
94215         defined. Undefine the macros before defining them, to avoid gcc
94216         warnings.
94217         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
94218         define NO_C_CTYPE_MACROS early.
94220 2006-10-10  Bruno Haible  <bruno@clisp.org>
94222         Make it possible to #define set_program_name to an alias.
94223         * lib/progname.c: Don't undefine set_program_name; instead, undefine
94224         ENABLE_RELOCATABLE early.
94226 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
94228         Port to Tandem NSK OSS, which has 64-bit signed int but at most
94229         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
94230         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
94231         More generally, don't assume that 64-bit signed int is available
94232         if unsigned int is, and vice versa.
94233         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
94234         unsigned symbols, not on their signed counterparts.
94235         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
94236         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
94237         (UINT64_C, UINTMAX_C):
94238         Likewise.
94239         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
94240         unsigned counterparts.
94241         (Have_long_long, Unsigned): New macros.
94242         (Int): Renamed from INT.
94243         (strtoimax): Use the new macros.
94244         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
94245         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
94246         * modules/inttypes (inttypes.h): Substitute
94247         HAVE_UNSIGNED_LONG_LONG_INT.
94248         * modules/stdint (stdint.h): Likewise.
94249         (Files): Add m4/ulonglong.m4.
94251 2006-10-10  Bruno Haible  <bruno@clisp.org>
94253         Fix a gcc -Wshadow warning.
94254         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
94255         to 'bucket'.
94256         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
94257         gl_linked_indexof_from_to): Likewise.
94258         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
94259         Likewise.
94260         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
94261         Likewise.
94262         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
94263         Reported by Eric Blake.
94265 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
94267         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
94268         for NetBSD.  Problem reported by Bruno Haible.
94270 2006-10-09  Jim Meyering  <jim@meyering.net>
94272         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
94273         Patch from Bruno Haible.
94275 2006-10-09  Jim Meyering  <jim@meyering.net>
94277         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
94278         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
94279         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
94281 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94283         Don't include <config.h> twice; this doesn't work in some cases,
94284         e.g., when config.h has "#define intmax_t long long int" and
94285         we include <config.h>, <inttypes.h>, <config.h> in that order.
94286         Problem reported by Matthew Woehlke in:
94287         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
94288         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
94289         * lib/fts-cycle.c: Don't include config.h.
94290         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
94291         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
94292         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
94293         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
94294         inttypes.h.
94295         * lib/xstrtoumax.c: Likewise.
94296         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
94297         __strtol and the like, so that this module is more like its siblings.
94298         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
94299         Remove; no longer needed now that we assume gnulib inttypes.h.
94301 2006-10-08  Bruno Haible  <bruno@clisp.org>
94303         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
94304         option.
94306 2006-10-07  Jim Meyering  <jim@meyering.net>
94308         * modules/inttypes (inttypes.h): Revert what seems to have been
94309         an inadvertent part of today's change: use "|", not "/" in the
94310         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
94312 2006-10-07  Bruno Haible  <bruno@clisp.org>
94314         * modules/sublist: New file.
94316 2006-10-07  Bruno Haible  <bruno@clisp.org>
94318         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
94319         * modules/argz (argz.h): Likewise.
94320         * modules/arpa_inet (arpa/inet.h): Likewise.
94321         * modules/byteswap (byteswap.h): Likewise.
94322         * modules/configmake (configmake.h): Likewise.
94323         * modules/fcntl (fcntl.h): Likewise.
94324         * modules/fnmatch (fnmatch.h): Likewise.
94325         * modules/getopt (getopt.h): Likewise.
94326         * modules/glob (glob.h): Likewise.
94327         * modules/inttypes (inttypes.h): Likewise.
94328         * modules/netinet_in (netinet/in.h): Likewise.
94329         * modules/poll (poll.h): Likewise.
94330         * modules/stdbool (stdbool.h): Likewise.
94331         * modules/stdint (stdint.h): Likewise.
94332         * modules/sys_select (sys/select.h): Likewise.
94333         * modules/sys_socket (sys/socket.h): Likewise.
94334         * modules/sys_stat (sys/stat.h): Likewise.
94335         * modules/sysexits (sysexits.h): Likewise.
94336         * modules/unistd (unistd.h): Likewise.
94337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94338         Add a "DO NOT EDIT" comment to the generated file.
94339         (func_import): Likewise for gnulib-comp.m4.
94341 2006-10-07  Bruno Haible  <bruno@clisp.org>
94343         * lib/gl_sublist.h: New file.
94344         * lib/gl_sublist.c: New file.
94346 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
94348         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
94349         name (relative to the original working directory) and the file
94350         name component (relative to the temporary working directory).  All
94351         callers changed.
94352         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
94353         * lib/mkdir-p.c (make_dir_parents): Likewise.
94354         * lib/mkdir-p.h (make_dir_parents): Likewise.
94356 2006-10-06  Eric Blake  <ebb9@byu.net>
94358         Define several macros for use by the clean-temp module.
94359         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
94360         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
94361         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
94363         * lib/clean-temp.h (close_stream_temp): New declaration.
94364         * lib/clean-temp.c (includes): Pull in headers according to what
94365         other modules are in use.
94366         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
94368 2006-10-06  Bruno Haible  <bruno@clisp.org>
94370         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
94371         instead of fopen, fwriteerror.
94373 2006-10-06  Bruno Haible  <bruno@clisp.org>
94375         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
94376         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
94377         int.
94378         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
94379         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
94380         Return an error indicator.
94381         Suggested by Eric Blake.
94383 2006-10-06  Bruno Haible  <bruno@clisp.org>
94385         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
94386         Reported by Eric Blake.
94388 2006-10-06  Bruno Haible  <bruno@clisp.org>
94390         * modules/closeout (Description): Mention stderr too.
94392 2006-10-06  Bruno Haible  <bruno@clisp.org>
94393         and Paul Eggert  <eggert@cs.ucla.edu>
94395         * lib/closeout.c (close_stdout): Also close stderr.
94396         * lib/closeout.h: Update comment.
94398 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
94400         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
94401         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
94402         * lib/dirchownmod.c: Include lchown.h.
94403         * lib/lchown.c: Don't include files that lchown.h now includes.
94404         Don't declare chown, since lchown.h now does that.
94405         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
94406         (lchown): Define to rpl_chown if lchown is declared but
94407         does not exist.  Declare using a prototype if lchown is not
94408         declared.  Add a copyright notice.
94409         * lib/mkstemp.h: Include <unistd.h>.
94410         * lib/openat.c: Include lchown.h.
94412         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
94413         we now test for that separately.
94414         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
94415         rather than O_NOFOLLOW, when testing whether it's possible to
94416         avoid a race condition reliably.
94417         * lib/savewd.c (savewd_chdir): Likewise.
94419         Remove macros that are no longer needed now that stdint.h is
94420         reliable.
94421         * lib/fsusage.c (UINTMAX_MAX): Remove.
94422         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
94423         * lib/utimecmp.c (SIZE_MAX): Remove.
94425         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
94427         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
94428         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
94429         O_NOATIME works.
94431 2006-10-05  Bruno Haible  <bruno@clisp.org>
94433         * lib/gl_list.h (gl_sortedlist_search_from_to,
94434         gl_sortedlist_indexof_from_to): New declarations.
94435         (gl_list_implementation): New fields sortedlist_search_from_to,
94436         sortedlist_indexof_from_to.
94437         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
94438         inline functions.
94439         * lib/gl_list.c (gl_sortedlist_search_from_to,
94440         gl_sortedlist_indexof_from_to): New functions.
94441         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
94442         function.
94443         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
94444         (gl_array_sortedlist_search_from_to): New function.
94445         (gl_array_list_implementation): Update.
94446         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
94447         function.
94448         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
94449         (gl_carray_sortedlist_search_from_to): New function.
94450         (gl_carray_list_implementation): Update.
94451         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
94452         gl_linked_sortedlist_indexof_from_to): New functions.
94453         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94454         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94455         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
94456         gl_tree_sortedlist_indexof_from_to): New functions.
94457         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94458         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94459         Update.
94460         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94461         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
94462         Update.
94464 2006-10-05  Bruno Haible  <bruno@clisp.org>
94466         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
94467         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
94468         (struct gl_list_implementation): Add fields search_from_to,
94469         indexof_from_to. Remove fields search, indexof.
94470         (gl_list_search): Use the search_from_to method.
94471         (gl_list_search_from, gl_list_search_from_to): New functions.
94472         (gl_list_indexof): Use the indexof_from_to method.
94473         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94474         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
94475         (gl_list_search_from, gl_list_search_from_to): New functions.
94476         (gl_list_indexof): Use the indexof_from_to method.
94477         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94478         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
94479         gl_array_indexof. Add start_index, end_index arguments.
94480         (gl_array_search_from_to): Renamed from gl_array_search. Add
94481         start_index, end_index arguments.
94482         (gl_array_remove, gl_array_list_implementation): Update.
94483         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
94484         gl_carray_indexof. Add start_index, end_index arguments.
94485         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
94486         start_index, end_index arguments.
94487         (gl_carray_remove, gl_carray_list_implementation): Update.
94488         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
94489         gl_linked_search. Add start_index, end_index arguments.
94490         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
94491         start_index, end_index arguments.
94492         (gl_linked_remove): Update.
94493         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94494         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94495         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
94496         field to 'size_t'.
94497         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
94498         gl_tree_search. Add start_index, end_index arguments.
94499         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94500         start_index, end_index arguments.
94501         (gl_tree_remove): Update.
94502         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94503         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94504         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
94505         function.
94506         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
94507         gl_tree_search. Add start_index, end_index arguments.
94508         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94509         start_index, end_index arguments.
94510         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94511         Update.
94512         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94514 2006-10-05  Bruno Haible  <bruno@clisp.org>
94516         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
94518         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
94519         fwriteerror_temp): New declarations.
94520         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
94521         (descriptors): New variable.
94522         (cleanup): First, close the descriptors.
94523         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
94524         fclose_temp, fwriteerror_temp): New functions.
94526 2006-10-04  Jim Meyering  <jim@meyering.net>
94528         * lib/fts.c (fts_open): Tiny comment change.
94530 2006-10-04  Bruno Haible  <bruno@clisp.org>
94532         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
94533         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
94534         gl_LOCK_BODY.
94535         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
94536         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
94537         gl_LOCK_EARLY_BODY.
94538         (gl_LOCK): Require gl_LOCK_BODY.
94540 2006-10-04  Bruno Haible  <bruno@clisp.org>
94542         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
94543         (gl_oset_search_atleast): New declaration.
94544         (struct gl_oset_implementation): Add field 'search_atleast'.
94545         (gl_oset_search_atleast): New inline function.
94546         * lib/gl_oset.c (gl_oset_search_atleast): New function.
94547         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
94548         (gl_array_oset_implementation): Update.
94549         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
94550         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
94551         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
94553 2006-10-04  Bruno Haible  <bruno@clisp.org>
94555         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
94557 2006-10-03  Bruno Haible  <bruno@clisp.org>
94559         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
94560         from gl_avltreehash_list_implementation.
94562 2006-10-03  Bruno Haible  <bruno@clisp.org>
94564         * lib/gl_oset.c (gl_oset_add): Fix return type.
94566 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
94568         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
94570 2006-10-02  Eric Blake  <ebb9@byu.net>
94572         * modules/strnlen (Depends-on): Add extensions.
94574 2006-10-02  Eric Blake  <ebb9@byu.net>
94576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
94577         definition in 2.60+.
94579 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
94581         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
94582         checks.
94584 2006-10-02  Bruno Haible  <bruno@clisp.org>
94586         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
94587         to the AUTOMAKE_OPTIONS.
94588         Reported by Jim Meyering.
94590 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94592         Work around bug in Solaris 10 /proc file system:
94593         /proc/self/fd/NNN/.. isn't the parent directory of
94594         the directory whose file descriptor is NNN.  This needs to
94595         be worked around at run time, not compile time, since a
94596         program might be built on Solaris 8, where things work, and
94597         run on Solaris 10.
94598         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94599         to use the following interface instead:
94600         (OPENAT_BUFFER_SIZE): New macro.
94601         (openat_proc_name): New function.
94602         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94603         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94604         Likewise.
94605         * lib/openat-proc.c: New file.
94606         * modules/openat (Files): Add lib/openat-proc.c.
94607         (Depends-on): Add same-inode, stdbool.
94608         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94610 2006-09-29  Bruno Haible  <bruno@clisp.org>
94612         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94613         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94614         argument. Set stdout_closed before testing for ferror, not after.
94615         (fwriteerror, fwriteerror_no_ebadf): New functions.
94617 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94619         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94621 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94623         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94624         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94626 2006-09-28  Jim Meyering  <jim@meyering.net>
94628         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94629         Include <unistd.h>.
94631 2006-09-28  Bruno Haible  <bruno@clisp.org>
94633         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94634         * modules/linkedhash-list (Depends-on): Likewise.
94635         * modules/rbtreehash-list (Depends-on): Likewise.
94637 2006-09-28  Bruno Haible  <bruno@clisp.org>
94639         * lib/strndup.h: Simplify the redefinition of strndup.
94640         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94641         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94643 2006-09-28  Bruno Haible  <bruno@clisp.org>
94645         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94646         * lib/gl_linkedhash_list.c: Likewise.
94647         * lib/gl_rbtreehash_list.c: Likewise.
94649 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94651         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94652         getaddrinfo.
94654         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94655         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94656         it causes <stdio_ext.h> to cause a compile-time error.
94657         Problem reported by Nelson H. F. Beebe.
94658         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94659         of HAVE_DECL___PENDING.
94661         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94662         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94663         declaration.
94665 2006-09-27  Jim Meyering  <jim@meyering.net>
94667         This file could end up with a definition for a function
94668         named __strndup, rather than rpl_strndup on a system with
94669         incomplete weak_alias support.
94670         * lib/strndup.c (strndup): Rename from __strndup.
94671         Remove #defines that used to map __strndup to strndup.
94672         Don't use K&R prototypes.
94673         Remove LIBC-related code, since this file is not sync'd with glibc.
94674         * lib/strndup.h: Revamp, accordingly.
94675         * m4/strndup.m4: Modernize.
94677 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94679         * modules/savewd (Depends-on): Add 'raise'.
94680         * lib/savewd.c: Include <signal.h>, for 'raise'.
94682 2006-09-26  Jim Meyering  <jim@meyering.net>
94684         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94685         when we detect Darwin 8.7.0's acl_get_file bug.
94686         Rearrange to perform the new (below) run-test while $LIBS
94687         contains any acl-related library.  Set USE_ACL at the end.
94688         (gl_ACL_GET_FILE): New function.
94690 2006-09-26  Eric Blake  <ebb9@byu.net>
94692         * lib/verror.c: Include <config.h> unconditionally.
94694 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94696         * modules/clock-time (Maintainer): Add self.
94697         * modules/getlogin_r (Depends-on): Add extensions.
94699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94701         * modules/clock-time: New module.
94702         * modules/nanosleep (Depends-on): Add clock-time.
94703         * modules/gethrxtime (Depends-on): Likewise.
94704         * modules/gettime (Depends-on): Likewise.
94705         * modules/settime (Depends-on): Likewise.
94707         * modules/fts-lgpl: Depend on openat.
94708         * modules/mkancesdirs: Depend on savewd.
94709         * modules/mkdir-p: Likewise.
94711 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94713         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94715         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94716         `gl_have_arbitrary_file_name_length_limit' to
94717         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94718         actually works between configure runs.
94720 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94721             Bruno Haible  <bruno@clisp.org>
94723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94725 2006-09-25  Jim Meyering  <jim@meyering.net>
94727         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94728         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94730 2006-09-25  Eric Blake  <ebb9@byu.net>
94732         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94733         exec's in 2006-09-18 patch when shuffling fds.
94735 2006-09-25  Bruno Haible  <bruno@clisp.org>
94737         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94738         Reported by Jim Meyering.
94740 2006-09-24  Jim Meyering  <jim@meyering.net>
94742         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94743         compare a pointer against a literal "0".  That caused failures with
94744         at least HP-UX's hpcc.
94746 2006-09-22  Simon Josefsson  <jas@extundo.com>
94748         * modules/gc-sha1:
94749         * modules/gc-md4:
94750         * modules/gc-hmac-sha1:
94751         * modules/gc-hmac-md5:
94752         * modules/gc-des:
94753         * modules/gc-arcfour: Distribute more files.
94755 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94757         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
94758         (gl_linked_iterator_from_to): Initialize struct completely.
94759         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
94760         (gl_tree_iterator_from_to): Likewise
94761         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
94762         * lib/gl_array_list.c [lint] (gl_array_iterator)
94763         (gl_array_iterator_from_to): Likewise.
94764         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
94765         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
94766         (gl_carray_iterator_from_to): Likewise.
94768         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
94769         * lib/md4.c (md4_process_block): Remove unused variable.
94770         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
94771         parentheses for clarity.
94773 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94775         * modules/bison-i18n (Depends-on): Add gettext.
94777 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94779         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
94780         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
94781         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
94782         also add missing comma that caused broken test.
94783         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
94784         stdlib.h, for `abort'.
94785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
94786         variables.
94787         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
94788         include unistd.h if present, for `rmdir'.
94789         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
94790         variables.
94791         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
94792         in the process include standard headers for prototypes.
94793         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
94794         gets declared on GNU/Linux.
94795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
94796         unistd.h, for `rmdir'.
94797         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
94799         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
94800         always true.
94801         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
94803         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
94805 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94807         * gnulib-tool (func_version): Create output all at once.  This
94808         may help avoid triggering unnecessary SIGPIPEs, and at any
94809         rate it doesn't hurt.
94811 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94812             Bruno Haible  <bruno@clisp.org>
94814         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
94815         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94816         * m4/signed.m4 (bh_C_SIGNED): Likewise.
94818         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
94819         (gl_FUNC_VASPRINTF): Invoke it.
94821 2006-09-22  Bruno Haible  <bruno@clisp.org>
94823         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
94824         getloadavg.c as first argument.
94826 2006-09-22  Bruno Haible  <bruno@clisp.org>
94828         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
94829         at the beginning of the gl_INIT macro.
94830         * modules/getloadavg (configure.ac): Pass $gl_source_base to
94831         gl_GETLOADAVG.
94833 2006-09-22  Bruno Haible  <bruno@clisp.org>
94835         * gnulib-tool (func_create_megatestdir): Don't include the config-h
94836         module.
94837         Suggested by Ralf Wildenhues.
94839 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
94841         Import this patch from libc:
94843         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
94845         * lib/regex_internal.c (re_string_reconstruct): Handle
94846         offset < pstr->valid_raw_len && pstr->offsets_needed case.
94847         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
94848         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
94849         re_string_context_at.
94851         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
94852         now requires it.
94853         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
94854         gl_REGEX now does it for us.
94855         (gl_REGEX): Add test taken from
94856         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94858         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94859         Check that large offsets work.  Modernize Autoconf usages.
94860         Prefer "yes" to mean a good thing rather than a bad.
94861         Don't put "#define mkstemp" in config.h, as this might interfere
94862         with standard system headers that "#define mkstemp mkstemp64".
94864         * modules/mkstemp (Depends-on): Add extensions, so that
94865         mkstemp is visible on some platforms.
94866         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94867         (Include): Change to "mkstemp.h" from <stdlib.h>.
94868         (Files): Add mkstemp.h.
94870         * lib/mkstemp.h: New file, since some standard headers
94871         #define mkstemp.
94872         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94873         Include "mkstemp.h".
94874         Make the _LIBC code resemble glibc original more,
94875         e.g., use K&R style.
94876         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94877         (mkstemp): Remove, since mkstemp.h does this for us.
94878         * lib/stdlib--.h: Include mkstemp.h.
94880         Import this patch from libc:
94882         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94884         * lib/tempname.c (__gen_tempname): Change attempts_min
94885         into a macro.  Use preprocessor to decide how to initialize
94886         attempts [Coverity CID 67].
94888 2006-09-20  Bruno Haible  <bruno@clisp.org>
94890         * lib/mkdtemp.c: Import from libc.
94891         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94892                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94893                 attempts_min into a macro.  Use preprocessor to decide how to
94894                 initialize attempts [Coverity CID 67].
94895         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94896                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94897                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94899 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94901         * gnulib-tool (func_exit): New function, to allow to pass the
94902         exit status portably through the trap.  Use everywhere.
94903         (--help, --version): Signal a write error.
94904         (trap): catch SIGPIPE, for write errors.
94905         Exit at the end of the trap, with the correct exit status.
94907 2006-09-19  Karl Berry  <karl@gnu.org>
94909         * doc/gnulib.texi: note about the license texinfo files.
94911 2006-09-19  Eric Blake  <ebb9@byu.net>
94913         * gnulib-tool: Avoid space-tab.
94915 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94917         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
94918         that prevented coreutils 6.1 from building.  Problem reported
94919         by Petter Reinholdtsen.
94921 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94923         * gnulib-tool (avoidlist): Fix typo that broke options like
94924         --avoid=lock that are used by coreutils bootstrap.
94926 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
94928         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
94929         more systematically.
94931 2006-09-18  Jim Meyering  <jim@meyering.net>
94933         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
94935 2006-09-18  Bruno Haible  <bruno@clisp.org>
94937         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
94939 2006-09-18  Bruno Haible  <bruno@clisp.org>
94941         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
94942         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
94943         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
94944         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
94945         * m4/gettext.m4: Require autoconf >= 2.52.
94946         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
94947         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
94948         of gl_cv_header_inttypes_h.
94950 2006-09-18  Bruno Haible  <bruno@clisp.org>
94952         * lib/javaversion.c: Include configmake.h.
94954 2006-09-18  Bruno Haible  <bruno@clisp.org>
94956         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
94957         avoid that the while loops be executed in a subshell.
94959 2006-09-18  Bruno Haible  <bruno@clisp.org>
94961         * MODULES.html.sh (func_module): Break long lines.
94962         Suggested by Bruce Korb <bkorb@gnu.org>.
94964 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94966         Speed up by a factor of 1.12.
94967         * gnulib-tool (nl): New variable.
94968         (func_import): Rewrite include directive extraction to only read each
94969         directive once.
94971 2006-09-17  Bruno Haible  <bruno@clisp.org>
94973         * modules/javaversion (Makefile.am): Remove DEFS setting.
94974         (Depends-on): Add configmake, for PKGDATADIR definition.
94976 2006-09-17  Bruno Haible  <bruno@clisp.org>
94978         * gnulib-tool (func_create_testdir): Rewrite all files at once.
94980 2006-09-17  Bruno Haible  <bruno@clisp.org>
94982         * gnulib-tool (func_append): New function, stolen from libtool.m4.
94983         (func_modules_transitive_closure, func_modules_add_dummy,
94984         func_modules_to_filelist, func_import, func_create_testdir,
94985         func_create_megatestdir, ...): Use it wherever possible.
94986         Suggested by Ralf Wildenhues.
94988 2006-09-16  Karl Berry  <karl@gnu.org>
94990         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
94991         to avoid sectioning errors.
94992         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
94993         [ifinfo]: blank line after @center-ed titles.
94994         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
94995         Spell FSF address consistently with others.
94996         (These changes approved by rms.)
94998 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95000         Speed up by a factor of 1.61.
95001         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
95002         already checked module names again.
95004 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95006         Speed up by a factor of 1.13.
95007         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
95008         for new_files, and the input to func_add_or_update.
95010 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95012         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
95013         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
95015 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95017         * modules/mkancesdirs (Depends-on): Add fcntl.
95018         * modules/savewd: New file.
95019         * MODULES.html.sh (File system functions): Add savewd.
95021         * modules/configmake (Makefile.am): Add support for the
95022         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
95024 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95026         * m4/savewd.m4: New file.
95028 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95030         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
95031         (dirchownmod): New arg FD.  All callers changed.
95032         Use FD rather than opening the directory ourself, as opening is
95033         now the caller's responsibility.
95034         * lib/dirchownmod.h: Likewise.
95035         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
95036         hosts that require <sys/types.h> before <sys/stat.h>.  Include
95037         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
95038         (test_dir): Remove.
95039         (mkancesdirs): Return length of prefix of FILE that has already
95040         been made, or -2 if there is a child doing the work.  Redo
95041         algorithm so that it is O(N) rather than O(N**2).  Optimize away
95042         ".", and treat ".." specially since it might stray back into
95043         already-created areas.  Use a subprocess if necessary.  New arg
95044         WD; all users changed.  MAKE_DIR function should now return 1
95045         if it creates a directory that is not readable.  Return -2 if
95046         a child process is spun off.
95047         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
95048         Adjust signature to match code.
95049         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
95050         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
95051         all users changed.
95052         * lib/savewd.c, lib/savewd.h: New files.
95054 2006-09-15  Jim Meyering  <jim@meyering.net>
95056         * modules/rename-dest-slash: New module.
95057         * MODULES.html.sh (posix_compat): Add it here.
95059         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
95061 2006-09-15  Jim Meyering  <jim@meyering.net>
95063         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
95064         file.
95066         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
95068 2006-09-15  Jim Meyering  <jim@meyering.net>
95070         * lib/rename-dest-slash.c (has_trailing_slash): Use
95071         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
95072         (rpl_rename_dest_slash): Perform the cheaper trailing slash
95073         test before testing whether SRC is a directory.
95074         Suggestions from Bruno Haible.
95076         Avoid a warning about an unused variable.
95077         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
95078         into the #ifdef block where it's used.
95080         * lib/rename-dest-slash.c: New file.
95082 2006-09-14  Bruno Haible  <bruno@clisp.org>
95084         * lib/allocsa.c: Include <config.h> unconditionally.
95085         * lib/asnprintf.c: Likewise.
95086         * lib/asprintf.c: Likewise.
95087         * lib/c-strcasecmp.c: Likewise.
95088         * lib/c-strcasestr.c: Likewise.
95089         * lib/c-strncasecmp.c: Likewise.
95090         * lib/c-strstr.c: Likewise.
95091         * lib/classpath.c: Likewise.
95092         * lib/clean-temp.c: Likewise.
95093         * lib/concatpath.c: Likewise.
95094         * lib/copy-file.c: Likewise.
95095         * lib/csharpcomp.c: Likewise.
95096         * lib/csharpexec.c: Likewise.
95097         * lib/execute.c: Likewise.
95098         * lib/fatal-signal.c: Likewise.
95099         * lib/findprog.c: Likewise.
95100         * lib/fwriteerror.c: Likewise.
95101         * lib/gl_array_list.c: Likewise.
95102         * lib/gl_array_oset.c: Likewise.
95103         * lib/gl_avltree_list.c: Likewise.
95104         * lib/gl_avltree_oset.c: Likewise.
95105         * lib/gl_avltreehash_list.c: Likewise.
95106         * lib/gl_carray_list.c: Likewise.
95107         * lib/gl_linked_list.c: Likewise.
95108         * lib/gl_linkedhash_list.c: Likewise.
95109         * lib/gl_list.c: Likewise.
95110         * lib/gl_oset.c: Likewise.
95111         * lib/gl_rbtree_list.c: Likewise.
95112         * lib/gl_rbtree_oset.c: Likewise.
95113         * lib/gl_rbtreehash_list.c: Likewise.
95114         * lib/imaxabs.c: Likewise.
95115         * lib/imaxdiv.c: Likewise.
95116         * lib/javacomp.c: Likewise.
95117         * lib/javaexec.c: Likewise.
95118         * lib/javaversion.c: Likewise.
95119         * lib/linebreak.c: Likewise.
95120         * lib/localcharset.c: Likewise.
95121         * lib/lock.c: Likewise.
95122         * lib/mbchar.c: Likewise.
95123         * lib/mbswidth.c: Likewise.
95124         * lib/mkdtemp.c: Likewise.
95125         * lib/pipe.c: Likewise.
95126         * lib/printf-args.c: Likewise.
95127         * lib/printf-parse.c: Likewise.
95128         * lib/progname.c: Likewise.
95129         * lib/progreloc.c: Likewise.
95130         * lib/readlink.c: Likewise.
95131         * lib/sh-quote.c: Likewise.
95132         * lib/stpcpy.c: Likewise.
95133         * lib/stpncpy.c: Likewise.
95134         * lib/strcasecmp.c: Likewise.
95135         * lib/strcasestr.c: Likewise.
95136         * lib/strcspn.c: Likewise.
95137         * lib/striconv.c: Likewise.
95138         * lib/strncasecmp.c: Likewise.
95139         * lib/strnlen1.c: Likewise.
95140         * lib/strstr.c: Likewise.
95141         * lib/strtok_r.c: Likewise.
95142         * lib/tls.c: Likewise.
95143         * lib/tmpdir.c: Likewise.
95144         * lib/unicodeio.c: Likewise.
95145         * lib/unsetenv.c: Likewise.
95146         * lib/vasnprintf.c: Likewise.
95147         * lib/vasprintf.c: Likewise.
95148         * lib/wait-process.c: Likewise.
95149         * lib/xallocsa.c: Likewise.
95150         * lib/xsetenv.c: Likewise.
95151         * lib/xstriconv.c: Likewise.
95153 2006-09-13  Simon Josefsson  <jas@extundo.com>
95155         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
95156         that internally, suggested by Ralf Wildenhues
95157         <Ralf.Wildenhues@gmx.de>.
95159 2006-09-13  Simon Josefsson  <jas@extundo.com>
95161         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
95162         @LIBOBJS@.
95163         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95165 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
95167         * lib/_fpending.c: Include <config.h> unconditionally, since we no
95168         longer worry about uses that don't define HAVE_CONFIG_H.
95169         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
95170         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
95171         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
95172         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
95173         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
95174         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
95175         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
95176         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
95177         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
95178         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
95179         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
95180         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
95181         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
95182         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
95183         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
95184         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
95185         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
95186         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
95187         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
95188         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
95189         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
95190         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
95191         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
95192         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
95193         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
95194         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
95195         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
95196         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
95197         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
95198         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
95199         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
95200         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
95201         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
95202         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
95203         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
95204         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
95205         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
95206         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
95207         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
95208         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
95209         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
95210         Likewise.
95212 2006-09-13  Eric Blake  <ebb9@byu.net>
95214         * lib/getopt.c: Fix typo in last commit.
95216 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95218         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
95219         dgettext.
95221 2006-09-12  Jim Meyering  <jim@meyering.net>
95223         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
95224         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
95225         Reported by Nelson H. F. Beebe.
95227 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95229         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
95230         program_invocation_name and program_invocation_short_name are
95231         initialized.
95232         * lib/argp-namefrob.h: Move declarations of program_invocation_name
95233         and program_invocation_short_name to argp.h, so they are visible
95234         to user programs.
95235         * lib/argp.h: Likewise
95237 2006-09-10  Bruno Haible  <bruno@clisp.org>
95239         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95240         m4/inttypes_h.m4, m4/uintmax_t.m4.
95242 2006-09-10  Bruno Haible  <bruno@clisp.org>
95244         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
95245         gl_AC_TYPE_UINTMAX_T.
95247 2006-09-10  Bruno Haible  <bruno@clisp.org>
95249         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
95251 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95253         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
95254         convention.  Text proposed by Bruno Haible.
95255         (struct argp_option): Document the use of N_() wrappers.
95257         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
95258         '\v', and translate the two parts separately, instead of feeding
95259         the whole string to gettext.  This allows to exclude
95260         '\v' from the strings visible to the translator by writing doc
95261         strings as N_("..") "\v" N_("..").
95263 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
95265         * config/srclist.txt: Undo latest change; the bug was fixed.
95267 2006-09-09  Bruno Haible  <bruno@clisp.org>
95269         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
95270         assignments if building a library without libtool.
95271         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
95272         in func_emit_lib_Makefile_am.
95273         (func_import): When building a static library libfoo.a, arrange to
95274         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
95275         (func_create_testdir): Likewise.
95276         * modules/gc (configure.ac, Makefile.am): If building statically,
95277         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
95278         * modules/iconvme (configure.ac, Makefile.am): Likewise.
95279         * modules/striconv (configure.ac, Makefile.am): Likewise.
95280         Based on a suggestion by Ralf Wildenhues.
95282 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95284         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
95285         Check for unistd.h too, since Autoconf doesn't assume POSIX.
95286         Also:
95288         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95289         Add year_2050_test to catch glibc bug 2821
95290         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95292         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95293         Prefer #ifdef to #if.
95295         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
95296         Return from 'main' instead of calling 'exit'.
95298 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95300         * lib/mktime.c (guess_time_tm): Fix bug where mktime
95301         returned the maximum time_t value rather than (time_t) -1.
95302         Problem originally reported by William Bardwell
95303         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95305         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95306         Moved to here ...
95307         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95308         ... from here.
95310 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95312         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
95313         2821 is fixed.
95315 2006-09-08  Jim Meyering  <jim@meyering.net>
95317         Don't make generated files read-only.  That would bother too many
95318         people.  However, do retain the ability to work when targets are
95319         read-only: remove the destination and temporary files before writing
95320         them (when generated via sed or echo), or by using the -f option for
95321         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
95322         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95323         * modules/byteswap, modules/configmake, modules/fcntl:
95324         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95325         * modules/localcharset, modules/netinet_in, modules/poll:
95326         * modules/stdbool, modules/stdint, modules/sys_select:
95327         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95329 2006-09-08  Jim Meyering  <jim@meyering.net>
95331         Avoid new build failure on FreeBSD 6.0.
95332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
95333         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
95334         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
95336 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
95340 2006-09-07  Jim Meyering  <jim@meyering.net>
95342         Fix global typo in last change: use chmod u-w, not chmod u-x.
95343         Spotted by Paul Eggert and Bruce Korb.
95344         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95345         * modules/byteswap, modules/configmake, modules/fcntl:
95346         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95347         * modules/localcharset, modules/netinet_in, modules/poll:
95348         * modules/stdbool, modules/stdint, modules/sys_select:
95349         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95351 2006-09-06  Jim Meyering  <jim@meyering.net>
95353         Make generated files be read-only.
95354         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
95355         Ensure that each generated file is now read-only.
95356         * modules/argz: Likewise.
95357         * modules/arpa_inet: Likewise.
95358         * modules/byteswap: Likewise.
95359         * modules/configmake: Likewise.
95360         * modules/fcntl: Likewise.
95361         * modules/fnmatch: Likewise.
95362         * modules/getopt: Likewise.
95363         * modules/glob: Likewise.
95364         * modules/inttypes: Likewise.
95365         * modules/netinet_in: Likewise.
95366         * modules/poll: Likewise.
95367         * modules/stdbool: Likewise.
95368         * modules/stdint: Likewise.
95369         * modules/sys_select: Likewise.
95370         * modules/sys_socket: Likewise.
95371         * modules/sys_stat: Likewise.
95372         * modules/sysexits: Likewise.
95373         * modules/localcharset: Same as above, but continue using temporary
95374         file named "t-$@" (why different?) rather than the "$@-t" used
95375         everywhere else.
95377         * modules/sysexits (Makefile.am): Replace literal occurrences
95378         of "sysexit.h" more readable, and more consistent, "$@".
95380 2006-09-06  Bruno Haible  <bruno@clisp.org>
95382         * modules/striconv: New file.
95383         * modules/xstriconv: New file.
95384         * MODULES.html.sh (Internationalization functions): Add striconv,
95385         xstriconv.
95387 2006-09-06  Bruno Haible  <bruno@clisp.org>
95389         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
95390         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
95391         not using libtool correctly.
95393 2006-09-06  Bruno Haible  <bruno@clisp.org>
95395         * lib/striconv.h: New file.
95396         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
95397         iconvstring.c.
95398         * lib/xstriconv.h: New file.
95399         * lib/xstriconv.c: New file.
95401 2006-09-06  Bruno Haible  <bruno@clisp.org>
95403         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95404         lib_..._LDFLAGS.
95406 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95408         * lib/argz_.h: Sync from Libtool.
95410         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
95411                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95413         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
95415 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95417         * modules/trim: New file.
95419 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95421         * lib/trim.h: New file.
95422         * lib/trim.c: New file.
95424 2006-09-05  Bruno Haible  <bruno@clisp.org>
95426         * MODULES.html.sh (String handling): Add trim.
95428 2006-09-04  Karl Berry  <karl@gnu.org>
95430         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
95431         until next release.
95433 2006-09-03  Bruno Haible  <bruno@clisp.org>
95435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
95436         correctly.
95438 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95440         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
95441         not gl_GETLOADAVG.  Omit unneeded semicolons.
95442         Problems reported by Ralf Wildenhues in
95443         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95444         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
95445         at the end, which is the usual gnulib style.
95447         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
95448         of doing all the work ourselves.
95449         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
95450         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
95452 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95454         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
95455         Problem reported by Ralf Wildenhues in
95456         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95458         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
95459         HAVE_STRUCT_STATFS_F_FSTYPENAME.
95461 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95463         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
95464         yesterday's patch by changing test -n to test -z.
95466 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95468         * modules/getloadavg (Files): Add m4/getloadavg.m4.
95469         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
95470         the former is now obsolescent.
95472         * modules/chdir-long (Depends-on): Add fcntl.
95474 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95476         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
95477         obsolescent, and programs should use gnulib instead.
95478         * m4/getloadavg.m4: New file, with contents taken from Autoconf
95479         but with prefixes changed.
95481 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95483         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
95484         or stdbool.h, because they might not exist while configuring.
95486         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
95487         Don't include unistd.h or limits.h; not needed, since chdir-long.h
95488         does that for us.
95489         (O_DIRECTORY): Remove.
95491 2006-08-31  Eric Blake  <ebb9@byu.net>
95493         * gnulib-tool: Don't let emacs change spaces to TAB.
95495 2006-08-31  Bruno Haible  <bruno@clisp.org>
95497         * gnulib-tool: When calling func_import more than once, do it in a
95498         subshell.
95499         Reported by Eric Blake <ebb9@byu.net>.
95501 2006-08-31  Bruno Haible  <bruno@clisp.org>
95503         * gnulib-tool (nl): Remove variable.
95504         (sed_transform_lib_file): Use more robust test for config-h module.
95505         (func_import): Fix typo in 2006-08-25 patch.
95507 2006-08-31  Bruno Haible  <bruno@clisp.org>
95509         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
95510         specified, augment Makefile.am variables instead of assigning them.
95512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95514         Work around a bug in both the Linux and SunOS 64-bit kernels:
95515         nanosleep mishandles sleeps for longer than 2**31 seconds.
95516         Problem reported by Frank v Waveren in
95517         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
95519         Check for nanosleep bug.
95520         (LIB_NANOSLEEP): Append clock_gettime library if needed.
95522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95524         Work around a bug in both the Linux and SunOS 64-bit kernels:
95525         nanosleep mishandles sleeps for longer than 2**31 seconds.
95526         Problem reported by Frank v Waveren in
95527         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95528         * lib/nanosleep.c (BILLION): New constant.
95529         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
95530         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
95531         implementation.
95533 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95535         * modules/nanosleep (Depends-on): Add gettime.
95537 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95538         and Simon Josefsson  <jas@extundo.com>
95539         and Oskar Liljeblad  <oskar@osk.mine.nu>
95541         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
95542         * gnulib-tool (func_import): New license type 'unmodifiable license
95543         text'.
95544         * modules/fdl: Use it.  Longer description.
95545         * module/gpl, module/lgpl: New files.
95547 2006-08-30  Jim Meyering  <jim@meyering.net>
95549         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
95550         shadowing the parameter.
95552 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95554         Sync from Libtool:
95556         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95558         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
95559         sharing with gnulib.  Report by Eric Blake.
95561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95563         * modules/isapipe: New file.
95564         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
95566 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95568         * modules/configmake (Makefile.am): Add a comment, and omit
95569         the CONFIGMAKE_ prefix from generated macro names.  Suggested
95570         by Bruno Haible.
95572 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95574         * m4/isapipe.m4: New file.
95576 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95578         * lib/isapipe.c, lib/isapipe.h: New files.
95580 2006-08-29  Jim Meyering  <jim@meyering.net>
95582         * modules/configmake (Makefile.am): Make configmake.h depend on
95583         Makefile.  Otherwise, a stale configmake.h could hang around.
95585 2006-08-29  Eric Blake  <ebb9@byu.net>
95587         * lib/error.c (error_at_line, print_errno_message): Match libc, after
95588         resolution of upstream bug 3044.
95590 2006-08-29  Bruno Haible  <bruno@clisp.org>
95592         * modules/localcharset (Depends-on): Add configmake.
95593         (Makefile.am): Remove setting of LIBDIR through DEFS.
95595 2006-08-29  Bruno Haible  <bruno@clisp.org>
95597         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95598         defined.
95600 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95602         * modules/fcntl: New file.
95603         * modules/chdir-safer (Depends-on): Add fcntl.
95604         * modules/fts: Likewise.
95605         * modules/mkdir-p: Likewise.
95607         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95608         This undoes the most recent change, since we're now addressing the
95609         problem in a different way.
95611         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95612         into output, since the output might be called Makefile.am even
95613         if $makefile_name is something different.
95614         (func_import): Use $makefile_am rather than
95615         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95616         empty.
95618         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95622         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95623         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95624         recent change to stdint.m4, since we're now addressing the problem in a
95625         different way.
95627 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95629         * m4/fcntl_h.m4: New file.
95631 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95633         * lib/fcntl_.h: New file.
95634         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95635         the fcntl module.
95636         * lib/dirchownmod.c: Likewise.
95637         * lib/fts.c: Likewise.
95639         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95640         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95641         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95642         just before including <inttypes.h>, to avoid circular inclusion.
95644 2006-08-28  Jim Meyering  <jim@meyering.net>
95646         * doc/visibility.texi: Actually read and correct the grammar of the
95647         sentence affected by yesterday's change.
95649 2006-08-28  Eric Blake  <ebb9@byu.net>
95651         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95652         needs wrapper.
95654 2006-08-28  Eric Blake  <ebb9@byu.net>
95656         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95658 2006-08-28  Eric Blake  <ebb9@byu.net>
95660         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95662 2006-08-28  Bruno Haible  <bruno@clisp.org>
95664         * modules/c-strstr: New file, from GNU gettext.
95665         * MODULES.html.sh (String handling): Add c-strstr.
95667 2006-08-28  Bruno Haible  <bruno@clisp.org>
95669         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95670         macros.
95671         Reported by Eric Blake.
95673 2006-08-28  Bruno Haible  <bruno@clisp.org>
95675         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95676         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95677         * lib/vasprintf.c: Include errno.h, limits.h.
95678         (EOVERFLOW): New fallback definition.
95679         (vasprintf): Test here whether the string length is > INT_MAX.
95680         * lib/vsnprintf.c: Include errno.h, limits.h.
95681         (EOVERFLOW): New fallback definition.
95682         (vsnprintf): Fix bug when generated string was too long for the buffer.
95683         Test here whether the string length is > INT_MAX.
95685 2006-08-28  Bruno Haible  <bruno@clisp.org>
95687         * lib/inttypes_.h (SCNX*): Remove definitions.
95688         Reported by Eric Blake.
95690 2006-08-28  Bruno Haible  <bruno@clisp.org>
95692         * lib/c-strstr.h: New file, from GNU gettext.
95693         * lib/c-strstr.c: New file, from GNU gettext.
95695 2006-08-28  Bruno Haible  <bruno@clisp.org>
95697         * gnulib-tool: Reorder some statements.
95699 2006-08-28  Bruno Haible  <bruno@clisp.org>
95701         * gnulib-tool: New option --makefile-name.
95702         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95703         $makefile_name.
95704         (func_import): Write $makefile_name to the cache file, and read it from
95705         there unless explicitly specified. Use $makefile_name as file name
95706         instead of Makefile.am. Adjust the recommendations accordingly.
95708 2006-08-28  Bruno Haible  <bruno@clisp.org>
95710         * gnulib-tool (func_verify_module): Check against misapplying patch.
95712 2006-08-28  Bruno Haible  <bruno@clisp.org>
95714         * gnulib-tool (func_relativize, func_relconcat): New functions.
95715         Give an error if --local-dir is given with --update.
95716         Remove trailing slashes from $local_gnulib_dir.
95717         (func_import): Store the relativized $local_gnulib_dir in
95718         gnulib-cache.m4, and read it from there if not specified explicitly.
95720 2006-08-28  Bruno Haible  <bruno@clisp.org>
95722         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95723         is the current directory. Respect also $local_gnulib_dir.
95725 2006-08-28  Bruno Haible  <bruno@clisp.org>
95726             Simon Josefsson  <jas@extundo.com>
95728         BeOS portability.
95729         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95731 2006-08-27  Jim Meyering  <jim@meyering.net>
95733         * doc/visibility.texi: Remove duplicate word: "pointer".
95735 2006-08-26  Bruno Haible  <bruno@clisp.org>
95737         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95738         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95739         (Makefile.am): Create inttypes.h from inttypes_.h.
95740         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95742         * modules/imaxabs: New file.
95744         * modules/imaxdiv: New file.
95746 2006-08-26  Bruno Haible  <bruno@clisp.org>
95748         * m4/inttypes.m4: New file.
95749         * m4/_inttypes_h.m4: Remove file.
95750         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
95751         PRI_MACROS_BROKEN.
95752         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
95754         * m4/imaxabs.m4: New file.
95756         * m4/imaxdiv.m4: New file.
95758 2006-08-26  Bruno Haible  <bruno@clisp.org>
95760         * lib/inttypes_.h: New file.
95761         * lib/inttypes.h: Remove file.
95762         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
95764         * lib/imaxabs.c: New file.
95766         * lib/imaxdiv.c: New file.
95768 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95770         New config-h module, so that "make" output needn't be cluttered
95771         by -DHAVE_CONFIG_H.
95772         * MODULES.html.sh (Support for building libraries and executables):
95773         Add config-h.
95774         * modules/config-h: New file.
95775         * gnulib-tool (nl, sed_transform_lib_file): New vars.
95776         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
95777         the config-h module is used.
95779         New configmake module, so that "make" output needn't be cluttered
95780         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
95781         * MODULES.html.sh (Support for building libraries and executables):
95782         Add configmake.
95783         * modules/configmake: New file.
95785 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95787         * m4/config-h.m4: New file.
95789 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95791         * config/srclist.txt: Add elisp-comp.
95793 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95795         * MODULES.html.sh (Support for building libraries and executables):
95796         Add elisp-comp.
95797         * build-aux/elisp-comp: New file.
95798         * modules/elisp-comp: New file.
95800 2006-08-24  Bruno Haible  <bruno@clisp.org>
95802         * gnulib-tool (func_create_testdir): Use non-default values of
95803         sourcebase and m4base.
95805 2006-08-24  Bruno Haible  <bruno@clisp.org>
95807         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
95808         HTML structure.
95810 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95812         * modules/openat (Depends-on): Add lchown.
95814 2006-08-23  Bruno Haible  <bruno@clisp.org>
95816         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
95817         of gl_LOCK_EARLY instead of gl_LOCK.
95819 2006-08-23  Bruno Haible  <bruno@clisp.org>
95821         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
95822         on OSF/1 to no.
95823         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
95825 2006-08-23  Bruno Haible  <bruno@clisp.org>
95827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
95828         as unusable.
95830         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
95831         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
95832         (gl_LOCK): New macro.
95834 2006-08-22  Simon Josefsson  <jas@extundo.com>
95836         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
95837         to md5 module.
95839 2006-08-22  Simon Josefsson  <jas@extundo.com>
95841         * MODULES.html.sh: Add "Support for maintaining and release
95842         projects".
95844         * build-aux/gnupload: New file, from coreutils.
95846 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95848         Avoid the need for AC_LIBSOURCES in m4 macros.
95849         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
95850         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
95851         * modules/check-version (EXTRA_DIST): Add check-version.h.
95852         * modules/crc (EXTRA_DIST): Add crc.h.
95853         * modules/des (EXTRA_DIST): Add des.h.
95854         * modules/gc (EXTRA_DIST): Add gc.h.
95855         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
95856         * modules/getline (EXTRA_DIST): Add getline.h.
95857         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95858         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95859         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95860         * modules/md2 (EXTRA_DIST): Add md2.h.
95861         * modules/md4 (EXTRA_DIST): Add md4.h.
95862         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95863         * modules/read-file (EXTRA_DIST): Add read-file.h.
95864         * modules/readline (EXTRA_DIST): Add readline.h.
95865         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95866         rijndael-api-fst.h.
95868 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95870         * m4/rijndael.m4 (gl_ARCFOUR):
95871         * m4/arctwo.m4 (gl_ARCTWO):
95872         * m4/check-version.m4 (gl_CHECK_VERSION):
95873         * m4/crc.m4 (gl_CRC):
95874         * m4/des.m4 (gl_DES):
95875         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95876         * m4/gc.m4 (gl_GC):
95877         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95878         * m4/getline.m4 (gl_FUNC_GETLINE):
95879         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95880         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95881         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95882         * m4/md2.m4 (gl_MD2):
95883         * m4/md4.m4 (gl_MD4):
95884         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95885         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95886         * m4/readline.m4 (gl_FUNC_READLINE):
95887         * m4/rijndael.m4 (gl_RIJNDAEL):
95888         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95889         to get the necessary .h files and whatnot.
95891 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95893         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95894         gnulib rather than the other way around.
95895         * config/srclistvars.sh (COREUTILS): Remove.
95897 2006-08-22  Jim Meyering  <jim@meyering.net>
95899         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95901         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95903 2006-08-22  Eric Blake  <ebb9@byu.net>
95905         * modules/regexprops-generic: New file.
95906         * MODULES.html.sh (Support for building documentation): List it.
95908 2006-08-22  Eric Blake  <ebb9@byu.net>
95910         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95911         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95912         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95913         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95915 2006-08-22  Bruno Haible  <bruno@clisp.org>
95917         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
95918         and lib_LTLIBRARIES like the other lib_* variables.
95920 2006-08-22  Bruno Haible  <bruno@clisp.org>
95922         * build-aux/x-to-1.in: New file, from GNU gettext.
95924 2006-08-22  Bruno Haible  <bruno@clisp.org>
95926         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
95927         <utmpx.h> exists.
95929 2006-08-22  Bruno Haible  <bruno@clisp.org>
95931         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
95932         <utmpx.h> exists.
95934 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95936         BeOS portability.
95937         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
95938         exist.
95939         Problem reported by Bruno Haible.
95941 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95943         Avoid the need for AC_LIBSOURCES in m4 macros.
95944         * modules/acl (EXTRA_DIST): Add acl.h.
95945         * modules/argmatch (Files): Add m4/argmatch.m4.
95946         (configure.ac): Add gl_ARGMATCH.
95947         (EXTRA_DIST): Renamed from lib_SOURCES, for
95948         consistency with the other modules.  Remove argmatch.c.
95949         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
95950         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
95951         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
95952         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
95953         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
95954         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
95955         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
95956         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
95957         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
95958         * modules/closeout (EXTRA_DIST): Add closeout.h.
95959         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
95960         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
95961         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
95962         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
95963         dirname.h; remove basename.c and stripslash.c.
95964         * modules/exclude (EXTRA_DIST): Add exclude.h.
95965         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
95966         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
95967         * modules/file-type (EXTRA_DIST): Add file-type.h.
95968         * modules/filemode (EXTRA_DIST): Add filemode.h.
95969         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
95970         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95971         * modules/fpending (EXTRA_DIST): Add __fpending.h.
95972         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
95973         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
95974         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
95975         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
95976         * modules/getdate (EXTRA_DIST): Add getdate.c.
95977         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
95978         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
95979         * modules/getpass (EXTRA_DIST): Add getpass.h.
95980         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
95981         * modules/group-member (EXTRA_DIST): Add group-member.h.
95982         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
95983         * modules/hash (EXTRA_DIST): Add hash.h.
95984         * modules/human (EXTRA_DIST): Add human.h.
95985         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
95986         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
95987         * modules/lchown (EXTRA_DIST): Add lchown.h.
95988         * modules/long-options (EXTRA_DIST): Add long-options.h.
95989         * modules/lstat (EXTRA_DIST): Add lstat.h.
95990         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
95991         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
95992         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
95993         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
95994         * modules/memxor (EXTRA_DIST): Add memxor.h.
95995         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
95996         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
95997         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
95998         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
95999         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
96000         * modules/physmem (EXTRA_DIST): Add physmem.h.
96001         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
96002         * modules/posixver (EXTRA_DIST): Add posixver.h.
96003         * modules/quote (EXTRA_DIST): Add quote.h.
96004         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
96005         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
96006         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
96007         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
96008         regex_internal.h regexec.c.
96009         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
96010         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
96011         * modules/same (EXTRA_DIST): Add same.h.
96012         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
96013         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
96014         * modules/savedir (EXTRA_DIST): Add savedir.h.
96015         * modules/sha1 (EXTRA_DIST): Add sha1.h.
96016         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
96017         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
96018         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
96019         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
96020         * modules/strdup (EXTRA_DIST): Add strdup.h.
96021         * modules/strftime (EXTRA_DIST): Add strftime.h.
96022         * modules/strndup (EXTRA_DIST): Add strndup.h.
96023         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
96024         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
96025         * modules/time_r (EXTRA_DIST): Add time_r.h.
96026         * modules/timespec (EXTRA_DIST): Add timespec.h.
96027         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96028         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
96029         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
96030         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
96031         * modules/userspec (EXTRA_DIST): Add userspec.h.
96032         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
96033         * modules/utimens (EXTRA_DIST): Add utimens.h.
96034         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
96035         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
96036         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
96037         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
96038         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
96039         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
96040         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
96041         * modules/yesno (EXTRA_DIST): Add yesno.h.
96043 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96045         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
96047         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
96048         * m4/dev-ino.m4, same-inode.m4: Remove.
96050         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
96051         * m4/acl.m4 (AC_FUNC_ACL):
96052         * m4/backupfile.m4 (gl_BACKUPFILE):
96053         * m4/c-strtod.m4 (gl_C99_STRTOLD):
96054         * m4/canon-host.m4 (gl_CANON_HOST):
96055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
96056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
96057         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
96058         * m4/cloexec.m4 (gl_CLOEXEC):
96059         * m4/close-stream.m4 (gl_CLOSE_STREAM):
96060         * m4/closeout.m4 (gl_CLOSEOUT):
96061         * m4/dirfd.m4 (gl_FUNC_DIRFD):
96062         * m4/dirname.m4 (gl_DIRNAME):
96063         * m4/exclude.m4 (gl_EXCLUDE):
96064         * m4/exitfail.m4 (gl_EXITFAIL):
96065         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
96066         * m4/file-type.m4 (gl_FILE_TYPE):
96067         * m4/filemode.m4 (gl_FILEMODE):
96068         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
96069         * m4/fpending.m4 (gl_FUNC_FPENDING):
96070         * m4/fprintftime.m4 (gl_FPRINTFTIME):
96071         * m4/fts.m4 (gl_FUNC_FTS):
96072         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
96073         * m4/getdate.m4 (gl_GETDATE):
96074         * m4/gethrxtime.m4 (gl_GETHRXTIME):
96075         * m4/getpagesize.m4 (gl_GETPAGESIZE):
96076         * m4/getpass.m4 (gl_FUNC_GETPASS):
96077         * m4/gettime.m4 (gl_GETTIME):
96078         * m4/getugroups.m4 (gl_GETUGROUPS):
96079         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
96080         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
96081         * m4/hard-locale.m4 (gl_HARD_LOCALE):
96082         * m4/hash.m4 (gl_HASH):
96083         * m4/idcache.m4 (gl_IDCACHE):
96084         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
96085         * m4/lchown.m4 (gl_FUNC_LCHOWN):
96086         * m4/long-options.m4 (gl_LONG_OPTIONS):
96087         * m4/lstat.m4 (gl_FUNC_LSTAT):
96088         * m4/md5.m4 (gl_MD5):
96089         * m4/memcasecmp.m4 (gl_MEMCASECMP):
96090         * m4/memcoll.m4 (gl_MEMCOLL):
96091         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
96092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
96093         * m4/memxor.m4 (gl_MEMXOR):
96094         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
96095         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
96096         * m4/modechange.m4 (gl_MODECHANGE):
96097         * m4/mountlist.m4 (gl_MOUNTLIST):
96098         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
96099         * m4/openat.m4 (gl_FUNC_OPENAT):
96100         * m4/pathmax.m4 (gl_PATHMAX):
96101         * m4/physmem.m4 (gl_PHYSMEM):
96102         * m4/posixtm.m4 (gl_POSIXTM):
96103         * m4/posixver.m4 (gl_POSIXVER):
96104         * m4/quote.m4 (gl_QUOTE):
96105         * m4/quotearg.m4 (gl_QUOTEARG):
96106         * m4/readtokens.m4 (gl_READTOKENS):
96107         * m4/readutmp.m4 (gl_READUTMP):
96108         * m4/regex.m4 (gl_REGEX):
96109         * m4/safe-read.m4 (gl_SAFE_READ):
96110         * m4/safe-write.m4 (gl_SAFE_WRITE):
96111         * m4/same.m4 (gl_SAME):
96112         * m4/save-cwd.m4 (gl_SAVE_CWD):
96113         * m4/savedir.m4 (gl_SAVEDIR):
96114         * m4/settime.m4 (gl_SETTIME):
96115         * m4/sha1.m4 (gl_SHA1):
96116         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
96117         * m4/stat-macros.m4 (gl_STAT_MACROS):
96118         * m4/stat-time.m4 (gl_STAT_TIME):
96119         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
96120         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
96121         * m4/strdup.m4 (gl_FUNC_STRDUP):
96122         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
96123         * m4/strndup.m4 (gl_FUNC_STRNDUP):
96124         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
96125         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
96126         * m4/time_r.m4 (gl_TIME_R):
96127         * m4/timespec.m4 (gl_TIMESPEC):
96128         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
96129         * m4/unlinkdir.m4 (gl_UNLINKDIR):
96130         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
96131         * m4/userspec.m4 (gl_USERSPEC):
96132         * m4/utimecmp.m4 (gl_UTIMECMP):
96133         * m4/utimens.m4 (gl_UTIMENS):
96134         * m4/xalloc.m4 (gl_XALLOC):
96135         * m4/xgetcwd.m4 (gl_XGETCWD):
96136         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
96137         * m4/xreadlink.m4 (gl_XREADLINK):
96138         * m4/xstrtod.m4 (gl_XSTRTOD):
96139         * m4/yesno.m4 (gl_YESNO):
96140         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
96141         to get the necessary .h files and whatnot.
96143 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
96144             Bruno Haible  <bruno@clisp.org>
96146         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
96147         /bin/sh understanding of '!' conditional negation.
96149 2006-08-21  Jim Meyering  <jim@meyering.net>
96151         * modules/openat (Depends-on): Really alphabetize.
96153         * modules/acl (Depends-on): Add error and quote.
96155         * check-module (find_included_lib_files): Add at-func.c to the
96156         ok-to-include-more-than-once white list.
96158         * modules/openat (Depends-on): Add lstat.  Alphabetize.
96160 2006-08-21  Bruno Haible  <bruno@clisp.org>
96162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96163         Emit a pkgdata_DATA variable only if some snippets add contents to it.
96164         Reported by Martin Lambers <marlam@marlam.de>.
96166 2006-08-21  Bruno Haible  <bruno@clisp.org>
96168         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
96169         specify an installation location, don't emit a noinst_LIBRARIES or
96170         noinst_LTLIBRARIES assignment.
96172 2006-08-21  Bruno Haible  <bruno@clisp.org>
96174         BeOS portability.
96175         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
96176         BeOS has mbrtowc() but no <wctype.h>.
96178 2006-08-21  Bruno Haible  <bruno@clisp.org>
96180         BeOS portability.
96181         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
96182         exist.
96184 2006-08-21  Bruno Haible  <bruno@clisp.org>
96186         BeOS portability.
96187         * lib/mbchar.h: Include <wctype.h> only if it exists.
96189 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96191         Remove files that are no longer needed by their respective modules.
96192         * m4/obstack.m4: Remove.
96193         * m4/strerror_r.m4: Remove.
96194         * m4/uint32_t.m4: Remove.
96195         * m4/uintptr_t.m4: Remove.
96196         * m4/ullong_max.m4: Remove.
96197         * m4/xstrtoimax.m4: Remove.
96198         * m4/xstrtoumax.m4: Remove.
96200         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
96201         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
96202         dependencies now capture this.
96204         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
96205         Do not use AC_LIBSOURCES, since gnulib modules now do this.
96206         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
96207         * m4/human.m4 (gl_HUMAN): Likewise.
96208         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
96209         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
96211         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
96213         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
96214         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
96215         stdint.
96216         * m4/human.m4 (gl_HUMAN): Likewise.
96217         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
96218         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
96219         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96220         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96221         * m4/xstrtol (gl_XSTRTOL): Likewise.
96223         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
96224         AC_TYPE_LONG_LONG_INT.
96225         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96226         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
96227         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
96228         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96230         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
96231         on stdbool.
96233         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
96234         (gl_PREREQ_XSTRTOUL): Remove.
96236         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
96238         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
96239         mode.
96241 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96243         Add and change modules to make it easier for coreutils to use
96244         gnulib-tool.
96245         * modules/backupfile (Files): Remove m4/d-ino.m4.
96246         (Depends-on): Add d-ino.
96247         * modules/cycle-check (Depends-on): Add stdint.
96248         (lib_SOURCES): Add cycle-check.h.
96249         * modules/d-ino: New module.
96250         * modules/d-type: New module.
96251         * modules/error (Files): Remove m4/strerror_r.m4.
96252         * modules/filemode (Files): Add m4/st_dm_mode.m4.
96253         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
96254         m4/inttypes_h.m4, m4/uintmax_t.m4.
96255         (Depends-on): Add stdint.
96256         (lib_SOURCES): Add fsusage.h.
96257         * modules/getcwd (Files): Remove d-ino.m4.
96258         (Depends-on): Add d-ino.
96259         * modules/getndelim2 (Depends-on): Add stdint.
96260         * modules/glob (Files): Remove m4/d-type.m4.
96261         (Depends-on): Add d-type.
96262         * modules/host-os: New module.
96263         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
96264         m4/inttypes_h.m4, m4/uintmax_t.m4.
96265         * Depends-on: Add stdint.
96266         (lib_SOURCES): Add human.h.
96267         * modules/inttostr (Files): Remove m4/intmax_t.m4,
96268         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
96269         m4/uintmax_t.m4, m4/ulonglong.m4.
96270         (Depends-on): Add stdint.
96271         (EXTRA_DIST): Add inttostr.h.
96272         * modules/lchmod: New module.
96273         * modules/link-follow: New module.
96274         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
96275         (Depends-on): Add lchmod.
96276         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
96277         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
96278         (Depends-on): Add stdint.
96279         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
96280         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
96281         (Depends-on): Add stdint.
96282         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
96283         * modules/perl: New module.
96284         * modules/regex (Depends-on): Add stdint.
96285         * modules/rmdir-errno: New module.
96286         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96287         m4/intmax_t.m4.
96288         (Depends-on): Add stdint.
96289         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96290         m4/uintmax_t.m4.
96291         (Depends-on): Add stdint.
96292         * modules/unlink-busy: New module.
96293         * modules/utimecmp (Depends-on): Add stdint.
96294         * modules/uptime: New module.
96295         * modules/winsz-ioctl: New module.
96296         * modules/winsz-termios: New module.
96297         * modules/xnanosleep (Depends-on): Add nanosleep.
96298         * modules/ullong_max: Remove.
96299         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
96300         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
96301         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
96302         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
96303         (Depends-on): Add inttypes.
96304         (lib_SOURCES): Add xstrtol.h.
96305         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
96306         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
96307         * MODULES.html.sh: Move 'assert' into the assert section.
96308         Move 'dummy' into the linking section.
96309         Remove ullong_max.
96310         Add section for compatibility checks for POSIX:2001 functions,
96311         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
96312         winsz-ioctl, and winsz-termios into it.
96313         Add lchmod.
96314         Add top-level Misc section and put host-os, perl, and uptime
96315         into it.
96317 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96319         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
96320         now assume the stdint module.  Do not include inttypes.h.
96321         * lib/fsusage.h: Likewise.
96322         * lib/getndelim2.c: Likewise.
96323         * lib/human.h: Likewise.
96324         * lib/inttostr.h: Likewise.
96325         * lib/obstack.c: Likewise.
96326         * lib/regex_internal.h: Likewise.
96327         * lib/tempname.c: Likewise.
96328         * lib/utimecmp.c: Likewise.
96329         * lib/xstrtol.h: Likewise.
96331         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
96333         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
96334         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
96335         * lib/xtime.h: Likewise.
96337 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96339         * modules/openat (Files): Add lib/fchmodat.c.
96340         Fixes problem reported by Jay Youngman.
96342 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96344         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
96345         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
96347 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
96348             Bruno Haible  <bruno@clisp.org>
96350         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
96351         and is a script that invokes bison. Tighten the code. Add comments.
96353 2006-08-18  Jim Meyering  <jim@meyering.net>
96355         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
96356         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
96357         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
96358         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
96360 2006-08-18  Bruno Haible  <bruno@clisp.org>
96362         * modules/bison-i18n: New file.
96363         * MODULES.html.sh (Internationalization functions): Add it.
96365 2006-08-18  Bruno Haible  <bruno@clisp.org>
96367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
96368         sys/statvfs.h. When getmntinfo was found, check its declaration and
96369         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
96371 2006-08-18  Bruno Haible  <bruno@clisp.org>
96373         * m4/bison-i18n.m4: New file, from bison.
96375 2006-08-18  Bruno Haible  <bruno@clisp.org>
96377         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
96378         (ME_DUMMY): Treat "kernfs" as a dummy.
96379         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
96381 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96383         Update from coreutils.
96385         2006-08-15  Jim Meyering  <jim@meyering.net>
96387         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
96389         2006-01-17  Jim Meyering  <jim@meyering.net>
96391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
96393         2006-01-11  Jim Meyering  <jim@meyering.net>
96395         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
96396         Check for the lchmod function.
96398 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96400         Update from coreutils.
96402         * lib/__fpending.h: Add copyright notice.
96403         * lib/fprintftime.h: Likewise.
96404         * lib/savedir.c: Use (C) in copyright notice.
96405         * lib/savedir.h: Likewise.
96407         2006-08-15  Jim Meyering  <jim@meyering.net>
96409         * lib/at-func.c: New file, with the logic of all emulated at-functions.
96410         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
96411         in support of the EXPECTED_ERRNO macro.
96412         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
96413         definitions.  Instead, define the appropriate symbols and include
96414         "at-func.c".
96415         * lib/mkdirat.c (mkdirat): Likewise.
96416         * lib/fchmodat.c (fchmodat): Likewise.
96417         (ENOSYS): Remove definition.
96418         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
96419         it.  Don't include "unistd--.h" -- it wasn't ever used.
96421         2006-01-17  Jim Meyering  <jim@meyering.net>
96423         Rewrite fts.c not to change the current working directory,
96424         by using openat, fstatat, fdopendir, etc..
96426         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
96427         (HAVE_OPENAT_SUPPORT): Define.
96428         [_LIBC] (fchdir): Don't undef or define; no longer used.
96429         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
96430         Now, this `function' always succeeds, and consumes its file descriptor
96431         parameter -- so callers must not close such FDs.  Update callers.
96432         (diropen_fd, opendirat, cwd_advance_fd): New functions.
96433         (diropen): Add parameter, SP.  Adjust all callers.
96434         Implement using diropen_fd, rather than open.
96435         (fts_open): Initialize new member, fts_cwd_fd.
96436         Remove fts_rft-setting code.
96437         (fts_close): Close fts_cwd_fd, if necessary.
96438         (__opendir2): Define in terms of opendir or opendirat,
96439         depending on whether the FST_NOCHDIR flag is set.
96440         (fts_build): Since fts_safe_changedir consumes its FD, and since
96441         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
96442         and close the dup'd file descriptor upon failure.
96443         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
96444         (fts_safe_changedir): Tweak semantics to reflect that this function
96445         now calls cwd_advance_fd and hence consumes its FD argument.
96446         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
96447         [struct FTS] (fts_rft): Remove now-unused member.
96448         [struct FTS] (fts_cycle.state): Improve comment.
96450         * lib/openat.c (openat_needs_fchdir): New function.
96451         * lib/openat.h (openat_needs_fchdir): Declare it.
96453 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96455         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
96456         Problem and fix reported by Pádraig Brady in
96457         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
96459 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96461         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
96463 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96465         * lib/memcoll.c (memcoll): Optimize for the common case where the
96466         arguments are bytewise equal.
96468 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96470         * doc/regexprops-generic.texi: Add a copyright notice.
96472 2006-08-15  Bruno Haible  <bruno@clisp.org>
96474         * modules/tmpdir (License): Change to LGPL.
96476 2006-08-15  Bruno Haible  <bruno@clisp.org>
96478         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
96479         module.
96481 2006-08-14  Simon Josefsson  <jas@extundo.com>
96483         * config/srclist.txt: Add gnupload.
96485 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96487         Change copyright notice from LGPL 2 to GPL 2, since that's the
96488         standard form used in the gnulib repository.
96489         * tests/test-lock.c: Likewise.
96490         * tests/test-stdint.c: Likewise.
96491         * tests/test-tls.c: Likewise.
96493         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
96494         prelude-manager.  User shorter URLs for GNU projects, without '?'.
96495         Add copyright notice.
96497         * check-module: Add copyright notice.  Output a copyright
96498         notice if "--version" is specified.
96499         * modules/COPYING: New file.
96500         * tests/test-getaddrinfo.c: Add copyright notice.
96501         * tests/test-verify.c: Likewise.
96503 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96505         Change copyright notice from LGPL 2 to GPL 2, since that's the
96506         standard form used in the gnulib repository.
96507         * lib/lock.c: LGPL -> GPL.
96508         * lib/lock.h: Likewise.
96509         * lib/strnlen1.c: Likewise.
96510         * lib/strnlen1.h: Likewise.
96511         * lib/tls.c: Likewise.
96512         * lib/tls.h: Likewise.
96513         * lib/tmpdir.c: Likewise.
96515         * lib/TODO: Remove; this belongs only in coreutils.
96517 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96519         Add copyright notices to long-enough files that lack them, since
96520         otherwise the files aren't clearly free.  Use the same notice that
96521         getdate.texi already uses.
96522         * doc/alloca-opt.texi: Add copyright notice.
96523         * doc/alloca.texi: Likewise.
96524         * doc/ctime.texi: Likewise.
96525         * doc/functions.texi: Likewise.
96526         * doc/gcd.texi: Likewise.
96527         * doc/gnulib-tool.texi: Likewise.
96528         * doc/inet_ntoa.texi: Likewise.
96529         * doc/visibility.texi: Likewise.
96531         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
96532         * doc/quote.texi: Add copyright notice.
96534         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
96535         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
96536         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
96537         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
96538         is now obsolete, and give a pointer to the Sun list.
96539         Add copyright notice.
96541 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96543         * config/srclistvars.sh: Add copyright notice.
96545 2006-08-14  Eric Blake  <ebb9@byu.net>
96547         Import the following change from libc:
96549         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
96551         Upstream bug 2997.
96552         * lib/misc/error.c: Add space between program name and message if file
96553         name is missing.
96555 2006-08-12  Karl Berry  <karl@gnu.org>
96557         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
96558         remove, these originate in gnulib now.
96560 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96562         * doc/Makefile (standards.info standards.html standards.dvi):
96563         Also depend on make-stds.texi.
96565 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
96567         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
96568         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
96570         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
96571         in wchar_t.  Problem reported by Eric Blake.
96573         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
96574         LEN is smaller than SIZE.  Suggested by Bruno Haible.
96575         Also, help the compiler to keep LEN in a register.
96577 2006-08-11  Eric Blake  <ebb9@byu.net>
96579         * users.txt: Sort.  Add tar.
96581 2006-08-11  Bruno Haible  <bruno@clisp.org>
96583         * users.txt: New file.
96585 2006-08-11  Bruno Haible  <bruno@clisp.org>
96587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
96588         before <wchar.h>. Needed for OSF/1 and BSD/OS.
96590 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96592         * modules/snprintf (Depends-on): Remove minmax.
96593         (Maintainer): Add self and Bruno.
96595 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96597         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96598         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96599         (EOVERFLOW): Define if the system does not.
96600         Do not include "minmax.h"; it wasn't used.
96601         (snprintf): Don't assume size_t promotes to an unsigned type.
96602         Fix bug when generated string was too long for the buffer: the
96603         buffer's contents are supposed to be the initial prefix of the
96604         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96605         exceeds INT_MAX; do the check ourselves.
96607         Import the following changes from libc:
96609         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96611         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96612         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96613         set wc to the byte which couldn't be converted.
96614         (re_string_reconstruct): Don't clear valid_raw_len before calling
96615         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96616         tip_context using re_string_context_at.
96618         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96620         * lib/posix/regex.h: g++ still cannot handled [restrict].
96622         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96624         * lib/posix/regex.h: Remove special handling for VMS.
96626 2006-08-10  Jim Meyering  <jim@meyering.net>
96628         * modules/same-inode: New module.
96629         * modules/dev-ino: New module.
96630         * modules/cycle-check: Depend on these modules, rather than simply
96631         including their .h files.
96632         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96633         required via m4/cycle-check.m4.
96634         * modules/same: Depend on new same-inode module, rather than
96635         including same-inode.h.
96636         * modules/chdir-safer: New file.
96638         * modules/chown (Depends-on): Add stat-macros.
96640 2006-08-10  Jim Meyering  <jim@meyering.net>
96642         * m4/cycle-check.m4: New file.
96643         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96644         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96646 2006-08-10  Eric Blake  <ebb9@byu.net>
96648         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96649         in from original proposal.
96651 2006-08-10  Eric Blake  <ebb9@byu.net>
96652         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96654         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96655         namespace.
96657 2006-08-10  Bruno Haible  <bruno@clisp.org>
96659         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96660         as well.
96662 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96664         Sync from coreutils.
96666         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96668         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96669         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96671 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96673         * modules/restrict: Remove; no longer needed now that we assume
96674         Autoconf 2.59 or later.
96675         * MODULES.html.sh: Remove 'restrict'.
96676         * modules/argp (Depends-on): Remove 'restrict'.
96677         * modules/base64 (Depends-on): Likewise.
96678         * modules/gc (Depends-on): Likewise.
96679         * modules/getaddrinfo (Depends-on): Likewise.
96680         * modules/glob (Depends-on): Likewise.
96681         * modules/inet_ntop (Depends-on): Likewise.
96682         * modules/inet_pton (Depends-on): Likewise.
96683         * modules/memxor (Depends-on): Likewise.
96684         * modules/regex (Depends-on): Likewise.
96685         * modules/strtok_r (Depends-on): Likewise.
96686         * modules/time_r (Depends-on): Likewise.
96688 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96690         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96691         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96692         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96693         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96694         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96695         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96696         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96697         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96699         Merge from coreutils.
96700         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96701         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96703         * m4/time_r.m4 (gl_TIME_R): Likewise.
96705 2006-08-09  Karl Berry  <karl@gnu.org>
96707         * config/srclist.txt: no more gettext-tools, per Bruno.
96709 2006-08-08  Eric Blake  <ebb9@byu.net>
96711         * modules/verror: New module.
96712         * MODULES.html.sh: Document it.
96714 2006-08-08  Eric Blake  <ebb9@byu.net>
96716         * lib/verror.h, lib/verror.c: New files.
96718 2006-08-08  Eric Blake  <ebb9@byu.net>
96720         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96721         verror_at_line output complies with GNU Coding Standards even when
96722         file is NULL.
96724 2006-08-07  Bruno Haible  <bruno@clisp.org>
96726         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96727         versions of AIX.
96728         Reported by Ralf Wildenhues.
96730 2006-08-07  Bruno Haible  <bruno@clisp.org>
96732         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96733         in an AC_DEFUN. Needed so that the autoconf snippets can use
96734         AC_REQUIRE.
96736 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96739         Initialize pkgdata_DATA.
96740         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96741         overriding it.
96743 2006-08-06  Eric Blake  <ebb9@byu.net>
96745         * lib/error.h: Fold in some upstream changes from glibc.
96746         * lib/error.c: Likewise.
96748 2006-08-04  Bruno Haible  <bruno@clisp.org>
96750         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96751         Make the mostlyclean-local rule depend on mostlyclean-generic.
96752         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
96754 2006-07-31  Bruno Haible  <bruno@clisp.org>
96756         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
96757         <stdlib.h>, <string.h>.
96759 2006-07-30  Bruno Haible  <bruno@clisp.org>
96761         * modules/readlink (License): Change to LGPL.
96763 2006-07-30  Bruno Haible  <bruno@clisp.org>
96765         * modules/javaversion (Makefile.am): Distribute javaversion.java and
96766         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
96767         set PKGDATADIR to point to it.
96769 2006-07-30  Bruno Haible  <bruno@clisp.org>
96771         * modules/csharpexec (configure.ac): Comment out macro invocation.
96772         * modules/javaexec (configure.ac): Likewise.
96773         * modules/javacomp-script (configure.ac): Likewise.
96775         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
96777 2006-07-30  Bruno Haible  <bruno@clisp.org>
96779         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
96780         linked-list.
96782 2006-07-30  Bruno Haible  <bruno@clisp.org>
96784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
96786 2006-07-30  Bruno Haible  <bruno@clisp.org>
96788         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96789         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
96790         get removed.
96792 2006-07-29  Bruno Haible  <bruno@clisp.org>
96794         Make it possible for gnulib-tool to work with locally modified or
96795         augmented gnulib repositories.
96796         * gnulib-tool (func_usage): Document --local-dir option.
96797         (local_gnulib_dir): New variable.
96798         Handle --local-dir option.
96799         (func_lookup_file): New function.
96800         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
96801         (func_get_description, func_get_filelist, func_get_description,
96802         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
96803         func_get_automake_snippet, func_get_include_directive,
96804         func_get_license, func_get_maintainer): Use func_lookup_file.
96805         (func_import, func_create_testdir): Use func_lookup_file.
96807 2006-07-29  Bruno Haible  <bruno@clisp.org>
96809         * modules/setenv (Depends-on): Add unistd.
96811 2006-07-29  Bruno Haible  <bruno@clisp.org>
96813         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
96815 2006-07-29  Bruno Haible  <bruno@clisp.org>
96817         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
96819 2006-07-29  Bruno Haible  <bruno@clisp.org>
96821         * gnulib-tool (import, update): If there is no Makefile.am, look at
96822         aclocal.m4, instead of bailing out.
96824 2006-07-29  Bruno Haible  <bruno@clisp.org>
96826         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
96827         Categorize the options by when they are useful.
96829 2006-07-29  Bruno Haible  <bruno@clisp.org>
96831         * gnulib-tool (func_usage): Document option --no-libtool.
96832         Handle option --no-libtool.
96833         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
96834         for changed semantics of $libtool variable.
96835         (func_import): Likewise. If libtool is not used, show this through
96836         an option --no-libtool.
96837         (func_create_testdir): Update.
96839 2006-07-29  Bruno Haible  <bruno@clisp.org>
96841         * gnulib-tool (func_import): Extend error message about missing
96842         --doc-base.
96844 2006-07-29  Bruno Haible  <bruno@clisp.org>
96846         * gnulib-tool (func_import): Don't create the $docbase directory if
96847         there is no file to store there.
96849 2006-07-29  Bruno Haible  <bruno@clisp.org>
96851         * gnulib-tool (autoconf_minversion): If a --dir option is given and
96852         relevant, look for configure.ac there, not in the current directory.
96853         Also use a simple search for AC_PREREQ, not "autoconf --trace".
96855 2006-07-29  Bruno Haible  <bruno@clisp.org>
96857         * gnulib-tool (SORT): New variable.
96858         (func_usage): Undocument --assume-autoconf option.
96859         Remove --assume-autoconf option handling.
96860         (autoconf_minversion): Determine from the contents of configure.ac.
96861         (func_import): Remove autoconf_minversion handling.
96862         Suggested by Eric Blake.
96864 2006-07-29  Bruno Haible  <bruno@clisp.org>
96866         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96868 2006-07-29  Bruno Haible  <bruno@clisp.org>
96870         * config/srclist.txt (*setenv.[ch]): Remove rules.
96872 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96874         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96876 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96878         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96879         arpa/inet.h.
96881 2006-07-28  Simon Josefsson  <jas@extundo.com>
96883         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96884         * modules/inet_pton (Depends-on): Likewise.
96886 2006-07-28  Simon Josefsson  <jas@extundo.com>
96888         * m4/netinet_in_h.m4: New file.
96890 2006-07-28  Simon Josefsson  <jas@extundo.com>
96892         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96893         #include's.
96895 2006-07-28  Simon Josefsson  <jas@extundo.com>
96897         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96898         #include's.
96900 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96902         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96903         setgid on directories only if they set these bits.
96904         * lib/modechange.h: Remove obsolete comment about masks.
96906 2006-07-28  Eric Blake  <ebb9@byu.net>
96908         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96909         macro expansion.
96911 2006-07-28  Bruno Haible  <bruno@clisp.org>
96913         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96915 2006-07-28  Bruno Haible  <bruno@clisp.org>
96917         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
96919 2006-07-28  Bruno Haible  <bruno@clisp.org>
96921         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96922         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96923         Define fallbacks.
96924         Avoids link error on FreeBSD 4.x.
96925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96927         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
96928         encoding.
96929         * lib/mbswidth.c (iswcntrl): Likewise.
96931 2006-07-27  Bruno Haible  <bruno@clisp.org>
96933         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
96934         test.
96936 2006-07-27  Bruno Haible  <bruno@clisp.org>
96938         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
96939         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
96940         defined.
96942 2006-07-26  Eric Blake  <ebb9@byu.net>
96944         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
96946 2006-07-26  Eric Blake  <ebb9@byu.net>
96948         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
96949         like mingw that lack mkstemp.
96950         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
96951         avoid compilation warning on mingw.
96953 2006-07-26  Bruno Haible  <bruno@clisp.org>
96955         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
96956         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
96957         INT_FAST*_MIN, INTPTR_MIN.
96959 2006-07-25  Bruno Haible  <bruno@clisp.org>
96961         * modules/version-etc (Depends-on): Add stdarg.
96963 2006-07-25  Bruno Haible  <bruno@clisp.org>
96965         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
96966         complex commands.
96968 2006-07-25  Bruno Haible  <bruno@clisp.org>
96970         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
96971         defined in <stdarg.h> or config.h.
96973 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96975         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
96976         (gl_STDIO_SAFER): Remove.
96978 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96980         * MODULES.html.sh (File stream based Input/Output):
96981         Add fopen-safer, tmpfile-safer; remove stdio-safer.
96982         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
96983         * modules/fopen-safer, modules/tmpfile-safer: New files.
96984         * modules/stdio-safer: Remove.
96986 2006-07-24  Bruno Haible  <bruno@clisp.org>
96988         * modules/tmpdir: New file.
96989         * MODULES.html.sh (File system functions): Add it.
96991 2006-07-24  Bruno Haible  <bruno@clisp.org>
96993         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
96994         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
96996 2006-07-24  Bruno Haible  <bruno@clisp.org>
96998         * modules/clean-temp: New file.
97000 2006-07-24  Bruno Haible  <bruno@clisp.org>
97002         * m4/tmpdir.m4: New file, from GNU gettext.
97004 2006-07-24  Bruno Haible  <bruno@clisp.org>
97006         * lib/tmpdir.h: New file, from GNU gettext.
97007         * lib/tmpdir.c: New file, from GNU gettext.
97009 2006-07-24  Bruno Haible  <bruno@clisp.org>
97011         * lib/clean-temp.h: New file, from GNU gettext.
97012         * lib/clean-temp.c: New file, from GNU gettext.
97014 2006-07-23  Eric Blake  <ebb9@byu.net>
97016         * modules/stdio-safer (Files): Add tmpfile-safer.c.
97017         (Depends-on): Add binary-io.
97019 2006-07-23  Eric Blake  <ebb9@byu.net>
97021         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
97023 2006-07-23  Eric Blake  <ebb9@byu.net>
97025         * lib/tmpfile-safer.c: New file.
97026         * lib/stdio-safer.h (fopen_safer): Add prototype.
97027         * lib/stdio--.h (tmpfile): Make safer.
97029 2006-07-23  Bruno Haible  <bruno@clisp.org>
97031         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
97032         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
97033         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
97034         gl_linked_remove_at): Use it.
97036 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97037         and Simon Josefsson <jas@extundo.com>
97039         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
97041         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
97043 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97045         * modules/close-stream: New file.
97046         * modules/closeout (Description): Make it clear that it exits
97047         with a diagnostic on error.
97048         (Depends-on): Add close-stream.  Remove fpending, stdbool.
97049         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
97051 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97053         * m4/close-stream.m4: New file.
97055 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97057         * lib/close-stream.c, lib/close-stream.h: New files.
97059 2006-07-22  Bruno Haible  <bruno@clisp.org>
97061         Merge from GNU gettext 0.15.
97063         2006-05-01  Bruno Haible  <bruno@clisp.org>
97065                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
97067         2006-07-22  Bruno Haible  <bruno@clisp.org>
97069                 * modules/javaversion: New file.
97070                 * MODULES.html.sh (Java): Add javaversion.
97072         2006-03-12  Bruno Haible  <bruno@clisp.org>
97074                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
97076         2005-12-04  Bruno Haible  <bruno@clisp.org>
97078                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
97079                 (untested).
97081         2006-06-21  Bruno Haible  <bruno@clisp.org>
97083                 Avoid warnings from recent versions of mcs.
97084                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
97085                 -o, -L, -r any more. Use options documented since mcs-1.0
97086                 instead. Similarly for -g.
97088         2005-12-04  Bruno Haible  <bruno@clisp.org>
97090                 * build-aux/csharpcomp.sh.in: Suffix for resources is
97091                 .resources, not .resource.
97093         2005-07-09  Bruno Haible  <bruno@clisp.org>
97095                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
97096                 add a .dll suffix.
97097                 Reported by Mark Junker <mjscod@gmx.de>.
97099         2006-07-22  Bruno Haible  <bruno@clisp.org>
97101                 * modules/gettext: Upgrade to gettext-0.15.
97102                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
97103                 m4/visibility.m4.
97104                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
97106 2006-07-22  Bruno Haible  <bruno@clisp.org>
97108         Merge from GNU gettext 0.15.
97110         2006-03-25  Bruno Haible  <bruno@clisp.org>
97112                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
97114         2006-07-21  Bruno Haible  <bruno@clisp.org>
97116                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
97117                 "1.1".
97119         2006-05-09  Bruno Haible  <bruno@clisp.org>
97121                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
97122                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
97123                 for the conftestver execution.
97125         2006-05-01  Bruno Haible  <bruno@clisp.org>
97127                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
97128                 optional target-version argument. Verify that the compiler
97129                 groks source of the specified source-version, or add -source
97130                 option as necessary. Verify that the compiler produces
97131                 bytecode in the specified target-version, or add -target and
97132                 -source options as necessary. Make the result of the test
97133                 available as variable CONF_JAVAC. Also log error output in
97134                 config.log.
97136         2006-03-11  Bruno Haible  <bruno@clisp.org>
97138                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
97140         2006-05-09  Bruno Haible  <bruno@clisp.org>
97142                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
97143                 CLASSPATH_SEPARATOR to a semicolon.
97145         2006-03-12  Bruno Haible  <bruno@clisp.org>
97147                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
97148                 available as variable CONF_JAVA, for subsequent autoconf
97149                 tests. Also log error output in config.log.
97151         2006-07-19  Bruno Haible  <bruno@clisp.org>
97153                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
97154                 that getline works on glibc2 systems. Needed to avoid trouble
97155                 in relocatable.c.
97156                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
97158         2005-12-04  Bruno Haible  <bruno@clisp.org>
97160                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
97161                 launcher (untested).
97163         2005-12-04  Bruno Haible  <bruno@clisp.org>
97165                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
97167         2006-07-22  Bruno Haible  <bruno@clisp.org>
97169                 * gettext.m4: Update from GNU gettext-0.15.
97170                 * nls.m4: Likewise.
97171                 * po.m4: Likewise.
97172                 * inttypes-pri.m4: Likewise.
97173                 * inttypes-h.m4: Renamed from inttypes.m4.
97174                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
97176 2006-07-22  Bruno Haible  <bruno@clisp.org>
97178         Merge from GNU gettext 0.15.
97180         2005-07-05  Bruno Haible  <bruno@clisp.org>
97182                 * printf-args.c (printf_fetchargs): Work around broken
97183                 definition of wint_t on mingw.
97185         2005-02-12  Bruno Haible  <bruno@clisp.org>
97187                 * xallocsa.h: Add extern "C" for C++.
97189         2006-05-17  Bruno Haible  <bruno@clisp.org>
97191                 Cygwin portability.
97192                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
97194         2006-04-30  Bruno Haible  <bruno@clisp.org>
97196                 * progreloc.c: Include <mach-o/dyld.h> if available.
97197                 (find_executable): Use _NSGetExecutablePath when possible.
97199         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
97201                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
97202                 function.
97204         2005-12-29  Bruno Haible  <bruno@clisp.org>
97206                 * progreloc.c (set_program_name_and_installdir): Fix
97207                 compilation error.
97209         2005-12-04  Bruno Haible  <bruno@clisp.org>
97211                 Cygwin portability.
97212                 * progreloc.c: Include <windows.h> also on Cygwin.
97213                 (find_executable): Add support for Cygwin.
97214                 (set_program_name_and_installdir): Handle also platforms with
97215                 nonempty EXEEXT.
97217         2006-07-11  Bruno Haible  <bruno@clisp.org>
97219                 * javacomp.c: Fix a comment.
97220                 Reported by Jim Meyering.
97222         2006-04-30  Bruno Haible  <bruno@clisp.org>
97224                 * javacomp.h (compile_java_class): Add source_version,
97225                 target_version arguments.
97226                 * javacomp.c: Rewritten to choose only a compiler that
97227                 respects the specified source_version and target_version.
97229         2006-06-27  Bruno Haible  <bruno@clisp.org>
97231                 Assume correct S_ISDIR macro.
97232                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
97234         2006-07-22  Bruno Haible  <bruno@clisp.org>
97236                 * javaversion.h: New file, from GNU gettext.
97237                 * javaversion.c: New file, from GNU gettext.
97238                 * javaversion.java: New file, from GNU gettext.
97239                 * javaversion.class: New file, from GNU gettext.
97241         2006-05-17  Bruno Haible  <bruno@clisp.org>
97243                 Cygwin portability.
97244                 * javaexec.c (execute_java_class): Test for jview program
97245                 also on Cygwin.
97247         2006-04-09  Bruno Haible  <bruno@clisp.org>
97249                 * fatal-signal.c: Don't include string.h.
97250                 (at_fatal_signal): Use a copying loop instead of memcpy.
97252         2005-12-04  Bruno Haible  <bruno@clisp.org>
97254                 * csharpexec.c: Add support for 'clix' launcher (untested).
97255                 (execute_csharp_using_sscli): New function.
97256                 (execute_csharp_program): Call it.
97258         2006-06-21  Bruno Haible  <bruno@clisp.org>
97260                 Avoid warnings from recent versions of mcs.
97261                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
97262                 -o, -L, -r any more. Use options documented since mcs-1.0
97263                 instead. Similarly for -g.
97265         2005-07-09  Bruno Haible  <bruno@clisp.org>
97267                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
97268                 add a .dll suffix.
97269                 Reported by Mark Junker <mjscod@gmx.de>.
97271         2006-06-17  Bruno Haible  <bruno@clisp.org>
97273                 * config.charset: Update for NetBSD 3.0.
97275         2006-05-17  Bruno Haible  <bruno@clisp.org>
97277                 Cygwin portability.
97278                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
97280         2006-05-16  Bruno Haible  <bruno@clisp.org>
97282                 * localcharset.c [CYGWIN]: Include <windows.h>.
97283                 (get_charset_aliases): For Cygwin, return the same CPxxx
97284                 aliases list as under WIN32.
97285                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
97286                 the environment variables. Fall back to GetACP().
97288         2006-04-05  Bruno Haible  <bruno@clisp.org>
97290                 * config.charset: Update Juan Manuel Guerrero's address.
97292         2005-02-12  Bruno Haible  <bruno@clisp.org>
97294                 * allocsa.h: Add extern "C" for C++.
97296         2005-02-10  Bruno Haible  <bruno@clisp.org>
97298                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
97299                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
97301         2006-07-22  Bruno Haible  <bruno@clisp.org>
97303                 * gettext.h: Update to GNU gettext-0.15.
97305 2006-07-22  Bruno Haible  <bruno@clisp.org>
97307         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
97308         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
97309         lib-prefix.m4, longdouble.m4, ssize_t.m4.
97311 2006-07-21  Eric Blake  <ebb9@byu.net>
97313         * modules/stdlib-safer: New file.
97314         * MODULES.html.sh (File stream based Input/Output): Add
97315         stdlib-safer.
97317 2006-07-21  Eric Blake  <ebb9@byu.net>
97319         * lib/stdlib-safer.h: New file from coreutils, required by
97320         stdlib--.h.
97322 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
97324         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
97326 2006-07-20  Bruno Haible  <bruno@clisp.org>
97328         * gnulib-tool: Recognize new option --assume-autoconf.
97329         (autoconf_minversion): New variable.
97330         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
97332 2006-07-20  Bruno Haible  <bruno@clisp.org>
97334         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
97336 2006-07-19  Derek R. Price  <derek@ximbiot.com>
97338         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
97339         Reindent and repaginate.
97341 2006-07-19  Derek Price  <derek@ximbiot.com>
97343         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
97344         Correct grammar.
97346 2006-07-17  Bruno Haible  <bruno@clisp.org>
97348         * modules/list: New file.
97349         * modules/array-list: New file.
97350         * modules/carray-list, modules/carray-list-tests: New files.
97351         * modules/linked-list, modules/linked-list-tests: New files.
97352         * modules/avltree-list, modules/avltree-list-tests: New files.
97353         * modules/rbtree-list, modules/rbtree-list-tests: New files.
97354         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
97355         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
97356         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
97357         * modules/oset: New file.
97358         * modules/array-oset: New file.
97359         * modules/avltree-oset, modules/avltree-oset-tests: New files.
97360         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
97361         * tests/test-carray_list.c: New file.
97362         * tests/test-linked_list.c: New file.
97363         * tests/test-avltree_list.c: New file.
97364         * tests/test-rbtree_list.c: New file.
97365         * tests/test-linkedhash_list.c: New file.
97366         * tests/test-avltreehash_list.c: New file.
97367         * tests/test-rbtreehash_list.c: New file.
97368         * tests/test-avltree_oset.c: New file.
97369         * tests/test-rbtree_oset.c: New file.
97370         * MODULES.html.sh (Container data structures): New section.
97372 2006-07-17  Bruno Haible  <bruno@clisp.org>
97374         * m4/gl_list.m4: New file.
97376 2006-07-17  Bruno Haible  <bruno@clisp.org>
97378         * lib/gl_list.h: New file.
97379         * lib/gl_list.c: New file.
97380         * lib/gl_array_list.h: New file.
97381         * lib/gl_array_list.c: New file.
97382         * lib/gl_carray_list.h: New file.
97383         * lib/gl_carray_list.c: New file.
97384         * lib/gl_linked_list.h: New file.
97385         * lib/gl_linked_list.c: New file.
97386         * lib/gl_anylinked_list1.h: New file.
97387         * lib/gl_anylinked_list2.h: New file.
97388         * lib/gl_avltree_list.h: New file.
97389         * lib/gl_avltree_list.c: New file.
97390         * lib/gl_anyavltree_list1.h: New file.
97391         * lib/gl_anyavltree_list2.h: New file.
97392         * lib/gl_rbtree_list.h: New file.
97393         * lib/gl_rbtree_list.c: New file.
97394         * lib/gl_anyrbtree_list1.h: New file.
97395         * lib/gl_anyrbtree_list2.h: New file.
97396         * lib/gl_anytree_list1.h: New file.
97397         * lib/gl_anytree_list2.h: New file.
97398         * lib/gl_linkedhash_list.h: New file.
97399         * lib/gl_linkedhash_list.c: New file.
97400         * lib/gl_anyhash_list1.h: New file.
97401         * lib/gl_anyhash_list2.h: New file.
97402         * lib/gl_avltreehash_list.h: New file.
97403         * lib/gl_avltreehash_list.c: New file.
97404         * lib/gl_rbtreehash_list.h: New file.
97405         * lib/gl_rbtreehash_list.c: New file.
97406         * lib/gl_anytreehash_list1.h: New file.
97407         * lib/gl_anytreehash_list2.h: New file.
97409         * lib/gl_oset.h: New file.
97410         * lib/gl_oset.c: New file.
97411         * lib/gl_array_oset.h: New file.
97412         * lib/gl_array_oset.c: New file.
97413         * lib/gl_avltree_oset.h: New file.
97414         * lib/gl_avltree_oset.c: New file.
97415         * lib/gl_rbtree_oset.h: New file.
97416         * lib/gl_rbtree_oset.c: New file.
97417         * lib/gl_anytree_oset.h: New file.
97419 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97421         * m4/mkancesdirs.m4: New file.
97422         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
97423         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
97424         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
97425         it.
97427 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97429         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
97430         * lib/mkancesdirs.h: New files.
97431         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
97432         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
97433         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
97434         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
97435         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
97436         callers changed.  Revamp internals significantly, by not
97437         attempting to create directories that are temporarily more
97438         permissive than the final results.  Do not attempt to use
97439         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
97440         This removes some race conditions, fixes some bugs, and simplifies
97441         things.  Use new dirchownmod function to do owner and mode changes.
97442         * lib/mkdir-p.h: Likewise.
97443         * lib/modechange.c (octal_to_mode): New function.
97444         (struct mode_change): New member mentioned.
97445         (make_node_op_equals): New arg mentioned.  All callers changed.
97446         (mode_compile): Keep track of which mode bits the user has explicitly
97447         mentioned.
97448         (mode_adjust): New arg DIR, so that we implement the X op correctly.
97449         New arg PMODE_BITS, to keep track of which mode bits the user
97450         mentioned; it treats S_ISUID and S_ISGID speciall.
97451         All callers changed.
97452         * lib/modechange.h: Likewise.
97454 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97456         * MODULES.html.sh: Add mkancestors.
97457         * modules/mkancesdirs: New module.
97458         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
97459         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
97460         The chdir-safer and afs files are now orphans; I'll remove them
97461         unless someone speaks up.
97462         Add lib/dirchownmod.c, lib/dirchownmod.h.
97463         (Depends-on): Remove alloca, chown, save-cwd, dirname.
97464         Add lchown, mkancesdirs.
97465         (Maintainer): Add self.
97467 2006-07-15  Karl Berry  <karl@gnu.org>
97469         * gnulib-tool: help message wording/arrangement.
97471 2006-07-14  Simon Josefsson  <jas@extundo.com>
97473         * doc/gnulib.texi (Libtool and Windows): New section.
97475 2006-07-12  Simon Josefsson  <jas@extundo.com>
97477         * modules/gendocs (License): Fix license, approved by Karl.
97479 2006-07-12  Eric Blake  <ebb9@byu.net>
97481         * MODULES.html.sh: Add gendocs.
97483 2006-07-11  Eric Blake  <ebb9@byu.net>
97485         * modules/fdl: New module, to install doc/fdl.texi.
97486         * MODULES.html.sh: Add new section for documentation modules.
97487         * gnulib-tool: Avoid space-tab.
97488         (--doc-base): New option, to manage files from doc.
97490 2006-07-11  Eric Blake  <ebb9@byu.net>
97492         * m4/absolute-header.m4: Fix comments to match recent change.
97494 2006-07-11  Eric Blake  <ebb9@byu.net>
97496         * gnulib-tool: List --doc-base before --tests-base.
97498 2006-07-11  Derek R. Price  <derek@ximbiot.com>
97500         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
97502 2006-07-11  Bruno Haible  <bruno@clisp.org>
97504         * README: Mention where to put documentation.
97506 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97508         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
97510 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
97513         to stdint.m4.
97515 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97517         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
97518         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
97519         "no/such/file/stdint.h" when there is no such file, so that
97520         the resulting C code can be parsed by dodgy compilers.
97521         Problems reported by Bob Proulx.
97523 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97525         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
97526         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97527         macros into the GNU _D_EXACT_NAMLEN.
97528         * lib/savedir.c:  Likewise.
97529         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
97531 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97532         and Paul Eggert  <eggert@cs.ucla.edu>
97534         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
97535         * m4/savedir.m4:
97536         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97537         macros into the GNU _D_EXACT_NAMLEN.
97539 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
97542         around the absolute name, to work around a problem with the HP-UX
97543         11.23 native C compiler, reported by Bob Proulx.
97545 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97547         * doc/maintain.texi, make-stds.texi: Sync from
97548         <http://savannah.gnu.org/projects/gnustandards>.
97550 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97552         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
97554 2006-07-09  Jim Meyering  <jim@meyering.net>
97556         * m4/glob.m4: Remove a doubled word in a comment.
97558 2006-07-09  Jim Meyering  <jim@meyering.net>
97560         * lib/argp-pv.c: Remove a doubled word in a comment.
97561         * lib/check-version.c (check_version): Likewise.
97562         * lib/javacomp.c (compile_java_class): Likewise.
97564 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97566         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
97567         for the benefit of people using Autoconf 2.60.  If you want to
97568         support older Autoconf versions you can copy m4/onceonly_2_57.m4
97569         (or m4/onceonly.m4, if pre-2.57) manually.
97571 2006-07-08  Jim Meyering  <jim@meyering.net>
97573         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
97574         comment.
97575         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
97576         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
97577         comment.
97579 2006-07-08  Jim Meyering  <jim@meyering.net>
97581         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
97583 2006-07-07  Simon Josefsson  <jas@extundo.com>
97585         * tests/test-crc.c: Change expected crc value, the test vector
97586         were probably computed using the old broken crc.c?
97588 2006-07-06  Simon Josefsson  <jas@extundo.com>
97590         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
97591         now the canonical place for the M4 file).
97593         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97594         from the sys_socket dependency now.
97596         * modules/inet_pton (Files): Ditto.
97598         * modules/inet_ntop (Files): Ditto.
97600 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97602         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97603         not gl_PREREQ_GETUSERSHELL.
97605 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97607         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97608         with only one argument, for Autoconf 2.60.
97609         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97610         expand to nothing, so add a shell command to avoid syntax error.
97611         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97613 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97615         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97617 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97620         no longer needed.  Check for isblank decl.
97621         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97622         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97623         of existence.
97625 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97627         * lib/getloadavg.c: Use __VMS, not VMS.
97628         * lib/getopt.c: Likewise.
97629         * lib/getpagesize.h: Likewise.
97630         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97631         and probably does not work.
97633 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97635         * lib/.cppi-disable: Add wcwidth.
97636         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97637         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97638         (ISGRAPH): Remove.  All uses changed to isgraph.
97639         (FOLD) [!defined _LIBC]: Remove special case.
97640         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97641         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97642         HAVE_ISBLANK.
97643         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97644         case.
97646 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97648         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97649         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97650         brackets.  Other minor changes to suppress some compiler
97651         warnings.
97653 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97654         and Paul Eggert  <eggert@cs.ucla.edu>
97656         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97657         of invoking obsolescent AC_HEADER_DIRENT macro.
97658         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97659         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97662         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97663         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97664         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97665         * m4/readdir.m4: Remove; no longer needed.
97667 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97668         and Paul Eggert  <eggert@cs.ucla.edu>
97670         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97671         Don't worry about this obsolete case any more.
97672         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97673         directories.
97674         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97675         worry about this obsolete case any more.
97676         * lib/fts.c: Likewise.
97677         * lib/getcwd.c: Likewise.
97678         * lib/glob.h: Likewise.
97679         * lib/savedir.c: Likewise.
97681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97684         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97685         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97686         needed.
97687         All uses removed.
97688         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97689         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97690         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97691         needed.
97692         * m4/getdate.m4 (gl_GETDATE): Likewise.
97693         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97694         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97695         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97696         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97697         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97698         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97699         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97700         needed.
97702 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97704         * lib/memcasecmp.c: Include <limits.h>.
97705         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97706         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97707         Don't assume isdigit succeeds only on '0' through '9'.
97709 2006-07-05  Eric Blake  <ebb9@byu.net>
97711         * modules/getaddrinfo (Depends-on): Add snprintf.
97713 2006-07-05  Eric Blake  <ebb9@byu.net>
97715         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97716         to avoid 'header present but could not be compiled' on cygwin.
97718 2006-07-05  Eric Blake  <ebb9@byu.net>
97720         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97721         missing from netdb.h.
97722         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97724 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97726         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97727         no longer needed.
97728         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97729         * m4/getdate.m4 (gl_GETDATE): Likewise.
97730         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97731         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97732         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97733         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97736 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97738         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97739         All uses of is_space replaced by isspace.
97740         * lib/exit.h: Don't talk about STDC_HEADERS.
97741         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97742         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97743         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
97744         replaced by isprint etc.
97745         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
97746         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97747         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
97748         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
97749         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
97750         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97752 2006-07-05  Bruno Haible  <bruno@clisp.org>
97754         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
97755         the function exists, before testing against AIX.
97756         Reported by Martin Lambers <marlam@marlam.de>.
97758 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97760         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
97761         From Mark D. Baushke.
97763 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97765         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
97766         to the absolute name, not just one, to bypass Sun C 5.8's
97767         "warning: #include of /usr/include/... may be non-portable".
97769 2006-07-04  Eric Blake  <ebb9@byu.net>
97771         * modules/dirname-tests: New test module.
97772         * tests/test-dirname.c: New file, replacing dirname.c
97773         TEST_DIRNAME section that was recently deleted.
97775 2006-07-04  Bruno Haible  <bruno@clisp.org>
97777         Assume ANSI C header files and <ctype.h> functions.
97778         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
97779         (mbsnwidth): Use isprint, iscntrl instead.
97781 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97783         Merge from coreutils.
97784         * MODULES.html.sh: Add xstrtold.
97785         * modules/xstrtold: New file.
97786         * modules/cycle-check (Files): Add lib/same-inode.h.
97787         * modules/dirname (Files): Add m4/double-slash-root.m4.
97788         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
97789         * modules/mkdir-p (Files): Add lib/same-inode.h.
97790         * modules/same (Files): Add lib/same-inode.h.
97792 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97794         * m4/absolute-header.m4: Renamed from full-header-path.m4.
97795         This is to keep the terminology clean; POSIX talks about
97796         "absolute pathnames", not "full pathnames", but the GNU
97797         Coding Standards say to use "path" for something else;
97798         so use "absolute" to keep both sides happy.
97799         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
97800         Set gl_absolute_header, not gl_full_header_path.
97801         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
97802         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
97803         All uses changed.
97805         Merge from coreutils.
97807         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97809         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
97810         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
97811         want to require the building of c-strtod.o.
97812         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
97813         needs -lm directly.
97814         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
97816         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97818         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
97819         --as-needed option if available.  Problem reported by Albert Chin in
97820         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
97821         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
97822         cc merely issues a bunch of annoying warnings for --as-needed
97823         (this problem was reported by Bob Proulx).  Also, try linking with
97824         -lm to detect a bug in binutils 2.16 (this problem was reported
97825         by Ralf Wildenhues).
97827         2006-06-18  Jim Meyering  <jim@meyering.net>
97829         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
97830         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
97831         macro.
97832         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
97833         also check for glibc-2.4's abort-inducing bug.
97835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
97836         Low-probability clean-up should be to use rmdir to get rid of
97837         the just-created directory, not unlink.
97839         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
97840         configure fail, and request a bug report to inform us about it.
97841         Add a comment that, barring reports to the contrary, in 2007 we'll
97842         assume ftruncate is universally available.
97844         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97846         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
97848         2006-03-12  Jim Meyering  <jim@meyering.net>
97850         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
97851         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
97852         * m4/same.m4 (gl_SAME): Likewise.
97853         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
97855         2006-03-11  Eric Blake  <ebb9@byu.net>
97857         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97858         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97859         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97860         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97862 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97864         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97865         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97866         reported by Mark D. Baushke, one in
97867         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97869         Merge from coreutils.
97871         * lib/.cppi-disable: Add stdint_.h.
97872         * lib/.cvsignore: Add stdint.h.
97874         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97876         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97877         both double and long double versions.
97878         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97879         * lib/xstrtold.c: New file.
97880         * lib/xstrtod.h (xstrtold): New decl.
97882         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97884         * lib/filemode.c (setst): Remove.
97885         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97886         (arguably) clearer, and the generated code is a bit smaller on my
97887         Debian GNU/Linux stable x86 host.
97889         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97891         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97892         Assume that filemode.h includes sys/types.h and sys/stat.h.
97893         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97894         (ftypelet): Reorder to put common cases first, for efficiency.
97895         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97896         to do 'M'.
97897         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97898         of 10, for compatibility with FreeBSD.  All callers changed.
97899         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97900         types that can't be deduced solely from st_mode.  First arg is now a
97901         const pointer.
97902         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97903         (strmode): Renamed from mode_string.
97904         (filemodestring): New decl.
97905         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97906         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97907         needed.
97908         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97910         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97912         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97913         fsusage.h now does that.  Include fsusage.h first, to test interface.
97914         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97915         at most one method (the old code could have generated decls that
97916         didn't conform to C89, not that this was ever exercised).
97917         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
97919         2006-03-19  Jim Meyering  <jim@meyering.net>
97921         Work even in a chroot where d_ino values for entries in "/"
97922         don't match the stat.st_ino values for the same names.
97923         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
97924         number, iterate through all entries again, using lstat instead.
97925         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
97926         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
97928         * lib/getcwd.c (__getcwd): Clarify a comment.
97929         Use memcpy in place of a call to strcpy.
97931         2006-03-12  Jim Meyering  <jim@meyering.net>
97933         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
97934         matches that of the current directory (which we're about to chdir ".."
97935         out of), then save the dev-ino of the parent, instead.
97937         * lib/same-inode.h (SAME_INODE): New file/macro.
97938         * lib/chdir-safer.c (SAME_INODE): Remove definition.
97939         Include "same-inode.h", instead.
97940         * lib/same.c: Likewise.
97941         * lib/cycle-check.h: Include "same-inode.h".
97942         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
97943         * lib/cycle-check.c (SAME_INODE): Remove definition.
97944         * lib/root-dev-ino.h: Include "same-inode.h".
97946         2006-03-11  Eric Blake  <ebb9@byu.net>
97948         * lib/same.c (same_name): s/base_name/last_component/
97949         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
97950         * lib/filenamecat.c (file_name_concat): Likewise.
97952         2006-03-11  Eric Blake  <ebb9@byu.net>,
97953                     Paul Eggert  <eggert@cs.ucla.edu>
97955         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
97956         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
97957         drive prefix.
97958         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
97959         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
97960         (last_component): New method.
97961         * lib/dirname.c (dir_len): Determine when drive letters need a
97962         subsequent slash.  Preserve // when it is special.
97963         (dir_name): Don't append dot when drive letter is absolute.
97964         [TEST_DIRNAME]: Move into a full-blown gnulib test.
97965         * lib/basename.c (base_name): New semantics - malloc the result.
97966         Preserve // when it is special.  Preserve relative files that look
97967         like drive letters.
97968         (base_len): Preserve // when it is special.
97969         (last_component): New method, similar to old base_name semantics.
97970         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
97971         base_name.  Strip redundant slashes from ///.
97973 2006-07-03  Jim Meyering  <jim@meyering.net>
97975         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
97976         macro is used before the first cycle_check call.
97978 2006-07-03  Eric Blake  <ebb9@byu.net>
97980         * modules/dirname (Depends-on): Add xstrndup.
97982 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97984         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
97985         test cases, so that config.log is a bit easier to follow.
97987 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97989         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
97990         both are 64 bits, since this seems to be the tradition, and this
97991         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
97992         we ever run into a host that prefers long long to long in this
97993         case, we'll need another configure-time test.  Problem reported by
97994         Jim Meyering.
97996 2006-07-02  Eric Blake  <ebb9@byu.net>
97998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
98000 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98002         * modules/inttypes (Depends-on): No longer depends on stdint.
98003         * modules/stdint (Description): Say more about assumptions.
98004         Say that the fast types might differ.  Say macros are used.
98005         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
98006         (Makefile.am): Revise list of substituted symbols to match
98007         new stdint.m4.
98008         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
98009         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
98010         * tests/test-stdint.c (verify_same_types)
98011         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
98012         the code conforms to C99/C89.
98013         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
98014         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
98016 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98018         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
98019         but fix a bug, by requiring at least 64 bits.
98020         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98021         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
98022         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
98023         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98025         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
98026         changes.  Make 2.59 a prerequisite.  Check and substitute for
98027         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
98028         inttypes.h.  Do not use special include files; just use the
98029         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
98030         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
98031         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
98032         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
98033         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
98034         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
98035         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
98036         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
98037         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
98038         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
98039         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
98040         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
98041         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
98042         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
98043         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
98044         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
98045         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
98046         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
98047         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
98048         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
98049         WINT_MAX.  Check for C99 conformance more strictly, by detecting
98050         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
98051         not check for things that C99 does not require, e.g., int8_t.  If
98052         a test isn't needed unless <stdint.h> isn't working, and is
98053         unlikely to be needed for any other reason, then don't do it
98054         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
98055         size_t, since we assume C89 freestanding at least.  Do not check
98056         for sig_atomic_t, wchar_t, or wint_t, since the code now does
98057         the right thing even if the types are not defined.  Instead use:
98058         (gl_STDINT_TYPE_PROPERTIES): New macro.
98059         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
98060         testing whether <sys/types.h> clashes, as Autoconf does this for
98061         us now.  All uses removed.
98062         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
98063         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
98064         (gl_CHECK_TYPE_SAME):
98065         Remove; no longer needed.
98066         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
98067         exists, since we'll return 0 anyway in that case.
98068         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
98070 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98072         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
98073         possible collision with system files.
98074         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
98075         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
98076         WCHAR_MIN and WCHAR_MAX in this case.
98077         (<stddef.h>): Do not include; no longer needed.
98078         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
98079         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
98080         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
98081         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
98082         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
98083         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
98084         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
98085         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
98086         !defined(__c99))]: Include in this case too, since it's harmless
98087         now.
98088         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
98089         dangerous to do so.
98090         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
98091         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
98092         (_STDINT_MIN, _STDINT_MAX): New macros.
98093         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
98094         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
98095         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
98096         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
98097         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
98098         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
98099         macros, not typedefs; this simplifies things quite a bit.
98100         Use long int for all types narrower than int64_t.
98101         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
98102         Define in terms of long long int or int64_t or long int,
98103         not int64_t or int32_t.  This saves some compile-time testing.
98104         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
98105         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
98106         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
98107         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
98108         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
98109         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
98110         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
98111         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
98112         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
98113         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
98114         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98115         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98116         undef any previous version and define our own version, for
98117         simplicity and consistency with the new macros for types.
98118         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98119         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98120         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
98121         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
98122         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
98123         @WINT_T_SUFFIX@ to keep things simple here.
98124         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
98125         Simplify by assuming typical 8/16/32/64 host, since we're
98126         already doing that elsewhere anyway.
98127         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
98128         and assume long long int is 64 bits if available.  This
98129         speeds up 'configure'.
98131 2006-07-01  Eric Blake  <ebb9@byu.net>
98133         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
98134         Reported by Andreas Buening.
98136 2006-07-01  Eric Blake  <ebb9@byu.net>
98138         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
98140 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
98142         * lib/getaddrinfo.c: fixed typo
98144 2006-06-29  Jim Meyering  <jim@meyering.net>
98146         * modules/strftime (Maintainer): Add my name, since with the
98147         FPRINTFTIME changes strftime.c has forked from glibc.
98149 2006-06-29  Eric Blake  <ebb9@byu.net>
98151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
98153 2006-06-29  Eric Blake  <ebb9@byu.net>
98155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
98157 2006-06-29  Eric Blake  <ebb9@byu.net>
98159         * lib/stat_.h: New file.
98161 2006-06-29  Eric Blake  <ebb9@byu.net>
98163         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
98164         unused static function.
98166 2006-06-29  Eric Blake  <ebb9@byu.net>
98168         * doc/functions.texi (Function Portability): Document missing lstat
98169         on mingw.
98171 2006-06-29  Eric Blake  <ebb9@byu.net>
98173         * MODULES.html.sh: Add sys_stat.
98174         * modules/sys_stat: New module.
98175         * modules/mkstemp (Depends-on): Add sys_stat.
98177 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98179         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
98181 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98183         * m4/c-bs-a.m4: Removed.
98185 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98187         * lib/strftime.c: Assume strftime() exists.
98189 2006-06-29  Derek Price  <derek@ximbiot.com>
98191         * modules/c-bs-a: Removed - \a is C89.
98192         * MODULES.html.sh: Remove c-bs-a.
98194 2006-06-29  Bruno Haible  <bruno@clisp.org>
98196         * modules/wcwidth (License): Change to LGPL.
98198 2006-06-28  Simon Josefsson  <jas@extundo.com>
98200         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
98201         on _WIN32.
98203         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
98204         getnameinfo.
98206 2006-06-28  Simon Josefsson  <jas@extundo.com>
98208         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
98210 2006-06-28  Simon Josefsson  <jas@extundo.com>
98212         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
98213         functions there.  It will succeed on Windows XP, but on Windows
98214         2000 and (presumably) earlier, it will fail, and use the internal
98215         re-implementation.
98216         (use_win32_p): New function.
98217         (getaddrinfo): Use strtoul on servname, to support numeric ports.
98218         Support AI_NUMERICSERV to disable getservbyname.
98219         (getnameinfo): New function, only supports
98220         NI_NUMERICHOST|NI_NUMERICSERV for now.
98222         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
98223         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
98224         getnameinfo.
98226 2006-06-28  Eric Blake  <ebb9@byu.net>
98228         * modules/wcwidth: New file.
98229         * modules/mbchar (Depends-on): Add wcwidth.
98230         * modules/mbswidth (Depends-on): Add wcwidth.
98231         * MODULES.html.sh: Add wcwidth.
98233 2006-06-28  Eric Blake  <ebb9@byu.net>
98235         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
98236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
98238 2006-06-28  Eric Blake  <ebb9@byu.net>
98240         * lib/xvasprintf.h: Fix comments.
98242 2006-06-28  Eric Blake  <ebb9@byu.net>
98244         * lib/mbchar.h (wcwidth): Include wcwidth.h.
98245         * lib/mbswidth.c (wcwidth): Move from here...
98246         * lib/wcwidth.h: ...to this new file.
98248 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98250         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
98252         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
98253         it's obsolete.
98254         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
98256 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98258         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
98259         Autoconf 2.60 says this stuff was obsolete.
98261 2006-06-28  Bruno Haible  <bruno@clisp.org>
98263         * modules/wcwidth (Files): Add m4/wchar_t.m4.
98265 2006-06-28  Bruno Haible  <bruno@clisp.org>
98267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
98268         gt_TYPE_WCHAR_T.
98270 2006-06-28  Bruno Haible  <bruno@clisp.org>
98272         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
98273         declaration for wcwidth.
98274         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
98276 2006-06-28  Bruno Haible  <bruno@clisp.org>
98278         * lib/mkdtemp.c [MINGW]: Include <io.h>.
98279         (mkdir): Define using _mkdir.
98281 2006-06-28  Bruno Haible  <bruno@clisp.org>
98283         * lib/getaddrinfo.h: Fix POSIX URL.
98284         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
98285         _WIN32.
98286         (use_win32_p): Make static.
98287         (getaddrinfo): Reject service name if it is empty or does not consist
98288         solely of decimal digits, or if its value is > 65535.
98289         (getnameinfo): Remove useless casts.
98291 2006-06-27  Simon Josefsson  <jas@extundo.com>
98293         * modules/sys_select: New file, suggested by Bruno Haible, Paul
98294         Eggert and Martin Lambers.
98296 2006-06-27  Simon Josefsson  <jas@extundo.com>
98298         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
98299         Eggert and Martin Lambers.
98301 2006-06-27  Bruno Haible  <bruno@clisp.org>
98303         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
98304         result to 0, not to empty.
98305         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
98307 2006-06-27  Bruno Haible  <bruno@clisp.org>
98309         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
98311 2006-06-26  Simon Josefsson  <jas@extundo.com>
98313         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
98314         present.
98316 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
98318         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
98319         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
98320         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
98322 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
98324         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
98326 2006-06-26  Bruno Haible  <bruno@clisp.org>
98328         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
98330 2006-06-26  Bruno Haible  <bruno@clisp.org>
98332         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
98334 2006-06-26  Bruno Haible  <bruno@clisp.org>
98336         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
98337         SGI C compiler in pre-C99 mode.
98338         Suggested by Mark D. Baushke and Larry Jones.
98340 2006-06-26  Bruno Haible  <bruno@clisp.org>
98342         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
98343         WCHAR_MAX.
98344         Reported by Mark D. Baushke and Larry Jones.
98346 2006-06-26  Bruno Haible  <bruno@clisp.org>
98348         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
98349         in pre-C99 mode.
98350         Suggested by Mark D. Baushke and Larry Jones.
98352 2006-06-23  Simon Josefsson  <jas@extundo.com>
98353             Bruno Haible  <bruno@clisp.org>
98355         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
98356         Emit mostlyclean-local rule.
98357         (func_emit_tests_Makefile_am): Likewise.
98358         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
98360 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
98362         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
98364 2006-06-23  Bruno Haible  <bruno@clisp.org>
98366         * tests/test-stdint.c: Update to match ISO C 99 Technical
98367         Corrigendum 1.
98369 2006-06-23  Bruno Haible  <bruno@clisp.org>
98371         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
98373 2006-06-23  Bruno Haible  <bruno@clisp.org>
98375         * lib/stdint_.h: Treat IRIX like OpenBSD.
98377 2006-06-23  Bruno Haible  <bruno@clisp.org>
98379         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
98380         ISO C 99 Technical Corrigendum 1.
98382 2006-06-22  Simon Josefsson  <jas@extundo.com>
98384         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
98385         MinGW.
98387 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98389         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
98390         needed.  Some compiler complained about some of them.  Problem reported
98391         by Larry Jones in
98392         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
98394 2006-06-21  Simon Josefsson  <jas@extundo.com>
98396         * tests/test-getaddrinfo.c: New file.
98398         * modules/getaddrinfo-tests: New file.
98400         * MODULES.html.sh: Add inet_pton.
98402         * modules/inet_pton: New file.
98404 2006-06-21  Simon Josefsson  <jas@extundo.com>
98406         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
98407         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
98408         of using the (limited) gnulib implementation on Windows XP.
98410         * m4/inet_pton.m4: New file.
98412 2006-06-21  Simon Josefsson  <jas@extundo.com>
98414         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
98415         variable.
98417         * lib/socket_.h: Don't define WINVER.
98419         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
98420         slightly modified to work in gnulib.
98422 2006-06-21  Simon Josefsson  <jas@extundo.com>
98424         * doc/gnulib.texi (Windows sockets): Add.
98426 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98428         * lib/read-file.c (fread_file): Start with buffer allocation of
98429         0 bytes rather than 1 byte; this simplifies the code.
98430         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
98431         code to free buffer and save/restore errno.
98432         (internal_read_file): Remove unused local.
98434 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98436         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
98437         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
98438         Problem reported by Denis Excoffier in
98439         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
98441 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98443         * modules/sys_socket, modules/socklen: Include sys/types since
98444         FreeBSD 4.x's sys/socket.h needs it.
98446 2006-06-19  Simon Josefsson  <jas@extundo.com>
98448         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
98450 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98452         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
98454 2006-06-19  Bruno Haible  <bruno@clisp.org>
98456         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
98457         and FULL_PATH_INTTYPES_H in angle brackets.
98458         Reported by Mark D. Baushke <mdb@gnu.org>.
98460 2006-06-17  Eric Blake  <ebb9@byu.net>
98462         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
98463         errno.
98465 2006-06-17  Bruno Haible  <bruno@clisp.org>
98467         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
98468         <sys/inttypes.h>.
98470 2006-06-17  Bruno Haible  <bruno@clisp.org>
98472         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
98473         whether errno is declared. Assume <errno.h> declares errno.
98475 2006-06-17  Bruno Haible  <bruno@clisp.org>
98477         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
98479 2006-06-17  Bruno Haible  <bruno@clisp.org>
98481         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
98482         problem on Solaris 2.5.1.
98484 2006-06-16  Eric Blake  <ebb9@byu.net>
98486         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
98487         * lib/unicodeio.c [!defined errno]: Likewise.
98488         * lib/strtol.c [!defined errno]: Likewise.
98489         * lib/strtod.c [!defined errno]: Likewise.
98491 2006-06-15  Eric Blake  <ebb9@byu.net>
98493         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
98495 2006-06-15  Eric Blake  <ebb9@byu.net>
98497         * config/srclist.txt (ssize_t.m4): Lose sync.
98499 2006-06-15  Bruno Haible  <bruno@clisp.org>
98501         * modules/stdint (Files): Include m4/full-header-path.m4,
98502         m4/size_max.m4, m4/wchar_t.m4.
98503         (Makefile.am): Many more substitutions.
98504         * modules/stdint-tests: New file.
98505         * tests/test-stdint.c: New file.
98507 2006-06-15  Bruno Haible  <bruno@clisp.org>
98509         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
98510         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
98511         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
98512         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
98513         gl_CHECK_TYPE_SAME): New macros.
98515 2006-06-15  Bruno Haible  <bruno@clisp.org>
98517         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
98519 2006-06-15  Bruno Haible  <bruno@clisp.org>
98521         * lib/stdint_.h: Rewritten to be fully auto-configured.
98522         Fixes bug on HP-UX/IA64.
98524 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
98526         * lib/getdate.y (__attribute__): Don't define if already defined.
98527         Problem reported by Larry Jones.
98528         * lib/utimens.c (__attribute__): Likewise.
98530 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
98532         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
98533         reported by Andreas Schwab.
98535 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98536             Bruno Haible  <bruno@clisp.org>
98538         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
98539         check for the declaration of strnlen and a run test that exposes the
98540         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
98541         rpl_strndup.
98543 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98544             Bruno Haible  <bruno@clisp.org>
98546         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
98548 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98550         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
98551         compile test, for Tru64 4.0D.
98553 2006-05-28  Karl Berry  <karl@gnu.org>
98555         * config/srclist.txt (printf-args.c): lose sync.
98557 2006-05-26  Martin Lambers  <marlam@marlam.de>
98559         * lib/getpass.c: Updates the test for the native W32 API, and adds
98560         missing includes, thus fixing compilation warnings.
98562 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98564         * lib/exclude.c (exclude_fnmatch): New function.
98565         (excluded_file_name): Call exclude_fnmatch.
98566         * lib/exclude.h (excluded_file_name): New prototype
98568 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
98570         * lib/tempname.c (small_open, large_open): New macros.
98571         (__open, __open64) [!_LIBC]: Remove.
98572         (__gen_tempname): Use small_open and large_open instead of __open
98573         and __open64.  This fixes a portability bug on HP-UX 11.11i
98574         reported by Simon Wing-Tang in
98575         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
98577 2006-05-24  Bruno Haible  <bruno@clisp.org>
98579         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
98580         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
98581         Reported by Thorsten Maerz <torte@netztorte.de> via
98582         Aaron Stone <aaron@serendipity.cx>.
98584 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
98587         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
98588         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
98589         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
98590         not really conditional on the cache.
98591         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
98593 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98595         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98596         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98597         (my_usleep): Don't mishandle maximum value.
98599 2006-05-19  Jim Meyering  <jim@meyering.net>
98601         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98603 2006-05-17  Bruno Haible  <bruno@clisp.org>
98605         Cygwin portability.
98606         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98608 2006-05-17  Bruno Haible  <bruno@clisp.org>
98610         * lib/stdint_.h: Fix recognition of Cygwin.
98612 2006-05-15  Bruno Haible  <bruno@clisp.org>
98614         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98615         on libtool patch by Ralf Wildenhues.
98617 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98620         test for C99 conformance; (bool) 0.5 is an integer constant
98621         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98622         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98624 2006-05-11  Simon Josefsson  <jas@extundo.com>
98626         * m4/xvasprintf.m4: Fix obvious typo.
98628 2006-05-11  Jim Meyering  <jim@meyering.net>
98630         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98631         James Lemley.
98633 2006-05-10  Simon Josefsson  <jas@extundo.com>
98635         * lib/md4.c: Typo fix, update copyright years.
98636         (K1, K2): Don't use L because it turn computations into 64-bit on
98637         64-bit platforms.
98639 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98641         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98642         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98643         unwanted sign propagation, e.g., on hosts with 64-bit int.
98644         There still are some problems with reeelly weird theoretical hosts
98645         (e.g., 33-bit int) but it's not worth worrying about now.
98646         * lib/sha1.c (rol): Likewise.
98647         (K1, K2, K3, K4): Remove unnecessary L suffix.
98649 2006-05-10  Bruno Haible  <bruno@clisp.org>
98651         * lib/des.c: Cast to avoid warnings.
98653 2006-05-09  Bruno Haible  <bruno@clisp.org>
98655         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98656         (Depends-on): Depend also on xsize, stdarg.
98657         (configure.ac): Add gl_XVASPRINTF.
98659 2006-05-09  Bruno Haible  <bruno@clisp.org>
98661         * m4/xvasprintf.m4: New file.
98663 2006-05-09  Bruno Haible  <bruno@clisp.org>
98665         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98666         (EOVERFLOW): Define fallback value.
98667         (xstrcat): New function.
98668         (xvasprintf): Recognize the special case of a string concatenation.
98670 2006-05-08  Eric Blake  <ebb9@byu.net>
98672         * gnulib-tool (func_version): Base copyright year on CVS date.
98673         (func_emit_copyright_notice): New function.
98674         (func_emit_lib_Makefile_am): Use it.
98675         (func_emit_tests_Makefile_am): Likewise.
98676         (func_import): Likewise.
98678 2006-05-08  Bruno Haible  <bruno@clisp.org>
98680         * modules/stdarg: New file.
98681         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98683 2006-05-08  Bruno Haible  <bruno@clisp.org>
98685         * m4/stdarg.m4: New file, from GNU gettext.
98687 2006-05-08  Bruno Haible  <bruno@clisp.org>
98689         * config/srclist.txt (build-aux/config.rpath): different from latest
98690         release.
98692 2006-05-08  Bruno Haible  <bruno@clisp.org>
98694         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98696 2006-05-05  Jim Meyering  <jim@meyering.net>
98698         * m4/warning.m4: New file, derived from bison's file by the same name.
98700 2006-05-03  Bruno Haible  <bruno@clisp.org>
98702         * lib/stdint_.h: Shorter URL.
98703         * lib/inttypes.h: Likewise.
98705 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98707         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98709 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98711         * lib/verify.h: Document the internals better.  Most of this change
98712         was written by Bruno Haible.
98714 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98716         * doc/verify.texi: New file, partly based on a proposal by
98717         Bruno Haible.
98719 2006-05-02  Bruno Haible  <bruno@clisp.org>
98721         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98722         test from here...
98723         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98725 2006-04-29  Bruno Haible  <bruno@clisp.org>
98727         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98728         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98730 2006-04-29  Bruno Haible  <bruno@clisp.org>
98732         * gnulib-tool: Make --update option actually work.
98734 2006-04-29  Bruno Haible  <bruno@clisp.org>
98736         * doc/gcd.texi: New file.
98737         * doc/gnulib.texi: Include it.
98739 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98741         * lib/getdate.y (get_date): When adding relative date, start with the
98742         initial time, not with the result of the first mktime call.
98744 2006-04-25  Bruno Haible  <bruno@clisp.org>
98746         * gnulib-tool (func_import): Output the include directives in three
98747         blocks, sorted separately.
98748         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98750 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
98753         to define main with arguments, for C++.  Reported by Eric Blake.
98754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
98755         Prefer 'int main ()' to 'int main (void)', for C++.
98756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
98757         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
98758         for 'main', for C99 and C++.
98760 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
98763         Don't assume that exit status -1 is valid.
98764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98765         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
98766         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
98767         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
98768         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
98769         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
98770         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
98771         functions can be used without declaring them, or that you can
98772         exit with status -1.
98773         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
98775 2006-04-24  Karl Berry  <karl@gnu.org>
98777         * config/srclist.txt (longdouble.m4): sync lost.
98779 2006-04-24  Eric Blake  <ebb9@byu.net>
98781         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
98783 2006-04-24  Bruno Haible  <bruno@clisp.org>
98785         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
98786         poll() implementation in AIX.
98787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98789 2006-04-24  Bruno Haible  <bruno@clisp.org>
98791         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
98792         assigned exactly once.
98794 2006-04-23  Claudio Fontana  <claudio@gnu.org>
98795             Bruno Haible  <bruno@clisp.org>
98797         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
98798         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
98799         for AM_CPPFLAGS.
98801 2006-04-23  Bruno Haible  <bruno@clisp.org>
98803         * modules/copy-file: Depend on unistd.
98804         * modules/execute: Likewise.
98805         * modules/fatal-signal: Likewise.
98806         * modules/findprog: Likewise.
98807         * modules/mkdtemp : Likewise.
98808         * modules/pipe: Likewise.
98809         * modules/wait-process: Likewise.
98811 2006-04-23  Bruno Haible  <bruno@clisp.org>
98813         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
98814         condition was already detected.
98815         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98817 2006-04-23  Bruno Haible  <bruno@clisp.org>
98819         * lib/copy-file.c: Include <unistd.h> unconditionally.
98820         * lib/execute.c: Likewise.
98821         * lib/fatal-signal.c: Likewise.
98822         * lib/findprog.c: Likewise.
98823         * lib/mkdtemp.c: Likewise.
98824         * lib/pipe.h: Likewise.
98825         * lib/pipe.c: Likewise.
98826         * lib/wait-process.h: Likewise.
98828 2006-04-23  Bruno Haible  <bruno@clisp.org>
98830         * gnulib-tool (func_usage): Fix --import description. Document
98831         --update.
98832         (func_import): Create temporary file in a temporary directory, if
98833         --dry-run is specified. Silence errors from 'grep' when there are no
98834         m4 files in $m4dir.
98835         (func_create_testdir): Silence errors from 'grep' when there are no
98836         m4 files in $m4dir.
98837         Reported by Karl Berry <karl@freefriends.org>.
98839 2006-04-20  Bruno Haible  <bruno@clisp.org>
98841         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
98842         one argument, so that the code will be portable to Autoconf 2.60.
98843         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
98844         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98845         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
98847 2006-04-19  Derek Price  <derek@ximbiot.com>
98848             Eric Blake  <ebb9@byu.net>
98850         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
98851         rather than "/full/path.h".  Update comment to match.  Shorten &
98852         generalize m4_translit call via AS_TR_CPP.
98854 2006-04-19  Derek Price  <derek@ximbiot.com>
98855             Eric Blake  <ebb9@byu.net>
98857         * lib/inttypes.h: Correct grammar in comment.
98859 2006-04-18  Derek Price  <derek@ximbiot.com>
98860             Paul Eggert  <eggert@cs.ucla.edu>
98862         * modules/inttypes: New file.
98863         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98865 2006-04-18  Derek Price  <derek@ximbiot.com>
98866             Paul Eggert  <eggert@cs.ucla.edu>
98868         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98869         New files.
98871 2006-04-18  Derek Price  <derek@ximbiot.com>
98872             Paul Eggert  <eggert@cs.ucla.edu>
98874         * lib/inttypes.h: New file.
98875         * lib/strtoimax.c: Assume <inttypes.h>.
98877 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98879         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98880         isn't mounted.  Problem reported by Kir Kolyshkin.
98882 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98884         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98885         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98886         Derek R. Price.
98887         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98888         implementation.
98890 2006-04-12  Eric Blake  <ebb9@byu.net>
98892         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98893         is now done automatically by the corresponding Autoconf macro.
98895 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98897         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98898         time_r.h.
98900 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98902         Merge regex changes from libc, removing some of our
98903         POSIX-conformance changes that were rejected and redoing them in a
98904         less-intrusive way.
98906         * lib/regcomp.c (re_compile_internal, init_dfa):
98907         Length arg is now size_t, not Idx.  All uses changed.
98908         (peek_token): Forward decl now says internal_function.
98909         (__re_error_msgid, __re_error_msgid_idx):
98910         Now static rather than extern with attribute_hidden.
98911         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98912         For some reason libc prefers K&R style defns for external functions.
98913         (regerror) [!defined _LIBC]: Likewise.
98914         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98915         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98916         (build_range_exp, build_collating_symbol):
98917         Use K&R-style defn.
98918         (re_compile_fastmap): Use '\0' to memset, not 0.
98919         (utf8_sb_map): Make the calculations more obvious.
98920         (init_dfa, parse_bracket_exp, build_charclass_op):
98921         Call calloc and cast result, as glibc does.
98922         (init_word_char, fetch_token, peek_token, peek_token_bracket):
98923         (build_range_exp, build_collating_symbol):
98924         Now internal functions.
98926         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
98928         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
98929         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
98930         Don't depend on VMS; depend on __VMS instead, for POSIX
98931         namespace cleanness.
98932         (regoff_t): Define to ssize_t, not long int.
98934         Remove the REG_ macros named below.  Instead, make the old names
98935         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
98936         __USE_GNU_REGEX.
98937         (REG_BACKSLASH_ESCAPE_IN_LISTS):
98938         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
98939         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
98940         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
98941         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
98942         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
98943         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
98944         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
98945         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
98946         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
98947         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
98948         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
98949         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
98950         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
98951         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
98952         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
98953         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
98954         (REG_NREGS):
98955         Remove.  All uses replaced by the old RE_* names.
98956         (RE_BACKSLASH_ESCAPE_IN_LISTS):
98957         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
98958         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
98959         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
98960         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
98961         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
98962         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
98963         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
98964         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
98965         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
98966         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
98967         Don't bother having these macros be independent of each others'
98968         values, since they no longer exist in the POSIX name space.
98970         Rename the following member names back to their old names,
98971         unless !__USE_GNU_REGEX.  All uses changed back.
98972         (buffer): Renamed from re_buffer.
98973         (allocated): Renamed from re_allocated.
98974         (used): Renamed from re_used.
98975         (syntax): Renamed from re_syntax.
98976         (fastmap): Renamed from re_fastmap.
98977         (translate): Renamed from re_translate.
98978         (can_be_null): Renamed from re_can_be_null.
98979         (regs_allocated): Renamed from re_regs_allocated.
98980         (fastmap_accurate): Renamed from re_fastmap_accurate.
98981         (no_sub): Renamed from re_no_sub.
98982         (not_bol): Renamed from re_not_bol.
98983         (not_eol): Renamed from re_not_eol.
98984         (newline_anchor): Renamed from re_newline_anchor.
98985         (num_regs): Renamed from rm_num_regs.
98986         (start): Renamed from rm_start.
98987         (end): Renamed from rm_end.
98989         (free_state): Move up a bit.
98991         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
98992         #define to be empty.
98993         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
98994         when that is what is intended.
98995         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
98996         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
98997         (MAX): New macro.
98998         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
98999         All uses changed back to re_malloc, etc.  It's now the caller's
99000         responsibility to check for overflow; all callers changed.
99001         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
99002         (re_x2nrealloc): Remove.
99003         (free_state): Remove decl.
99005         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
99006         (re_set_registers, re_exec):
99007         Use K&R-style defn.
99009         2006-01-31  Roland McGrath  <roland@redhat.com>
99011         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
99012         Reported by Mike Frysinger <vapier@gentoo.org>.
99014         2006-01-15  Andreas Jaeger  <aj@suse.de>
99016         [BZ #1950]
99017         * lib/regex_internal.c (re_string_reconstruct): Adjust for
99018         build_wcs_upper_buffer change.
99019         (build_wcs_upper_buffer): Change return type.
99021         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
99023         * lib/regex_internal.h: Include <stdint.h> if available.
99025         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
99027         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
99029         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
99031         * lib/regcomp.c: Adjust for changed secondary hash function.
99033         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
99035         * lib/regex.h: Pretty printing.
99036         Clean up namespace a bit.
99038         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
99040         * lib/regexec.c (update_cur_sifted_state, check_arrival,
99041         check_arrival_add_next_nodes): Avoid using uninitialized variable.
99043         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99044                     Ulrich Drepper  <drepper@redhat.com>
99046         [BZ #1302]
99047         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
99048         changed.
99049         (bitset_word_t): Renamed from bitset_word.  All uses changed.
99051         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
99053         [BZ #281]
99054         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
99055         * lib/regcomp.c: Remove unnecessary uses of
99056         unsigned RE_TRANSLATE_TYPE.
99057         * lib/regex_internal.h: Likewise.
99058         * lib/regex_internal.c: Likewise.
99059         * lib/regexec.c: Likewise.
99060         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
99062         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
99064         * lib/regexec.c (find_recover_state): Remove unnecessary
99065         initialization.
99066         (transit_state_bkref): Make DFA a const pointer.
99067         (get_subexp): Likewise.
99068         (check_arrival): Likewise.
99069         (update_cur_sifted_state): Likewise.
99070         (re_search_internal): Likewise.
99071         (prune_impossible_nodes): Likewise.
99072         (acquire_init_state_context): Likewise.
99073         (proceed_next_node): Likewise.
99074         (set_regs): Likewise.
99075         (free_fail_stack_return): Likewise.
99076         (check_arrival_expand_ecl): Mark DFA parameter as const.
99077         (check_arrival_expand_ecl_sub): Likewise.
99078         (check_subexp_limits): Likewise.
99079         (sub_epsilon_src_nodes):  Likewise.
99080         (add_epsilon_src_nodes):  Likewise.
99081         (merge_state_array): Likewise.
99082         (update_regs): Likewise.
99083         (build_trtable): Likewise.
99084         (sift_states_backward): Mark MCTX parameter as const.
99085         (build_sifted_states): Likewise.
99086         (update_cur_sifted_state): Likewise.
99087         (sift_states_mkref): Likewise.
99088         (check_arrival_expand_ecl): Mark eclosure as const.
99089         (check_dst_limits_calc_pos_1): Likewise.
99090         * lib/regex_internal.h (re_match_context_t): Make dfa a const
99091         pointer.
99093         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
99095         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
99096         (transit_state_sb): Likewise.
99097         (transit_state_mb): Likewise.
99098         (sift_states_iter_mb): Likewise.
99099         (check_arrival_add_next_nodes): Likewise.
99100         (check_node_accept_bytes): Change first parameter to pointer-to-const.
99101         [_LIBC] (re_search_2_stub): Use mempcpy.
99103         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
99104         mbrtowc for very simple UTF-8 case.
99106         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
99107         a pointer-to-const.
99108         (re_acquire_state_context): Likewise.
99109         * lib/regex_internal.h: Adjust prototypes.
99111         * lib/regex.c: Prevent using C++ compilers.
99113         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
99114         (re_acquire_state_context): Likewise.
99116 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99118         * modules/regex (Depends-on): Add ssize_t.
99120 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99122         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
99123         translation table.
99125 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99127         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
99129 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
99130             Bruno Haible  <bruno@clisp.org>
99132         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
99133         <sys/types.h> and <inttypes.h>.
99135 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99137         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
99138         `__error_t_defined', so argp.h will not typedef the former.
99140 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
99142         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
99143         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
99144         glibc names.  Even if glibc is changed to conform to POSIX, the
99145         traditional names will be available anyway, since regex depends on
99146         the extensions module.  Also, fix a longstanding typo in the
99147         implementation of Spencer ERE test #75 from grep 2.3.  Problems
99148         reported by Emanuele Giaquinta.  Also, change sense of cached
99149         variable, so that the message makes sense.
99151 2006-03-24  Simon Josefsson  <jas@extundo.com>
99153         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
99154         including some doc fixes.
99155         (base64_encode_alloc): Fix +1 bug on allocation failures.
99157 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99159         * lib/base64.c (base64_encode): Do not read past end of array with
99160         unsanitized input on systems with CHAR_BIT > 8.
99162 2006-03-24  Eric Blake  <ebb9@byu.net>
99164         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
99166 2006-03-22  Karl Berry  <karl@gnu.org>
99168         * config/srclist.txt (*setenv.[ch]): get from coreutils.
99169         * config/srclistvars.sh (COREUTILS): new var.
99171 2006-03-17  Jim Meyering  <jim@meyering.net>
99173         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
99174         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
99176 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99178         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
99179         no longer needs it.  Instead, check that regoff_t is as least
99180         as wide as ptrdiff_t.
99182         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
99183         so that our regex.h stays compatible with the installed regex.
99184         This is helpful for installers who configure --without-included-regex.
99185         Problem reported by Emanuele Giaquinta.
99187 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99189         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
99190         Typedef to long int, not to off_, as POSIX will likely change
99191         in that direction.
99193 2006-03-15  Eric Blake  <ebb9@byu.net>
99195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
99197 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99199         * lib/argp-help.c (validate_uparams): Fix typo
99200         * lib/argp-parse.c (argp_default_options): Consistently begin help
99201         messages with a lowercase letter.
99203 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
99205         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
99206         overrun buffers and shouldn't be used (much as gets shouldn't be
99207         used).
99208         * lib/time_r.c (asctime_r, ctime_r): Likewise.
99210 2006-03-08  Simon Josefsson  <jas@extundo.com>
99212         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
99213         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99215 2006-03-08  Simon Josefsson  <jas@extundo.com>
99217         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
99218         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99220 2006-03-08  Simon Josefsson  <jas@extundo.com>
99222         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
99223         signal that configure disabled the device.
99225 2006-03-08  Simon Josefsson  <jas@extundo.com>
99227         * build-aux/maint.mk: Fix refresh-po, to handle no translated
99228         languages.
99230 2006-03-07  Simon Josefsson  <jas@extundo.com>
99232         * modules/getopt (Depends-on): Add unistd.
99234         * modules/unistd: New file.
99236 2006-03-07  Simon Josefsson  <jas@extundo.com>
99238         * modules/gc-random: New file.
99240 2006-03-07  Simon Josefsson  <jas@extundo.com>
99242         * m4/unistd_h.m4: New file.
99244 2006-03-07  Simon Josefsson  <jas@extundo.com>
99246         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
99247         test to be side-effect free by storing the result in the cache
99248         variable gl_cv_lib_readline, and moving the assignment of
99249         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
99250         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99252 2006-03-07  Simon Josefsson  <jas@extundo.com>
99254         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
99255         error on missing devices (the functions will return an error).
99257         * m4/gc.m4: Move random stuff to gc-random.m4
99259 2006-03-07  Simon Josefsson  <jas@extundo.com>
99261         * lib/unistd_.h: New file.
99263 2006-03-07  Simon Josefsson  <jas@extundo.com>
99265         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
99267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99269         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
99270         Problem reported by Juan Manuel Guerrero.
99272 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99274         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
99275         the unistd module.
99276         * lib/getlogin_r.c: Likewise.
99277         * lib/getlogin_r.h: Likewise.
99278         * lib/glob.c: Likewise.
99279         * lib/pagealign_alloc.c: Likewise.
99280         * lib/unistd_.h: Remove; no longer needed.
99282 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99284         * MODULES.html.sh (Support for systems lacking POSIX:2001):
99285         Add unistd.
99286         * modules/c-stack (Depends-on): Add unistd.
99287         * modules/getlogin_r: Likewise.
99288         * modules/glob: Likewise.
99289         * modules/pagealign_alloc: Likewise.
99290         * modules/unistd (Files): Remove lib/unistd_.h.
99291         (EXTRA_DIST): Remove.
99292         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
99293         need unistd_.h.
99294         (MOSTLYCLEANFILES): Remove unistd.h-t.
99296 2006-03-03  Simon Josefsson  <jas@extundo.com>
99298         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
99300 2006-03-03  Simon Josefsson  <jas@extundo.com>
99302         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
99303         libidn and bison.
99305 2006-03-03  Simon Josefsson  <jas@extundo.com>
99307         * build-aux/maint.mk: Add indent target.
99309 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
99311         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
99312         our replacement poll.h in any case, to avoid a differing
99313         declaration from a system header.  Seen on AIX.
99315 2006-03-01  Simon Josefsson  <jas@extundo.com>
99317         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
99318         <kasal@ucw.cz>.
99320 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99322         * modules/gettime (Depends-on): Add extensions module.
99323         * modules/nanosleep (Depends-on): Likewise.
99324         * modules/settime (Depends-on): Likewise.
99326 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99328         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
99329         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
99330         pedantically.
99331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99332         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
99334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
99335         not "==".  Reported by Ralf Wildenhues.
99337 2006-03-01  Karl Berry  <karl@gnu.org>
99339         * doc/Copyright/request-*: new files, synced from gnuorg.
99341 2006-03-01  Karl Berry  <karl@gnu.org>
99343         * config/srclist.txt (Copyright/*): new entries.
99345 2006-02-28  Simon Josefsson  <jas@extundo.com>
99347         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
99349 2006-02-27  Simon Josefsson  <jas@extundo.com>
99351         * lib/base64.h: Indent #define's.  From Jim Meyering
99352         <jim@meyering.net>.
99354 2006-02-27  Jim Meyering  <jim@meyering.net>
99356         Revert the change of 2006-02-24, so these files can continue
99357         to be sync'd from gettext.
99358         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
99359         of `config.h'.
99361 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
99363         * modules/intprops: New file.
99364         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
99365         Add intprops.
99366         * modules/getloadavg (Files): Remove lib/intprops.h.
99367         (Depends-on): Add intprops.
99368         * modules/human: Likewise.
99369         * modules/inttostr: Likewise.
99370         * modules/openat: Likewise.
99371         * modules/sig2str: Likewise.
99372         * modules/userspec: Likewise.
99373         * modules/utimecmp: Likewise.
99374         * modules/xnanosleep: Likewise.
99375         * modules/xstrtol: Likewise.
99377 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
99379         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
99380         * modules/lock-tests (TESTS): Use $(EXEEXT).
99381         * modules/tls-tests: Likewise.
99382         * modules/argp-tests: Likewise.
99383         (check_PROGRAMS): New var, replacing...
99384         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
99386 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99388         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
99389         `config.h'.
99391 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99393         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
99395 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99397         Sync from coreutils.
99398         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
99399         gl_CHDIR_SAFER.
99401 2006-02-22  Jim Meyering  <jim@meyering.net>
99403         Sync from coreutils.
99404         * m4/chdir-safer.m4: New file.
99406 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99408         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
99409         AT_FDCWD exceeds INT_MAX.
99410         * lib/openat.h (AT_FDCWD): Likewise.
99412 2006-02-17  Eric Blake  <address@hidden>
99414         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
99416 2006-02-16  Simon Josefsson  <jas@extundo.com>
99418         * modules/getaddrinfo (Depends-on): Add sys_socket.
99420 2006-02-15  Simon Josefsson  <jas@extundo.com>
99422         * build-aux/maint.mk: Add dsyntax-check rule.
99424 2006-02-15  Eric Blake  <ebb9@byu.net>
99426         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
99427         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
99428         'present but cannot compile' warnings on cygwin.
99429         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
99430         use ws2tcpip.h if sys/socket.h works.
99431         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
99432         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
99434 2006-02-14  Simon Josefsson  <jas@extundo.com>
99436         * modules/maintainer-makefile (Files): Rename.
99438         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
99439         and (the local) Makefile.cfg to maint-cfg.mk.
99441         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
99442         to the latter.
99444         * modules/maintainer-makefile: New module.
99446         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
99447         severaly stripped to make it possible to build it up from scratch
99448         with reliable tests.
99450         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
99451         fixes to permit overriding the default actions when configure and
99452         makefile are not available.
99454 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
99456         Sync from coreutils.
99457         * modules/lstat (Depends-on): Don't depend on xalloc.
99458         (License): Change from GPL to LGPL, since this is now simply a
99459         replacement for a libc function.
99461 2006-02-14  Jim Meyering  <jim@meyering.net>
99463         Sync from coreutils.
99465         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
99466         failure on deficient systems, and simplify gnulib lgpl dependencies.
99467         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
99468         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
99470         * lib/xalloc-die.c: Remove unused definition of N_.
99472 2006-02-14  Jim Meyering  <jim@meyering.net>
99474         Sync from coreutils.
99475         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
99476         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
99477         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
99478         double-quote uses of that variable, to accommodate the rare case in
99479         which getmntent is available in none of the libraries checked.  This
99480         happens at least on FreeBSD 5.0.
99482 2006-02-13  Simon Josefsson  <jas@extundo.com>
99484         * gnulib-tool (Usage): Fix --import, from
99485         karl@freefriends.org (Karl Berry).
99487 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99489         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
99491 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
99493         * lib/argp-namefrob.h: Restore changes accidentally lost during the
99494         "autoupdate" on 2005-12-12.
99496 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99498         * modules/closeout (Depends-on): Remove atexit.
99500 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99502         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
99503         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
99505 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
99507         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
99508         __EXTENSIONS__ if this causes compilation to fail.  Problem
99509         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
99510         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
99512 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
99514         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
99515         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
99516         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
99517         All uses changed.
99519 2006-01-26  Simon Josefsson  <jas@extundo.com>
99521         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
99522         prototype is visible on mingw32.
99524         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
99525         for mingw32.
99527         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
99528         mingw32).
99530 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99532         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
99533         attempt to open for write; this always fails, at least on POSIX
99534         hosts.  This reinstates the 2006-01-09 change, which was
99535         inadvertently removed.
99537 2006-01-26  Bruno Haible  <bruno@clisp.org>
99539         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
99540         Reported by Paul Eggert.
99542 2006-01-26  Bruno Haible  <bruno@clisp.org>
99543             Paul Eggert  <eggert@cs.ucla.edu>
99545         * lib/stdbool_.h (_Bool)
99546         [(! (defined __cplusplus || defined __BEOS__)
99547           && !defined __GNUC__
99548           && !(defined __HP_cc || defined __xlc__
99549                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
99550                || defined __sgi))]:
99551         #define to signed char in these cases too; this simplifies
99552         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
99553         etc., separately) and makes it more conservative.
99555 2006-01-25  Simon Josefsson  <jas@extundo.com>
99557         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
99558         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
99559         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
99561 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99563         * lib/argp-namefrob.h: Bugfix. Remove stray #
99565 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
99567         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
99568         so that we test the test.
99569         Check for yet another HP-UX cc bug involving *bool |= bool.
99571 2006-01-25  Karl Berry  <karl@gnu.org>
99573         * config/srclist.txt (vasnprintf.c): sync lost.
99575 2006-01-25  Jim Meyering  <jim@meyering.net>
99577         Sync from the stable (b5) branch of coreutils:
99579         * lib/fts.c (fts_children): Don't let close() clobber errno from
99580         failed fchdir().
99582         * lib/fts.c (fts_stat): When following a symlink-to-directory,
99583         don't necessarily interpret stat-fails+lstat-succeeds as indicating
99584         a dangling symlink.  That can also happen at least for ELOOP.
99585         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
99586         FYI, this bug predates the inclusion of fts.c in coreutils.
99588         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
99589         in their own block, so pre-c99 compilers don't object.
99591         Avoid the double-free (first in fts_read, second in fts_close) that
99592         would occur when an `active' directory is made inaccessible (e.g.,
99593         via chmod a-x) during a traversal.
99594         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99595         before returning.  Reproduce this failure by
99596         mkdir -p a/b; cd a; chmod a-x . b
99597         Reported by Stavros Passas.
99599 2006-01-25  Jim Meyering  <jim@meyering.net>
99601         * lib/fileblocks.c: Remove more useless parentheses.
99602         * lib/readutmp.h: Likewise.
99604 2006-01-25  Bruno Haible  <bruno@clisp.org>
99606         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99607         warnings.
99608         Reported by Paul Eggert.
99610 2006-01-25  Bruno Haible  <bruno@clisp.org>
99612         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99613         rid of a trap command. For Solaris sh.
99614         Reported by Mark D. Baushke <mdb@gnu.org>.
99616 2006-01-24  Simon Josefsson  <jas@extundo.com>
99618         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99619         Bruno.
99621 2006-01-24  Karl Berry  <karl@gnu.org>
99623         * config/srclist.txt (argp-namefrob.h): sync lost.
99625 2006-01-24  Jim Meyering  <jim@meyering.net>
99627         * modules/openat (Files): Add lib/intprops.h.
99628         From Mark D. Baushke.
99630 2006-01-24  Jim Meyering  <jim@meyering.net>
99632         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99633         Reported by Mark D. Baushke.
99635 2006-01-24  Jim Meyering  <jim@meyering.net>
99637         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99639 2006-01-24  Bruno Haible  <bruno@clisp.org>
99641         * modules/strnlen (Maintainer): Change from glibc to all.
99643 2006-01-24  Bruno Haible  <bruno@clisp.org>
99645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99646         Patch by Paul Eggert.
99648 2006-01-24  Bruno Haible  <bruno@clisp.org>
99650         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99651         already has it.
99652         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99653         2005-11-26.
99655         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99656         'signed char' to avoid problems with the built-in _Bool type.
99657         Reported by Paul Eggert on 2005-11-26.
99659 2006-01-24  Bruno Haible  <bruno@clisp.org>
99661         * gnulib-tool (func_import): Avoid constructing complicated sed
99662         expressions inside backquote.
99663         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99665 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99667         These changes imported from libc.
99668         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99669         test and two separate function calls.
99670         * lib/strndup.c (__strndup): Add libc_hidden_def.
99672 2006-01-23  Simon Josefsson  <jas@extundo.com>
99674         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99675         Remove the test_*_SOURCES variable: automake infers it by default.
99676         * modules/tls-tests: Likewise.
99678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99680         Work around porting bugs reported by Dieter in
99681         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99682         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99683         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99684         Include "getopt.h" first, to check interface.
99685         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99686         !HAVE_DECL_GETENV.
99687         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99688         (__strndup): Revert to K&R-style function dfns, the glibc style.
99689         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99690         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99691         Include strnlen.h first, to get prototype properly.
99692         (strnlen): Renamed from __strnlen.
99693         Remove weak alias.
99695 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99697         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99699 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99701         * config/srclist.txt: Adjust to reflect glibc reorganization.
99702         This affects only comments.
99704 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99706          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99707          Reported by Bruce Korb <bkorb@gnu.org>.
99709 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99711         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99712         to pacify gcc -Wswitch-default.
99714 2006-01-22  Bruno Haible  <bruno@clisp.org>
99716         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99717         temporary buffer for sprintf, take into account the precision also
99718         for 'd', 'i', 'u', 'o', 'x', 'X'.
99720 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99722         * modules/argp-tests: New module
99723         * tests/test-argp.c: New file
99724         * tests/test-argp-2.sh: New file
99726 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99728         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99729         (__argp_base_name): Removed
99730         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99731         typo.
99732         (__argp_base_name): Provide macro definition or extern declaration
99733         depending on the configuration
99735 2006-01-20  Simon Josefsson  <jas@extundo.com>
99737         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99739 2006-01-20  Simon Josefsson  <jas@extundo.com>
99741         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99743 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99745         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
99746         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
99747         Suggested by Bruno Haible.
99749 2006-01-20  Karl Berry  <karl@gnu.org>
99751         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
99752         until changes propagate, I guess.
99754 2006-01-19  Simon Josefsson  <jas@extundo.com>
99756         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
99758 2006-01-19  Simon Josefsson  <jas@extundo.com>
99760         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
99762 2006-01-19  Simon Josefsson  <jas@extundo.com>
99764         * gnulib-tool: Set check_PROGRAMS.
99766         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99767         modules/des-tests, modules/gc-arcfour-tests,
99768         modules/gc-arctwo-tests, modules/gc-des-tests,
99769         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99770         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99771         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99772         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99773         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99774         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
99775         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
99776         test_*_SOURCES.
99778 2006-01-18  Simon Josefsson  <jas@extundo.com>
99780         * modules/socklen (Depends-on): Depend on sys_socket.
99782 2006-01-18  Simon Josefsson  <jas@extundo.com>
99784         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99785         modules/des-tests, modules/gc-arcfour-tests,
99786         modules/gc-arctwo-tests, modules/gc-des-tests,
99787         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99788         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99789         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99790         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99791         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99792         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
99793         $(EXEEXT) to automake TESTS variable, for mingw32.
99795 2006-01-17  Simon Josefsson  <jas@extundo.com>
99797         * modules/socklen (Include): Need sys/socket.h.
99799 2006-01-17  Bruno Haible  <bruno@clisp.org>
99801         * modules/ssize_t (Include): Add <sys/types.h>.
99803 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
99805         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
99806         it's not portable and it doesn't work with cross-compiles.
99807         Problem reported by Bruno Haible.  Fix missing-$ typo in
99808         'test "gl_cv_ignore_unused_libraries" ...' that prevented
99809         -zignore from being used with Sun's C compiler.
99811 2006-01-12  Simon Josefsson  <jas@extundo.com>
99813         * lib/base64.c: Fix warning, reported by Bruno Haible
99814         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
99816 2006-01-12  Bruno Haible  <bruno@clisp.org>
99818         * modules/ldd: New file.
99819         * build-aux/ldd.sh.in: New file.
99820         * MODULES.html.sh (Support for building libraries and executables): Add
99821         ldd.
99823 2006-01-12  Bruno Haible  <bruno@clisp.org>
99825         * m4/ldd.m4: New file.
99827 2006-01-12  Bruno Haible  <bruno@clisp.org>
99829         * gnulib-tool (func_import, func_create_testdir): Don't go into an
99830         endless loop while replacing $auxdir with build-aux.
99832 2006-01-11  Simon Josefsson  <jas@extundo.com>
99834         * lib/stdint_.h (SIZE_MAX): Add missing (.
99836 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
99838         Sync from coreutils.
99839         * lib/md5.c: Fix commentary typos.
99840         (alignof, UNALIGNED_P): No need for a GCC-specific version.
99841         * lib/md5.h (__attribute__): Remove; unused.
99842         * lib/sha1.c: Fix commentary to match md5 better.
99843         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
99844         so that we don't need to worry about alignment.  All uses changed.
99845         This merges the 2005-10-28 md5 change into sha1.
99847 2006-01-11  Jim Meyering  <jim@meyering.net>
99849         Sync from coreutils.
99850         * lib/md5.c (OP): Fix spacing.
99852 2006-01-11  Bruno Haible  <bruno@clisp.org>
99854         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99855         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
99856         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99858 2006-01-11  Bruno Haible  <bruno@clisp.org>
99860         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99861         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99862         the "early" section as well.
99864 2006-01-11  Bruno Haible  <bruno@clisp.org>
99866         Avoid "ar: no archive members specified" error on MacOS X.
99867         * gnulib-tool (func_modules_add_dummy): New function.
99868         (func_import, func_create_testdir): Invoke it.
99870 2006-01-11  Bruno Haible  <bruno@clisp.org>
99872         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99873         with $auxdir in AC_CONFIG_FILES statements.
99875 2006-01-11  Bruno Haible  <bruno@clisp.org>
99877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99878         Initialize also noinst_HEADERS to empty.
99880 2006-01-11  Bruno Haible  <bruno@clisp.org>
99882         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99883         variables.
99884         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99885         autoreconf.
99887 2006-01-11  Bruno Haible  <bruno@clisp.org>
99889         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99890         overridable by the user.
99891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99893 2006-01-10  Simon Josefsson  <jas@extundo.com>
99895         * modules/sys_socket: New file.
99897 2006-01-10  Simon Josefsson  <jas@extundo.com>
99899         * m4/sys_socket_h.m4: New file.
99901 2006-01-10  Simon Josefsson  <jas@extundo.com>
99903         * lib/socket_.h: New file.
99905 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99907         * modules/readutmp (Maintainer): Add myself.
99909 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99911         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99912         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99913         People who are still concerned with buggy memcmp implementations
99914         can invoke gl_FUNC_MEMCMP themselves.
99916 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99918         * lib/regex_internal.h (BITSET_WORD_BITS):
99919         Work around a bug in 64-bit PGC (before version 6.1-2), where the
99920         preprocessor mishandles large unsigned values as if they were signed.
99921         Problem reported by Claudio Fontana in
99922         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
99924 2006-01-10  Jim Meyering  <jim@meyering.net>
99926         Avoid the double-free (first in fts_read, second in fts_close) that
99927         would occur when an `active' directory is made inaccessible (e.g.,
99928         via chmod a-x) during a traversal.
99929         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99930         before returning.  Reproduce this failure by
99931         mkdir -p a/b; cd a; chmod a-x . b
99932         Reported by Stavros Passas.
99934         Sync from coreutils.
99935         * lib/sha1.c: Tweak grammar in a comment.
99937 2006-01-10  Jim Meyering  <jim@meyering.net>
99939         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
99940         Patch by Joerg Sonnenberger.
99942 2006-01-10  Bruno Haible  <bruno@clisp.org>
99944         * modules/readutmp: Depend on module free.
99945         * modules/strtok_r: Depend on module restrict.
99947 2006-01-10  Bruno Haible  <bruno@clisp.org>
99949         * modules/gettext (configure.ac): Add an invocation of
99950         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
99952 2006-01-10  Bruno Haible  <bruno@clisp.org>
99954         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
99955         Reported by Werner Lemberg <wl@gnu.org>.
99957 2006-01-10  Bruno Haible  <bruno@clisp.org>
99959         * lib/localcharset.c: Update from GNU gettext.
99961 2006-01-10  Bruno Haible  <bruno@clisp.org>
99963         * lib/argp.h (__const): Remove macro. Use const instead.
99964         * lib/argp-fmtstream.h (__const): Likewise.
99965         * lib/glob_.h (__const): Remove macro.
99966         * lib/glob-libc.h: Use const instead of __const.
99968 2006-01-10  Bruno Haible  <bruno@clisp.org>
99970         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
99971         variable.
99972         Needed to avoid an automake error regarding the 'gettext' module.
99974 2006-01-09  Simon Josefsson  <jas@extundo.com>
99976         * modules/inet_ntop (Depends-on): Add restrict.
99978 2006-01-09  Simon Josefsson  <jas@extundo.com>
99980         * modules/gc-rijndael-tests (License): Put under LGPL.
99982         * modules/gc-des-tests (License): Likewise.
99984         * modules/gc-arcfour-tests (License): Likewise.
99986         * modules/gc-arctwo-tests (License): Likewise.
99988         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
99990         * modules/gc-hmac-sha1-tests (Files): Likewise.
99992         * modules/gc-hmac-md5-tests (License): Likewise.
99994         * modules/gc-sha1-tests (License): Likewise.
99996         * modules/gc-md5-tests (License): Likewise.
99998         * modules/gc-md4-tests (License): Likewise.
100000         * modules/gc-md2-tests (License): Likewise.
100002         * modules/gc-tests (License): Likewise.
100004         * modules/des-tests (License): Likewise.
100006         * modules/md4-tests (License): Likewise.
100008         * modules/md2-tests (License): Likewise.
100010 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100012         Sync from coreutils:
100014         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
100015         * modules/lib-ignore: New file.
100016         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
100017         chdir-safer.m4, lchmod.m4.
100018         * modules/openat: Add mkdirat.c, openat-priv.h.
100020 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100022         Sync from coreutils.
100023         * m4/lib-ignore.m4: New file.
100024         * m4/lchmod.m4: New file.
100026 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100028         Sync from coreutils.
100029         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
100030         for write access: POSIX says that must fail.
100031         * lib/fts.c (diropen): Likewise.
100032         * lib/save-cwd.c (save_cwd): Likewise.
100033         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
100034         well, for minor improvements on hosts that lack O_DIRECTORY.
100035         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
100036         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
100037         Fall back on chown if open failed with EACCES.
100039         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
100040         Report an error at compile-time if only a 1-second nominal clock
100041         resolution is found.
100043         * lib/lchmod.h: New file.
100044         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
100045         (make_dir_parents): Use lchown rather than chown, and
100046         lchmod rather than chmod.
100048         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
100049         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
100050         "proc" reported by n0dalus.
100052         * lib/mountlist.c: Include <limits.h>.
100053         (dev_from_mount_options)
100054         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
100055         New function.  It no longer assumes "dev=" has the System V meaning
100056         on Linux (since it doesn't).  It also parses "dev=" more carefully.
100057         (read_file_system_list)
100058         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
100059         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
100060         dev= in that case.
100062         * lib/posixtm.h (PDS_PRE_2000): New macro.
100063         * lib/posixtm.c (year): Arg is now syntax_bits rather than
100064         allow_century.  All usages changed.  Reject dates outside the range
100065         1969-1999 if PDS_PRE_2000 is used.
100067 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100069         Sync from coreutils.
100070         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
100071         (Time of day items): Mention the possibility of leap seconds.
100072         Problem reported by Dr. David Alan Gilbert.
100074 2006-01-09  Jim Meyering  <jim@meyering.net>
100076         Sync from coreutils.
100078         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
100080         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
100082         * lib/modechange.c (mode_compile): Reject an invalid mode string
100083         that starts with an octal digit.  From Andreas Gruenbacher.
100085         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
100086         and dup to open_safer and dup_safer, respectively.
100087         (openat_permissive): Fix typo in comment.
100089         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
100090         "gettext.h"; either no longer needed or are guaranteed by openat.h.
100091         (_): Remove; no longer needed.
100092         (openat): Renamed from rpl_openat; no need for rpl_openat
100093         since openat.h renames openat for us.
100094         Replace most of the body with a call to openat_permissive,
100095         to avoid duplicate code.
100096         Port to (probably hypothetical) environments were mode_t is
100097         wider than int.
100098         (openat_permissive): Require mode arg, so that we can check
100099         types better.  Put it just after flags.  Change cwd failure
100100         indicator from pointer-to-bool to pointer-to-errno-value.
100101         All callers changed.
100102         Invoke openat_save_fail and/or openat_restore_fail if
100103         cwd_errno is null, so that openat can call us.
100104         (openat_permissive, fdopendir, fstatat, unlinkat):
100105         Simplify errno handling to avoid some duplicate code,
100106         as it's OK to set errno on success.
100107         * lib/openat.h: Revamp code so that function macros depend on
100108         __OPENAT_PREFIX only, not also on AT_FDCWD.
100109         (openat_ro): Remove.  Caller changed to use openat_permissive.
100110         (openat_permissive): Now a macro, if not a function.
100111         (openat_restore_fail, openat_save_fail): Now always functions,
100112         since mkdirat needs them even if __OPENAT_PREFIX is defined.
100114         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
100115         and openat.c.
100116         * lib/mkdirat.c: Include openat-priv.h.
100117         Remove definitions of macros defined therein.
100118         * lib/openat.c: Likewise.
100120         * lib/mkdirat.c (mkdirat): New file and function.
100121         * lib/openat.h (mkdirat): Declare.
100123         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
100125         * lib/openat.h (openat_permissive): Declare.
100126         (openat_ro): Define.
100128         * lib/openat.c (EXPECTED_ERRNO): New macro.
100129         (openat_permissive): New function -- used in remove.c rewrite.
100130         (all functions): Set errno just before returning, only if there
100131         was an actual failure.
100132         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
100134         Emulate openat-family functions using Linux's procfs, if possible.
100135         Idea and some code based on Ulrich Drepper's glibc changes.
100137         * lib/openat.c: (BUILD_PROC_NAME): New macro.
100138         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
100139         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
100140         before falling back on save_cwd and restore_cwd.
100141         (fdopendir, fstatat, unlinkat): Likewise.
100143         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
100144         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
100146         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
100147         as second argument to va_arg.  Otherwise, some versions of gcc
100148         warn that `if this code is reached, the program will abort'.
100150 2006-01-09  Jim Meyering  <jim@meyering.net>
100152         Sync from coreutils.
100153         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
100154         Require openat-priv.h.
100156 2006-01-09  Bruno Haible  <bruno@clisp.org>
100158         * modules/strnlen (Include): Use strnlen.h.
100160 2006-01-09  Bruno Haible  <bruno@clisp.org>
100162         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
100164 2006-01-09  Bruno Haible  <bruno@clisp.org>
100166         * lib/sysexit_.h (EX_OK): New macro.
100167         Suggested by Martin Lambers <marlam@marlam.de>.
100169 2006-01-09  Bruno Haible  <bruno@clisp.org>
100171         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
100172         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
100174 2006-01-09  Bruno Haible  <bruno@clisp.org>
100176         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
100177         numbers.
100179 2006-01-09  Bruno Haible  <bruno@clisp.org>
100181         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
100182         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
100183         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
100184         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
100186 2006-01-09  Bruno Haible  <bruno@clisp.org>
100188         * build-aux/javacomp.sh.in: New file, moved from lib/.
100189         * modules/javacomp-script (Files): Update.
100190         (configure.ac): Add AC_CONFIG_FILES invocation.
100191         (EXTRA_DIST): Remove variable.
100193         * build-aux/javaexec.sh.in: New file, moved from lib/.
100194         * modules/javaexec (Files): Update.
100195         (configure.ac): Add AC_CONFIG_FILES invocation.
100196         (EXTRA_DIST): Remove javaexec.sh.in.
100198         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
100199         * modules/csharpcomp-script (Files): Update.
100200         (configure.ac): Add AC_CONFIG_FILES invocation.
100201         (EXTRA_DIST): Remove variable.
100203         * build-aux/csharpexec.sh.in: New file, moved from lib/.
100204         * modules/csharpexec (Files): Update.
100205         (configure.ac): Add AC_CONFIG_FILES invocation.
100206         (EXTRA_DIST): Remove csharpexec.sh.in.
100208 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100210         Sync from coreutils.
100212         Add POSIX ACL support
100213         * lib/acl.h (copy_acl, set_acl): Add declarations.
100214         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
100215         systems other than Linux.
100216         (chmod_or_fchmod): New function: use fchmod when possible,
100217         and chmod otherwise.
100218         (file_has_acl): Add a POSIX ACL implementation, with a
100219         Linux-specific subcase.
100220         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
100221         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
100222         acls are unsupported.
100223         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
100224         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
100225         are unsupported.
100227 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100229         Sync from coreutils.
100230         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
100232 2006-01-07  Bruno Haible  <bruno@clisp.org>
100234         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
100235         gl_EARLY.
100237 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100239         * lib/strftime.c (tzname): Don't declare if it is already #defined.
100240         Problem reported for Mingw by Mark Junker.
100242 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100244         * README: Gnulib normally doesn't generate a tarball.
100246 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
100248         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
100249         long int, not int, for nanosecond counts, so that people who are
100250         used to POSIX struct timespec won't be surprised.  Reported by Jim
100251         Meyering.
100253 2005-12-28  Bruno Haible  <bruno@clisp.org>
100255         * build-aux/config.rpath: Update from GNU gettext.
100257 2005-12-16  Jim Meyering  <jim@meyering.net>
100259         * modules/fprintftime: New module.
100260         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
100262 2005-12-16  Jim Meyering  <jim@meyering.net>
100264         * m4/fprintftime.m4: New file.
100266 2005-12-16  Jim Meyering  <jim@meyering.net>
100268         * lib/fprintftime.c, lib/fprintftime.h: New files.
100270 2005-12-15  Simon Josefsson  <jas@extundo.com>
100272         * modules/socklen (configure.ac): Fix M4 macro name, to align with
100273         new m4/socklen.m4.
100275 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100277         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
100278         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
100280 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100282         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
100283         * lib/argp-help.c (fill_in_uparams): Check if the constructed
100284         struct uparams is valid. Fall back to the default values if it is
100285         not.
100287 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100289         * modules/argp (Files): Add argp-pin.c
100290         (Depends-on): dirname
100291         (lib_SOURCES): Add argp-pin.c
100293 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100295         * m4/argp.m4:  Check if program_invocation_name and
100296         program_invocation_short_name are declared and define appropriate
100297         macros if they are not.
100299 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100301         * lib/argp-help.c (__argp_base_name): New function
100302         (__argp_short_program_name): Rewrite using __argp_base_name
100303         * lib/argp-namefrob.h: Define program_invocation_name and
100304         program_invocation_short_name if requested
100305         (__argp_base_name): Add prototype
100306         * lib/argp-parse.c (argp_def): Use gettext wrappers
100307         (argp_default_parser): Use __argp_base_name
100308         * lib/argp-pin.c: New file. Defines program_invocation_name and
100309         program_invocation_short_name on systems that lack them.
100311 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100313         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
100314         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100315         porting problem reported by Georg Schwarz in
100316         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100318 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100320         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
100321         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100322         porting problem reported by Georg Schwarz in
100323         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100325 2005-12-05  Bruno Haible  <bruno@clisp.org>
100327         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
100328         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
100329         Reported by Mark Junker <mjscod@gmx.de>.
100331 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
100333         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
100334         Use implementation from Albert Chin, with some
100335         comments/corrections by Stepan Kasal and myself.
100337 2005-12-02  Bruno Haible  <bruno@clisp.org>
100339         * gnulib-tool (func_import): Accept GPLed build tool modules when
100340         --lgpl is given.
100341         * modules/csharpcomp-script: New file.
100342         * modules/csharpcomp: Depend on it.
100343         * modules/javacomp-script: New file.
100344         * modules/javacomp: Depend on it.
100345         Suggested by Simon Josefsson.
100347 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
100349         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
100350         statement, to work around an HP-UX 10.20 compiler bug reported by
100351         Peter O'Gorman.
100353 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100355         * modules/savedir (Depends-on): Add openat.
100357 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100359         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
100360         (uintmax_t) [defined uintmax_t]: Do not declare.
100361         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
100362         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
100363         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
100364         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
100365         sake of portability to weird hosts that C allows (though we don't
100366         know of any practical examples).
100368         * lib/savedir.h (fdsavedir): New decl.
100369         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
100370         contains most of the former guts of savedir.
100371         (savedir): Use savedirstream.
100372         Include "openat.h".
100374 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100376         * modules/obstack (Files): Add m4/ulonglong.m4.
100377         Problem reported by Davide Angelocola.
100379 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
100381         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
100382         coreutils no longer futzes with rounding modes.
100384 2005-11-14  Jim Meyering  <jim@meyering.net>
100386         * lib/mkstemp-safer.c: Include <config.h>, required for possible
100387         replacement of mkstemp.
100389 2005-11-10  Simon Josefsson  <jas@extundo.com>
100391         * lib/readline.c: Remove EOL.
100393 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100395         * modules/gethrxtime (Depends-on): Add gettime.
100397 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100399         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
100400         or gettimeofday; no longer needed.
100402 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100404         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
100405         time business.
100406         (gethrxtime) [! (HAVE_NANOUPTIME
100407         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
100408         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
100409         our own approximation.
100411 2005-11-08  Eric Blake  <ebb9@byu.net>
100413         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100415 2005-11-08  Eric Blake  <ebb9@byu.net>
100417         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100419 2005-11-04  Bruno Haible  <bruno@clisp.org>
100421         * gnulib-tool: Implement --update mode.
100423 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100425         Fix porting problem reported by Theodoros V. Kalamatianos.
100426         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
100427         Don't assume that futimes failing means we must fail.
100429 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
100432         variables to suggest the intended function of the PATH_MAX check.
100434 2005-10-30  Kean Johnston  <jkj@sco.com>
100436         Trivial changes to support SCO systems.
100437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
100438         as PATH_MAX.
100439         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
100440         where __ptr is null when no I/O is pending.
100442 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100444         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
100445         leave errno alone.  Problem reported by Dmitry V. Levin.
100447 2005-10-28  Simon Josefsson  <jas@extundo.com>
100449         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
100450         Test more.
100452         * tests/test-gc-md2.c, tests/test-md2.c: New files.
100454         * modules/md2, modules/md2-tests: New files.
100456 2005-10-28  Simon Josefsson  <jas@extundo.com>
100458         * m4/inet_ntop.m4: More tests.
100460         * m4/gc-md2.m4, md2.m4: New file.
100462 2005-10-28  Simon Josefsson  <jas@extundo.com>
100464         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
100465         "restrict" keywords, as per POSIX.  Protect the function
100466         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
100467         Don't use K&R prototypes.  Check the sprintf return values.
100468         Re-define EAFNOSUPPORT if not present.  Indent.
100470         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
100471         suggested by Bruno Haible <bruno@clisp.org>.
100473         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
100475         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
100477         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
100478         libgcrypt).
100480         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
100482         * lib/md2.h, lib/md2.c: New files.
100484 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
100486         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
100487         errno alone.  Problem reported by Frederic Jolliton.
100489 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100491         * modules/verify (License): Change from GPL to LGPL.  This is a
100492         tiny module and there are apparently near-equivalents that are
100493         under the BSD license.
100495 2005-10-24  Simon Josefsson  <jas@extundo.com>
100497         * modules/sha1: Relicense to LGPL.
100499 2005-10-24  Simon Josefsson  <jas@extundo.com>
100501         * lib/md4.h: Shrink buffer size, now that we changed the type.
100503 2005-10-23  Simon Josefsson  <jas@extundo.com>
100505         * gnulib-tool (func_import): Fix --tests-base.
100507 2005-10-22  Simon Josefsson  <jas@extundo.com>
100509         * modules/arcfour (Depends-on): Need stdint.
100511 2005-10-22  Simon Josefsson  <jas@extundo.com>
100513         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
100514         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
100516 2005-10-22  Simon Josefsson  <jas@extundo.com>
100518         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
100519         suggested by Bruno Haible <bruno@clisp.org>.
100521 2005-10-22  Simon Josefsson  <jas@extundo.com>
100523         * lib/crc.h: Include stddef.h, for size_t.
100525 2005-10-22  Simon Josefsson  <jas@extundo.com>
100527         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
100528         arcfour_context struct (simplify test vector testing in GNU
100529         Shishi).
100531 2005-10-21  Simon Josefsson  <jas@extundo.com>
100533         * modules/des, modules/des-tests: New files.
100535         * modules/gc-des, modules/gc-des-tests: New files.
100537         * tests/test-des.c, tests/test-gc-des.c: New file.
100539 2005-10-21  Simon Josefsson  <jas@extundo.com>
100541         * modules/arctwo, modules/arctwo-tests: New files.
100543         * tests/test-arctwo.c: New file.
100545         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
100547         * tests/test-gc-arctwo.c: New file.
100549 2005-10-21  Simon Josefsson  <jas@extundo.com>
100551         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
100552         Bruno Haible <bruno@clisp.org>.
100554         * m4/gc-des.m4: New file.
100556 2005-10-21  Simon Josefsson  <jas@extundo.com>
100558         * m4/arctwo.m4: New file.
100560         * m4/gc-arctwo.m4: New file.
100562 2005-10-21  Simon Josefsson  <jas@extundo.com>
100564         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
100565         block.
100567 2005-10-21  Simon Josefsson  <jas@extundo.com>
100569         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
100570         <bruno@clisp.org>.
100572         * lib/hmac-sha1.c (hmac_sha1): Likewise.
100574         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
100575         Bruno Haible <bruno@clisp.org>.
100577         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
100578         <bruno@clisp.org>.
100580 2005-10-21  Simon Josefsson  <jas@extundo.com>
100582         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
100584 2005-10-21  Simon Josefsson  <jas@extundo.com>
100586         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
100588 2005-10-21  Simon Josefsson  <jas@extundo.com>
100590         * lib/des.h, lib/des.c: New files.
100592         * lib/gc-gnulib.c: Support DES.c
100594 2005-10-21  Simon Josefsson  <jas@extundo.com>
100596         * lib/arctwo.h, lib/arctwo.c: New files.
100598         * lib/gc-gnulib.c: Support ARCTWO.
100600 2005-10-21  Simon Josefsson  <jas@extundo.com>
100602         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100603         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100605 2005-10-21  Simon Josefsson  <jas@extundo.com>
100607         * gnulib-tool (func_import, func_create_testdir): Define automake
100608         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100609         Makefile.am snippet),
100610         suggested by Bruno Haible <bruno@clisp.org>.
100612         * modules/gc (Makefile.am): Use it.
100614 2005-10-21  Bruno Haible  <bruno@clisp.org>
100616         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100617         patch.
100619 2005-10-19  Simon Josefsson  <jas@extundo.com>
100621         * tests/test-gc-rijndael.c: New file.
100623         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100625 2005-10-19  Simon Josefsson  <jas@extundo.com>
100627         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100628         interface too.
100630 2005-10-19  Simon Josefsson  <jas@extundo.com>
100632         * tests/test-gc-arcfour.c: New file.
100634         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100636 2005-10-19  Simon Josefsson  <jas@extundo.com>
100638         * modules/gc-md4, modules/gc-md4-tests: New file.
100640         * tests/test-gc-md4.c: New file.
100642 2005-10-19  Simon Josefsson  <jas@extundo.com>
100644         * m4/gc-md4.m4: New file.
100646 2005-10-19  Simon Josefsson  <jas@extundo.com>
100648         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100649         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100650         <kasal@ucw.cz>.
100652 2005-10-19  Simon Josefsson  <jas@extundo.com>
100654         * m4/gc-arcfour.m4: New file.
100656         * m4/gc-rijndael.m4: New file.
100658 2005-10-19  Simon Josefsson  <jas@extundo.com>
100660         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100662 2005-10-19  Simon Josefsson  <jas@extundo.com>
100664         * lib/gc-gnulib.c: Support ARCFOUR.
100666 2005-10-19  Simon Josefsson  <jas@extundo.com>
100668         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100669         support.
100671         * lib/gc.h: Add ECB enum type.
100673         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100675 2005-10-18  Simon Josefsson  <jas@extundo.com>
100677         * tests/test-md5.c: New file.
100679         * modules/md5-tests: New file.
100681 2005-10-18  Simon Josefsson  <jas@extundo.com>
100683         * tests/test-md4.c: New file.
100685         * modules/md4, modules/md4-tests: New files.
100687 2005-10-18  Simon Josefsson  <jas@extundo.com>
100689         * m4/md4.m4: New file.
100691 2005-10-18  Simon Josefsson  <jas@extundo.com>
100693         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100695 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100697         * gnulib-tool (func_create_testdir): Omit the second check whether
100698         BUILT_SOURCES in nonempty.
100700 2005-10-17  Simon Josefsson  <jas@extundo.com>
100702         * tests/test-rijndael.c: New file.
100704 2005-10-17  Simon Josefsson  <jas@extundo.com>
100706         * modules/sha1: Depend on stdint instead of md5.
100708         * modules/md5: Depend on stdint, remove uint32_t.
100710 2005-10-17  Simon Josefsson  <jas@extundo.com>
100712         * modules/gc-sha1-tests: New file.
100714         * tests/test-gc-sha1.c: New file.
100716 2005-10-17  Simon Josefsson  <jas@extundo.com>
100718         * m4/md5.m4: Remove call to uint32_t.m4.
100720 2005-10-17  Simon Josefsson  <jas@extundo.com>
100722         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100724         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100725         md5.h.
100727         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100729         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100731 2005-10-17  Simon Josefsson  <jas@extundo.com>
100733         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100735 2005-10-17  Simon Josefsson  <jas@extundo.com>
100737         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100739 2005-10-17  Simon Josefsson  <jas@extundo.com>
100741         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100743         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
100745 2005-10-17  Bruno Haible  <bruno@clisp.org>
100747         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
100748         that it can also be used in a test.
100750 2005-10-16  Bruno Haible  <bruno@clisp.org>
100752         * gnulib-tool (func_emit_tests_Makefile_am): Also define
100753         TESTS_ENVIRONMENT, so that individual tests can augment it.
100755         * gnulib-tool (func_create_testdir): Use an intermediate target for
100756         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
100757         macros, like $(ALLOCA_H), which cannot be passed through the command
100758         line.
100760 2005-10-15  Simon Josefsson  <jas@extundo.com>
100762         * modules/rijndael-tests: New file.
100764         * modules/rijndael: New file.
100766 2005-10-15  Simon Josefsson  <jas@extundo.com>
100768         * m4/rijndael.m4: New file.
100770 2005-10-15  Simon Josefsson  <jas@extundo.com>
100772         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
100774         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
100776 2005-10-14  Simon Josefsson  <jas@extundo.com>
100778         * tests/test-arcfour.c: New file.
100780         * modules/arcfour, modules/arcfour-tests: New files.
100782 2005-10-14  Simon Josefsson  <jas@extundo.com>
100784         * m4/arcfour.m4: New file.
100786 2005-10-14  Simon Josefsson  <jas@extundo.com>
100788         * lib/arcfour.h, lib/arcfour.c: New files.
100790 2005-10-14  Roland McGrath  <roland@redhat.com>
100792         Import from libc.  [BZ #1331]
100793         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
100794         macro argument.
100795         Reported by Matej Vela <vela@debian.org>.
100797 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100799         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
100800         include <wchar.h>; no longer needed.
100802 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100804         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
100806 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
100807         and  Ulrich Drepper  <drepper@redhat.com>
100809         Import from libc.
100810         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
100811         instead of inline stream orientation test and two separate
100812         function calls.  Pay no attention to USE_IN_LIBIO.
100814 2005-10-13  Simon Josefsson  <jas@extundo.com>
100816         * modules/gc-hmac-md5-tests: New file.
100818         * tests/test-gc-hmac-sha1.c: New file.
100820         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
100822         * modules/gc-hmac-md5-tests: New file.
100824         * tests/test-gc-md5.c: New file.
100826         * modules/gc-md5-tests: New file.
100828 2005-10-13  Simon Josefsson  <jas@extundo.com>
100830         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
100831         Move memory allocation outside of loop.
100833 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
100835         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
100836         intermediate directory is in a read-only file system.  Problem
100837         reported by Eric Blake.
100839 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
100841         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
100843 2005-10-12  Simon Josefsson  <jas@extundo.com>
100845         * tests/test-hmac-sha1.c: New file.
100847         * modules/hmac-sha1-tests: New file.
100849         * modules/hmac-sha1: New file.
100851 2005-10-12  Simon Josefsson  <jas@extundo.com>
100853         * modules/gc-sha1: New file.
100855 2005-10-12  Simon Josefsson  <jas@extundo.com>
100857         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100859         * tests/test-gc-pbkdf2-sha1.c: New file.
100861 2005-10-12  Simon Josefsson  <jas@extundo.com>
100863         * modules/gc-md5, modules/gc-hmac-md5: New files.
100865         * modules/gc (Files): Remove md5, memxor and hmac files.
100867 2005-10-12  Simon Josefsson  <jas@extundo.com>
100869         * m4/gc-pbkdf2-sha1.m4: New file.
100871         * m4/gc-hmac-sha1.m4: New file.
100873         * m4/gc-sha1: New file.
100875         * m4/hmac-sha1.m4: New file.
100877 2005-10-12  Simon Josefsson  <jas@extundo.com>
100879         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100881         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100883 2005-10-12  Simon Josefsson  <jas@extundo.com>
100885         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100886         suggested by Bruno Haible <bruno@clisp.org>.
100888 2005-10-12  Simon Josefsson  <jas@extundo.com>
100890         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100892 2005-10-12  Simon Josefsson  <jas@extundo.com>
100894         * lib/gc-pbkdf2-sha1.c: New file.
100896         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100898 2005-10-12  Simon Josefsson  <jas@extundo.com>
100900         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100902         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100904 2005-10-12  Simon Josefsson  <jas@extundo.com>
100906         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100907         GC_USE_HMAC_MD5, respectively.
100909         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100910         (gc_md5): Fix typo.
100912         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100914         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100916         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
100918 2005-10-12  Bruno Haible  <bruno@clisp.org>
100920         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
100921         Reported by Stepan Kasal <kasal@ucw.cz>.
100923 2005-10-11  Simon Josefsson  <jas@extundo.com>
100925         * tests/test-crc.c: New file.
100927         * modules/crc, modules/crc-tests: New files.
100929 2005-10-11  Simon Josefsson  <jas@extundo.com>
100931         * m4/crc.m4: New file.
100933 2005-10-11  Simon Josefsson  <jas@extundo.com>
100935         * lib/gc.h: Add gc_hash and gc_hash_buffer.
100937         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
100939         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
100941 2005-10-11  Simon Josefsson  <jas@extundo.com>
100943         * lib/crc.h, lib/crc.c: New files.
100945         * lib/gc.h (gc_hash_buffer): Add doc.
100947 2005-10-11  Bruno Haible  <bruno@clisp.org>
100949         * modules/c-strcasestr: New file.
100950         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
100952 2005-10-11  Bruno Haible  <bruno@clisp.org>
100954         * modules/c-strcase: New file.
100955         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
100957 2005-10-11  Bruno Haible  <bruno@clisp.org>
100959         * lib/strcasecmp.c: Include limits.h.
100960         (strcasecmp): Avoid integer overflow on exotic platforms.
100961         * lib/strncasecmp.c: Include limits.h.
100962         (strncasecmp): Avoid integer overflow on exotic platforms.
100963         Reported by Paul Eggert.
100965 2005-10-11  Bruno Haible  <bruno@clisp.org>
100967         * lib/c-strcasestr.h: New file, from GNU gettext.
100968         * lib/c-strcasestr.c: New file, from GNU gettext.
100970 2005-10-11  Bruno Haible  <bruno@clisp.org>
100972         * lib/c-strcase.h: New file, from GNU gettext.
100973         * lib/c-strcasecmp.c: New file, from GNU gettext.
100974         * lib/c-strncasecmp.c: New file, from GNU gettext.
100976 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100978         * modules/mempcpy (License): GPL -> LGPL.
100979         * modules/strchrnul (License): Likewise.
100980         * modules/sysexits (License): Likewise.
100982 2005-10-08  Simon Josefsson  <jas@extundo.com>
100984         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
100986 2005-10-07  Simon Josefsson  <jas@extundo.com>
100988         * m4/memxor.m4: Remove gl_C_RESTRICT call.
100990 2005-10-06  Simon Josefsson  <jas@extundo.com>
100992         * tests/test-hmac-md5.c: New file.
100994         * modules/hmac-md5-tests: New file.
100996         * modules/hmac-md5: New file.
100998 2005-10-06  Simon Josefsson  <jas@extundo.com>
101000         * m4/hmac-md5.m4: New file.
101002         * m4/memxor.m4: Require gl_C_RESTRICT.
101004 2005-10-06  Simon Josefsson  <jas@extundo.com>
101006         * lib/memxor.c (memxor): Avoid casts and warnings.
101008 2005-10-06  Simon Josefsson  <jas@extundo.com>
101010         * lib/hmac-md5.c: New file.
101012         * lib/hmac.h: New file.
101014 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
101017         promotes to int, not unsigned int, to catch the AIX 5.3
101018         compiler bug.
101020 2005-10-05  Simon Josefsson  <jas@extundo.com>
101022         * modules/memxor: New file.
101024         * modules/iconv (Files): Move config.rpath to havelib, it is used
101025         there.
101027         * modules/havelib (Files): Add config.rpath.
101029 2005-10-05  Simon Josefsson  <jas@extundo.com>
101031         * m4/memxor.m4: New file.
101033 2005-10-05  Simon Josefsson  <jas@extundo.com>
101035         * lib/memxor.c (memxor): Fix compiler error.
101037         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
101038         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
101040         * lib/memxor.h, lib/memxor.c: New files.
101042         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
101043         we assume all systems have it, suggested by Jim Meyering
101044         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
101045         any systems lack sys/socket.h; mingw32 is known to lack it, but we
101046         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
101047         same reasons.
101049 2005-10-05  Simon Josefsson  <jas@extundo.com>
101051         * config/srclist.txt: Add glibc bug 1423 for md5.h.
101053 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
101055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
101056         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
101057         needed, since the source code now assumes these .h files.
101059 2005-10-05  Derek Price  <derek@ximbiot.com>
101061         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
101063 2005-10-05  Bruno Haible  <bruno@clisp.org>
101065         * modules/stdint (License): Change to LGPL.
101067 2005-10-04  Simon Josefsson  <jas@extundo.com>
101069         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
101070         D. Baushke" <mdb@gnu.org>.
101072 2005-10-04  Bruno Haible  <bruno@clisp.org>
101074         * lib/verify.h (verify_true): Provide alternative definition for C++.
101076 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
101078         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
101079         (SSIZE_MAX): New macro, if not already defined.
101080         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
101081         than 2 GiB.
101083 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101085         Sync from coreutils.
101086         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
101087         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
101088         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
101089         ULLONG_MAX doesn't work with 2.7.2.1.
101091 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101093         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
101094         From Ben Pfaff.
101096         * modules/exclude (Depends-on): Depend on verify.
101097         * modules/strtoimax (Depends-on): Likewise.
101098         * modules/utimecmp (Depends-on): Likewise.
101100 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101102         * lib/exclude.c: Include verify.h.
101103         (verify): Remove.  All callers changed to use verify.h's version.
101104         * lib/strtoimax.c: Likewise.
101105         * lib/utimecmp.c: Likewis.e
101107         Sync from coreutils.
101108         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
101109         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
101110         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
101111         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
101112         bother returning ENOSYS if settimeofday or stime fails; just let
101113         them return whatever errno they want to return.
101114         * lib/utimens.c: Include unistd.h, for dup2.
101115         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
101116         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
101118 2005-10-02  Jim Meyering  <jim@meyering.net>
101120         Sync from coreutils.
101121         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
101122         from glibc-2.2.5 that fails for read-only files.
101124 2005-10-02  Jim Meyering  <jim@meyering.net>
101126         Sync from coreutils.
101127         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
101128         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
101129         `#if HAVE_CONFIG_H'.
101130         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
101131         Remove AT_FDCWD test.
101132         Do not consume the fd unless successful.
101133         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
101134         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
101135         block, so that we don't even try to compile it if settimeofday is
101136         available.  This works around a compilation failure on OSF1 V5.1,
101137         due to stime requiring a `long int*' while tv_sec is `int'.
101139 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
101141         Sync from coreutils.
101142         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
101143         against `yes', rather than just testing for nonempty.
101145 2005-10-01  Simon Josefsson  <jas@extundo.com>
101147         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
101148         and Darwin.
101150         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
101151         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
101152         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
101153         freeaddrinfo and gai_strerror are declared by the POSIX headers.
101154         Check if struct addrinfo is declared.
101156 2005-10-01  Simon Josefsson  <jas@extundo.com>
101158         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
101159         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
101160         AI_* and EAI_* definitions.  Protect function declarations.
101162 2005-10-01  Jim Meyering  <jim@meyering.net>
101164         Sync from coreutils.
101166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
101167         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
101168         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
101169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101170         in the inet and nsl libraries.  Required on Solaris 5.7.
101172 2005-10-01  Jim Meyering  <jim@meyering.net>
101174         Sync from coreutils.
101175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101176         in the inet and nsl libraries.  Required on Solaris 5.7.
101178 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
101180         * lib/getdelim.c (getdelim): Remove unused variables.
101182 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
101184         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
101185         so that the code works even with ancient cpp.  Portability problem
101186         with GCC 2.7.2.1 reported by Thomas M.Ott.
101188 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
101190         * modules/regex (Depends-on): Add strcase.
101192         * modules/gethostname (Licence): Change from GPL to LGPL, since
101193         gethostname.c is a trivial implementation of a standard library
101194         function.
101195         * modules/poll (License): Change from GPL to LGPL, since it's
101196         derived from LGPL code.
101198 2005-09-27  Jim Meyering  <jim@meyering.net>
101200         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
101201         HAVE_CONFIG_H.
101203         * lib/intprops.h (signed_type_or_expr__): Define.
101204         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
101205         for unsigned types.
101207 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
101209         * lib/verify.h (verify_expr): Remove, replacing with:
101210         (verify_true): New macro that returns true instead of void.
101211         (verify_type__): Remove.
101212         (verify): Use verify_true rather than verify_type__.
101214 2005-09-26  Bruno Haible  <bruno@clisp.org>
101216         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
101217         is necessary.
101218         (lib_SOURCES): Remove mbchar.c.
101219         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
101220         (Files): Add m4/mbrtowc.m4.
101221         * modules/mbiter: Likewise.
101222         * modules/mbuiter: Likewise.
101224 2005-09-26  Bruno Haible  <bruno@clisp.org>
101226         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
101227         compile mbchar.c if they are not both present.
101228         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
101229         * m4/mbiter.m4 (gl_MBITER): Likewise.
101230         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
101231         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
101232         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
101234 2005-09-25  Jim Meyering  <jim@meyering.net>
101236         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
101237         also uses socklen_t.
101239 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
101241         * lib/utimens.c (ENOSYS): Define if not already defined.
101242         (futimens): Support having a null PATH if the file descriptor
101243         is nonnegative.
101245         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
101246         Remove.
101247         (__attribute): Define to empty unless GCC 3.1 or later.
101248         This works around a core dump on OpenBSD 3.4, which has GCC
101249         2.95.3, which dumps core when given __attribute__(()).  It also
101250         simplifies other tests, since we really don't want to bother with
101251         worrying about which ancient version of GCC supported what.
101252         Original problem reported by Yoann Vandoorselaere, with part of
101253         the fix suggested by Derek Price.
101255 2005-09-24  Jim Meyering  <jim@meyering.net>
101257         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
101258         so we can once again use a positive bitfield width of 1 -- now we
101259         don't have to explain why we were using a bitfield width of 2.
101261 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101263         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
101264         and similarly for the other external symbols.  Problem reported
101265         by James Gallager.
101267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
101268         bug reported by Jim Meyering.
101270         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
101271         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
101272         not needed, since socklen is a prerequisite module.
101274 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101276         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
101277         Problem reported by Eric Blake.
101278         (getaddrinfo): Initialize se so that it's not garbage.
101279         Redo internal storage allocation so that it doesn't make unportable
101280         assumptions about alignment.
101281         Fix a memory leak.
101283         * lib/utimens.c (futimens): Use futimesat if available.
101284         Prefer it to futimes since it doesn't have the futimes bug.
101286         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
101287         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
101288         Instead, declare a function that returns a pointer to an array,
101289         and use verify_type__ to declare the size of the array.
101290         Problem and germ of a solution reported by Bruno Haible.
101291         (verify_type__): Use 2, not 1, for bitfield size, to avoid
101292         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
101294 2005-09-23  Jim Meyering  <jim@meyering.net>
101296         Sync from coreutils.
101297         Correct build failure (socklen_t not defined) on at least
101298         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
101299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
101301 2005-09-23  Jim Meyering  <jim@meyering.net>
101303         * modules/getaddrinfo (Depends-on): Add socklen.
101305 2005-09-23  Bruno Haible  <bruno@clisp.org>
101307         * tests/test-verify.c: New file.
101309 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101311         Sync from coreutils.
101313         * modules/argmatch (Depends-on): Add verify.
101314         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
101315         unistd-safer.
101316         * modules/save-cwd (Depends-on): Likewise.
101318         * modules/openat (Files): Add lib/openat-die.c.
101319         (Depends-on): Remove error, exitfail.
101320         Add dirname.
101322         * modules/verify: New file.
101323         * MODULES.html.sh (Diagnostics <assert.h>): New section,
101324         with "verify" module.
101326 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101328         Sync from coreutils.
101330         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
101331         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
101332         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
101333         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
101334         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
101335         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
101336         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
101337         Don't bother checking for string.h, stdlib.h, unistd.h.
101338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
101339         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
101340         module's job.
101341         * m4/jm-macros.m4 (gl_MACROS): Likewise.
101342         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
101344         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
101345         (gl_GETDATE): Use it.
101347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
101349 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101351         Sync from coreutils.
101353         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
101354         stat-time.h.
101355         * lib/argmatch.h: Include verify.h
101356         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
101357         (ARGMATCH_ASSERT): Remove; unused.
101358         * lib/canonicalize.c: Assume STDC_HEADERS.
101359         * lib/exclude.c: Include "strcase.h".
101360         * lib/regex_internal.h [!defined _LIBC]: Likewise.
101361         * lib/getusershell.c: Include stdio--.h rather than stdio.h
101362         and stdio-safer.h.
101363         (getusershell): Call fopen, not fopen_safer.
101364         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
101365         Do not include unistd-safer.h.
101366         (save_cwd): Don't call fd_safer; no longer needed
101367         now that we include fcntl--.h.
101369         * lib/getdate.y (relative_time): New type.
101370         (RELATIVE_TIME_0): New constant.
101371         (parser_control): Use relative_time instead of doing it ourselves.
101372         (%union): Add new relative_time rel member.
101373         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
101374         Now typeless.
101375         (relunit, relunit_snumber): Now of type rel.
101376         (zone, rel, relunit, get_date): Adjust to above changes.
101378         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
101379         Do not include unistd-safer.h.
101380         (getloadavg): Don't call fd_safer; no longer needed
101381         now that we include fcntl--.h.
101383         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
101384         (make_dir_parents): Treat ENOSYS like EEXIST.
101386         Improve quality of diagnostics on restore_cwd failure.
101387         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
101388         (make_dir_parents): Last arg is now int * (for errno), not bool *.
101389         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
101390         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
101391         each time through the loop.  Do not diagnose restore_cwd failure;
101392         that is the caller's job (and perhaps the caller does not care).
101394         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
101395         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
101396         If the file already exists but is not a directory, don't bother
101397         to try to make its parents.
101398         Close potential file descriptor leak if we can't chdir("/") (!).
101399         Don't always return true if chdir($PWD) fails; return true only
101400         if the requested action was done successfully (except for the
101401         chdir($PWD)).
101402         Don't log final directory unless we actually made it.
101403         Refactor to avoid duplicate code to fix up permissions.
101404         Don't attempt to fix up parent permissions if chdir($PWD) fails.
101406         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
101407         to make it a bit faster and (I hope) clearer.
101408         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
101409         Fix bug in formats like %2N.
101411         * lib/verify.h: New file.
101413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101415         Sync from coreutils.
101416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
101418 2005-09-22  Jim Meyering  <jim@meyering.net>
101420         Sync from coreutils.
101422         * m4/lstat.m4 (gl_FUNC_LSTAT):
101423         Use AC_LIBSOURCES to require lstat.c and lstat.h.
101424         Remove obsolete comment.
101425         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
101426         * m4/xstrtod.m4: Likewise.
101428         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
101430 2005-09-22  Jim Meyering  <jim@meyering.net>
101432         Sync from coreutils.
101434         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
101436         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
101437         the .tm_year member, since otherwise gcc-4.0 would now warn about
101438         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
101440         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
101441         order to avoid an unsuppressible warning from gcc on 64-bit systems.
101443         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
101444         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
101445         when run in a time zone for which daylight savings time is in effect
101446         for the starting date.
101448         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
101449         stop us from restricting permissions of just-created absolute-named
101450         directories.
101451         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
101452         to restore initial working directory.
101453         * lib/mkdir-p.c (make_dir_parents): New parameter:
101454         different_working_dir, to tell caller if/when we change the working
101455         directory and are unable to return to the initial one.
101456         * lib/mkdir-p.h (make_dir_parents): Update prototype.
101457         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
101458         `return false'.  This fixes a bug introduced on 2004-07-30.
101460         * lib/openat.c (fdopendir): Be sure to close the supplied
101461         file descriptor before returning.  This makes our replacement
101462         implementation a little closer to Solaris's, where fdopendir
101463         ties the file descriptor to the returned DIR* pointer.
101464         * lib/openat.c (unlinkat): New function.
101465         * lib/openat.h (unlinkat): Add prototype.
101466         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
101467         (openat_restore_fail): Rename from openat_restore_die.
101468         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
101470         Provide an alternative to exiting immediately upon save_cwd or
101471         restore_cwd failure.  Now, an application can arrange e.g.,
101472         to perform a longjump in that case.
101473         * lib/openat.c: Include dirname.h.
101474         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
101475         (rpl_openat, fdopendir, fstatat): Call openat_save_die
101476         and openat_restore_die rather than calling error directly.
101477         Don't include "error.h" or "exitfail.h"; they're no longer needed.
101479         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
101480         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
101481         define.
101483         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
101484         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
101485                             int utc, int nanoseconds);
101486         Background:
101487         date should not have to allocate a megabyte of virtual memory to
101488         handle a format argument like +%1048575T.  When implemented with
101489         strftime, it must allocate such a buffer, use strftime to fill it
101490         in, print it, then free it.
101491         With fprintftime, it simply prints everything and exits.
101492         With no need for memory allocation, that's one fewer way to fail.
101493         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
101494         optional field width, not before, so we accept %9:z, not %:9z.
101495         (my_strftime): Be sure to use L_('x') for literals.
101497         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
101498         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
101499         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
101500         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
101501         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
101502         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
101503         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
101504         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
101505         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
101506         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
101507         * lib/xgethostname.c, lib/xreadlink.c:
101508         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
101510         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
101511         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
101512         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
101513         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101514         and don't include <sys/file.h>).
101516 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
101518         Sync from coreutils.
101520         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
101521         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
101522         [!LDAV_DONE]: Avoid unused variable warning.
101524 2005-09-21  Bruno Haible  <bruno@clisp.org>
101526         * lib/unicodeio.h (unicode_to_mb): New declaration.
101528 2005-09-20  Derek Price  <derek@ximbiot.com>
101530         * lib/getaddrinfo.c: Don't include <netdb.h> included from
101531         getaddrinfo.h.
101533 2005-09-20  Bruno Haible  <bruno@clisp.org>
101535         * gnulib-tool: Remove trailing slashes from the values specified for
101536         --source-base, --m4-base, --tests-base, --aux-dir.
101537         Suggested by Simon Josefsson <jas@extundo.com>.
101539 2005-09-20  Bruno Haible  <bruno@clisp.org>
101541         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
101542         func_modules_to_filelist, func_import, func_create_testdir): Make all
101543         sorting results locale-independent, so that gnulib-cache.m4 doesn't
101544         change when gnulib-tool is invoked in a different locale.
101546 2005-09-19  Simon Josefsson  <jas@extundo.com>
101548         * m4/socklen.m4: Fix typo.
101550 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101552         Use a consistent style for including <config.h>.
101553         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
101554         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
101555         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
101556         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
101557         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
101558         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
101559         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
101560         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
101561         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
101562         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
101563         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
101564         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
101565         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
101566         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
101567         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
101568         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
101569         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
101570         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
101571         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
101572         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
101573         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
101574         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
101575         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
101576         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
101577         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
101578         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
101579         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
101580         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
101581         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
101582         lib/xstrtoumax.c, lib/yesno.c:
101583         Standardize inclusion of config.h.
101584         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
101585         lib/inttostr.h:  Removed inclusion of config.h from header files.
101586         * lib/inttostr.c:  Adjusted in-tree users.
101587         * lib/timespec.h: Remove superfluous warning to include config.h.
101588         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
101589         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
101590         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
101591         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
101592         config.h with HAVE_CONFIG_H.
101594 2005-09-19  Jim Meyering  <jim@meyering.net>
101596         * modules/pathmax (License): Change to LGPL.
101598 2005-09-19  Derek Price  <derek@ximbiot.com>
101600         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101602 2005-09-19  Bruno Haible  <bruno@clisp.org>
101604         * gnulib-tool (import): Provide default for --tests-base.
101606 2005-09-19  Bruno Haible  <bruno@clisp.org>
101608         * doc/quote.texi: New file, extracted from gnulib.texi.
101609         * doc/ctime.texi: New file, extracted from gnulib.texi.
101610         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101611         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101612         * doc/gnulib.texi: Include them.
101614 2005-09-18  Bruno Haible  <bruno@clisp.org>
101616         Portability fix.
101617         * gnulib-tool (func_readlink): New function.
101618         (func_ln_if_changed): Use it.
101620 2005-09-18  Bruno Haible  <bruno@clisp.org>
101622         * gnulib-tool: Support --with-tests also with --import.
101623         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101624         (func_import): Use variables $testsbase and $inctests. Emit a
101625         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101626         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101627         SUBDIRS += $testsdir.
101628         (func_create_testdir): Update.
101630 2005-09-18  Bruno Haible  <bruno@clisp.org>
101632         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101633         instead of $dry_run.
101634         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101635         (func_ln_if_changed): Don't handle dry-run here.
101636         (func_import): In dry-run mode, detect more precisely which actions
101637         would be performed, and don't use "...ing" verbs.
101639 2005-09-18  Bruno Haible  <bruno@clisp.org>
101641         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101642         (func_import): Use join on two temporary files instead of three nested
101643         loops, in order to determine which files are new or old.
101645 2005-09-18  Bruno Haible  <bruno@clisp.org>
101647         * gnulib-tool (func_import): Comment out code that spits out the
101648         new files with --dry-run.
101650 2005-09-18  Bruno Haible  <bruno@clisp.org>
101652         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101654 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101656         * lib/stat-time.h: New file.
101657         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101658         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101659         in a different way.
101660         (timespec_cmp): New function.
101661         * lib/utimecmp.c: Include stat-time.h.
101662         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101663         members exist, not on the obsolescent ST_MTIM_NSEC.
101664         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101666 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101668         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101670 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101672         * MODULES.html.sh (File system functions): Add stat-time.
101673         * modules/stat-time: New file.
101674         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101675         is now done in a different way, by the stat-time module.
101676         * modules/utimecmp (Depends-on): Add stat-time.
101678 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101680         * m4/st_mtim.m4: Remove.  Superseded by...
101681         * m4/stat-time.m4: New file.
101682         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101683         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101685 2005-09-15  Derek Price  <derek@ximbiot.com>
101687         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101689 2005-09-15  Derek Price  <derek@ximbiot.com>
101691         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101692         * lib/regex_internal.c: Ditto, using this...
101693         (__GNUC_PREREQ): ...new macro.
101694         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101695         using...
101696         (__GNUC_PREREQ): ...this new macro.
101698         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101700 2005-09-15  Derek Price  <derek@ximbiot.com>
101701             Paul Eggert  <eggert@cs.ucla.edu>
101703         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101704         changes, consolidating in...
101705         * lib/regex_internal.h: ...this file.
101707 2005-09-13  Jim Meyering  <jim@meyering.net>
101709         * lib/canon-host.c: Filter through gnu indent and reword comments
101710         slightly.
101711         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101713 2005-09-13  Derek Price  <derek@ximbiot.com>
101715         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101716         failure.
101717         Reported by Jim Meyering  <jim@meyering.net>.
101719 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101721         * lib/base64.c: Typo.
101722         (base64_encode): Put b64str in initialized data section.
101724 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101726         Merge glibc and coreutils changes into gnulib, plus a few
101727         extra fixes.
101728         * lib/md5.c: Use #error rather than a string.
101729         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101730         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101731         (__attribute__): Define to empty for non recent-GCC.
101732         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101733         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101734         Renamed from their non-__ counterparts, with new macros replacing
101735         them if not _LIBC.  Add __THROW attribute.
101736         (rol): Remove.
101737         (struct md5_ctx): Align buffer if using GCC.
101738         * lib/sha1.h (struct sha1_ctx): Likewise.
101739         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101740         The old name was backwards.
101741         (NOTSWAP): Remove; not used.
101742         (rol): New macro, moved here from md5.h.
101743         (sha1_process_block): Remove a FIXME that doesn't make sense.
101745 2005-09-12  Derek Price  <derek@ximbiot.com>
101747         Return usable errors from canon-host.
101748         * lib/canon-host.h: New file.
101749         * lib/canon-host.c (canon_host): Wrap...
101750         (canon_host_r): ...this new function, which now relies exclusively on
101751         getaddrinfo.
101752         (ch_strerror): New function.
101753         (last_cherror): New global.
101754         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
101755         interface.
101756         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
101757         void *.
101758         (freeaddrinfo): Free ai->ai_canonname when set.
101760 2005-09-12  Derek Price  <derek@ximbiot.com>
101762         Make canon-host require getaddrinfo.
101763         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
101764         AC_LIBSOURCE canon-host.h.  Call...
101765         (gl_PREREQ_CANON_HOST): ...this new function, which requires
101766         gl_GETADDRINFO.
101767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
101769 2005-09-12  Derek Price  <derek@ximbiot.com>
101771         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
101772         LGPL.
101773         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
101775 2005-09-12  Derek Price  <derek@ximbiot.com>
101777         * lib/gai_strerror.c: Include config.h when available.  Include
101778         getaddrinfo.h before other headers to test interface.
101779         Reported by Larry Jones <lawrence.jones@ugs.com>.
101781 2005-09-12  Derek Price  <derek@ximbiot.com>
101782             Paul Eggert  <eggert@cs.ucla.edu>
101784         * modules/glob (Files): Add glob-libc.h.
101786 2005-09-12  Derek Price  <derek@ximbiot.com>
101787             Paul Eggert  <eggert@cs.ucla.edu>
101789         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
101790         glob_.h, glob-libc.h.
101791         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
101793 2005-09-12  Derek Price  <derek@ximbiot.com>
101794             Paul Eggert  <eggert@cs.ucla.edu>
101796         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
101797         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
101798         protecting things that should be done only in gnulib contexts.
101799         * lib/glob_.h: New file, containing only the glob things needed for
101800         gnulib.
101801         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
101802         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
101803         (glob, globfree, glob_pattern_p): Now defined simply in terms of
101804         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
101805         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
101806         and to respect the namespace rules better.
101808 2005-09-08  Simon Josefsson  <jas@extundo.com>
101810         * modules/socklen: New file.
101812 2005-09-08  Simon Josefsson  <jas@extundo.com>
101814         * m4/socklen.m4: New file.
101816 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101818         * modules/utimens (Files): Add m4/utimbuf.m4, since
101819         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
101820         Reported by Sergey Poznyakoff.
101822 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101824         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
101825         definitions, since that's the preferred style in glibc.
101826         Fix a minor spacing issue, and update copyright notice to match
101827         glibc's.
101829 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101831         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
101833 2005-09-06  Simon Josefsson  <jas@extundo.com>
101835         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
101836         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
101838 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101840         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
101841         warning.
101843 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101845         * config/srclist.txt: Add glibc bug 1302.
101847 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
101849         Change bitset word type from unsigned int to unsigned long int,
101850         as this has better performance on typical 64-bit hosts.
101851         Port bitset code to hosts with unusual word sizes.
101852         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
101853         (build_collating_symbol):
101854         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
101855         argument is a bitset.  This is merely a style issue, but it makes
101856         it clearer that an entire array is expected.
101857         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101858         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101859         Port to the case where bitset_word is not the same as unsigned int.
101860         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101861         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101862         Likewise.
101863         * lib/regexec.c (check_dst_limits_calc_pos_1,
101864         check_subexp_matching_top):
101865         (build_trtable, group_nodes_into_DFAstates):
101866         Likewise.
101867         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101868         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101869         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101870         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101871         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101872         * lib/regcomp.c (optimize_subexps, lower_subexp):
101873         Work even if bitset_word has holes in its bitwise representation.
101874         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101875         * lib/regexec.c (check_dst_limits_calc_pos_1,
101876         check_subexp_matching_top):
101877         Likewise.
101878         * lib/regex_internal.c (re_string_reconstruct):
101879         Don't assume UCHAR_MAX == 255.
101880         * lib/regex_internal.h (bitset_set_all): Likewise.
101881         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101882         All uses changed.
101883         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101884         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101885         All uses changed.
101886         (BITSET_WORD_MAX): New macro.
101887         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101888         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101889         (bitset_empty, bitset_copy):
101890         Prefer sizeof (bitset) to multiplying it out ourselves.
101891         (bitset_not_merge): Remove; unused.
101892         (bitset_contain): Return bool, not unsigned int with one bit on.
101893         All callers changed.
101894         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101895         alignment than re_node_set; do this by defining a new internal
101896         type struct dests_alloc and using it to allocate memory.
101898 2005-09-05  Bruno Haible  <bruno@clisp.org>
101900         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101901         links.
101903 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101905         * modules/size_max (Makefile.am): Add size_max.h
101907 2005-09-04  Derek Price  <derek@ximbiot.com>
101909         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101911 2005-09-03  Simon Josefsson  <jas@extundo.com>
101913         * gnulib-tool: Fix typo.
101915 2005-09-03  Simon Josefsson  <jas@extundo.com>
101917         * config/srclist.txt: Add glibc bug 1293.
101919 2005-09-03  Derek Price  <derek@ximbiot.com>
101921         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
101922         From Larry Jones <lawrence.jones@ugs.com>.
101924 2005-09-02  Simon Josefsson  <jas@extundo.com>
101926         * modules/socklen: New file.
101928 2005-09-02  Simon Josefsson  <jas@extundo.com>
101930         * modules/havelib: New module.
101932         * modules/gettext, modules/iconv, modules/lock, modules/readline:
101933         Use havelib.
101935 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101937         Check for arithmetic overflow when calculating sizes, to prevent
101938         some buffer-overflow issues.  These patches are conservative, in the
101939         sense that when I couldn't determine whether an overflow was possible,
101940         I inserted a run-time check.
101941         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
101942         macros.
101943         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
101944         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
101945         (re_xnrealloc, re_x2nrealloc): New inline functions.
101946         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
101947         parse_bracket_exp):
101948         (build_equiv_class, build_charclass): Check for arithmetic overflow
101949         in size expression calculations.
101950         * lib/regex_internal.c (re_string_realloc_buffers):
101951         (build_wcs_upper_buffer, re_node_set_add_intersect):
101952         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
101953         (re_dfa_add_node, register_state): Likewise.
101954         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
101955         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
101956         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
101957         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
101959 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101961         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101962         m4/ulonglong.m4.  Problem reported by Martin Lambers.
101964 2005-09-02  Bruno Haible  <bruno@clisp.org>
101966         Support for lib vs. lib64 distinction on biarch platforms.
101967         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
101968         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
101969         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
101971 2005-09-02  Bruno Haible  <bruno@clisp.org>
101973         * gnulib-tool (import): In the other first-use case, provide defaults
101974         as well.
101976 2005-09-02  Bruno Haible  <bruno@clisp.org>
101978         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
101979         patches not yet found in the latest gettext release.
101981 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101983         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
101984         to avoid a collision with bits/local_lim.h in glibc.
101985         All uses changed.  Problem reported by Dmitry V. Levin in
101986         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
101988         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
101989         bugs in int versus size_t comparisons.
101990         (re_string_context_at): Fix bug where the code assumed that
101991         Idx is signed.
101993         Use bool where appropriate.
101994         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
101995         All callers changed.
101996         (calc_eclosure_iter): Likewise, for ROOT arg.
101997         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
101998         (build_charclass_op): Likewise, for NON_MATCH arg.
101999         * lib/regex_internal.c (re_string_allocate, re_string_construct):
102000         (re_string_construct_common): Likewise, for ICASE arg.
102001         * lib/regexec.c (re_search_2_stub, re_search_stub):
102002         Likewise, for RET_LEN arg.
102003         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
102004         (set_regs): Likewise, for FL_BACKTRACK arg.
102005         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
102006         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
102007         (calc_eclosure_iter, parse_bracket_exp):
102008         Use bool for internal variables that are booleans.
102009         * lib/regexec.c (re_search_internal, check_matching,
102010         proceed_next_node):
102011         (set_regs, build_sifted_states, sift_states_bkref):
102012         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
102013         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102014         (find_collation_sequence_value):
102015         Likewise.
102016         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
102017         (re_node_set_compare):
102018         Return bool, not int. All callers changed.
102019         * lib/regexec.c (check_halt_node_context, check_dst_limits):
102020         (build_trtable, check_node_accept): Likewise.
102021         * lib/regex_internal.h: Include stdbool.h.
102023         Fix bugs uncovered when converting to bool.
102024         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
102025         failure instead of charging ahead blindly.
102026         * lib/regex_internal.c (register_state): Likewise.
102027         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
102028         for freeing internal storage.
102029         (group_nodes_into_DFA_states): Use unsigned int, not int, for
102030         bitset pieces used as boolean, to avoid undefined behavior
102031         on hosts that do int overflow checking.
102033 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102035         * config/srclist.txt: Add glibc bugs 1285-1287.
102037 2005-09-01  Jim Meyering  <jim@meyering.net>
102039         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
102040         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
102041         Require gl_STAT_MACROS, too.
102043 2005-09-01  Bruno Haible  <bruno@clisp.org>
102045         * gnulib-tool (import): In the first-use case, provide defaults.
102047 2005-09-01  Bruno Haible  <bruno@clisp.org>
102049         * gnulib-tool (func_import): Remove the .tmp files.
102051 2005-09-01  Bruno Haible  <bruno@clisp.org>
102053         * gnulib-tool (func_import): Fix handling of symbolic links.
102055 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102057         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
102058         old glibc regex code mishandles strings longer than 2**31 bytes.
102059         This patch fixes this when the regex code is used in gnulib
102060         (i.e., outside glibc).
102062         This patch should not affect the use of the regex code inside
102063         glibc.  No doubt this problem also needs to be handled for glibc
102064         as well, but the result will be an incompatible change to the
102065         glibc ABI, and the old ABI will have to be supported too.  That
102066         can be the subject for another patch.
102068         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
102069         governing whether the rest of this patch is active.  By default,
102070         the macro is disabled and the patch has no effect.
102071         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
102072         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
102073         (struct re_pattern_buffer, re_search, re_search_2, re_match):
102074         (re_match_2, re_set_registers): Use the new types.
102075         * lib/regex_internal.h (Idx, re_hashval_t): New types.
102076         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
102077         New macros.
102078         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
102079         (re_string_context_at, bin_tree_t, re_dfastate_t):
102080         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
102081         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
102082         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
102083         (re_string_char_size_at, re_string_wchar_at):
102084         (re_string_elem_size_at):
102085         Use the new types and macros to port to 64-bit hosts.
102086         Use unsigned types for internal values, so that the code
102087         mostly works even for arrays larger than SSIZE_MAX.
102088         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
102089         (search_duplicated_node, calc_eclosure_iter, fetch_number):
102090         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
102091         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
102092         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
102093         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
102094         (calc_inveclosure, parse_dup_op, build_range_exp):
102095         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
102096         (fetch_number, create_token_tree, mark_opt_subexp):
102097         Likewise.
102098         * lib/regex_internal.c (re_string_construct_common,
102099         create_ci_newstate):
102100         (create_cd_newstate, re_string_allocate, re_string_construct):
102101         (re_string_realloc_buffers, build_wcs_upper_buffer):
102102         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102103         (re_string_reconstruct, re_string_peek_byte_case):
102104         (re_string_fetch_byte_case, re_string_context_at):
102105         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102106         (re_node_set_init_copy, re_node_set_add_intersect):
102107         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102108         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102109         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102110         (re_acquire_state, re_acquire_state_context, register_state):
102111         Likewise.
102112         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
102113         search_cur_bkref_entry):
102114         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
102115         (re_search_internal, re_search_2_stub, re_search_stub)
102116         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
102117         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
102118         (update_cur_sifted_state, check_dst_limits):
102119         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102120         (check_subexp_limits, sift_states_bkref, merge_state_array):
102121         (check_subexp_matching_top, get_subexp, get_subexp_sub):
102122         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
102123         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102124         (expand_bkref_cache, check_node_accept_bytes):
102125         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
102126         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
102127         (acquire_init_state_context, check_halt_node_context):
102128         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
102129         (sift_states_backward, clean_state_log_if_needed):
102130         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
102131         (find_recover_state, transit_state_sb, transit_state_mb):
102132         (transit_state_bkref, build_trtable, match_ctx_clean):
102133         Likewise.
102134         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
102135         to work around an assumption that REG_MISSING is negative.
102137         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
102138         (seek_collating_symbol_entry) [defined _LIBC]:
102139         (lookup_collation_sequence_value) [defined _LIBC]:
102140         (build_range_exp, build_collating_symbol) [defined _LIBC]:
102141         Use prototypes rather than old-style function definitions.
102142         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
102143         (transit_state_sb) [0]:
102144         (find_collation_sequence_value) [defined _LIBC]: Likewise.
102146         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
102147         rm_eo.
102149         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
102150         (optimize_subexps, lower_subexp):
102151         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
102152         since the signed shift might overflow.  Use 1u<<31 instead.
102153         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
102154         Likewise.
102155         * lib/regexec.c (check_dst_limits_calc_pos_1,
102156         check_subexp_matching_top): Likewise.
102158         * lib/regcomp.c (optimize_subexps, lower_subexp):
102159         Use CHAR_BIT rather than 8, for clarity.
102160         * lib/regexec.c (check_dst_limits_calc_pos_1):
102161         (check_subexp_matching_top): Likewise.
102162         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
102163         have to worry about portability issues when shifting it left.
102164         Remove no-longer-needed test for table_size > 0.
102165         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
102166         in a word, as the resulting behavior is undefined.
102167         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
102168         in one case, a <= should have been an <, and in another case the
102169         whole test was missing.
102170         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
102171         the standard name CHAR_BIT.
102172         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
102173         this is not true on one's complement and signed-magnitude hosts.
102175         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
102176         next_last_offset.
102177         (struct re_dfa_t): Remove unused member states_alloc.
102178         * lib/regcomp.c (init_dfa): Don't initialize unused members.
102180 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102182         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
102183         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
102184         and large-file glibc and in 32-bit large-file Solaris.
102186 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102188         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
102189         lengths fit in regoff_t; this isn't true if regoff_t is the same
102190         width as size_t.
102191         * lib/regex.c (re_search_internal): 5th arg is LAST_START
102192         (= START + RANGE) instead of RANGE.  This avoids overflow
102193         problems when regoff_t is the same width as size_t.
102194         All callers changed.
102195         (re_search_2_stub): Check for overflow when adding the
102196         sizes of the two strings.
102197         (re_search_stub): Check for overflow when adding START
102198         to RANGE; if it occurs, substitute the extreme value.
102200 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102202         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
102204 2005-08-31  Jim Meyering  <jim@meyering.net>
102206         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
102207         a pointer-to-const.
102208         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
102209         (register_state): Likewise.
102210         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
102211         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102212         (group_nodes_into_DFAstates): Likewise.
102214 2005-08-31  Jim Meyering  <jim@meyering.net>
102216         * check-module: Add a FIXME comment.
102218 2005-08-31  Eric Blake  <ebb9@byu.net>
102220         * modules/unistd-safer (Files): Add unistd--.h.
102221         * modules/stdio-safer (Files): Add stdio--.h.
102223 2005-08-31  Derek Price  <derek@ximbiot.com>
102225         * lib/getdelim.c (getdelim): Return EOF on EOF.
102226         Reported by Larry Jones <lawrence.jones@ugs.com>.
102228 2005-08-31  Bruno Haible  <bruno@clisp.org>
102230         Avoid unnecessary diffs in the generated lib/Makefile.am.
102231         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
102232         the generated files.
102233         (func_import): Don't set cmd.
102235 2005-08-31  Bruno Haible  <bruno@clisp.org>
102237         * lib/strstr.c: Include <stddef.h>, for NULL.
102238         * lib/strcasestr.c: Likewise.
102239         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102241 2005-08-31  Bruno Haible  <bruno@clisp.org>
102243         * gnulib-tool: New option --macro-prefix.
102244         (func_import): Use macro_prefix.
102245         (import): Handle option --macro-prefix.
102247 2005-08-31  Bruno Haible  <bruno@clisp.org>
102249         * gnulib-tool (import): Rename most ac_* variables to cached_*.
102250         Also use new variables cached_lgpl, cached_libtool.
102252 2005-08-31  Bruno Haible  <bruno@clisp.org>
102254         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
102255         always instantiating them.
102257 2005-08-31  Bruno Haible  <bruno@clisp.org>
102259         * gnulib-tool (func_import): Read the previous cached settings
102260         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
102261         earlier added by gnulib but are now dropped. Warn when a gnulib file
102262         overwrites a non-gnulib file.
102264 2005-08-31  Bruno Haible  <bruno@clisp.org>
102266         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
102267         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
102268         projects that don't keep autogenerated files in CVS. Put into
102269         actioncmd only the specified modules, not the transitive closure.
102271 2005-08-31  Bruno Haible  <bruno@clisp.org>
102273         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
102274         Create directories that shall be filled.
102275         (import): Don't look for gl_* macros in configure.ac. Recurse across
102276         all directories containing a gnulib-cache.m4 files, if meaningful.
102278 2005-08-31  Bruno Haible  <bruno@clisp.org>
102280         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
102281         (import): Set seen_libtool when we see gl_LIBTOOL.
102283 2005-08-31  Bruno Haible  <bruno@clisp.org>
102285         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
102286         declaration macro definitions from generated gnulib.m4.
102288 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
102290         * lib/iconvme.h: Add prototype for iconv_alloc.
102292 2005-08-29  Simon Josefsson  <jas@extundo.com>
102294         * lib/iconvme.c: Fix errno.
102296 2005-08-29  Bruno Haible  <bruno@clisp.org>
102298         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
102299         that it works when the directory contains spaces.
102301 2005-08-29  Bruno Haible  <bruno@clisp.org>
102303         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
102305 2005-08-29  Bruno Haible  <bruno@clisp.org>
102307         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
102308         Emit more advice.
102310 2005-08-29  Bruno Haible  <bruno@clisp.org>
102311         and Stepan Kasal  <kasal@ucw.cz>
102313         * check-module: If more parameters are given, check each of them
102314         separately; add more exceptions, as noted by Jim Meyering.
102315         (check_module): New procedure.
102316         (%exempt_header): Now contains all exceptions.
102318 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
102320         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
102322 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102324         * lib/iconvme.c: Split iconv_string into iconv_alloc.
102326 2005-08-28  Bruno Haible  <bruno@clisp.org>
102328         * m4/gnulib-tool.m4: New file.
102330 2005-08-27  Jim Meyering  <jim@meyering.net>
102332         * modules/unistd-safer (Files): Add pipe-safer.c.
102333         * modules/fcntl-safer (Files): Add creat-safer.c.
102335 2005-08-27  Jim Meyering  <jim@meyering.net>
102337         * m4/stdlib-safer.m4: New file.  From coreutils.
102338         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
102339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
102340         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
102341         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
102342         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
102344 2005-08-27  Jim Meyering  <jim@meyering.net>
102346         * lib/fopen-safer.c: Merge minor changes from coreutils.
102347         * lib/dup-safer.c: Likewise.
102348         * lib/fd-safer.c: Likewise.
102350         Merge from coreutils.
102351         * lib/stdio--.h: New file.
102352         * lib/stdlib--.h: New file.
102353         * lib/mkstemp-safer.c: New file.
102355         GNU tar needs these.
102356         * lib/pipe-safer.c: New file.
102357         * lib/creat-safer.c: New file.
102358         * lib/fcntl--.h (creat): Define to creat_safer.
102359         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
102360         * lib/unistd--.h (pipe): Define to pipe_safer.
102361         * lib/unistd-safer.h: Declare pipe_safer.
102363 2005-08-26  Simon Josefsson  <jas@extundo.com>
102365         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
102366         Haible <bruno@clisp.org>.
102368 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
102370         * lib/regex_internal.h: Remove all references to
102371         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
102372         or better.
102373         (bitset_not, bitset_merge, bitset_not_merge):
102374         (bitset_mask, re_string_allocate, re_string_construct):
102375         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
102376         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
102377         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
102378         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
102379         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102380         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102381         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
102382         (re_acquire_state_context):
102383         Remove unnecessary forward decls.
102384         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
102385         Put __attribute at function definition,
102386         now that the function decl has been removed.
102387         * lib/regex_internal.c (re_string_peek_byte_case):
102388         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
102389         Likewise.
102391 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
102393         * m4/regex.m4: Add AC_PREREQ(2.50).
102394         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
102396 2005-08-25  Simon Josefsson  <jas@extundo.com>
102398         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
102399         __fsetlocking.
102401 2005-08-25  Simon Josefsson  <jas@extundo.com>
102403         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
102404         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
102405         GLIBC specific code.
102407 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102409         Make regex safe for g++.  This fixes one real bug (an "err"
102410         that should have been "*err").  g++ problem reported by
102411         Sam Steingold.
102412         * lib/regex_internal.h (re_calloc): New macro, consistent with
102413         re_malloc etc.  All callers of calloc changed to use re_calloc.
102414         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
102415         not int.  All callers changed.
102416         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
102417         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
102418         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
102419         (find_recover_state): Change "err" to "*err"; this fixes what
102420         appears to be a real bug.
102421         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
102422         versus int.
102424 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102426         * modules/regex (Depends-on): Add malloc, since the code
102427         assumes that !malloc(0) means failure.
102429 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102431         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
102433         alloca modernization/simplification for regex.
102434         * lib/regex.c: Remove portability cruft for alloca.  This no longer
102435         needs to be at the start of the file, and can be moved into
102436         regex_internal.h and simplified.
102437         * lib/regex_internal.h: Include <alloca.h>.
102438         (__libc_use_alloca) [!defined _LIBC]: New macro.
102439         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
102440         now works outside glibc.
102442 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102444         * config/srclist.txt: Add glibc bugs 1241, 1245.
102446 2005-08-25  Jim Meyering  <jim@meyering.net>
102448         * lib/open-safer.c: Include <config.h>.
102449         Otherwise, we'd lose LARGEFILE support in any file using
102450         e.g. "fcntl--.h"
102452 2005-08-25  Bruno Haible  <bruno@clisp.org>
102454         * m4/minmax.m4: Require autoconf 2.52.
102455         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
102456         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
102457         alternatives of translit over the alphabet.
102458         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
102460 2005-08-24  Simon Josefsson  <jas@extundo.com>
102462         * tests/test-getpass.c: New file.
102464 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102466         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
102467         for GNU regex features.
102469 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102471         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
102472         * lib/regex.h (regerror): Likewise.
102474         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
102475         requires this.  (The code never needed it.)
102477         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
102478         All uses of recently-renamed identifiers changed to use the new,
102479         POSIX-compliant names.  The code will build and run just fine
102480         without these changes, but it's better to eat our own dog food
102481         and use the standard-conforming names.
102483         * lib/regex.h: Fix a multitude of POSIX name space violations.
102484         These changes have an effect only for programs that define
102485         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
102486         do not change anything for programs compiled in the normal way.
102487         Also, there is no effect on the ABI.
102489         (_REGEX_SOURCE): New macro.
102490         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
102491         defined and _GNU_SOURCE is not; this fixes a name space violation.
102493         Rename the following macros to obey POSIX requirements.
102494         The old names are still visible as macros if _REGEX_SOURCE is defined.
102495         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
102496         RE_BACKSLASH_ESCAPE_IN_LISTS.
102497         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
102498         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
102499         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
102500         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
102501         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
102502         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
102503         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
102504         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
102505         (REG_INTERVALS): renamed from RE_INTERVALS.
102506         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
102507         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
102508         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
102509         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
102510         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
102511         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
102512         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
102513         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
102514         RE_UNMATCHED_RIGHT_PAREN_ORD.
102515         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
102516         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
102517         (REG_DEBUG): renamed from RE_DEBUG.
102518         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
102519         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
102520         unusual, since we can't clash with the POSIX REG_ICASE.
102521         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
102522         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
102523         (REG_NO_SUB): renamed from RE_NO_SUB.
102524         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
102525         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
102526         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
102527         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
102528         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
102529         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
102530         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
102531         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
102532         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
102533         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
102534         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
102535         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
102536         RE_SYNTAX_POSIX_MINIMAL_BASIC.
102537         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
102538         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
102539         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
102540         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
102541         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
102542         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
102543         (REG_FIXED): Renamed from REGS_FIXED.
102544         (REG_NREGS): Renamed from RE_NREGS.
102546         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
102547         of other REG_* macros, since POSIX says the user is allowed to
102548         #undef these macros selectively.
102550         (reg_errcode_t): Update comment stating what other tables need
102551         to be consistent.
102553         Rename the following enum values to obey POSIX requirements.
102554         The old names are still visible as macros.
102555         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
102556         is not defined, since GNU is supposed to be a superset of POSIX as
102557         much as possible, and since we want reg_errcode_t to be a signed
102558         type for implementation consistency.
102559         (_REG_NOERROR): Renamed from REG_NOERROR.
102560         (_REG_NOMATCH): Renamed from REG_NOMATCH.
102561         (_REG_BADPAT): Renamed from REG_BADPAT.
102562         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
102563         (_REG_ECTYPE): Renamed from REG_ECTYPE.
102564         (_REG_EESCAPE): Renamed from REG_EESCAPE.
102565         (_REG_ESUBREG): Renamed from REG_ESUBREG.
102566         (_REG_EBRACK): Renamed from REG_EBRACK.
102567         (_REG_EPAREN): Renamed from REG_EPAREN.
102568         (_REG_EBRACE): Renamed from REG_EBRACE.
102569         (_REG_BADBR): Renamed from REG_BADBR.
102570         (_REG_ERANGE): Renamed from REG_ERANGE.
102571         (_REG_ESPACE): Renamed from REG_ESPACE.
102572         (_REG_BADRPT): Renamed from REG_BADRPT.
102573         (_REG_EEND): Renamed from REG_EEND.
102574         (_REG_ESIZE): Renamed from REG_ESIZE.
102575         (_REG_ERPAREN): Renamed from REG_ERPAREN.
102576         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
102577         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
102578         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
102579         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
102581         (_REG_RE_NAME, _REG_RM_NAME): New macros.
102582         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
102583         changed.  But support the old name if the new one is not defined
102584         and if _REGEX_SOURCE.
102586         Change the following member names in struct re_pattern_buffer.
102587         The old names are still supported if !_REGEX_SOURCE.
102588         The new names are always supported, regardless of _REGEX_SOURCE.
102589         (re_buffer): Renamed from buffer.
102590         (re_allocated): Renamed from allocated.
102591         (re_used): Renamed from used.
102592         (re_syntax): Renamed from syntax.
102593         (re_fastmap): Renamed from fastmap.
102594         (re_translate): Renamed from translate.
102595         (re_can_be_null): Renamed from can_be_null.
102596         (re_regs_allocated): Renamed from regs_allocated.
102597         (re_fastmap_accurate): Renamed from fastmap_accurate.
102598         (re_no_sub): Renamed from no_sub.
102599         (re_not_bol): Renamed from not_bol.
102600         (re_not_eol): Renamed from not_eol.
102601         (re_newline_anchor): Renamed from newline_anchor.
102603         Change the following member names in struct re_registers.
102604         The old names are still supported if !_REGEX_SOURCE.
102605         The new names are always supported, regardless of _REGEX_SOURCE.
102606         (rm_num_regs): Renamed from num_regs.
102607         (rm_start): Renamed from start.
102608         (rm_end): Renamed from end.
102610         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102611         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102612         Prepend __ to parameter names.
102614         Undo yesterday's changes.
102616 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102618         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102619         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102620         lib/regex.c.
102622 2005-08-24  Jim Meyering  <jim@meyering.net>
102624         Sync from coreutils.
102625         * m4/fcntl-safer.m4: New file.
102627         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102628         and object files for this module.
102630 2005-08-24  Jim Meyering  <jim@meyering.net>
102632         Sync from coreutils.
102633         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102635 2005-08-24  Jim Meyering  <jim@meyering.net>
102637         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102638         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102640 2005-08-24  Jim Meyering  <jim@meyering.net>
102642         * modules/fcntl-safer: New module.
102643         * modules/fts (Depends-on): Add fcntl-safer.
102644         * MODULES.html.sh (File descriptor based Input/Output):
102645         Add fcntl-safer.
102647 2005-08-24  Bruno Haible  <bruno@clisp.org>
102649         Support for unit test modules.
102650         * modules/README: Mention tests modules.
102651         * modules/TEMPLATE-TESTS: New file.
102652         * gnulib-tool: New options --extract-tests-module, --with-tests and
102653         --tests-base (unused for the moment).
102654         (testsbase, inctests): New variables.
102655         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102656         (func_verify_module): Exclude TEMPLATE-TESTS.
102657         (func_verify_nontests_module, func_verify_tests_module): New functions.
102658         (func_get_dependencies): Add implicit dependency for tests modules.
102659         (func_get_tests_module): New function.
102660         (func_modules_transitive_closure): When --with-tests was specified,
102661         include the unit tests as well, unless explicitly avoided.
102662         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102663         (func_emit_tests_Makefile_am): New function.
102664         (func_create_testdir): When --with-tests was specified, emit a
102665         tests/ directory.
102666         * MODULES.html.sh (Future developments): Update.
102668 2005-08-24  Bruno Haible  <bruno@clisp.org>
102670         * modules/tls-tests: New file.
102671         * tests/test-tls.c: New file, from GNU gettext.
102673 2005-08-24  Bruno Haible  <bruno@clisp.org>
102675         * modules/lock-tests: New file.
102676         * tests/test-lock.c: New file, from GNU gettext.
102678 2005-08-24  Bruno Haible  <bruno@clisp.org>
102680         * lib/lock.h: Add multiple inclusion guard.
102681         * lib/tls.h: Add multiple inclusion guard.
102683 2005-08-24  Bruno Haible  <bruno@clisp.org>
102685         * gnulib-tool: Add support for the --aux-dir option to
102686         --create-testdir, --create-megatestdir, --test, --megatest.
102687         (func_create_testdir, func_create_megatestdir): Optionally emit a
102688         AC_CONFIG_AUX_DIR directive.
102689         (create-testdir, create-megatestdir, test, megatest): Provide a
102690         default value for $auxdir.
102692 2005-08-24  Bruno Haible  <bruno@clisp.org>
102694         * gnulib-tool (import): Use compound statement instead of subshell
102695         where possible.
102697 2005-08-24  Bruno Haible  <bruno@clisp.org>
102699         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102701 2005-08-24  Bruno Haible  <bruno@clisp.org>
102703         * gnulib-tool (func_version): Update.
102705 2005-08-24  Bruno Haible  <bruno@clisp.org>
102707         * gnulib-tool (func_import, func_create_testdir,
102708         func_create_megatestdir): Quote all autoconf macro arguments.
102710 2005-08-24  Bruno Haible  <bruno@clisp.org>
102712         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102713         option --force, because --force causes the aclocal.m4 of each
102714         subdirectory to be newer than the corresponding config.h.in.
102716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102718         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102719         All contents moved to gl_REGEX.
102720         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102721         assume that it does.
102723 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102725         * lib/regex.h (REG_NOSYS)
102726         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102727         Define, since POSIX requires it as of 2001.
102728         (_REG_ENOSYS)
102729         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102730         New private symbol, used to keep the enum signed in all cases.
102731         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102732         Youngman in
102733         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102735         * lib/regex_internal.c (re_string_skip_chars, register_state):
102736         (calc_state_hash):
102737         Remove forward decls; no longer needed now that we use prototypes.
102738         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102739         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102740         (clean_state_log_if_needed): Likewise.
102742 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102744         * config/srclist.txt: Add glibc bugs 1231-1233.
102746 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102748         Fix problems reported by Sam Steingold in
102749         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
102750         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
102751         assumed that reg_errcode_t is a signed type, which is not
102752         necessarily true if _XOPEN_SOURCE is not defined.
102753         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
102754         since some compilers warn about it otherwise.
102756 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102758         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
102759         (init_word_char, create_initial_state, duplicate_node_closure):
102760         (fetch_token, peek_token_bracket, build_range_exp):
102761         (build_collating_symbol): Remove forward decls; no longer needed
102762         now that we use prototypes.
102764         * lib/regcomp.c:
102765         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
102766         (re_compile_fastmap_iter, regcomp, regerror, regfree):
102767         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
102768         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
102769         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
102770         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
102771         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
102772         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
102773         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
102774         (build_range_exp, build_collating_symbol, parse_bracket_exp):
102775         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
102776         (build_charclass, build_charclass_op, fetch_number, create_tree):
102777         (create_token_tree, mark_opt_subexp, duplicate_tree):
102778         Use prototypes rather than old-style definitions.
102780         * lib/regex_internal.c:
102781         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
102782         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
102783         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102784         (re_string_reconstruct, re_string_peek_byte_case):
102785         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
102786         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102787         (re_node_set_init_copy, re_node_set_add_intersect):
102788         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102789         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102790         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102791         (re_acquire_state, re_acquire_state_context, register_state):
102792         (create_ci_newstate, create_cd_newstate, free_state):
102793         Likewise.
102794         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
102795         re_search_2):
102796         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
102797         (re_search_internal, prune_impossible_nodes):
102798         (acquire_init_state_context, check_matching, static):
102799         (check_halt_node_context, check_halt_state_context, proceed_next_node):
102800         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
102801         (update_regs, sift_states_backward, build_sifted_states):
102802         (clean_state_log_if_needed, merge_state_array):
102803         (update_cur_sifted_state, add_epsilon_src_nodes):
102804         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
102805         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
102806         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
102807         (find_recover_state, check_subexp_matching_top, transit_state_mb):
102808         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
102809         (check_arrival, check_arrival_add_next_nodes):
102810         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102811         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102812         (check_node_accept_bytes, check_node_accept, extend_buffers):
102813         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
102814         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
102815         (sift_ctx_init):
102816         Likewise.
102818         * lib/regex_internal.h:
102819         (re_string_allocate, re_string_construct, re_string_reconstruct):
102820         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
102821         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
102822         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
102823         (re_string_context_at, re_string_peek_byte_case):
102824         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
102825         is defined, since we now use prototypes always.
102827         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
102828         C89 or better.  All uses removed.
102830 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102832         * config/srclist.txt: Add glibc bugs 1220-1227.
102834 2005-08-20  Jim Meyering  <jim@meyering.net>
102836         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
102837         of unused local, dfa.
102839 2005-08-20  Bruno Haible  <bruno@clisp.org>
102841         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
102843 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102845         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
102846         (re_node_set_insert_last, re_dfa_add_node):
102847         Rename local variables to avoid GCC shadowing warnings.
102849 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102851         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
102852         [defined lint]: Suppress bogus uninitialized-variable warnings.
102854         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
102855         and let the caller return REG_ESPACE if out of space.  This
102856         removes an uninitialied-variable warning with GCC 4.0.1, and also
102857         avoids taking the address of a local variable.  All callers
102858         changed.
102860 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102862         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102863         $LIBCSRC/posix/regexec.c.
102864         Add glibc bug 1217 for regcomp.c.
102866 2005-08-19  Jim Meyering  <jim@meyering.net>
102868         * lib/regexec.c (proceed_next_node): Redo local variables to
102869         avoid GCC shadowing warnings.
102871 2005-08-18  Bruno Haible  <bruno@clisp.org>
102873         * lib/strstr.c (strstr): Fix return value in multibyte case.
102874         * lib/strcasestr.c (strcasestr): Likewise.
102876 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102878         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102880 2005-08-17  Jim Meyering  <jim@meyering.net>
102882         Make the %s format (seconds since the epoch) work for a negative
102883         number and when used with a zero-padded field width, e.g. %015s.
102885         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102886         label so that it precedes the code to set `digits'.  Otherwise,
102887         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102888         print `00-22'.  Now, it prints `-0022', as it should.
102890 2005-08-17  Bruno Haible  <bruno@clisp.org>
102892         * modules/strstr (Files): Add m4/mbrtowc.m4.
102893         (Depends-on): Add mbuiter.
102895 2005-08-17  Bruno Haible  <bruno@clisp.org>
102897         * modules/strcasestr: New file.
102898         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102899         strcasestr.
102901 2005-08-17  Bruno Haible  <bruno@clisp.org>
102903         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102905 2005-08-17  Bruno Haible  <bruno@clisp.org>
102907         * modules/mbuiter: New file.
102908         * MODULES.html.sh (Extended multibyte and wide character utilities):
102909         Add mbuiter.
102911 2005-08-17  Bruno Haible  <bruno@clisp.org>
102913         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102914         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102916 2005-08-17  Bruno Haible  <bruno@clisp.org>
102918         * m4/strcasestr.m4: New file.
102920 2005-08-17  Bruno Haible  <bruno@clisp.org>
102922         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
102923         * lib/strstr.c: Completely rewritten, with multibyte locale support.
102925 2005-08-17  Bruno Haible  <bruno@clisp.org>
102927         * lib/strcasestr.h: New file.
102928         * lib/strcasestr.c: New file.
102930 2005-08-17  Bruno Haible  <bruno@clisp.org>
102932         * lib/strcasecmp.c: Use mbuiter.h.
102934 2005-08-17  Bruno Haible  <bruno@clisp.org>
102936         * lib/mbuiter.h: New file.
102938 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
102940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
102941         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
102942         and gl_GETOPT are both invoked via different paths (as happens
102943         with GNU tar CVS because it uses both argp and getopt), the former
102944         wins.
102946 2005-08-16  Bruno Haible  <bruno@clisp.org>
102948         * modules/tls: New file.
102949         * MODULES.html.sh (Multithreading): Add tls.
102951 2005-08-16  Bruno Haible  <bruno@clisp.org>
102953         * modules/strnlen1: New file.
102954         * MODULES.html.sh (String handling): Add strnlen1.
102956 2005-08-16  Bruno Haible  <bruno@clisp.org>
102958         * modules/strcase (Files): Add m4/mbrtowc.m4.
102959         (Depends-on): Add strnlen1, mbchar.
102961 2005-08-16  Bruno Haible  <bruno@clisp.org>
102963         * modules/mbiter: New file.
102964         * MODULES.html.sh (Extended multibyte and wide character utilities):
102965         Add mbiter.
102967 2005-08-16  Bruno Haible  <bruno@clisp.org>
102969         * modules/mbfile: New file.
102970         * MODULES.html.sh (Extended multibyte and wide character utilities):
102971         Add mbfile.
102973 2005-08-16  Bruno Haible  <bruno@clisp.org>
102975         * modules/mbchar: New file.
102976         * MODULES.html.sh (Extended multibyte and wide character utilities):
102977         New section.
102979 2005-08-16  Bruno Haible  <bruno@clisp.org>
102981         * m4/tls.m4: New file, from GNU gettext.
102983 2005-08-16  Bruno Haible  <bruno@clisp.org>
102985         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
102986         always.
102987         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
102989 2005-08-16  Bruno Haible  <bruno@clisp.org>
102991         * m4/mbiter.m4: New file.
102993 2005-08-16  Bruno Haible  <bruno@clisp.org>
102995         * m4/mbfile.m4: New file.
102997 2005-08-16  Bruno Haible  <bruno@clisp.org>
102999         * m4/mbchar.m4: New file.
103001 2005-08-16  Bruno Haible  <bruno@clisp.org>
103003         * lib/tls.h: New file, from GNU gettext.
103004         * lib/tls.c: New file, from GNU gettext.
103006 2005-08-16  Bruno Haible  <bruno@clisp.org>
103008         * lib/strnlen1.h: New file.
103009         * lib/strnlen1.c: New file.
103011 2005-08-16  Bruno Haible  <bruno@clisp.org>
103013         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
103014         (mbi_init): Update.
103015         (mbi_avail, mbi_advance): Let the iteration end before the terminating
103016         NUL byte, not after it.
103018 2005-08-16  Bruno Haible  <bruno@clisp.org>
103020         * lib/strcase.h (strcasecmp): Add note in comments.
103021         * lib/strncasecmp.c: Use code from strcasecmp.c.
103022         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
103023         (strcasecmp): Work correctly in multibyte locales.
103025 2005-08-16  Bruno Haible  <bruno@clisp.org>
103027         * lib/mbiter.h: New file.
103029 2005-08-16  Bruno Haible  <bruno@clisp.org>
103031         * lib/mbfile.h: New file.
103033 2005-08-16  Bruno Haible  <bruno@clisp.org>
103035         * lib/mbchar.h: New file.
103036         * lib/mbchar.c: New file.
103038 2005-08-16  Bruno Haible  <bruno@clisp.org>
103040         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
103041         the valid ones. Makes the comparison operations transitive:
103042         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
103043         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
103045 2005-08-15  Simon Josefsson  <jas@extundo.com>
103047         * modules/ssize_t (License): Change to 'unlimited'.
103049         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
103051 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103053         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
103054         Add comments for each pending glibc patch.
103056 2005-08-15  Bruno Haible  <bruno@clisp.org>
103058         * lib/regex.h (__restrict_arr): Don't define to __restrict if
103059         __cplusplus is defined.
103061 2005-08-14  Jim Meyering  <jim@meyering.net>
103063         Sync from coreutils.
103065         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
103066         Use the hash-table-based cycle-detection code not just when
103067         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
103068         Reported by James Youngman in
103069         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
103070         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
103071         FTS_TIGHT_CYCLE_CHECK.
103072         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
103073         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
103074         once again.
103075         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
103076         * lib/fts.c (fd_safer): Remove decl.
103077         Include fcntl--.h rather than unistd-safer.h
103078         (fts_safe_changedir): Don't call fd_safer; no longer needed
103079         now that we include fcntl--.h.
103081 2005-08-12  Simon Josefsson  <jas@extundo.com>
103083         * modules/getndelim2: Use ssize_t module.
103084         * modules/getnline: Likewise.
103085         * modules/safe-read: Likewise.
103086         * modules/xreadlink: Likewise.
103088         * modules/ssize_t: New file.
103090 2005-08-12  Simon Josefsson  <jas@extundo.com>
103092         * m4/readline.m4: Look for termcap, curses or ncurses if required.
103094 2005-08-12  Simon Josefsson  <jas@extundo.com>
103096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103097         ssize_t.
103099 2005-08-12  Simon Josefsson  <jas@extundo.com>
103101         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
103102         readline, getdelim and check_version.
103103         (Support for systems lacking ISO C 99: Sizes of integer types):
103104         Add size_max.
103106 2005-08-12  Bruno Haible  <bruno@clisp.org>
103108         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
103110 2005-08-11  Simon Josefsson  <jas@extundo.com>
103112         * modules/readline: New file.
103114         * modules/strnlen (Files): Add strnlen.h.
103116 2005-08-11  Simon Josefsson  <jas@extundo.com>
103118         * m4/readline.m4: New file.
103120 2005-08-11  Simon Josefsson  <jas@extundo.com>
103122         * lib/readline.h, readline.c: New file.
103124 2005-08-11  Simon Josefsson  <jas@extundo.com>
103126         * doc/gnulib.texi (Initial import, Finishing touches): Mention
103127         gl_AVOID.
103129 2005-08-11  Bruno Haible  <bruno@clisp.org>
103131         * lib/strnlen.h (strnlen): Change parameter name to match comment.
103133 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
103135         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
103137 2005-08-10  Simon Josefsson  <jas@extundo.com>
103139         * tests/test-iconvme.c: New file.
103141 2005-08-10  Simon Josefsson  <jas@extundo.com>
103143         * m4/strnlen.m4: New file.
103145         * m4/strndup.m4: Don't check for strnlen declaration, done in
103146         strnlen.m4.
103148 2005-08-10  Simon Josefsson  <jas@extundo.com>
103150         * lib/strndup.c: Use strnlen.h.
103152         * lib/strnlen.h: New file.
103154 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103156         * README: Typos.
103158 2005-08-02  Simon Josefsson  <jas@extundo.com>
103160         * modules/readline: New file.
103162 2005-08-02  Simon Josefsson  <jas@extundo.com>
103164         * modules/getdelim: New file.
103166         * modules/getline: Rewrite, don't use getndelim2.
103168 2005-08-02  Simon Josefsson  <jas@extundo.com>
103170         * m4/getline.m4: Separate out getdelim stuff into separate module.
103172         * m4/getdelim.m4: New file.
103174 2005-08-02  Simon Josefsson  <jas@extundo.com>
103176         * lib/getline.h, getline.c: Rewrite.
103178         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
103180 2005-07-31  Bruno Haible  <bruno@clisp.org>
103182         * lib/lock.h (gl_lock_initializer): New macro.
103183         (gl_lock_define_initialized): Use it.
103184         (gl_rwlock_initializer): New macro.
103185         (gl_rwlock_define_initialized): Use it.
103186         (gl_recursive_lock_initializer): New macro.
103187         (gl_recursive_lock_define_initialized): Use it.
103189 2005-07-30  Karl Berry  <karl@gnu.org>
103191         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
103192         Report from Ben Pfaff, regarding getopt.
103194 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
103196         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
103197         normal way.
103198         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
103199         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
103200         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
103201         (gl_GETOPT): Use the new macros.  Most of the implementation
103202         is moved to the new macros.  This is for programs like Emacs
103203         that don't want all the functionality of gl_GETOPT.
103205 2005-07-26  Bruno Haible  <bruno@clisp.org>
103207         * m4/lock.m4: Update from GNU gettext.
103209 2005-07-26  Bruno Haible  <bruno@clisp.org>
103211         * lib/lock.h: Update from GNU gettext.
103212         * lib/lock.c: Update from GNU gettext.
103214 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
103216         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
103217         obsolescent AC_TRY_RUN.  Include the default includes files, for
103218         'exit'.
103220 2005-07-24  Bruno Haible  <bruno@clisp.org>
103222         * modules/visibility: New file.
103223         * MODULES.html.sh (Misc): Add visibility.
103225 2005-07-24  Bruno Haible  <bruno@clisp.org>
103227         * m4/visibility.m4: New file.
103229 2005-07-24  Bruno Haible  <bruno@clisp.org>
103231         * doc/visibility.texi: New file.
103233 2005-07-22  Bruno Haible  <bruno@clisp.org>
103235         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
103236         $(ALLOCA_H), redundant through BUILT_SOURCES.
103237         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
103238         redundant through BUILT_SOURCES.
103239         * modules/byteswap (Makefile.am): Remove explicit dependency on
103240         $(BYTESWAP_H), redundant through BUILT_SOURCES.
103241         * modules/fnmatch (Makefile.am): Remove explicit dependency on
103242         $(FNMATCH_H), redundant through BUILT_SOURCES.
103243         * modules/getopt (Makefile.am): Remove explicit dependency on
103244         $(GETOPT_H), redundant through BUILT_SOURCES.
103245         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
103246         redundant through BUILT_SOURCES.
103247         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
103248         redundant through BUILT_SOURCES.
103249         * modules/stdbool (Makefile.am): Remove explicit dependency on
103250         $(STDBOOL_H), redundant through BUILT_SOURCES.
103251         * modules/stdint (Makefile.am): Remove explicit dependency on
103252         $(STDINT_H), redundant through BUILT_SOURCES.
103253         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
103254         Remove explicit dependency on $(SYSEXITS_H).
103255         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
103257 2005-07-18  Simon Josefsson  <jas@extundo.com>
103259         * lib/check-version.c (check_version): Accept identical versions too.
103261 2005-07-18  Bruno Haible  <bruno@clisp.org>
103263         * modules/lock: New file.
103264         * MODULES.html.sh (Multithreading): New section.
103266 2005-07-18  Bruno Haible  <bruno@clisp.org>
103268         * m4/lock.m4: New file, from GNU gettext.
103270 2005-07-18  Bruno Haible  <bruno@clisp.org>
103272         * lib/lock.h: New file, from GNU gettext.
103273         * lib/lock.c: New file, from GNU gettext.
103275 2005-07-18  Bruno Haible  <bruno@clisp.org>
103277         * lib/lock.h (gl_once_t): New type.
103278         (gl_once_define, gl_once): New macros.
103279         * lib/lock.c (fresh_once): New variable.
103280         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
103281         functions.
103283 2005-07-16  Simon Josefsson  <jas@extundo.com>
103285         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
103286         workaround, suggested by Bruno.
103288 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103290         * modules/xalloc (Depends-on): Add xalloc-die.
103291         * modules/xvasprintf (Depends-on): Add xalloc-die.
103293 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103295         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
103296         with a minor change.
103298 2005-07-15  Bruno Haible  <bruno@clisp.org>
103300         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
103301         When using lib/poll.c, define poll as rpl_poll.
103303 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
103305         * modules/argp (Depends-on): Remove unlocked-io.
103307 2005-07-14  Derek Price  <derek@ximbiot.com>
103309         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
103310         for glob symlink bug.
103312 2005-07-14  Bruno Haible  <bruno@clisp.org>
103314         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
103315         Instead, test for *_unlocked function declarations directly.
103317 2005-07-11  Simon Josefsson  <jas@extundo.com>
103319         * modules/size_max: New file.
103321         * modules/xsize: Depend on size_max module for size_max.m4.
103323 2005-07-11  Simon Josefsson  <jas@extundo.com>
103325         * lib/size_max.h: New file.
103327 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
103329         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
103330         copyright symbol and the year.
103331         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
103332         (version_etc_va): Use parameterized copyright notice.
103333         Reword to conform to the current GNU coding standards.
103335 2005-07-11  Karl Berry  <karl@gnu.org>
103337         * doc/gnulib.texi (Quoting): new node.
103338         (Initial import): more info, from Patrice.
103340 2005-07-11  Bruno Haible  <bruno@clisp.org>
103342         * gnulib-tool (func_usage): Document option --avoid.
103343         (Command line options): Handle --avoid.
103344         (func_acceptable): New function.
103345         (func_modules_transitive_closure): Use it.
103347 2005-07-11  Bruno Haible  <bruno@clisp.org>
103349         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
103350         Reported by Jim Meyering.
103352 2005-07-10  Bruno Haible  <bruno@clisp.org>
103354         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
103355         Needed when size_t is smaller than 'unsigned int'.
103356         Reported by Paul Eggert.
103358 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103360         * modules/argp (Depends-on): Add unlocked-io
103362 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103364         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
103365         block of defines.
103367 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
103369         * config/srclist.txt: Comment out regcomp.c, since we have a porting
103370         fix now.
103372 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
103373         and Paul Eggert  <eggert@cs.ucla.edu>
103375         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
103376         in wint_t, not wchar_t.  Remove now-unnecessary cast.
103378 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103380         * modules/regex (Files): Add lib/regex_internal.c,
103381         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
103382         (Depends-on): Add extensions.
103383         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
103385 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103387         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
103388         pathconf.
103389         * m4/same.m4 (gl_SAME): Likewise.
103390         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
103392         * m4/regex.m4: Adjust to new libc regex implementation.
103393         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
103394         all the .c and .h parts of (the new) regex.
103395         Quote the m4 stuff better.
103396         Check for RE_ICASE bug of old gnulib.
103397         Check for REG_STARTEND of recent libc.
103398         Rename local variables from jm_* to gl_*.
103399         Quote operand of "test -f".
103400         Say "recent enough" version of libc, not "version 2".
103401         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
103402         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
103403         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
103404         Remove check for btowc, isascii.
103405         Require AM_LANGINFO_CODESET.
103407 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103409         * lib/regex.c, regex.h: Sync from libc.
103410         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
103411         * lib/regexec.c:
103412         New files, synced from libc, except that regex_internal.h
103413         currently has a small porting fix.
103415 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103417         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
103418         regex_internal.c, regexec.c.
103419         Add regex_internal.h too, but as a comment, since the libc version
103420         is currently broken in gnulib mode.
103422 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
103424         Support programs like Emacs that use gnulib but not gettext.
103425         * MODULES.html.sh (Internationalization functions): Add gettext-h.
103426         * modules/gettext-h: New file.
103427         * modules/gettext (Files): Remove lib/gettext.h.
103428         (Depends-on): Add gettext-h.
103429         (Makefile.am): Remove lib_SOURCES.
103430         * modules/argmatch, modules/c-stack, modules/closeout:
103431         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
103432         * modules/execute, modules/file-type, modules/getaddrinfo:
103433         * modules/getopt, modules/human, modules/javacomp:
103434         * modules/javaexec, modules/mkdir-p, modules/obstack:
103435         * modules/openat, modules/pagealign_alloc, modules/pipe:
103436         * modules/quotearg, modules/regex, modules/rpmatch:
103437         * modules/unicodeio, modules/userspec, modules/version-etc:
103438         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
103439         * modules/xsetenv:
103440         Depend on gettext-h, not gettext.
103442 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
103444         * gnulib-tool (func_import): Add support for 'public domain' license.
103445         * modules/alloca, modules/atexit, modules/memmove:
103446         Now public domain, not GPL.
103447         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
103448         * modules/realloc, modules/strerror, modules/strtod:
103449         Now LGPL, not GPL.
103451 2005-07-05  Bruno Haible  <bruno@clisp.org>
103453         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
103454         autoconf CVS. Needed for mingw.
103456 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103458         Remove the dependency of the strftime module on the tzset module.
103459         * modules/strftime (Depends-on): Remove dependency on tzset.
103461 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103463         Remove the dependency of the strftime module on the tzset module.
103464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
103465         gl_FUNC_TZSET_CLOBBER.
103467 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103469         Remove the dependency of the strftime module on the tzset module.
103470         * lib/strftime.c (my_strftime)
103471         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
103472         Copy the input structure, to work around some of the bug with
103473         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
103474         Solaris releases, you should also use the tzset module, but we won't
103475         require it as a dependency any more since we don't want LGPLed code
103476         to depend on GPLed code.
103478 2005-07-02  Jim Meyering  <jim@meyering.net>
103480         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
103481         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
103482         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
103483         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
103485 2005-07-02  Jim Meyering  <jim@meyering.net>
103487         * lib/backupfile.c (backup_args): Change a `0' to NULL.
103489 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
103491         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
103492         declares only 'struct timespec;' (!).
103494 2005-07-01  Jim Meyering  <jim@meyering.net>
103496         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
103497         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
103498         * lib/save-cwd.c, tempname.c:
103499         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103500         and don't include <sys/file.h>).
103502 2005-06-29  Jim Meyering  <jim@meyering.net>
103504         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
103505         type name.  Use the variable name instead.
103506         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
103507         Likewise.
103509 2005-06-28  Simon Josefsson  <jas@extundo.com>
103511         * modules/check-version (Files): Add check-version.m4.
103513 2005-06-28  Simon Josefsson  <jas@extundo.com>
103515         * m4/check-version.m4: New file, suggested by Jim Meyering
103516         <jim@meyering.net>.
103518 2005-06-28  Simon Josefsson  <jas@extundo.com>
103520         * lib/check-version.h, lib/check-version.c: New files.
103522 2005-06-28  Simon Josefsson  <jas@extundo.com>
103524         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
103525         collision with global variable.  Better indentation.  Don't
103526         increment buffer pointer beyond buffer end.  Based on comments
103527         from Paul Eggert <eggert@cs.ucla.edu>.
103529         * lib/base64.h: Indent.
103531 2005-06-28  Simon Josefsson  <jas@extundo.com>
103533         * doc/gnulib.texi (Library version handling): New section.
103535 2005-06-28  Jim Meyering  <jim@meyering.net>
103537         * check-module (find_included_lib_files): Hard-code another
103538         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
103539         but modules/fts-lgpl (correctly) does not list those files.
103541         * modules/canonicalize (Files): Add lib/pathmax.h.
103543 2005-06-25  Simon Josefsson  <jas@extundo.com>
103545         * modules/check-version: New file.
103547 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
103549         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
103550         initializer of struct addrinfo, as an indication that we don't
103551         care how many members the structure has.
103553 2005-06-24  Derek Price  <derek@ximbiot.com>
103554         and Bruno Haible  <bruno@clisp.org>
103556         Remove stat module & update lstat.
103557         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
103558         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103559         * m4/stat.m4: Remove this file.
103561 2005-06-24  Derek Price  <derek@ximbiot.com>
103562         and Bruno Haible  <bruno@clisp.org>
103564         Remove stat module & update lstat.
103565         * lib/stat.c: Remove this file...
103566         (slash_aware_lstat): ...moving this content and its support...
103567         * lib/lstat.c (rpl_lstat): ...into here.
103568         * lib/lstat.h: New file.
103570 2005-06-24  Derek Price  <derek@ximbiot.com>
103571         and Bruno Haible  <bruno@clisp.org>
103573         Remove stat module & update lstat.
103574         * config/srclist.txt (libc sources): Remove stat.
103576 2005-06-24  Derek Price  <derek@ximbiot.com>
103577         and Bruno Haible  <bruno@clisp.org>
103579         Remove stat module & update lstat.
103580         * MODULES.html.sh (stat): Remove.
103581         * MODULES.html: Regenerated.
103582         * modules/lstat (Description): Correct function name.
103583         (Files): Add "lstat.h".
103584         (Depends-on): Remove stat, add xalloc, stat-macros.
103585         * modules/stat: Remove this file.
103586         (Include): Add "lstat.h", remove <sys/stat.h>.
103588 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103590         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
103591         (ranged_convert): Don't save conversion in a temporary struct.
103592         This causes a warning with GCC 4.0.0, and anyway in the typical
103593         case it's not worth the extra 100 bytes or so of code.
103594         (ranged_convert, __mktime_internal): When calling a function via a
103595         pointer P, use P () rather than (*P) (), as we now assume C89 or
103596         better.
103598 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103600         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103601         "who -r" failed to give output.  Problem reported by Tim Waugh.
103603         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103604         (xcalloc): Use it to avoid needless tests.
103605         Problem reported by Jim Meyering.
103607 2005-06-20  Derek Price  <derek@ximbiot.com>
103609         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103610         unnecessary for Autoconfs > 2.59c.
103612 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103614         * lib/argp.h (__option_is_short): Check upper limit of
103615         __key. Isprint() requires its argument to have the value
103616         of an unsigned char or EOF.
103618 2005-06-16  Jim Meyering  <jim@meyering.net>
103620         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103621         when either N or S is zero.
103623 2005-06-16  Derek Price  <derek@ximbiot.com>
103625         * m4/bison.m4: Declare YACC & YFLAGS precious.
103627 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103629         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103630         multibyte string or pattern, fall back on unibyte matching.
103631         Problem reported by James Youngman.
103633 2005-06-08  Bruno Haible  <bruno@clisp.org>
103635         * modules/csharpcomp: New file.
103636         * MODULES.html.sh (C#): Add csharpcomp.
103638 2005-06-08  Bruno Haible  <bruno@clisp.org>
103640         * m4/csharpcomp.m4: New file, from GNU gettext.
103642 2005-06-08  Bruno Haible  <bruno@clisp.org>
103644         * lib/csharpcomp.h: New file, from GNU gettext.
103645         * lib/csharpcomp.c: New file, from GNU gettext.
103646         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103648 2005-06-08  Bruno Haible  <bruno@clisp.org>
103650         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103651         warning on mingw.
103653 2005-06-07  Derek Price  <derek@ximbiot.com>
103655         Sync from CVS.
103656         * lib/glob_.h: Indent nested #ifdef.
103658 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103660         Sync from coreutils.
103661         Use "file name" when talking about file names, instead of "filename"
103662         or "path", as per the GNU coding standards.
103663         * lib/mkdir-p.c: Renamed from makepath.c.
103664         (make_dir_parents): Renamed from make_path.  All callers changed.
103665         * lib/mkdir-p.h: Likewise.  All includers changed.
103666         * lib/filenamecat.c: Renamed from path-concat.c.
103667         (file_name_concat): Renamed from path_concat.  All callers changed.
103668         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103669         * lib/filenamecat.h: Likewise.  All includers changed.
103670         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103671         in comments or local variable names.
103672         * lib/basename.c: Likewise.
103673         * lib/canonicalize.c, canonicalize.h: Likewise.
103674         * lib/dirname.c, dirname.h: Likewise.
103675         * lib/euidaccess.c: Likewise.
103676         * lib/exclude.c: Likewise
103677         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103678         * lib/fsusage.c, fsuage.h: Likewise.
103679         * lib/fts.c, fts_.h: Likewise.
103680         * lib/getcwd.c: Likewise.
103681         * lib/getloadavg.c: Likewise.
103682         * lib/mkstemp.c: Likewise.
103683         * lib/mountlist.c, mountlist.h: Likewise.
103684         * lib/openat.c, openat.h: Likewise.
103685         * lib/readlink-stub.c: Likewise.
103686         * lib/readutmp.c, readutmp.h: Likewise.
103687         * lib/rename.c: Likewise.
103688         * lib/rmdir.c: Likewise.
103689         * lib/same.c: Likewise.
103690         * lib/savedir.c: Likewise.
103691         * lib/stripslash.c: Likewise.
103692         * lib/tempname.c: Likewise.
103693         * lib/xreadlink.c: Likewise.
103694         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103695         All uses changed.
103696         * lib/exclude.h: Likewise.
103698         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103699         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103700         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103701         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103702         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103703         files have been getting away with it for years (MORE/BSD 4.3
103704         is extinct now).
103705         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103706         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103708         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103709         Define to 256, not 255, as per modern POSIX.
103711 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103713         Sync from coreutils.
103714         Use "file name" when talking about file names, instead of "filename"
103715         or "path", as per the GNU coding standards.
103716         * MODULES.html.sh: mkdir-p renamed from makepath.
103717         filenamecat renamed from path-concat.
103718         * modules/filenamecat: Renamed from modules/path-concat.
103719         (Files): filenamecat.h and filenamecat.c renamed from
103720         path-concat.h and path-concat.c.
103721         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103722         (Include): filenamecat.h, not path-concat.h.
103723         * modules/mkdir-p: Renamed from modules/makepath.
103724         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103725         makepath.c.
103726         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103727         (Include): mkdir-p.h, not makepath.h.
103729 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103731         Sync from coreutils.
103732         * m4/mkdir-p.m4: Renamed from makepath.m4.
103733         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103734         Rename files from makepath.c to mkdir-p.c, and from
103735         makepath.h to mkdir-p.h.
103736         * m4/filenamecat.m4: Renamed from path-concat.m4.
103737         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103738         Rename files from path-concat.c to filenamecat.c,
103739         and from path-concat.h to filenamecat.h.
103740         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103741         "file name" in local variables or comments.
103742         * m4/rename.m4: Likewise.
103744 2005-06-01  Bruno Haible  <bruno@clisp.org>
103746         * modules/csharpexec: New file.
103747         * MODULES.html.sh (C#): New section.
103749 2005-06-01  Bruno Haible  <bruno@clisp.org>
103751         * m4/csharp.m4: New file, from GNU gettext.
103752         * m4/csharpexec.m4: New file, from GNU gettext.
103754 2005-06-01  Bruno Haible  <bruno@clisp.org>
103756         * lib/csharpexec.h: New file, from GNU gettext.
103757         * lib/csharpexec.c: New file, from GNU gettext.
103758         * lib/csharpexec.sh.in: New file, from GNU gettext.
103760 2005-05-31  Derek Price  <derek@ximbiot.com>
103761             Paul Eggert  <eggert@cs.ucla.edu>
103763         Sync from cvs.
103764         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103766 2005-05-31  Derek Price  <derek@ximbiot.com>
103767             Paul Eggert  <eggert@cs.ucla.edu>
103769         Sync from cvs.
103770         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103772 2005-05-29  Derek Price  <derek@ximbiot.com>
103774         * config/srclist.txt (glob_.h, glob.c): Add these files.
103776 2005-05-29  Derek Price  <derek@ximbiot.com>
103778         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
103779         * modules/glob: New file.
103780         * modules/getlogin_r: Add link to POSIX spec in description.
103782 2005-05-29  Derek Price  <derek@ximbiot.com>
103783             Paul Eggert  <eggert@cs.ucla.edu>
103785         * m4/glob.m4: New file.
103787 2005-05-29  Derek Price  <derek@ximbiot.com>
103788             Paul Eggert  <eggert@cs.ucla.edu>
103790         * lib/glob_.h, lib/glob.c: New files.
103792 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103794         * modules/fts (Files): Remove m4/inttypes-pri.m4.
103795         * modules/fts-lgpl (Depends-on): Remove gettext.
103797 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
103800         and don't require gt_INTTYPES_PRI.
103802 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103804         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
103806         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
103807         the configuration hassle isn't worth it.
103808         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
103809         (LONGEST_MODIFIER, PRIuMAX): Remove.
103811 2005-05-27  Bruno Haible  <bruno@clisp.org>
103813         * lib/getlogin_r.h: Remove second include of <stddef.h>.
103815 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
103817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
103818         _POSIX_PTHREAD_SEMANTICS for Solaris.
103820 2005-05-25  Derek Price  <derek@ximbiot.com>
103822         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
103824 2005-05-25  Derek Price  <derek@ximbiot.com>
103825             Paul Eggert  <eggert@cs.ucla.edu>
103827         * modules/getlogin_r, m4/getlogin_r.m4: New files.
103828         * lib/getlogin_r.c, getlogin_r.h: New files.
103830 2005-05-25  Bruno Haible  <bruno@clisp.org>
103831             Derek Price  <derek@ximbiot.com>
103833         * lib/getlogin_r.h: Simplify API documentation.
103835 2005-05-23  Derek Price  <derek@ximbiot.com>
103837         * modules/minmax (Files): Add m4/minmax.m4.
103838         (configure.ac): Add gl_MINMAX.
103840 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
103842         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
103843         so that unistd-safer.h (GPL'ed code) need not be included.
103845 2005-05-22  Bruno Haible  <bruno@clisp.org>
103847         * m4/minmax.m4: New file.
103848         Based on a patch by Derek Price <derek@ximbiot.com>.
103850 2005-05-22  Bruno Haible  <bruno@clisp.org>
103852         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
103853         (INT64_MIN): Fix definition.
103854         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
103856         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
103857         NEED_SIGNED_INT_TYPES.
103859         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103860         HAVE_SYSTEM_INTTYPES.
103862 2005-05-22  Bruno Haible  <bruno@clisp.org>
103864         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103865         Also include <sys/param.h> if it defines MIN, MAX.
103866         Based on a patch by Derek Price <derek@ximbiot.com>.
103868 2005-05-21  Jim Meyering  <jim@meyering.net>
103870         * modules/fts (Files): Add m4/inttypes-pri.m4.
103871         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103873 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103875         New fts module.
103876         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103877         (setup_dir, free_dir): New functions.
103878         (enter_dir, leave_dir): Define trivial
103879         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103880         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103881         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103882         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103883         Move to fts-cycle.c.
103884         (fts_open): Use setup_dir.
103885         (fts_close): Use free_dir.
103886         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103887         This adds a label and some gotos, but the alternatives were messier.
103888         Check for memory allocation failure when entering a dir.
103889         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103890         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103891         (FTS): New member fts_cycle, that is a union that contains the
103892         old active_dir_ht and cycle_state.  All uses changed to mention
103893         fts_cycle.ht and fts_cycle.state.
103894         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103895         fts.c, with the following changes:
103896         (setup_dir, free_dir): New functions.
103897         (enter_dir): Now returns bool.  Return true if successful, false
103898         if memory exhausted.  All callers changed.
103899         Do not bother partly cleaning up on
103900         memory allocation failure; that is free_dir's job.
103901         However, free ad if hash_insert fails, to avoid memory leak.
103902         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103903         fts->fts_options to see which union member to use.
103905 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103908         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103910 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103912         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103914 2005-05-20  Jim Meyering  <jim@meyering.net>
103916         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103917         Now a macro, to pacify GCC.
103919 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103921         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
103922         of -1.
103924 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103926         * lib/chown.c (rpl_chown): Return -1 on failure.
103928 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103930         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
103931         Don't check for stddef.h.
103932         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
103933         don't use its results.
103934         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
103935         since we include them unconditionally.  Don't require
103936         AM_STDBOOL_H, since stdbool is a prerequisite.
103937         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
103938         since we assume C89 or better.
103939         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
103940         as we don't use their results.
103941         Don't check for fchdir, memmove, memset, strrchr, as we use
103942         them unconditionally.
103943         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
103944         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
103946 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103948         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
103949         Include <stddef.h> unconditionally, since we assume C89 now.
103950         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
103951         * lib/fts.c: Include fts_.h first, to check interface.
103952         Do not include intprops.h; no longer needed.
103953         Include cycle-check.h and hash.h, since fts_.h no longer does.
103954         Remove unnecessary casts of closedir to void.
103955         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
103956         decide whether to decrement nlinks.
103957         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
103958         (FTS): Use struct hash_table * instead of Hash_table, so that
103959         we no longer need to include hash.h here.
103961 2005-05-18  Jim Meyering  <jim@meyering.net>
103963         * modules/dirfd (License): Change to LGPL.  Most of the code
103964         is already in the public domain.
103966 2005-05-18  Jim Meyering  <jim@meyering.net>
103968         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
103969         Reported by Yoann Vandoorselaere.
103971 2005-05-17  Jim Meyering  <jim@meyering.net>
103973         * m4/fts.m4: New file, from coreutils.
103975 2005-05-17  Jim Meyering  <jim@meyering.net>
103977         * lib/fts.c, lib/fts_.h: New files, from coreutils.
103979 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103981         Sync from coreutils.
103982         * m4/unlinkdir.m4: New file.
103984 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103986         Sync from coreutils.
103987         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
103988         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
103989         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
103990         White space changes only.
103991         * lib/makepath.c (make_path): Port to hosts where leading "//" is
103992         special.
103993         * lib/yesno.c: Include getline.h, not ctype.h.
103994         (yesno): Don't remove leading white space; POSIX doesn't allow it.
103995         Use getline to remove arbitrary restriction on response length.
103997 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103999         * config/srclist-update: Spell out "Street" in FSF postal
104000         mail address; this is the style the FSF seems to prefer.
104002         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
104003         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
104004         this updates FSF postal mail address.
104006         Sync from coreutils.
104007         * modules/unlinkdir: New file.
104008         * modules/yesno (Depends-on): Add getline.
104009         * MODULES.html.sh (File system functions): Add unlinkdir.
104011 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104013         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
104014         lib/strsep.h:
104015         Change the initial comment to refer to GPL, not LGPL.
104016         gnulib-tool will change it to LGPL as needed.
104018         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
104019         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
104020         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
104021         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
104022         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
104023         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
104024         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
104025         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
104026         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
104027         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
104028         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
104029         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
104030         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
104031         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
104032         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
104033         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
104034         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
104035         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
104036         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
104037         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
104038         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
104039         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
104040         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
104041         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
104042         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
104043         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
104044         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
104045         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
104046         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
104047         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
104048         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
104049         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
104050         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
104051         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
104052         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
104053         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
104054         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
104055         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
104056         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
104057         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
104058         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
104059         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
104060         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
104061         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
104062         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
104063         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
104064         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
104065         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
104066         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
104067         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
104068         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104069         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
104070         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
104071         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
104072         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
104073         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
104074         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
104075         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
104076         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
104077         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
104078         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
104079         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
104080         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
104081         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
104082         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
104083         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
104084         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
104085         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
104086         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
104087         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
104088         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
104089         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
104090         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
104091         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
104092         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
104093         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
104094         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
104095         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
104096         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
104097         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
104098         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
104099         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
104100         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
104101         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
104102         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
104103         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
104104         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
104105         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
104106         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
104107         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
104108         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
104109         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
104110         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
104111         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
104112         lib/yesno.c, lib/yesno.h:
104113         Update FSF postal mail address.
104115 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104117         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
104118         tests/test-memmem.c, tests/test-stpncpy.c:
104119         Update FSF postal mail address.
104121 2005-05-13  Bruno Haible  <bruno@clisp.org>
104123         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
104124         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
104125         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
104126         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
104127         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
104128         Add support for 64-bit integers in the MSVC compiler.
104130 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104132         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
104134 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
104136         * gnulib-tool (func_import): Sort and uniquify recommended includes.
104138 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
104140         * doc/getdate.texi (General date syntax): Don't say that date
104141         date --iso-8601=ns generates acceptable dates; it doesn't yet.
104142         Problem reported by Nic Ferrier.
104144 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104146         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
104147         specified in ai_socktype. Fix invalid ai_protocol
104148         check. ai_protocol is usually set to 0 or depending on
104149         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
104150         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
104151         ai_socktype / ai_protocol in the returned addrinfo structure.
104153 2005-05-10  Simon Josefsson  <jas@extundo.com>
104155         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
104156         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104158 2005-05-10  Karl Berry  <karl@gnu.org>
104160         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
104161         (from http://www.gnu.org/licenses).
104162         * doc/COPYING.LIB: also rename to COPYING.LESSER.
104163         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
104164         fdl.texi suffices.
104166 2005-05-10  Karl Berry  <karl@gnu.org>
104168         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
104169         (COPYING.DOC): remove.
104171         * config/srclist-update: new FSF address.
104173 2005-05-10  Derek Price  <derek@ximbiot.com>
104175         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
104176         possible.
104178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104179             Bruno Haible  <bruno@clisp.org>
104181         * modules/inet_ntop: New file.
104182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104183         inet_ntop.
104185 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104186             Bruno Haible  <bruno@clisp.org>
104188         * m4/inet_ntop.m4: New file.
104190 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104191             Bruno Haible  <bruno@clisp.org>
104193         * lib/inet_ntop.h: New file.
104194         * lib/inet_ntop.c: New file, from glibc with modifications.
104196 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
104198         * modules/time_r (License): Change to LGPL.
104199         * modules/extensions (License): Change to LGPL.  Actually,
104200         the license is more permissive than that, but currently gnulib-tool
104201         doesn't know how to handle more-permissive licenses.
104203         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
104204         Problem reported by Dave Love.
104206 2005-05-08  Jim Meyering  <jim@meyering.net>
104208         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
104209         blank.
104211 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
104213         * modules/argmatch (Depends-on): Add stdbool.
104214         * modules/backupfile (Depends-on): Likewise.
104215         * modules/chdir-long (Depends-on): Likewise.
104216         * modules/closeout (Depends-on): Likewise.
104217         * modules/cycle-check (Depends-on): Likewise.
104218         * modules/dirname (Depends-on): Likewise.
104219         * modules/fnmatch (Depends-on): Likewise.
104220         * modules/fsusage (Depends-on): Likewise.
104221         * modules/fwriteerror (Depends-on): Likewise.
104222         * modules/getcwd (Depends-on): Likewise.
104223         * modules/getloadavg (Depends-on): Likewise.
104224         * modules/hard-locale (Depends-on): Likewise.
104225         * modules/makepath (Depends-on): Likewise.
104226         * modules/mountlist (Depends-on): Likewise.
104227         * modules/nanosleep (Depends-on): Likewise.
104228         * modules/posixtm (Depends-on): Likewise.
104229         * modules/quotearg (Depends-on): Likewise.
104230         * modules/readtokens (Depends-on): Likewise.
104231         * modules/readtokens0 (Depends-on): Likewise.
104232         * modules/readutmp (Depends-on): Likewise.
104233         * modules/save-cwd (Depends-on): Likewise.
104234         * modules/strftime (Depends-on): Likewise.
104235         * modules/userspec (Depends-on): Likewise.
104236         * modules/utimecmp (Depends-on): Likewise.
104237         * modules/xgetcwd (Depends-on): Likewise.
104238         * modules/xnanosleep (Depends-on): Likewise.
104239         * modules/xstrtod (Depends-on): Likewise.
104240         * modules/yesno (Depends-on): Likewise.
104242 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
104244         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
104245         needless checks.
104247 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104249         Merge from coreutils.  Among other things,
104250         add bulletproofing for cases where stdin, stdout, or stderr are closed.
104251         * lib/fd-safer.c: New file.
104252         * lib/fcntl-safer.h, open-safer.c: Remove.
104253         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
104254         * lib/dup-safer.c: Include unistd-safer.h first.
104255         Don't include errno.h.
104256         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
104257         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
104258         * lib/file-type.c: Rely on file-type.h change.
104259         * lib/getloadavg.c: Include unistd-safer.h.
104260         (getloadavg): Use safer open.
104261         * lib/getusershell.c: Include "stdio-safer.h".
104262         (getusershell): Use safer fopen.
104263         * lib/long-options.c (long_options): Use NULL rather than 0.
104264         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
104265         'free'.
104266         * lib/modechange.c: Likewise.
104267         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
104268         (MODE_DONE): New constant.
104269         (struct mode_change): Remove 'next' member.
104270         (make_node_op_equals): New function; like the old one of the
104271         same name, except it allocates an array.
104272         (mode_compile, mode_create_from_ref): Use it.
104273         (mode_compile): Allocate result as an array, not a linked list.
104274         Parse octal string ourself, so that we catch mistakes like "+0".
104275         (mode_adjust): Arg is an array, not a linked list.
104276         * lib/modechange.c: Include stat-macros.h, xalloc.h.
104277         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
104278         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
104279         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
104280         Remove.  This is now stat-macros.h's job.
104281         (talloc): Remove.  All callers replaced by xalloc, so that
104282         our invokers don't have to worry about reporting memory failures.
104283         (make_node_op_equals): Remove.
104284         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104285         New constants.
104286         (struct mode_change): Moved here from modechange.h.
104287         (mode_append_entry): Remove.
104288         (mode_compile): Remove MASKED_OPS arg, since it encouraged
104289         apps to have incorrect behavior.  Use simpler algorithm for head
104290         and tail.  Don't futz with umask; that's now the job of mode_adjust.
104291         Detect more invalid usages rather than having somewhat-random behavior.
104292         Don't insert an "a=" action, as that leads to incorrect behavior.
104293         (mode_compile, mode_create_from_ref): Return NULL on error instead
104294         of an enum, since now there's only one way to have an error.  All
104295         callers changed.
104296         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
104297         at the correct time.  Simplify calculation of "+u" and its ilk.
104298         Don't mishandle "+X".
104299         (mode_free): Remove "register" and localize decls.
104300         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104301         (struct mode_change): Move to modechange.c; callers don't
104302         need to see this stuff.
104303         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
104304         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
104305         (mode_change, mode_adjust): Reflect the new signatures noted above.
104306         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
104307         that might redefine system include files.
104308         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
104309         (my_usleep): Use NULL rather than (void *) 0.
104310         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
104311         Use siginterrupt to specify that system calls should be interrupted.
104312         (rpl_nanosleep): Move initialization of suspended closer to call of
104313         my_usleep.
104314         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
104315         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
104316         (desirable_utmp_entry): New function.
104317         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
104318         using x2nrealloc, to simplify logic.
104319         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
104320         size calculation.  Do not assume utmp file is a regular file.
104321         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
104322         (READ_UTMP_CHECK_PIDS): New constant.
104323         * lib/save-cwd.c: Include unistd-safer.h.
104324         (save_cwd): Use fd_safer.
104325         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
104326         [!_LIBC] Include "stat-macros.h" instead.
104327         * lib/unistd-safer.h (fd_safer): New decl.
104329 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104331         * modules/getloadavg (Depends-on): Add unistd-safer.
104332         * modules/getusershell (Depends-on): Add stdio-safer.
104333         * modules/lstat (Depends-on): Remove xalloc.
104334         * modules/mkstemp (Depends-on): Add stat-macros.
104335         * modules/modechange (Depends-on): Remove xstrtol.
104336         Add stat-macros, xalloc.
104337         * modules/save-cwd (Depends-on): Add unistd-safer.
104338         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
104339         * modules/unistd-safer (Files): Add lib/fd-safer.c
104340         (Makefile.am): Remove lib_SOURCES.
104342         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
104343         Remove fcntl-safer; unistd-safer supersedes it.
104345 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104347         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
104348         AC_HEADER_STAT.
104349         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
104350         (gl_PREREQ_CHOWN): Remove.
104351         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
104352         it.  Don't require AC_HEADER_STAT.
104353         (gl_PREREQ_LSTAT): Remove.
104354         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
104355         Don't require AC_HEADER_STAT.
104356         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
104357         (gl_PREREQ_RMDIR): Remove.
104358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
104359         mention stat-macros.h or AC_HEADER_STAT, since we'll make
104360         the stat-macros module a prerequisite.
104361         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
104362         * m4/filemode.m4 (gl_FILEMODE): Likewise.
104363         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
104364         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
104365         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
104366         variable names.
104367         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
104368         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
104369         variable prefixes.
104370         * m4/fcntl-safer.m4: Remove.
104371         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
104372         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
104373         Invoke gl_PREREQ_FD_SAFER.
104374         (gl_PREREQ_FD_SAFER): New macro.
104375         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
104376         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
104377         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
104378         Remove duplicate call to AC_LIBOBJ(readutmp).
104379         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
104381         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
104382         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
104384 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104386         * MODULES.html.sh (Misc): Add byteswap.
104388 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104390         * modules/getcwd (Depends-on): Add extensions.
104391         * modules/openat (Depends-on): Likewise.
104393 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104395         * modules/byteswap: New file.
104397 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104399         * m4/byteswap.m4: New file.
104401 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104403         * lib/byteswap_.h: New file.
104405 2005-04-25  Karl Berry  <karl@gnu.org>
104407         * m4/gettext.m4: Update from GNU gettext 0.14.4.
104409 2005-04-25  Albert Chin  <china@thewrittenword.com>
104411         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
104412         Toolkit C bug.
104414 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
104416         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
104417         (func_ln_if_changed): Remove forcibly for no error message
104418         in case file does not exist.
104420 2005-04-19  Simon Josefsson  <jas@extundo.com>
104422         * gnulib-tool (Options): Make --symlink mean --symbolic.
104424 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
104426         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
104428 2005-04-16  Simon Josefsson  <jas@extundo.com>
104430         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
104432 2005-04-15  Simon Josefsson  <jas@extundo.com>
104434         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
104436 2005-04-15  Simon Josefsson  <jas@extundo.com>
104438         * gnulib-tool: Rename --symlink to --symbolic.
104440 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
104442         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
104443         symbolic links to files instead of copying/moving.  Add --aux-dir,
104444         specifying directory relative --dir where auxiliary build tools
104445         are placed.
104447 2005-04-14  Bruno Haible  <bruno@clisp.org>
104449         * modules/allocsa (License): Change to LGPL.
104450         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
104452 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104454         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
104455         that "UTC +1 second" continues to work.  Problem reported
104456         by Dmitry V. Levin.
104457         (relunit_snumber): New rule.
104458         (relunit): Use it.
104460 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
104462         * lib/getdate.y (universal_time_zone_table): New constant.
104463         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
104464         universal_time_zone_table.
104465         (lookup_zone): Prefer universal_time_zone_table to
104466         local_time_zone_table, so that "GMT" time stamps are allowed in
104467         London during the summer.  Problem reported by Ian Abbott.
104469 2005-04-12  Jim Meyering  <jim@meyering.net>
104471         * lib/human.c (humblock): Set *options even when returning due to
104472         xstrtoumax conversion failure.  Thanks to a used-uninitialized
104473         warning from gcc-4.
104475 2005-04-09  Jim Meyering  <jim@meyering.net>
104477         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
104478         -Wuninitialized: initialize tm0.tm_year.
104480 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104482         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
104483         count, since there's no maximum.  All uses changed.
104484         Add member dsts_seen.
104485         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
104486         not being INT_MAX.
104487         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
104488         Use pc_rels_seen to decide whether a date is absolute.
104490         * lib/getdate.y (number): Don't overwrite year.
104491         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
104492         check.
104494 2005-04-02  Simon Josefsson  <jas@extundo.com>
104496         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
104497         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
104499 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
104501         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
104502         where no absolute path name can be longer than PATH_MAX.
104504 2005-03-27  Jim Meyering  <jim@meyering.net>
104506         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
104508 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
104510         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
104511         "one's complement" -> "ones' complement" in comment, as per Knuth.
104512         "value of type" -> "type or expression" in comment.
104513         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
104515 2005-03-26  Jim Meyering  <jim@meyering.net>
104517         Comment nits.
104518         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
104519         Correct typos: s/or/of/.
104521 2005-03-26  Jim Meyering  <jim@meyering.net>
104523         * modules/check-include-files: Move to ../ and rename to...
104524         * check-module: ...this.
104526 2005-03-25  Jim Meyering  <jim@meyering.net>
104528         * modules/xvasprintf (Files): Add xalloc.h.
104530 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104532         * modules/gettext (Files): config/config.rpath ->
104533         build-aux/config.rpath
104534         * modules/iconv (Files): Likewise.
104535         Problem reported by Oskar Liljeblad.
104537 2005-03-23  Jim Meyering  <jim@meyering.net>
104539         * modules/check-include-files: New script to check for
104540         missing dependencies, multiple includes, etc.
104542         * modules/c-strtold (Depends-on): Add xalloc.
104543         * modules/c-strtod (Depends-on): Add xalloc.
104544         * modules/hash (Depends-on): Add xalloc.
104545         (Files): Remove lib/xalloc.h.
104547         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
104548         * modules/userspec (Files): Add lib/inttostr.h.
104550 2005-03-23  Jim Meyering  <jim@meyering.net>
104552         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
104554 2005-03-22  Jim Meyering  <jim@meyering.net>
104556         * modules/stat-macros: New module.
104557         * modules/canonicalize, modules/euidaccess, modules/file-type,
104558         * modules/filemode, modules/lchown, modules/makepath,
104559         * modules/rmdir, modules/stat: Depend on new stat-macros module
104560         rather than listing lib/stat-macros.h manually.
104561         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
104563 2005-03-22  Jim Meyering  <jim@meyering.net>
104565         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
104567 2005-03-22  Bruno Haible  <bruno@clisp.org>
104569         * config/srclist.txt: Replace target directory 'config' with
104570         'build-aux'.
104571         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
104572         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
104573         ../build-aux/.
104575 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
104577         * modules/chdir-long (Depends-on): Add mempcpy.
104579         * modules/acl, modules/backupfile, modules/c-strtod,
104580         modules/c-strtold, modules/canon-host, modules/canonicalize,
104581         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
104582         modules/exclude, modules/exitfail, modules/file-type,
104583         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
104584         modules/getdate, modules/getline, modules/getpagesize,
104585         modules/getpass, modules/getugroups, modules/group-member,
104586         modules/hard-locale, modules/hash, modules/human, modules/idcache,
104587         modules/inttostr, modules/long-options, modules/makepath,
104588         modules/md5, modules/memcasecmp, modules/memcoll,
104589         modules/modechange, modules/mountlist, modules/path-concat,
104590         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
104591         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
104592         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
104593         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104594         modules/strftime, modules/strndup, modules/strverscmp,
104595         modules/timespec, modules/unlocked-io, modules/userspec,
104596         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104597         modules/yesno:
104598         Remove lib_SOURCES line from Makefile.am section, as this is now
104599         done automatically by the corresponding Autoconf macro.
104601 2005-03-21  Jim Meyering  <jim@meyering.net>
104603         Changes imported from coreutils.
104605         * lib/cycle-check.c: Don't include xalloc.h.
104607         * lib/path-concat.c: Don't include assert.h.
104608         (path_concat): Remove assertion that would have triggered
104609         for ABASE starting with more than one slash.
104610         Reported by Andreas Schwab.
104612         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104613         properly when ABASE is an absolute file name.
104614         Correct the description of this function.
104615         Include <assert.h>.
104616         Add an assertion and a test driver.
104617         This fixes a bug introduced on 2004-07-02.
104618         Andreas Schwab reported the resulting failure of cp --parents:
104619         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104621 2005-03-21  Jim Meyering  <jim@meyering.net>
104623         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104624         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104626 2005-03-21  Jim Meyering  <jim@meyering.net>
104627         and  Paul Eggert  <eggert@cs.ucla.edu>
104629         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104630         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104631         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104632         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104633         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104634         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104635         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104636         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104637         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104638         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104639         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104640         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104641         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104642         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104643         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104644         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104645         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104646         for these modules.
104648 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104650         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104651         (which shouldn't happen), generate nothing instead of returning 0
104652         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104654 2005-03-16  Bruno Haible  <bruno@clisp.org>
104656         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104657         HAVE_LONGLONG_64BIT.
104659 2005-03-16  Bruno Haible  <bruno@clisp.org>
104661         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104662         HAVE_LONGLONG_64BIT.
104664 2005-03-16  Bruno Haible  <bruno@clisp.org>
104666         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104667         HAVE_LONGLONG_64BIT.
104669 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104671         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104672         reliably distinguish strftime failure from empty output on POSIX
104673         hosts.
104675 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104677         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104678         (iconv_string): Don't guess a size-zero buffer, as that might cause
104679         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104680         result would be 'too large', where 'too large' is (heuristically)
104681         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104682         overflow concerns.  This will prevent some unwanted malloc failures
104683         when the inputs are very large.
104685 2005-03-15  Karl Berry  <karl@gnu.org>
104687         * config/srclist.txt (config.rpath): from gettext.
104688         * config/config.rpath: update.
104690 2005-03-15  Bruno Haible  <bruno@clisp.org>
104692         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104693         to 'negate'.
104695         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104696         variable.
104698         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104699         results.
104701 2005-03-14  Simon Josefsson  <jas@extundo.com>
104703         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104704         <fx@gnu.org>.
104706 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104708         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104709         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104710         intprops.h.
104711         * lib/strtol.c: Likewise.
104713 2005-03-14  Jim Meyering  <jim@meyering.net>
104715         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104716         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104717         to be nonzero so that we (and caller) can detect the difference
104718         between a valid zero-length expansion and an error return, even
104719         when the underlying strftime fails before writing anything into
104720         that location.
104722 2005-03-14  Bruno Haible  <bruno@clisp.org>
104724         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104725         Update from GNU gettext 0.14.3.
104727 2005-03-10  Jim Meyering  <jim@meyering.net>
104729         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104731 2005-03-10  Jim Meyering  <jim@meyering.net>
104733         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104734         so that this module works on systems without fchdir.
104736 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104738         Factor int-properties macros into a single file, except for
104739         glibc-related files.
104740         * lib/intprops.h: New file.
104741         * lib/getloadavg.c: Include it instead of limits.h.
104742         (INT_STRLEN_BOUND): Remove.
104743         * lib/human.c: Include intprops.h.
104744         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
104745         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
104746         302/1000.
104747         * lib/inttostr.h: Include intprops.h instead of limits.h.
104748         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
104749         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
104750         for consistency with intprops.h.
104751         (time_t_is_integer, twos_complement_arithmetic): Use them.
104752         * lib/sig2str.h: Include <signal.h>, intprops.h.
104753         (INT_STRLEN_BOUND): Remove.
104754         * lib/strftime.c (TYPE_SIGNED): Remove.
104755         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
104756         * lib/strtol.c: Adjust comments to match intprops.h.
104757         * lib/userspec.c: Include intprops.h.
104758         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
104759         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
104760         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
104761         instead of rolling our own expressions.
104762         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
104764         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
104765         instead of int.
104766         (my_strftime): Do not mishandle years close to INT_MAX, by doing
104767         the right thing even if adding 1900 would overflow.  Similarly
104768         for tm_mon + 1 and tm_yday + 1.
104769         Make %Y always equivalent to %C%y, and similarly for %G and %g.
104770         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
104771         (DO_SIGNED_NUMBER): New macro.
104772         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
104774 2005-03-07  Bruno Haible  <bruno@clisp.org>
104776         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
104778 2005-03-07  Bruno Haible  <bruno@clisp.org>
104780         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
104782 2005-03-04  Derek R. Price  <derek@ximbiot.com>
104784         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
104785         (func_import): Only replace files via --import when they have actually
104786         changed.
104788 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104790         * m4/mmap-anon.m4: New file.
104791         * m4/pagealign_alloc.m4: New file.
104793 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104794             Bruno Haible  <bruno@clisp.org>
104796         * modules/pagealign_alloc: New file.
104797         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
104799 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104800             Bruno Haible  <bruno@clisp.org>
104802         * lib/pagealign_alloc.h: New file.
104803         * lib/pagealign_alloc.c: New file.
104805 2005-03-03  Bruno Haible  <bruno@clisp.org>
104807         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
104808         Use an all-permissive copyright notice, recommended by RMS.
104810 2005-03-02  Bruno Haible  <bruno@clisp.org>
104812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
104813         of AIX, the replacement has to be done only after <string.h> is
104814         included, therefore not in config.h. stpncpy.h does the replacement,
104815         and stpncpy.c uses it.
104817 2005-03-02  Bruno Haible  <bruno@clisp.org>
104819         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
104820         stpncpy.c uses it.
104822 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104824         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
104825         The workaround isn't strictly needed for POSIX conformance, and
104826         it's too much of a pain to configure and maintain.  We'll ask
104827         people to fix their kernels instead.
104828         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
104829         (NANOSLEEP_BUG_WORKAROUND): Remove.
104830         (xnanosleep): Remove the workaround.
104832 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104834         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
104835         Reported by Derek Price.
104836         (Include): Add "timespec.h".
104838         * modules/xnanosleep (Depends-on): Remove gethrxtime.
104840 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104842         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
104843         to detect nanosleep bug.
104845 2005-03-01  Bruno Haible  <bruno@clisp.org>
104847         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
104849 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
104851         * modules/gethrxtime: New file.
104852         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
104853         (Depends-on): Add gethrxtime.
104854         (configure.ac): Add gl_XNANOSLEEP.
104855         (Makefile.am): Remove lib_SOURCES line.
104857 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104859         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104860         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104862 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104864         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104865         * lib/timespec.h (gettime): Return void, since it always
104866         succeeds now.  All uses changed.
104867         * lib/gettime.c (gettime): Likewise.
104868         [HAVE_NANOTIME]: Prefer nanotime.
104869         Assume gettimeofday succeeds, as POSIX requires.
104870         Assime time () succeeds, since other code already does.
104871         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104872         (timespec_subtract): Remove.
104873         (NANOSLEEP_BUG_WORKAROUND): New constant.
104874         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104875         things considerably.  Use it only on GNU/Linux hosts, since the
104876         workaround shouldn't be needed elsewhere.
104878 2005-02-24  Bruno Haible  <bruno@clisp.org>
104880         * modules/gettext (Files): Add m4/glibc2.m4.
104882 2005-02-24  Bruno Haible  <bruno@clisp.org>
104884         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104885         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104886         * m4/progtest.m4:
104887         Update from GNU gettext 0.14.2.
104888         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104890 2005-02-24  Bruno Haible  <bruno@clisp.org>
104892         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104893         * lib/config.charset: Update from GNU gettext 0.14.2.
104895 2005-02-24  Bruno Haible  <bruno@clisp.org>
104897         * lib/gettext.h: Update from GNU gettext 0.14.2.
104899 2005-02-23  Simon Josefsson  <jas@extundo.com>
104901         * m4/iconvme.m4: New file.
104903 2005-02-23  Jim Meyering  <jim@meyering.net>
104905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104906         change.
104907         Thanks to Bruno Haible for catching it.
104909 2005-02-22  Simon Josefsson  <jas@extundo.com>
104911         * modules/iconvme: New file.
104913         * MODULES.html.sh: Add iconvme.
104915 2005-02-22  Simon Josefsson  <jas@extundo.com>
104917         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
104919 2005-02-22  Simon Josefsson  <jas@extundo.com>
104921         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
104923 2005-02-22  Jim Meyering  <jim@meyering.net>
104925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
104926         s/ifndef/ifdef/.
104928 2005-02-20  Neil Conway  <neilc@samurai.com>
104930         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
104931         returned by OSX/Darwin if the specified buffer is not large
104932         enough for the hostname.
104934 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104936         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
104937         pass it to _help, otherwise the latter coredumps trying to
104938         dereference state.root_argp.
104940 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104942         * modules/chdir-long (Depends-on): Add memrchr.
104943         * modules/memrchr (Files): Add lib/memrchr.h.
104944         (Include): "memrchr.h".
104946 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
104950 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104952         * lib/memrchr.h: New file.
104953         * lib/chdir-long.c: Include it.
104954         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
104955         Don't bother including stddef.h.
104957 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104959         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
104960         inclusion.
104961         Include <sys/types.h>, for dev_t.
104962         (ME_DUMMY, ME_REMOTE): Move from here....
104963         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
104964         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
104965         Dmitry V. Levin.
104966         Include mountlist.h first, to test the interface.
104968 2005-01-29  Bruno Haible  <bruno@clisp.org>
104970         * lib/progname.c (program_name): Initialize.
104971         Needed when linking statically on MacOS X.
104973 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104975         Sync from coreutils.
104976         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
104977         (Depends-on): Add c-strtod.
104978         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
104980 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104982         Sync from coreutils.
104983         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
104985         Remove files that are specific to coreutils.
104986         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
104988 2005-01-28  Bruno Haible  <bruno@clisp.org>
104990         * modules/javacomp: New file.
104991         * MODULES.html.sh (Java): Add javacomp.
104993 2005-01-28  Bruno Haible  <bruno@clisp.org>
104995         * m4/javacomp.m4: New file, from GNU gettext.
104997 2005-01-28  Bruno Haible  <bruno@clisp.org>
104999         * lib/javacomp.sh.in: New file, from GNU gettext.
105000         * lib/javacomp.h: New file, from GNU gettext.
105001         * lib/javacomp.c: New file, from GNU gettext.
105003 2005-01-26  Simon Josefsson  <jas@extundo.com>
105005         * lib/gai_strerror.c: Use GPL in header.
105007 2005-01-26  Bruno Haible  <bruno@clisp.org>
105009         * modules/javaexec: New file.
105010         * MODULES.html.sh (Java): Add javaexec.
105012 2005-01-26  Bruno Haible  <bruno@clisp.org>
105014         * m4/javaexec.m4: New file, from GNU gettext.
105016 2005-01-26  Bruno Haible  <bruno@clisp.org>
105018         * lib/javaexec.sh.in: New file, from GNU gettext.
105019         * lib/javaexec.h: New file, from GNU gettext.
105020         * lib/javaexec.c: New file, from GNU gettext.
105022 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105024         * modules/lchown (Depends-on): Remove lchown.h
105026 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105028         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
105029         must be defined if the header file was not found, in order
105030         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
105032 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105034         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
105035         initializers for struct pentry_state.
105036         (__argp_error): Check return value of __asprintf
105037         (__argp_failure): Translate error message
105039         * lib/argp-parse.c: Removed braces around the expansion of N_()
105041 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105043         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
105044         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
105045         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
105046         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
105047         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
105048         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
105049         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
105050         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
105051         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
105052         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
105053         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
105054         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
105055         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
105056         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
105057         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
105058         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
105059         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
105060         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
105061         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
105062         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
105063         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
105064         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
105065         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
105066         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
105067         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
105068         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
105069         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
105070         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
105071         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
105072         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
105073         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
105074         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
105075         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
105076         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
105077         xstrtol.m4, xstrtoumax.m4, yesno.m4:
105078         Use an all-permissive copyright notice, recommended by RMS.
105080 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
105082         * modules/chdir-long (Depends-on): Remove mempcpy.
105084 2005-01-21  Jim Meyering  <jim@meyering.net>
105086         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
105087         same value as for Solaris 9.
105089         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
105090         component length.  This included changing the parameter to be
105091         of type `char *' rather than `char const *'.
105092         * lib/chdir-long.h (chdir_long): Update prototype.
105094         * lib/openat.c (fdopendir, fstatat): New functions.
105095         * lib/openat.h: Include headers required for use of DIR and struct
105096         stat.
105097         [AT_SYMLINK_NOFOLLOW]: Define.
105098         (fdopendir, fstatat): Add prototypes.
105100 2005-01-21  Bruno Haible  <bruno@clisp.org>
105102         * modules/classpath: New file.
105103         * MODULES.html.sh (Java): Add classpath.
105105 2005-01-21  Bruno Haible  <bruno@clisp.org>
105107         * lib/classpath.h: New file, from GNU gettext.
105108         * lib/classpath.c: New file, from GNU gettext.
105110 2005-01-20  Simon Josefsson  <jas@extundo.com>
105112         * modules/version-etc-fsf: New file.
105114 2005-01-20  Simon Josefsson  <jas@extundo.com>
105116         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
105117         * lib/version-etc.c: Remove version_etc_copyright.
105118         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
105119         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
105121 2005-01-20  Simon Josefsson  <jas@extundo.com>
105123         * lib/base64.h (isbase64): Add.
105125         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
105126         using a unsigned prototype, don't inline.
105127         (base64_decode): Use it.
105129 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105131         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
105132         it.
105134 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105136         * lib/save-cwd.c (save_cwd): Remove code to support the case
105137         where fchdir is missing or flaky.
105139 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105141         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
105143 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105145         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
105146         AC_LIBSOURCES now does this.
105147         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
105148         with new ullong_max module.
105150 2005-01-19  Bruno Haible  <bruno@clisp.org>
105152         * modules/sh-quote: New file.
105153         * MODULES.html.sh (Executing programs): Add sh-quote.
105155 2005-01-19  Bruno Haible  <bruno@clisp.org>
105157         * lib/sh-quote.h: New file, from GNU gettext.
105158         * lib/sh-quote.c: New file, from GNU gettext.
105160 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105162         Merge from coreutils.
105163         * m4/ullong_max.m4: New file.
105164         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
105165         (gl_MACROS): Assume localeconv exists.
105167 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105169         Merge changes from coreutils, as described below in several
105170         changelogs dated today.
105172         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
105173         (O_DIRECTORY): Remove; not needed here, since "." must be
105174         a directory.  All uses removed.
105175         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
105176         universal on Suns, and we also need to test for IRIX.
105177         Revamp code to use 'if' rather than '#if'.
105178         Avoid unnecessary comparison of cwd->desc to 0.
105180         * lib/utimens.c (futimens): Robustify the previous patch, by checking
105181         for known valid error numbers rather than observed invalid ones.
105183 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105185         * modules/ullong_max: New file.
105187         * modules/chdir-long, modules/openat: New files.
105188         * modules/save-cwd (Depends-on): Depend on chdir-long.
105189         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
105191 2005-01-18  Jim Meyering  <jim@meyering.net>
105193         Merge from coreutils.
105194         * m4/chdir-long.m4, m4/openat.m4: New files.
105195         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
105196         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
105197         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
105198         is sane and DOES follow symlinks.  Besides, testing 20 different
105199         systems found no broken chown implementations.
105200         Prompted by a change in rsync's copy of this macro.
105201         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
105203         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
105205         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
105206         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
105207         NULL-means-set-to-current-time semantics.
105208         Remove temporary file immediately, rather than waiting
105209         for configure's at-exit trap code to do it.
105211 2005-01-18  Jim Meyering  <jim@meyering.net>
105213         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105215         * lib/utimens.c (futimens): Account for the fact that futimes
105216         can also fail with errno == ENOSYS or errno == ENOENT.
105217         Patch from Dmitry V. Levin.
105219         Change the name of the robust chdir function from chdir to chdir_long.
105220         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
105221         (restore_cwd): Use chdir_long, not chdir.
105222         * lib/chdir-long.c: Renamed from chdir.c.
105223         * lib/chdir-long.h: Renamed from chdir.h.
105224         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
105225         Hurd.
105227 2005-01-18  Bruno Haible  <bruno@clisp.org>
105229         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
105230         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
105231         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
105232         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
105233         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
105234         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
105235         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
105236         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
105237         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
105238         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
105239         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
105240         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
105241         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
105242         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
105243         Use an all-permissive copyright notice, recommended by RMS.
105245 2005-01-18  Bob Proulx  <bob@proulx.com>
105247         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
105248         simplify offsetof() macro construct to avoid compile failure with
105249         native HP-UX 11.0 ANSI C compiler.
105251 2005-01-17  Bruno Haible  <bruno@clisp.org>
105253         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
105254         redundant because stpncpy.m4 takes care of it.
105256 2005-01-17  Bruno Haible  <bruno@clisp.org>
105258         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
105260 2005-01-17  Bruno Haible  <bruno@clisp.org>
105262         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
105263         used.
105265 2005-01-17  Bruno Haible  <bruno@clisp.org>
105267         * lib/fwriteerror.h (fwriteerror): Change specification to include
105268         fclose.
105269         * lib/fwriteerror.c: Include <stdbool.h>.
105270         (fwriteerror): At the end, close the file stream. Record whether
105271         stdout was already closed.
105273 2005-01-17  Bruno Haible  <bruno@clisp.org>
105275         * lib/execute.c (environ): Declare if needed.
105276         * lib/pipe.c (environ): Likewise.
105277         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
105279 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105281         * modules/argp: Depend on vsnprintf
105283 2005-01-10  Jim Meyering  <jim@meyering.net>
105285         * modules/closeout (Depends-on): Add atexit.
105287 2005-01-06  Bruno Haible  <bruno@clisp.org>
105289         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
105291 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105293         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
105294         definitions to be after all include files, to avoid collisions.
105295         Problem reported by Bob Proulx.
105297 2005-01-04  Jim Meyering  <jim@meyering.net>
105299         Changes imported from coreutils.
105300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
105301         as the mkstemp template, use a temporary directory and an
105302         8.3-friendly template to avoid trouble on systems like DJGPP.
105303         Reported by Juan M. Guerrero via Stepan Kasal.
105304         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
105305         close. Remove the temporary directory right away, rather than waiting
105306         for configure's at-exit trap code to do it.
105307         Suggestion from Stepan Kasal.
105309 2005-01-01  Simon Josefsson  <jas@extundo.com>
105311         * gnulib-tool: Print #include directives when --import'ing.
105313 2004-12-28  Simon Josefsson  <jas@extundo.com>
105315         * tests/test-base64.c: Include required header files.  Remove
105316         unused variables.
105318 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105320         * modules/error (Depends-on): Remove gettext.
105322 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105324         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
105325         not needed.  This removes a dependency on the gettext module.
105326         [defined _LIBC]: Do not include <libintl.h>; not needed.
105328 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105330         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
105331         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
105333 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105335         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
105336         HAVE_DECL_STRTOLD.
105338 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105340         * modules/getdate (Depends-on): Remove alloca-opt.
105342 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105344         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
105346 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105348         * lib/argp-parse.c: Include <stddef.h>.
105349         (alignof, alignto): New macros.
105350         (parser_init): Don't assume that void * is aligned sufficiently
105351         for struct option.
105353         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
105354         need to extend the stack.
105355         (YYINITDEPTH): New macro, so that the initial stack isn't overly
105356         large.
105358 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105360         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
105362 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105364         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
105365         (2004-10-24) change.  Apparently this was a false alarm.
105367         * modules/getdate: Depend on alloca-opt, not alloca.
105369 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105371         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
105372         Remove now-obsolete comment about AIX.
105373         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
105374         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
105375         (YYMAXDEPTH): New macro.
105377 2004-12-18  Simon Josefsson  <jas@extundo.com>
105379         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
105381 2004-12-18  Bruno Haible  <bruno@clisp.org>
105383         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
105385 2004-12-18  Bruno Haible  <bruno@clisp.org>
105387         * lib/fatal-signal.c (fatal_signals): Make non-const.
105388         (init_fatal_signals): New function.
105389         (uninstall_handlers, install_handlers): Ignore signals that were set to
105390         SIG_IGN.
105391         (at_fatal_signal): Call init_fatal_signals.
105392         (init_fatal_signal_set): Likewise. Ignore signals that were set to
105393         SIG_IGN.
105394         Reported by Paul Eggert.
105396 2004-12-18  Bruno Haible  <bruno@clisp.org>
105398         * doc/alloca.texi: New file.
105399         * doc/alloca-opt.texi: New file.
105401 2004-12-17  Jim Meyering  <jim@meyering.net>
105403         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
105404         Otherwise, install-sh could exit with improper exit status when
105405         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
105407 2004-12-16  Simon Josefsson  <jas@extundo.com>
105409         * tests/test-base64.c: Add license.
105411 2004-12-15  Stepan Kasal  <address@hidden>
105413         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
105415 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
105417         * modules/getcwd (Files): Add m4/d-ino.m4.
105418         Suggested by Mark D. Baushke.
105420 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105422         * lib/getdate.y (textint): New member "negative".
105423         (time_zone_hhmm): New function.
105424         Expect 14 shift-reduce conflicts, not 13.
105425         (o_colon_minutes): New rule.
105426         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
105427         (yylex): Set the "negative" member of signed numbers.
105429 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105431         * doc/getdate.texi (Time of day items, Time zone items):
105432         Describe new formats +00:00, UTC+00:00.
105434 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
105436         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
105437         spurious "-l"s.  Problem reported by Stepan Kasal.
105439 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
105441         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
105442         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
105444 2004-12-04  Simon Josefsson  <jas@extundo.com>
105446         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
105447         Vandoorselaere <yoann@prelude-ids.org>.
105449 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105451         Changes imported from coreutils.
105452         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
105453         exist.
105454         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
105456 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105458         Changes imported from coreutils.
105459         * lib/hard-locale.c: Assume <locale.h> exists.
105460         Include "strdup.h".
105461         (GLIBC_VERSION): New macro.
105462         (hard_locale): Assume setlocale exists.
105463         Rewrite to avoid #ifdef.
105464         Use strdup rather than malloc + strcpy.
105465         * lib/human.c: Assume <locale.h> exists.
105466         (human_readable): Assume localeconv exists.
105468 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105470         * modules/hard-locale (Depends-on): Add strdup.
105472 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105474         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
105475         convert T2, not T.  (Imported from libc.)
105477 2004-11-30  Simon Josefsson  <jas@extundo.com>
105479         * modules/restrict (License): Change to LGPL.
105481 2004-11-30  Simon Josefsson  <jas@extundo.com>
105483         * m4/restrict.m4: Add copyright and copying conditions.
105485 2004-11-30  Simon Josefsson  <jas@extundo.com>
105487         * m4/base64.m4: New file.
105489 2004-11-30  Simon Josefsson  <jas@extundo.com>
105491         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
105492         base64.
105494         * tests/test-base64.c: New file.
105496         * modules/base64: New file.
105498 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105500         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
105501         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
105503         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
105505 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105507         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
105508         (__getcwd.c): Don't restore errno; glibc doesn't.
105509         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
105510         first, falling back to our code only if its results look suspicious.
105511         Ensure that the resulting buffer is only as large as necessary.
105513         * lib/readutmp.c: Include readutmp.h first.
105514         Include <errno.h>, since readutmp.h no longer does that.
105515         * lib/readutmp.h: Don't include <errno.h>,
105516         <sys/param.h>, <time.h>; not needed to establish interface.
105517         (errno): Remove decl.
105518         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
105519         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
105520         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
105522 2004-11-28  Simon Josefsson  <jas@extundo.com>
105524         * lib/base64.h, base64.c: New file.
105526 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
105528         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
105530 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105532         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
105533         (Depends-on): Remove pathmax, same.  Add mempcpy.
105534         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
105535         (Makefile.am): Append getcwd.h to lib_SOURCES.
105536         (Include): Add getcwd.h.
105537         (Maintainer): Change from Jim Meyering to "all, glibc",
105538         since getdate now uses intended-for-glibc code.
105539         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
105540         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
105542 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105544         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
105545         HP's ANSI C compiler.
105546         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
105547         Declaring int functions causes warnings on some modern systems and
105548         shouldn't be needed to compile on ancient ones.
105549         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
105550         defined.
105552         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
105553         with the following changes.
105554         (__set_errno): Parenthesize properly.
105555         Include <stdbool.h>.
105556         (MIN, MAX, MATCHING_INO): New macros.
105557         (__getcwd): Define with prototype, not K&R form.
105558         Use heuristics to allocate default buffer on stack if possible.
105559         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
105560         behavior, and to avoid the PATH_MAX limit when computing
105561         ../../../../...
105562         Use MATCHING_INO to compare inode number to file.
105563         Check for arithmetic overflow in size calculations.
105564         Fix bug in reallocation of dot array that caused getcwd to fail
105565         on directories nested deeper than 75.
105566         Be more careful about saving errno on error.
105567         Do not use realloc; use only free+malloc, as this is a bit
105568         more flexible and avoids a needless copy operation.
105569         Do not inspect st_dev and st_ino for symbolic links; POSIX
105570         doesn't specify the latter.
105571         Check for closedir errors.
105572         Avoid needless casts.
105573         Use "#ifdef weak_alias" around weak_alias, to be like other
105574         glibc code.
105575         The following changes to getcwd.c have effect only when used in
105576         gnulib; they have no effect inside glibc proper.
105577         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
105578         as alloca isn't used.
105579         (alloca, __alloca): Likewise.
105580         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
105581         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105582         unconditionally, as gnulib assumes C89 or better.
105583         Do not include <sys/param.h>.
105584         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
105585         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
105586         better.
105587         (NULL) [!defined NULL]: Remove; we assume C89 or better.
105588         Include <dirent.h> in a way that is compatible with modern Autoconf.
105589         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
105590         New macros, if not already defined.
105591         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
105592         Use "_LIBC", not "defined _LIBC", for consistency.
105593         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105594         a mempcpy module.
105595         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105596         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105597         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105598         credit only to Jim Meyering and adjust the copyright dates.
105599         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105600         <stdlib.h>, <unistd.h>, "pathmax.h".
105601         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105602         (INITIAL_BUFFER_SIZE): Remove.
105603         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105605 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105607         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105608         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105609         Use the _ONCE methods, for efficiency.
105610         Check for fcntl.h.  In test program, include <errno.h>
105611         and <fcntl.h> if available.  Remove old K&R cruft from
105612         test program.  Check for common errors in GNU/Linux,
105613         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105614         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105616         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105617         name accordingly.
105618         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105619         accommodate new getcwd.c.
105620         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105621         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105622         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105623         that's all we need now.
105625 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105627         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105628         argp-parse.c depends on getopt internals, that means we should
105629         always use our getopt, to be on the safe side.
105630         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105631         order not to spoil the result of an eventual previous invocation
105632         of gl_GETOPT_SUBSTITUTE.
105634 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105636         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105637         redefinition warnings. To avoid them, include the defines
105638         in `#if !defined __need_getopt ... #endif'. The only place
105639         where __getopt_argv_const is used is in definitions
105640         of getopt_long and getopt_long_only below, which are as well
105641         protected by `#ifndef __need_getopt'.
105642         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105643         __need_getopt after including <stdio.h> and <unistd.h> These
105644         headers might have defined it.
105646 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105648         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105650 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105652         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105653         (futimens): New function, which uses futimes if available.
105654         (futimens, utimens): Support timespec==NULL, with same semantics
105655         as utime and utimens.
105656         * lib/utimens.h (futimens): New decl.
105658 2004-11-23  Jim Meyering  <jim@meyering.net>
105660         * lib/getopt_.h: Remove trailing blanks.
105662 2004-11-23  Jim Meyering  <jim@meyering.net>
105664         * lib/__fpending.c: Add comment.
105666 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105668         * modules/canonicalize (Depends-on): Add xreadlink.
105669         Problem reported by James Youngman.
105671 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105673         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105674         New macros.
105675         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105676         optopt): Use them instead of invoking ## directly; otherwise, the
105677         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105679 2004-11-19  Bruno Haible  <bruno@clisp.org>
105681         * lib/strtok_r.c: Move comments from here...
105682         * lib/strtok_r.h: ... to here.
105684 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105686         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105687         implementations that mishandle size_t overflow.
105689 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105691         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105692         might fail.  Problem reported by Yoann Vandoorselaere.
105693         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105694         implementations that mishandle size_t overflow.
105696 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105698         * modules/canon-host (Depends-on): Add strdup.
105700 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105702         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105704 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105706         * lib/canon-host.c: Include "strdup.h".
105707         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105708         Use strdup instead of malloc/strcpy to duplicate strings.
105710         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105711         (human_space_before_unit): New constant.
105712         * lib/human.c (human_readable): Support it.
105714         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105715         (xgetcwd): Set errno correctly when failing.
105716         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105717         the failure is actually due to a PATH_MAX problem.
105719         Further getopt changes to make it more likely that glibc will
105720         buy the changes back.
105721         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105722         (getopt): Use it, so to preserve glibc semantic
105723         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105724         when compiling for libc.
105725         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105726         (getopt_long, getopt_long_only): Use it.
105728         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105729         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105730         (getopt): Argv is now char * const *, as per standard.
105731         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105732         not char *__getopt_argv_const *.
105733         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105734         _getopt_long_only_r): Likewise.
105735         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105736         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105737         _getopt_long_r, _getopt_long_only_r): Likewise.
105738         * lib/getopt_.h (__getopt_argv_const): Remove.
105739         (getopt): Argv is now char * const *, as per standard.
105741         * lib/getdate.y (tORDINAL): New token.
105742         (day, relunit): Allow it for relative times.
105743         (relative_time_table): Use tORDINAL for ordinals.
105745 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105747         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
105748         Document that "second" isn't allowed as an ordinal number.
105750 2004-11-16  Jim Meyering  <jim@meyering.net>
105752         * modules/closeout (Depends-on): Add fpending.
105754 2004-11-15  Jim Meyering  <jim@meyering.net>
105756         * lib/closeout.c: Include "__fpending.h" once again.
105757         Include <stdbool.h>.
105758         (close_stdout): Don't fail just because stdout was closed initially,
105759         since some programs don't write to stdout in the normal course of
105760         operation (other than --version and --help), and we don't want this
105761         function to make e.g. `touch file >&-' fail.
105762         But do fail if it was closed and someone has tried to write to it.
105763         E.g., `printf foo >&-' must fail.
105765 2004-11-13  Jim Meyering  <jim@meyering.net>
105767         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
105769 2004-11-12  Simon Josefsson  <jas@extundo.com>
105771         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
105772         small doc fix is still pending.
105774 2004-11-11  Simon Josefsson  <jas@extundo.com>
105776         * modules/strtok_r: New file.
105778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105779         strtok_r.
105781 2004-11-11  Simon Josefsson  <jas@extundo.com>
105783         * m4/strtok_r.m4: New file.
105785         * m4/getopt.m4: Replace opterr.
105787 2004-11-11  Simon Josefsson  <jas@extundo.com>
105789         * lib/strtok_r.h, strtok_r.c: New file.
105791 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
105794         of replacing opterr, getopt, etc.  This should handle the
105795         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
105797 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105799         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
105800         we can stop lying to compilers about the constness of argv when we
105801         are compiled outside glibc.
105802         (getopt, getopt_long, getopt_long_only): Use it.
105803         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105804         _getopt_internal, getopt): Likewise.
105805         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105806         _getopt_long_only_r): Likewise.
105807         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105808         _getopt_long_r, _getopt_long_only_r): Likewise.
105810         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
105811         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
105812         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
105813         the other external symbols.
105814         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
105815         declaration, since the above renaming now works around collisions.
105817 2004-11-11  Jim Meyering  <jim@meyering.net>
105819         * lib/linebreak.c: Remove trailing blanks.
105820         * lib/alloca_.h: Likewise.
105821         * lib/acosl.c: Likewise.
105822         * lib/euidaccess.c: Likewise.
105823         * lib/allocsa.h: Likewise.
105825 2004-11-10  Simon Josefsson  <jas@extundo.com>
105827         * m4/getaddrinfo.m4: New file.
105829 2004-11-10  Simon Josefsson  <jas@extundo.com>
105831         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
105833 2004-11-10  Simon Josefsson  <jas@extundo.com>
105835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105836         getaddrinfo.
105838         * modules/getaddrinfo: New file.
105840 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105842         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
105844 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105846         * lib/mktime.c (SHR): New macro, which is a portable
105847         substitute for >> that should work even on Crays.
105848         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
105849         Problem reported by Mark D. Baushke in
105850         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
105851         * lib/getdate.y (SHR): Likewise.
105852         (tm_diff): Use it.
105853         * lib/strftime.c (SHR): Likewise.
105854         (tm_diff): Use it.
105855         * lib/quotearg.c (struct quoting_options): Use unsigned int for
105856         quote_these_too, so that right shifts are well defined.  All uses
105857         changed.
105859 2004-11-10  Jim Meyering  <jim@meyering.net>
105861         Ensure that no close failure goes unreported.
105862         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105863         return early when it seems there's nothing to flush.
105864         Don't include __fpending.h.
105866 2004-11-10  Jim Meyering  <jim@meyering.net>
105868         * modules/closeout (Depends-on): Remove fpending.
105870 2004-11-10  Jim Meyering  <jim@meyering.net>
105872         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105874 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105876         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105877         gl_FUNC_STRFTIME.
105878         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105879         and AC_REQUIRE when possible, to avoid duplicate checks.
105880         Check for <wchar.h>.
105882 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105884         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105886 2004-11-09  Bruno Haible  <bruno@clisp.org>
105888         * m4/sockpfaf.m4: New file.
105890 2004-11-05  Bruno Haible  <bruno@clisp.org>
105892         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105893         Reported by Mark D. Baushke <mdb@cvshome.org>.
105895 2004-11-04  Bruno Haible  <bruno@clisp.org>
105897         2004-09-11  Bruno Haible  <bruno@clisp.org>
105898                 * allocsa.valgrind: New file.
105899         2004-02-06  Bruno Haible  <bruno@clisp.org>
105900                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105901                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105902                 Reported by Christopher Seip <chris.seip@hp.com>.
105904 2004-11-04  Bruno Haible  <bruno@clisp.org>
105906         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105907         (Makefile.am): Distribute it.
105909 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105911         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105912         with errno == ERANGE if the buffer is too small.
105913         Problem reported by Mark D. Baushke.
105915 2004-11-03  Albert Chin  <china@thewrittenword.com>
105916             Paul Eggert  <eggert@cs.ucla.edu>
105918         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
105919         equivalent, substitute $ac_type for equivalent type rather than
105920         blindly using uint32_t *always* which won't work if uint32_t is not
105921         available.  Define _UINT32_T to work around typedef of uint32_t if
105922         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
105923         2.5.1.
105925 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105927         * m4/jm-macros.m4: Sync from coreutils.
105928         (gl_MACROS): Check for mbrlen, for pathchk.
105929         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
105931 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105933         * lib/xreadlink.c (MAXSIZE): New macro.
105934         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
105935         size does not exceed MAXSIZE.  Avoid cast.
105936         As suggested by Mark D. Baushke in
105937         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
105938         if readlink fails with buffer size just under MAXSIZE, try again
105939         with MAXSIZE.
105941 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105943         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
105945 2004-11-02  Derek R. Price  <derek@ximbiot.com>
105946         and  Paul Eggert  <eggert@cs.ucla.edu>
105948         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
105949         (get_date): Overparenthesize to avoid GCC warning.
105951 2004-11-02  Bruno Haible  <bruno@clisp.org>
105953         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
105954         returns void.
105956 2004-11-02  Bruno Haible  <bruno@clisp.org>
105958         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
105959         function returns void.
105961 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105963         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
105964         fflush_unlocked, flockfile, funlockfile, funlockfile,
105965         fputs_unlocked, putc_unlocked.
105967 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105969         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105970         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
105971         already declared.
105973 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105975         * modules/getdate (Files): Add doc/getdate.texi.
105976         (Depends-on): Add setenv, xalloc.
105978 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105980         * lib/getdate.y: Add support for TZ="foo" within a date string.
105981         Fix some bugs near time_t boundaries.  Reject dates with
105982         out-of-range components, e.g., "Sept 31".
105983         Include <stdlib.h>, "setenv.h", "xalloc.h".
105984         (ISDIGIT_LOCALE): Remove; unused.
105985         Note that the TZ and time functions used here are not reentrant.
105986         (mktime_ok, get_tz): New functions.
105987         (TZBUFSIZE): New constant.
105988         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
105989         This requires that we sometimes generate our own TZ="XXX..." setting.
105991 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105993         * doc/getdate.texi: New file, from coreutils with modifications for
105994         the new TZ parsing.
105996 2004-10-27  Derek R. Price  <derek@ximbiot.com>
105998         * lib/mktime.c (not_equal_tm): Remove redundant check.
106000 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106002         * modules/regex (lib_SOURCES): Add regex.c.
106003         Reported by James Youngman in
106004         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
106006 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106008         * lib/getdate.y: Use Bison 1.875 features, and some minor
106009         code cleanups.  This change does not affect semantics.
106010         Don't include <stdlib.h>; no longer needed.
106011         Don't include unlocked-io.h; only the "#if TEST" code uses
106012         stdio, and performance isn't crucial there.
106013         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
106014         Bison 1.875 features as described below.
106015         All uses of "PC." replaced by "pc->".
106016         (YYSTYPE): Add a forward declaration.
106017         (yylex, yyerror): Use full prototypes in forward decls.
106018         Use "%pure-parser" rather than obsolescent "%pure_parser".
106019         Use %parse-param and %lex-param instead of obsolescent
106020         YYPARSE_PARAM and YYLEX_PARAM.
106021         (meridian_table, month_and_day_table, time_units_table,
106022         relative_time_table, time_zone_table, military_table,
106023         lookup_zone, lookup_word, get_date):
106024         Use NULL instead of 0 where appropriate.
106025         (to_hour): Avoid abort (), to avoid a dependency on
106026         stdlib.h.
106027         (yyerror, yylex): Now accepts parser_control * arg.
106028         (main) [TEST]: Use '\0' rather than 0 for char.
106030 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106032         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
106034 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106036         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
106037         It's now the caller's responsibility to handle the case where
106038         !HAVE_GETPAGESIZE && !defined getpagesize.
106040         * lib/mktime.c (leapyear): Arg is long int, not int.
106042 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
106044         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
106046 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
106048         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
106049         missing.  Problem reported by James Youngman.
106051 2004-10-16  Simon Josefsson  <jas@extundo.com>
106053         * gnulib-tool: Fix comments.  Fix parse problem.
106054         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
106056 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
106058         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
106059         implementation of getopt_long.  Problem reported by Alexander Taler in:
106060         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
106062 2004-10-15  Bruno Haible  <bruno@clisp.org>
106064         * gnulib-tool: Untabify. Initialize supplied_libname.
106065         (func_usage): More homogenous output.
106066         (func_modules_transitive_closure, func_modules_to_filelist,
106067         func_emit_lib_Makefile_am): New functions.
106068         (func_import): New function, extracted from big case statement. Use
106069         func_get_license, func_modules_transitive_closure,
106070         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
106071         opt_lgpl. Don't use test -a, as it's not portable.
106072         (func_create_testdir): Use func_modules_transitive_closure,
106073         func_modules_to_filelist, func_emit_lib_Makefile_am.
106075 2004-10-15  Bruno Haible  <bruno@clisp.org>
106077         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
106079 2004-10-15  Bruno Haible  <bruno@clisp.org>
106081         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
106082         the portions belonging to each module.
106083         Suggested by Derek Robert Price <derek@ximbiot.com>.
106085 2004-10-12  Simon Josefsson  <jas@extundo.com>
106087         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106088         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
106089         to real functions.
106091 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106093         * modules/vsnprintf: New file.
106095 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106097         * m4/vsnprintf.m4: New file.
106099 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106101         * lib/vsnprintf.h: New file.
106102         * lib/vsnprintf.c: New file.
106104 2004-10-11  Bruno Haible  <bruno@clisp.org>
106106         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
106107         vsnprintf.
106109 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
106111         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
106113 2004-10-07  Bruno Haible  <bruno@clisp.org>
106115         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
106116         fits into the provided buffer.
106118 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
106120         * lib/diacrit.c, diacrit.h: Add GPL notice.
106122         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
106123         notice.
106124         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
106125         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
106126         This avoids a potential constant-folding bug.
106128 2004-10-05  Bruno Haible  <bruno@clisp.org>
106130         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
106131         for the declaration of strsep.
106133 2004-10-05  Bruno Haible  <bruno@clisp.org>
106135         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
106137 2004-10-04  Simon Josefsson  <jas@extundo.com>
106139         * modules/memmem: New file.
106140         * tests/test-memmem.c: New file.
106141         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
106143 2004-10-04  Simon Josefsson  <jas@extundo.com>
106145         * m4/memmem.m4: New file.
106147 2004-10-04  Simon Josefsson  <jas@extundo.com>
106149         * lib/memmem.h: New file.
106150         * lib/memmem.c: New file, taken from glibc.
106152 2004-10-04  Simon Josefsson  <jas@extundo.com>
106154         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
106155         '#ifdef USE_UNLOCKED_IO'.
106157 2004-10-04  Simon Josefsson  <jas@extundo.com>
106159         * config/srclist.txt: Add memmem from glibc.
106161 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106163         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
106165         * modules/argmatch, modules/argp, modules/closeout, modules/error,
106166         modules/exclude, modules/getdate, modules/getline,
106167         modules/getndelim2, modules/getpass, modules/getpass-gnu,
106168         modules/getusershell, modules/linebuffer, modules/md5,
106169         modules/mountlist, modules/posixtm, modules/readtokens,
106170         modules/readutmp, modules/regex, modules/sha1,
106171         modules/version-etc, modules/yesno:
106172         Remove dependency on unlocked-io.
106174 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106176         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
106178         * m4/unlocked-io.m4: Add copyright notice.
106179         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
106181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106183         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
106184         * lib/xmalloc.c (xmemdup): Likewise.
106185         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
106186         XFREE): Remove these long-obsolescent macros.
106187         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
106188         * lib/xstrdup.c: Remove.
106190         * lib/regex.c (re_comp): Cast gettext return value to char *,
106191         Problem reported by Martin Neitzel via Mark D. Baushke.
106193 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106195         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
106196         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
106197         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
106198         regex.c, sha1.c, version-etc.c, yesno.c:
106199         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
106200         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
106201         the includer's responsibility.
106203         Sync from coreutils.
106205         * lib/modechange.c (mode_compile): Don't decrement a pointer that
106206         points to the start of a string, as the C Standard says the
106207         resulting behavior is undefined.
106209         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
106210         simple -> simple_backups, numbered_existing ->
106211         numbered_existing_backups, numbered -> numbered_backups
106212         to avoid shadowing problems.  All uses changed.
106213         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
106214         * lib/backupfile.c (check_extension, numbered_backup):
106215         Rename locals to avoid shadowing 'basename'.
106216         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
106217         once.
106219         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
106220         * lib/.cvsignore: Add getopt.h.
106222 2004-10-04  Bruno Haible  <bruno@clisp.org>
106224         * modules/README: New file.
106225         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
106226         not a module.
106228 2004-10-02  Jim Meyering  <jim@meyering.net>
106230         * lib/dirfd.h, getpagesize.h: Add copyright notice.
106232 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106234         * modules/strsep: New file.
106236 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106238         * m4/strsep.m4: New file.
106240 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106242         * lib/strsep.h: New file.
106243         * lib/strsep.c: New file.
106245 2004-10-01  Simon Josefsson  <jas@extundo.com>
106247         * lib/snprintf.c (snprintf): Handle size==0.
106249 2004-10-01  Simon Josefsson  <jas@extundo.com>
106250             Bruno Haible  <bruno@clisp.org>
106252         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
106253         (snprintf): Declare 'args'.
106255 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
106257         * lib/snprintf.c: Remove comments as to why each header is needed.
106259 2004-10-01  Bruno Haible  <bruno@clisp.org>
106261         * MODULES.html.sh: Add strsep.
106263 2004-09-30  Simon Josefsson  <jas@extundo.com>
106265         * modules/snprintf: New file.
106267 2004-09-30  Simon Josefsson  <jas@extundo.com>
106269         * m4/snprintf.m4: New file.
106271 2004-09-30  Simon Josefsson  <jas@extundo.com>
106273         * lib/snprintf.h, lib/snprintf.c: New files.
106275 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106277         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
106278         (hol_entry_help): Never translate an empty string.
106279         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
106280         * lib/argp.h (OPTION_NO_TRANS): New option.
106282 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106284         * modules/argp (Maintainer): Replace Simon Josefsson
106285         by Sergey Poznyakoff.
106287 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106289         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
106290         changes merged back into glibc.
106292 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106294         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
106296 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
106298         * lib/xvasprintf.c: Include xalloc.h.
106299         (xvasprintf): Use xalloc_die, not xmalloc_die.
106301 2004-09-29  Bruno Haible  <bruno@clisp.org>
106303         * modules/alloca-opt: New file, derived from modules/alloca.
106304         * modules/allocsa: Depend on alloca-opt instead of alloca.
106305         * modules/setenv: Likewise.
106306         * modules/vasnprintf: Likewise.
106307         * MODULES.html.sh: Add alloca-opt.
106309 2004-09-28  Simon Josefsson  <jas@extundo.com>
106311         * gnulib-tool: New parameter --lgpl, to asseert that modules are
106312         LGPL, and to replace license template from GPL to LGPL.
106314 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106316         * modules/dummy: Change license to LGPL.
106318 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106320         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
106322 2004-09-24  Simon Josefsson  <jas@extundo.com>
106324         * modules/minmax (License): Change from GPL to LGPL.
106326 2004-09-23  Simon Josefsson  <jas@extundo.com>
106328         * gnulib-tool (--import): Typo.
106330 2004-09-23  Simon Josefsson  <jas@extundo.com>
106332         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
106334 2004-09-22  Bruno Haible  <bruno@clisp.org>
106336         * modules/*: Add 'License' field.
106337         * gnulib-tool: Accept --extract-license option.
106338         (func_get_license): New function.
106340 2004-09-21  Bruno Haible  <bruno@clisp.org>
106342         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
106343         Reported by Simon Josefsson.
106345 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106347         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
106348         gl_AC_TYPE_LONG_LONG.
106350 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106352         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
106354 2004-09-18  Simon Josefsson  <jas@extundo.com>
106355         and  Paul Eggert  <eggert@cs.ucla.edu>
106357         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
106358         calls with autoreconf.  Define GL_LIB.
106360 2004-09-14  Karl Berry  <karl@gnu.org>
106362         * config/srclist.txt: unsync setenv.c, sigh.
106364 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106366         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
106367         Problem reported by Bruno Haible in:
106368         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
106370 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106372         * config/srclist.txt: Comment out argp-pvh.c.
106374 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
106376         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
106377         in case some system header has #define'd it.  Problem reported by
106378         Soeren D. Schulze in
106379         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
106381 2004-09-09  Karl Berry  <karl@gnu.org>
106383         * regex.[ch]: delete from the root.  These were supposed to be
106384                 synced with emacs cvs, but this has not happened for about
106385                 a year, and anyway nothing else uses emacs regex.[ch].
106386                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
106387                 lib/regex[.ch] is untouched.
106389 2004-09-09  Bruno Haible  <bruno@clisp.org>
106391         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
106393 2004-09-09  Bruno Haible  <bruno@clisp.org>
106395         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
106396         modifications.
106397         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
106399 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106401         * modules/xvasprintf: New file.
106402         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
106404 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106406         * lib/xvasprintf.h: New file.
106407         * lib/xvasprintf.c: New file.
106408         * lib/xasprintf.c: New file.
106410 2004-09-08  Bruno Haible  <bruno@clisp.org>
106412         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
106414 2004-09-08  Bruno Haible  <bruno@clisp.org>
106416         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
106417         length is > INT_MAX.
106418         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
106419         more.
106421 2004-09-08  Bruno Haible  <bruno@clisp.org>
106423         * lib/stdint_.h: New file, taken from GNU clisp.
106425 2004-09-08  Bruno Haible  <bruno@clisp.org>
106426             Oskar Liljeblad  <oskar@osk.mine.nu>
106428         * modules/stdint: New file.
106429         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
106431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106433         Import from coreutils.
106434         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
106435         strings on unbounded length.  alloca's performance benefits aren't
106436         that important here.
106437         (V_STRDUP): Remove.
106438         (parse_with_separator): New function, with most of the internals
106439         of the old parse_user_spec.  Allow user to omit both user and group,
106440         for compatibility with FreeBSD.
106441         Clone only the user name, not the entire spec.
106442         Do not set *uid, *gid unless entirely successful.
106443         Avoid memory leak in some failing cases.
106444         Fix regression for USER.GROUP reported by Dmitry V. Levin in
106445         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
106446         (parse_user_spec): Rewrite to use parse_with_separator.
106448 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106450         * modules/userspec: Don't depend on alloca.
106452 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106454         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
106456 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106458         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
106459         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
106460         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
106462 2004-08-16  Simon Josefsson  <jas@extundo.com>
106464         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
106465         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
106466         Add --dry-run for --import.
106467         Let user provided command line parameters override configure.ac
106468         settings.
106470 2004-08-12  Simon Josefsson  <jas@extundo.com>
106472         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
106473         as discussed with Paul Eggert in threads rooted at
106474         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
106475         and
106476         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
106477         Before, the test was empty, and relied on ELIDE_CODE in source
106478         code.)
106479         (gl_PREREQ_GETOPT): New macro.
106480         (gl_GETOPT): Use them.
106482 2004-08-12  Simon Josefsson  <jas@extundo.com>
106484         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
106485         * lib/getopt_.h: Renamed from getopt.h.
106487 2004-08-12  Simon Josefsson  <jas@extundo.com>
106489         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
106490         Change default library name from libfoo to libgnu.
106491         Now, if you have a configure.ac that says:
106492                 gl_SOURCE_BASE(gl)
106493                 gl_M4_BASE(gl/m4)
106494                 gl_MODULES(error getopt etcetera)
106495                 gl_INIT
106496         you can import all you need by running:
106497                 ../gnulib/gnulib-tool --import
106499         * modules/getopt (Files): Rename getopt.h to getopt_.h.
106500         (Makefile.am): Rewrite, use logic from argz.
106501         (Include): Use <getopt.h> instead of "getopt.h".
106503 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106505         * modules/argp (Files): Add m4/unlocked-io.m4.
106506         (Depends-on): Add extensions.
106508 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106510         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
106511         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
106512         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
106513         Check for program_invocation_name, program_invocation_short_name,
106514         flockfile, funlockfile, features.h, _getopt_long_only_r.
106516 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106518         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
106519         its complicated substitute.
106520         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
106521         and program_invocation_name.
106522         (__argp_basename) [!_LIBC]: Remove; the only use was
106523         replaced by its body.
106524         (__argp_short_program_name): Change condition from
106525         !defined __argp_short_program_name to
106526         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
106527         to match argp-namefrob.h.
106528         (__argp_failure): Don't assume strerror_r returns char *.
106529         * lib/argp-parse.c (N_): Define unconditionally.
106530         (argp_default_options): Fill out initializers with 0 to avoid
106531         gcc warnings.
106533 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106535         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
106536         getopt1.c.
106538 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106540         Merge from coreutils.
106542         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
106544         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
106545         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
106547 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106549         Merge from coreutils.
106551         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
106552         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
106553         for Reliant Unix 5.43.
106555         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
106556         (union fooround): Use uintmax_t, not long int.
106557         The rest is a merge from libc:
106558         [defined _LIBC]: Include <shlib-compat.h>.
106559         (_obstack) [defined _LIBC]: Remove after 2.3.4.
106561         * lib/settime.c (settime): Recode to avoid warning with
106562         Sun Forte C 6U2.
106564         * lib/strverscmp.c: Convert to UTF-8.
106566 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106568         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
106569         m4/uintmax_t.m4.
106571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106573         * modules/xalloc-die: New file.
106574         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
106576         * modules/md5 (Files): Add m4/uint32_t.m4.
106577         * modules/sha1: Renamed from modules/sha.
106578         (Files):
106579         Rename lib/sha.h to lib/sha1.h.
106580         Rename lib/sha.c to lib/sha1.c.
106581         Rename m4/sha.m4 to m4/sha1.m4.
106582         (lib_SOURCES): Likewise.
106583         (configure.ac): Rename gl_SHA to gl_SHA1.
106584         (Include): sha.h -> sha1.h.
106586 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106588         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
106589         * m4/sha1.m4: Renamed from sha.m4.
106590         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
106592 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106594         * lib/obstack.h (obstack_empty_p):
106595         Don't assume that chunk->contents is suitably aligned.
106596         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106597         Likewise. Problem reported by Benno in
106598         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106600         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106601         readable.  This could be improved further but it'd take some work.
106603 2004-08-08  Simon Josefsson  <jas@extundo.com>
106605         * modules/xgethostname (Depends-on): Remove exit and error (not
106606         used).
106608         * modules/getpass-gnu: Add getpass.h.
106609         (Depends-on): Add stdbool.
106610         * modules/getpass: Add getpass.h.
106612 2004-08-08  Simon Josefsson  <jas@extundo.com>
106614         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106615         Check getpass declaration.
106617 2004-08-08  Simon Josefsson  <jas@extundo.com>
106619         * lib/xgethostname.c: Don't include error.h (not used).
106621         * lib/getpass.h: Add.
106622         * lib/getpass.c: Include getpass.h first.
106624 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106626         * lib/xalloc-die.c: New file.
106627         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106628         All uses removed.
106629         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106630         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106631         xalloc-die.c.
106632         (_, N_, xalloc_die): Move to xalloc-die.c.
106633         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106634         so that we needn't mess with xalloc_msg_memory_exhausted.
106636         * lib/sha1.h: Renamed from sha.h.
106637         (SHA1_H): Renamed from _SHA_H.
106638         (sha1_ctx): Renamed from sha_ctx.
106639         (sha1_init_ctx): Renamed from sha_init_ctx.
106640         (sha1_process_block): Renamed from sha_process_block.
106641         (sha1_process_bytes): Renamed from sha_process_bytes.
106642         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106643         (sha1_read_ctx): Renamed from sha_read_ctx.
106644         (sha1_stream): Renamed from sha_stream.
106645         (sha1_buffer): Renamed from sha_buffer.
106646         * lib/sha1.c: Likewise; renamed from sha.c.
106647         Do not include <sys/types.h>.
106648         Include <stddef.h> rather than <stdlib.h>.
106650 2004-08-08  Bruno Haible  <bruno@clisp.org>
106652         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106653         FILESYSTEM_PREFIX_LEN.
106654         * lib/progreloc.c: Likewise.
106655         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106657 2004-08-06  Simon Josefsson  <jas@extundo.com>
106659         * modules/progname (Depends-on): Don't depend on stdbool.
106661 2004-08-06  Simon Josefsson  <jas@extundo.com>
106663         * modules/getsubopt: New file.
106664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106665         getsubopt.
106667 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106669         More merge from coreutils.
106671         * m4/utimens.m4, m4/utimecmp.m4: New files.
106672         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106673         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106674         prereq.m4, sha.m4: Import changes from coreutils.
106676 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106678         More merge from coreutils.
106679         * modules/raise, modules/readtokens0, modules/utimens:
106680         * modules/utimecmp, module/xnanosleep: New files.
106681         * modules/strftime: Add lib/strftime.h.
106682         Change include from <time.h> to "strftime.h".
106683         * modules/yesno: Add lib/yesno.h.
106684         * modules/backupfile: Remove lib/addext.c.
106685         * modules/euidaccess: Add stat-macros.h.
106686         * modules/canonicalize, modules/euidaccess,
106687         modules/filemode, modules/lchown, modules/makepath,
106688         modules/rmdir, modules/stat: Likewise.
106690 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106692         Merge from tar.
106693         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106694         SIZE_MAX is a valid preprocessor constant.
106695         (__argp_basename): Change from "#ifndef _LIBC"
106696         to "#ifndef __argp_short_program_name", so that
106697         we don't compile these functions for tar.
106699         More merges from coreutils.
106700         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106701         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106702         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106703         * lib/addext.c: Remove; no longer needed.
106704         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106705         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106706         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106707         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106708         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106709         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106710         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106711         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106712         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106713         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106714         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106715         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106716         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106717         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106718         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106719         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106720         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106721         Import changes from coreutils.
106723 2004-08-05  Simon Josefsson  <jas@extundo.com>
106725         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106727 2004-08-05  Simon Josefsson  <jas@extundo.com>
106729         * m4/getsubopt.m4: New file.
106731 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106733         Merge from coreutils.
106735         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106736         * m4/getcwd-path-max.m4: New files.
106738         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106739         FILESYSTEM_PREFIX_LEN ->
106740         FILE_SYSTEM_PREFIX_LEN.
106741         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106742         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106743         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
106744         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
106746         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
106747         prerequisite modules now handle the DOS stuff.
106748         Don't check for unistd.h.
106750 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106752         Merge from coreutils.
106754         * lib/.gdb-history: Remove; this doesn't belong here.
106756         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
106757         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
106758         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
106759         * lib/getcwd.c: New files.
106761         * lib/dirname.h: Include <stdbool.h>.
106762         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
106763         for consistency with POSIX terminology.  All uses changed.
106764         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
106765         (strip_trailing_slashes): Use bool for booleans.
106766         * lib/stripslash.c (strip_trailing_slashes): Likewise.
106768         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
106769         sometimes returns a positive errno value even when it succeeds.
106770         (print_errno_message) [!LIBC]: Fall back on strerror if
106771         __strerror_r fails.
106773         * lib/path-concat.c (mempcpy): Don't define if a system header defines
106774         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
106775         (longest_relative_suffix): New function.
106776         (path_concat): Use it.  Assume first argument is not NULL.
106777         Port to DOS.  Omit redundant separators.
106778         Report an error instead of returning NULL.
106779         Use mempcpy instead of memcpy.
106780         (xpath_concat): Remove: not declared or used.
106782         * lib/same.h: Include <stdbool.h>
106783         (same_name): Return bool, not int.
106784         * lib/same.c (same_name): Likewise.
106785         (errno): Don't declare; we assume C89 or better now.
106787         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
106788         if not already defined.
106790         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
106791         * lib/dup-safer.c (errno): Likewise.
106793 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106795         Merge from coreutils.
106796         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
106797         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
106798         * modules/path-concat: Don't depend on strdup.
106800 2004-08-03  Simon Josefsson  <jas@extundo.com>
106802         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
106803         * lib/progname.h: Don't include stdbool.h.
106805 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106807         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
106808         * MODULES.html.sh (func_all_modules): Remove fatal.
106810 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106812         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
106814 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106816         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
106817         working.
106819 2004-08-02  Simon Josefsson  <jas@extundo.com>
106821         * lib/getsubopt.h: New file, with comments from Bruno Haible.
106822         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
106823         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
106825 2004-08-01  Simon Josefsson  <jas@extundo.com>
106827         * lib/xgetdomainname.c: Include stdlib.h, for free().
106829 2004-07-19  Bruno Haible  <bruno@clisp.org>
106831         * MODULES.html.sh (func_all_modules): Add dummy.
106833 2004-07-16  Simon Josefsson  <jas@extundo.com>
106835         * modules/dummy: New file.
106837 2004-07-16  Simon Josefsson  <jas@extundo.com>
106839         * lib/dummy.c: New file.
106841 2004-07-16  Bruno Haible  <bruno@clisp.org>
106843         * lib/backupfile.h: Add extern "C" for C++.
106844         * lib/closeout.h: Likewise.
106845         * lib/copy-file.h: Likewise.
106846         * lib/findprog.h: Likewise.
106847         * lib/full-write.h: Likewise.
106848         * lib/pathname.h: Likewise.
106849         * lib/progname.h: Likewise.
106850         * lib/stpcpy.h: Likewise.
106851         * lib/stpncpy.h: Likewise.
106852         * lib/strcase.h: Likewise.
106853         * lib/strstr.h: Likewise.
106854         * lib/xalloc.h: Likewise.
106856         * lib/mbswidth.h: Add extern "C" for C++.
106857         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106859 2004-07-13  Robert Millan  <robertmh@gnu.org>
106861         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106863 2004-07-09  Simon Josefsson  <jas@extundo.com>
106865         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106866         failed without this.)
106868 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106870         * modules/chown (Files): Add lib/fchown-stub.c, since
106871         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106873 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106875         * lib/fchown-stub.c: New file.
106877 2004-06-24  Jim Meyering  <jim@meyering.net>
106879         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106883         * modules/argz: Omit "#include".
106885         * MODULES.html.sh (func_all_modules): Add calloc, to match
106886         2004-06-01 addition of calloc module.
106888 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106890         * m4/argz.m4: New file, which is autoupdated from libtool.
106892 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106894         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106895         libtool.
106897 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106899         * config/srclist-update: Don't insist on "USA." before the
106900         close-comment, as libtool omits the period and puts the */ on a
106901         separate line.
106902         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106903         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106905 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106907         * modules/argz: New file.
106908         * MODULES.html.sh (func_all_modules): Add argz.
106910 2004-06-12  Jim Meyering  <jim@meyering.net>
106911         and  Paul Eggert  <eggert@cs.ucla.edu>
106913         * modules/hash (Files): Add lib/xalloc.h.
106914         * modules/pipe (Depends-on): Add wait-process.
106915         * modules/stat (Depends-on): Add xalloc.
106916         * modules/userspec (Files): Add lib/userspec.h.
106917         * modules/xstrto
106919         Upgrade from gettext-0.13.
106920         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
106921         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
106922         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
106924 2004-06-10  Jim Meyering  <jim@meyering.net>
106926         * lib/calloc.c: New file.
106928 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
106930         * lib/getdate.y (yylex): Allow space between sign and number.
106931         Problem reported by Dan Jacobson.
106933 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106935         Merge from coreutils CVS.
106937         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
106938         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
106939         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
106940         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
106941         xstrtol.m4: Fix copyright date and/or serial number.
106943         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
106944         See if we need an fchown replacement.
106945         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
106946         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
106947         and use the replacement function if we detect either defect.
106949         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
106950         gl_UTIMECMP.
106952 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106953         and  Jim Meyering  <jim@meyering.net>
106955         Merge from coreutils CVS.
106957         * lib/stat-macros.h: New file, with contents from file-type.h
106958         and coreutils' system.h.
106959         * lib/file-type.c: Include "stat-macros.h".
106960         * lib/file-type.h (file_type): Move all macro definitions to new file,
106961         stat-macros.h.
106963         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
106964         Wrap old code with this conditional.
106965         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
106966         function that does not dereference symlinks.
106967         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
106969         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
106970         dependency problems.
106971         (xreadlink): Accept new arg SIZE, for efficiency.
106972         All decls and uses changed.
106973         * lib/xreadlink.h: Include <stddef.h>, for size_t.
106975         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
106976         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
106978         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
106979         sysexits.h.
106981 2004-06-01  Jim Meyering  <jim@meyering.net>
106983         * m4/calloc.m4: New file.
106985 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
106987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
106988         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
106989         Also, fix a typo in a diagnostic.
106991 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106993         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
106994         or AC_FUNC_REALLOC.
106996 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106998         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
106999         macros to be defined.
107000         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
107001         the allocator returns NULL because the requested size is zero.
107003 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
107005         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
107006         var.  Add comment explaining why libc still defines it.  This
107007         merges the following patch from glibc:
107008         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
107010 2004-05-20  Andreas Schwab  <schwab@suse.de>
107012         * m4/free.m4: Replace free if it not known to work, not the other
107013         way round.
107015 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
107017         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
107018         present in glibc since revision 1.1 of this file.
107019         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
107020         obstack_alignment_mask, obstack_alloc, obstack_base,
107021         obstack_blank, obstack_blank_fast, obstack_chunk_size,
107022         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
107023         obstack_grow0, obstack_init, obstack_int_grow,
107024         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
107025         obstack_next_free, obstack_object_size, obstack_ptr_grow,
107026         obstack_ptr_grow_fast, obstack_room): Remove declarations of
107027         nonexistent functions.
107029 2004-05-18  Karl Berry  <karl@gnu.org>
107031         * config/srclist.txt: break link for vasnprintf.c.
107033 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107035         Port obstack to the AS/400, where pointers are 16 bytes wide and
107036         you cannot cast an integer to a valid pointer.  This patch is
107037         currently waiting to be integrated into glibc; see
107038         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
107040         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
107041         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
107042         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
107043         (struct obstack): temp member is now a union of a pointer and
107044         an integer, instead of an integer.  All integer uses changed.
107045         This does not affect the physical layout of struct obstack,
107046         except on hosts (like the AS/400) where the size or alignment of
107047         void * is greater than that of ptrdiff_t.
107048         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
107049         __STDC__)]: Store temporary in pointer member of union, not
107050         integer member.
107051         * lib/obstack.c: Include <stddef.h>, for offsetof.
107052         (struct fooalign): Remove; it doesn't need a name.
107053         (union fooround): Change double to long double, and add void *.
107054         (DEFAULT_ALIGNMENT): Use offsetof to compute.
107055         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
107056         not a macro.  Hence the values are always int; so remove all
107057         casts-to-int in uses.
107059 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107061         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
107062         we can get this patch merged into glibc.
107064 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107065             Paul Eggert  <eggert@cs.ucla.edu>
107067         * m4/argp: Depend on alloca.
107069 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107070             Paul Eggert  <eggert@cs.ucla.edu>
107072         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
107073         freecoding.
107075 2004-05-17  Bruno Haible  <bruno@clisp.org>
107077         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
107078         precision that consists of a '.' followed by an empty digit string.
107079         Patch by Tor Lillqvist <tml@iki.fi>.
107081 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107083         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
107084         for backward compatibility with older code.  We need our own
107085         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
107086         it under some other name, and our alloca.h will define it.
107088 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107089             Derek Price  <derek@ximbiot.com>
107091         * lib/alloca.c: Include <alloca.h>, to get our interface.
107092         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
107093         include <alloca.h> first.  Use C89 prototype for alloca; this
107094         requires including <stddef.h> for size_t.  Use extern "C" if C++.
107095         Use #elif for simplicity, since we can assume C89 now.
107096         Don't try to source the system alloca.h since it will not be found
107097         and to prevent recursively including its replacement.
107098         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
107099         * lib/regex.c: Likewise.
107101 2004-05-16  Derek Price  <derek@ximbiot.com>
107102             Paul Eggert  <eggert@cs.ucla.edu>
107104         getline cleanup.  This changes the getndelim2 API: both order of
107105         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
107106         no delimiter).
107108         * lib/getline.c: Don't include stddef.h or stdio.h, since our
107109         interface does that.
107110         (getline): Always use getdelim, so that we don't have two
107111         copies of this code.
107112         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
107113         if available.
107114         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
107115         (GETNDELIM2_MAXIMUM): New macro.
107116         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
107117         instead of the old practice of delim2==0.  All callers changed.
107118         Return -1 on overflow, instead of returning junk.
107119         Do not set *linesize unless allocation succeeds.
107120         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
107121         that we include sys/types.h.
107122         * lib/getnline.h: Likewise.
107123         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
107124         (getndelim2): Reorder arguments.
107125         * lib/getnline.c (getnline, getndelim):
107126         Don't discard the NMAX argument.
107127         (getnline): Invoke getndelim, to avoid code duplication.
107128         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
107129         of (size_t) -1 by callers of the getnline family.
107131 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107133         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
107134         Check for gettimeofday.
107135         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
107136         Check for settimeofday, stime.
107138 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107140         * lib/nanosleep.c (suspended): Change its type from int to
107141         sig_atomic_t volatile.
107142         (first_call): Make it private to rpl_nanosleep, and have it
107143         be zero initially as that's a bit faster.
107144         (my_usleep): Round up fractional times instead of truncating them,
107145         as this is the usual meaning for 'sleep'.
107147         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
107148         doesn't work.
107149         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
107150         (ENOSYS): Define if not defined.
107151         (settime): Fall back on stime if it exists and settimeofday fails.
107152         But don't bother with fallbacks if a method fails with errno == EPERM.
107154 2004-05-11  Jim Meyering  <jim@meyering.net>
107156         Prior to this change, the save_cwd caller required read access to the
107157         current directory on most systems (ones with the fchdir function).
107159         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
107160         fails, try write-only, and finally, resort to using xgetcwd.
107162 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
107164         * lib/obstack.c, obstack.h: Import changes from libc.
107166 2004-04-28  Bruno Haible  <bruno@clisp.org>
107168         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
107169         also implicitly appends .exe to executables.
107170         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
107171         accepts Windows pathnames.
107172         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107173         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107174         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107175         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107176         Reported by Derek Robert Price <derek@ximbiot.com>.
107178 2004-04-21  Karl Berry  <karl@gnu.org>
107180         * config/srclist.txt (localcharset.c): break sync.
107182 2004-04-20  Paul Eggert  <eggert@twinsun.com>
107184         * m4/host-os.m4: Add a copyright notice.
107186 2004-04-20  Jim Meyering  <jim@meyering.net>
107188         Change UTILS_ to gl_ in AC_DEFINE'd names.
107189         Change utils_- and jm_-prefixed variables, too.
107190         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
107191         UTILS_FUNC_MKDIR_TRAILING_SLASH.
107192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
107194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
107195         Don't emit trailing blanks.
107196         Also rename jm_-prefixed variables to have gl_ prefix.
107198         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
107199         Also rename jm_-prefixed variables to have gl_ prefix.
107201         * m4/jm-macros.m4: Reflect the renamings.
107202         * m4/prereq.m4: Likewise.
107204 2004-04-20  Jim Meyering  <jim@meyering.net>
107206         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
107207         memory.
107209 2004-04-20  Jim Meyering  <jim@meyering.net>
107210             Bruno Haible  <bruno@clisp.org>
107212         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
107213         memory when realloc fails.
107215 2004-04-19  Jim Meyering  <jim@meyering.net>
107217         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
107218         now that readutmp.c may call `free (0)'.
107220 2004-04-19  Bruno Haible  <bruno@clisp.org>
107222         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
107223         * m4/inttypes_h.m4: Likewise.
107224         * m4/stdint_h.m4: Likewise.
107225         * m4/intmax_t.m4: Likewise.
107226         * m4/uintmax_t.m4: Likewise.
107228 2004-04-18  Jim Meyering  <jim@meyering.net>
107230         * m4/prereq.m4: Don't forbid jm_ prefix.
107232         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
107233         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
107234         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
107235         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
107236         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
107237         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
107238         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
107239         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
107240         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
107241         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
107242         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
107243         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
107244         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
107245         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
107246         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
107247         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
107248         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
107249         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
107250         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
107252 2004-04-18  Jim Meyering  <jim@meyering.net>
107254         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
107255         failure, don't leak memory and do call END_UTMP_ENT.
107257 2004-04-16  Jim Meyering  <jim@meyering.net>
107259         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
107260         coreutils' stat program.
107261         (gl_PREREQ): Don't require jm_PREREQ_STAT.
107263 2004-04-11  Paul Eggert  <eggert@twinsun.com>
107265         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
107266         C89.
107267         (CHAR_BIT): Remove, since we assume C89.
107268         Include <stdint.h> if available, as per current Autoconf CVS advice.
107270 2004-03-31  Jim Meyering  <jim@meyering.net>
107272         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
107273         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
107274         * m4/xalloc.m4: Likewise.
107276 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107278         Merge from coreutils.
107280         * m4/inttostr.m4: New file.
107281         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
107282         Require AM_STDBOOL_H and gl_TIMESPEC instead.
107283         Require gl_CLOCK_TIME.
107284         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
107286 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107288         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
107289         not bool, to be more consistent with Unix conventions.
107290         Suggested by Bruno Haible.
107292         Merge from coreutils.
107294         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
107295         * lib/umaxtostr.c: New files.
107297         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
107298         the usual <time.h> dance.
107299         (get_date): Change signature to support fractional time stamps.
107300         All callers changed.
107301         * lib/getdate.y: Include "getdate.h" first, as we can now
107302         assume C89 and don't need to worry about 'const'.
107303         Similarly, include "unlocked-io.h" near start, not in middle.
107304         Include <limits.h>.
107305         (textint.value): Use long int rather than int.
107306         (textint.digits): Use size_t rather than int.
107307         (BILLION, LOG10_BILLION): New constants.
107308         (parser_control): New member rel_ns.  Members day_ordinal,
107309         time_zone, month, day, hour, minutes, rel_year, rel_month,
107310         rel_day, rel_hour, rel_minutes, rel_seconds
107311         are now long int, not int.  Member seconds is now struct timespec,
107312         not int.  New member timespec_seen.  Members dates_seen, days_seen,
107313         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
107314         not int.
107315         (%union.intval): Now long int, not int.
107316         New member timespec.
107317         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
107318         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
107319         (spec): Now is a timespec or an item list.
107320         (timespec, items): New nonterminals.
107321         (time, rel, relunit, number, get_date):
107322         Add support for fractional seconds.
107323         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
107324         (gmtime, localtime, mktime): Remove decls; not needed with C89.
107325         (to_hour): First arg is now long int, not int.
107326         (to_year): Returns long int, not int.
107327         Don't treat year -70 like 70.
107328         (tm_diff): Returns long int, not int.
107329         (lookup_word): Use bool instead of int when appropriate.
107330         (yylex): Use size_t for count, not int.
107331         Detect overflow when parsing large integer constants.
107332         Add support for fractions.
107333         (get_date): Make pointers 'const' if possible.
107334         Use more-portable code to detect integer overflow.
107335         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
107336         Don't use ctime; it's not reliable if the year has >4 digits.
107338         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
107339         This is for compatibility with BSD.
107341         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
107342         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
107343         From coreutils' system.h.
107345         * lib/userspec.c: Don't include "posixver.h".
107346         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
107347         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
107348         compatible extension.  Simplify code by removing a boolean int
107349         that was always nonzero if a string was nonnull.
107351 2004-03-30  Jim Meyering  <jim@meyering.net>
107353         Merge from coreutils.
107355         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
107356         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
107357         on some systems one must include <grp.h> before it.
107358         Reported by Christian Krackowizer.
107360 2004-03-30  Jim Meyering  <jim@meyering.net>
107362         Merge from coreutils.
107364         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
107366         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
107367         an empty input stream.
107369         * lib/readtokens.c: Include <stdbool.h>.
107370         (readtoken): Use `size_t' rather than int/long.
107371         All callers adjusted.
107372         Use `bool' rather than `int' where appropriate.
107373         Use memset rather than an explicit loop.
107374         Use x2nrealloc rather than xrealloc.
107375         Allow the use of `\0' as a delimiter.
107376         (readtokens): Likewise.
107377         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
107379 2004-03-30  Jim Meyering  <jim@meyering.net>
107381         * m4/realloc.m4: Remove file, since now it does no more than
107382         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
107383         the `configure.ac' section of module/realloc.
107384         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
107386 2004-03-30  Bruno Haible  <bruno@clisp.org>
107388         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
107389         nonnull.
107391 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107393         Merge changes to getloadavg.c from coreutils and Emacs.
107395         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
107396         Define to an expression, not to the empty string.
107397         Include cloexec.h and xalloc.h.
107398         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
107399         Use set_cloexec_flag rather than rolling our own.
107400         * lib/cloexec.c, lib/cloexec.h: New files.
107402 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107404         * m4/cloexec.m4: New file.
107406 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107408         * lib/getopt.h: Sync with libc CVS.
107410 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107411             Bruno Haible  <bruno@clisp.org>
107413         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
107414         mbswidth.
107416 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107417             Bruno Haible  <bruno@clisp.org>
107419         * lib/mbswidth.h: Include <wchar.h> only if
107420         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
107421         <wchar.h>.
107422         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
107424 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107426         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
107427         Sync with libc CVS.
107428         * lib/getopt_int.h: New file, also synced from libc.
107430 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107432         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
107433         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
107434         Bring back getopt.c, getopt.h, getopt1.c.
107436 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107438         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
107439         All uses changed.  Check for sa_sigaction member; this fixes
107440         a bug first reported by Jason Andrade in
107441         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107443 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107445         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
107446         '#if' expressions.  Unlike the code it replaces, it does not
107447         depend on (defined _SC_PAGESIZE).  However, it does depend on
107448         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
107449         first reported by Jason Andrade in
107450         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107452 2004-02-25  Simon Josefsson  <jas@extundo.com>
107454         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
107456 2004-02-25  Simon Josefsson  <jas@extundo.com>
107458         * lib/strdup.h: New file.
107459         * lib/strdup.c: Include it.
107460         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
107461         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
107463 2004-02-23  Karl Berry  <karl@gnu.org>
107465         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
107466         (from fencepost.gnu.org:/gd/gnuorg).
107468 2004-02-23  Karl Berry  <karl@gnu.org>
107470         * config/srclistvars.sh (GNUORG) [karl]: redefine.
107471         * config/srclist.txt: add maintain/standards documents.
107473 2004-02-18  Bruno Haible  <bruno@clisp.org>
107475         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
107476         Reported by Derek Robert Price <derek@ximbiot.com>.
107478 2004-02-16  Karl Berry  <karl@gnu.org>
107480         * config/mkinstalldirs, install-sh: update from automake.
107482 2004-02-06  Karl Berry  <karl@gnu.org>
107484         * m4/po.m4: update from gettext 0.14.1.
107486 2004-02-06  Karl Berry  <karl@gnu.org>
107488         * lib/config.charset: update from gettext 0.14.1.
107490 2004-02-05  Paul Eggert  <eggert@twinsun.com>
107492         Add comments and code, prompted by suggestions from Bruno Haible
107493         for sh-quote.
107494         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
107495         describing the enum quoting_style values.
107496         * lib/quotearg.c (quotearg_alloc): New function.
107497         (quotearg_buffer_restyled): Treat lone { and } as special.
107498         Treat = as special.  Work around bug with older shells
107499         that "see" a '\' that is really the 2nd byte of a multibyte char.
107500         Quote empty string with shell_quoting_style.
107502 2004-02-03  Bruno Haible  <bruno@clisp.org>
107504         * m4/pipe.m4: New file, from GNU gettext.
107506 2004-02-03  Bruno Haible  <bruno@clisp.org>
107508         * lib/pipe.h: New file, from GNU gettext.
107509         * lib/pipe.c: New file, from GNU gettext.
107511 2004-01-27  Bruno Haible  <bruno@clisp.org>
107513         * m4/execute.m4: New file, from GNU gettext.
107515 2004-01-27  Bruno Haible  <bruno@clisp.org>
107517         * lib/execute.h: New file, from GNU gettext.
107518         * lib/execute.c: New file, from GNU gettext.
107519         * lib/w32spawn.h: New file, from GNU gettext.
107521 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107523         Merge from diffutils.
107525         * lib/file-type.c (file_type): Add typed memory objects.
107526         * lib/file-type.h (S_TYPEISTMO): New macro.
107528         * lib/c-stack.h (c_stack_action): Remove argv argument.
107529         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
107530         (die): Don't calculate message unless segv_action returns.
107531         (get_stack_location, min_address_from_argv, max_address_from_argv,
107532         volatile stack_base, volatile_stack_size): Remove.
107533         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
107534         that every segmentation violation is a stack overflow.  (Ouch!)
107535         See Debian bug 136249 (still outstanding) for more info about why
107536         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
107538 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107540         Exit-status fix from coreutils.
107542         Use exit_failure consistently in place of EXIT_FAILURE,
107543         so that program exit statuses are consistent on failure.
107545         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
107546         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
107547         * lib/argmatch.h: Comment fix to match the above.
107548         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
107549         Now a macro referring to exit_failure, instead of a separate
107550         variable.  Include "exitfail.h" to get it.
107551         * lib/xstrtol.h: Include "exitfail.h".
107552         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
107554         * lib/long-options.c (parse_long_options): Use prototype
107555         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
107556         for clarity.
107558 2004-01-21  Jim Meyering  <jim@meyering.net>
107560         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
107561         so as not to conflict with a different-sized __mktime_internal
107562         function in GNU libc.
107563         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
107564         Problem building statically-linked `ls' reported by Michael Brunnbauer.
107566 2004-01-20  Karl Berry  <karl@gnu.org>
107568         * config/config.guess: update from config.
107570         * config/srclistvars.sh: GNUWWWLICENSES for karl.
107572 2004-01-20  Bruno Haible  <bruno@clisp.org>
107574         Safer stack allocation.
107575         * lib/setenv.c: Include allocsa.h.
107576         (alloca): Remove fallback definition.
107577         (freea): Remove macro.
107578         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
107579         instead of freea.
107581 2004-01-20  Bruno Haible  <bruno@clisp.org>
107583         * m4/eealloc.m4: New file, from GNU gettext.
107585 2004-01-20  Bruno Haible  <bruno@clisp.org>
107587         * m4/allocsa.m4: New file, from GNU gettext.
107589 2004-01-20  Bruno Haible  <bruno@clisp.org>
107591         * lib/xallocsa.h: New file, from GNU gettext.
107592         * lib/xallocsa.c: New file, from GNU gettext.
107594 2004-01-20  Bruno Haible  <bruno@clisp.org>
107596         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107598 2004-01-20  Bruno Haible  <bruno@clisp.org>
107600         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107601         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107602         specially.
107604 2004-01-20  Bruno Haible  <bruno@clisp.org>
107606         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107607         patch.
107609 2004-01-20  Bruno Haible  <bruno@clisp.org>
107611         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107613 2004-01-20  Bruno Haible  <bruno@clisp.org>
107615         * lib/eealloc.h: New file.
107617 2004-01-20  Bruno Haible  <bruno@clisp.org>
107619         * lib/binary-io.h: Avoid warnings on Cygwin.
107621 2004-01-20  Bruno Haible  <bruno@clisp.org>
107623         * lib/allocsa.h: New file, from GNU gettext.
107624         * lib/allocsa.c: New file, from GNU gettext.
107626 2004-01-18  Karl Berry  <karl@gnu.org>
107628         * doc/gpl.texi, doc/lgpl.texi: new files.
107630 2004-01-18  Karl Berry  <karl@gnu.org>
107632         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107633         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107635 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107637         Merge from coreutils.
107639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107640         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107641         (gl_DEFAULT_POSIX2_VERSION): Move
107642         the documentation from 'configure' into 'config.hin',
107643         so that 'configure --help' isn't burdened by it and
107644         we don't have to worry about its formatting there.
107645         Reword the documentation so that it's more succinct
107646         and can be run together into a single paragraph.
107647         * m4/same.m4 (gl_SAME): Check for pathconf.
107649 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107651         Merge from coreutils.
107653         * lib/posixver.c: Include posixver.h.
107655         * lib/same.c: Include <stdbool.h>, <limits.h>.
107656         (_POSIX_NAME_MAX): Define if not defined.
107657         (MIN): New macro.
107658         (same_name): If file names are silently truncated, report
107659         that the file names are the same if they are the same after
107660         the silent truncation.
107662         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107663         conversion function.
107664         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107665         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107666         longer needed.
107668 2004-01-15  Jim Meyering  <jim@meyering.net>
107670         Merge from coreutils.
107672         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107673         if no library is required.
107674         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107675         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107676         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107677         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107678         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107679         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107680         value, $ac_cv_search_crypt, if it's "none required".
107681         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107682         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107683         not gl_FUNC_GETLOADAVG.
107684         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107685         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107687 2004-01-15  Jim Meyering  <jim@meyering.net>
107689         Merge from coreutils.
107691         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107692         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107693         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107695         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107696         optional configure-time default.
107698         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107700         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107702 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107704         Merge from coreutils.
107706         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107707         value, $ac_cv_search_nanosleep, if it's "none required".
107709 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107711         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107712         with like-named macro in fnmatch.c.
107713         (EXT): Use an internal constant instead.
107715         Merge fnmatch patches from glibc.
107716         * lib/fnmatch.c (mbsinit): Remove define.
107717         Add libc_hidden_ver (__fnmatch, fnmatch).
107718         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107719         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107721 2004-01-14  Karl Berry  <karl@gnu.org>
107723         * config/install-sh: update from automake.
107725 2004-01-13  Karl Berry  <karl@gnu.org>
107727         * config/install-sh: update from automake.
107729 2004-01-09  Karl Berry  <karl@gnu.org>
107731         * config/install-sh: update from automake.
107733 2004-01-05  Karl Berry  <karl@gnu.org>
107735         * config/config.{sub,guess}: update from config.
107737 2003-12-31  Karl Berry  <karl@gnu.org>
107739         * config/depcomp: update from automake.
107741 2003-12-14  Karl Berry  <karl@gnu.org>
107743         * lib/config.charset: update from gettext-runtime.
107745 2003-12-03  Paul Eggert  <eggert@twinsun.com>
107747         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
107748         Bug reported by Alfred M. Szmidt.
107750 2003-12-03  Bruno Haible  <bruno@clisp.org>
107752         * m4/gettext.m4: Upgrade from gettext-0.13.
107753         * m4/po.m4: Upgrade from gettext-0.13.
107754         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
107755         * m4/intmax.m4: New file, from gettext-0.13.
107756         * m4/printf-posix.m4: New file, from gettext-0.13.
107758 2003-11-29  Karl Berry  <karl@gnu.org>
107760         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
107762 2003-11-25  Paul Eggert  <eggert@twinsun.com>
107763             Bruno Haible  <bruno@clisp.org>
107765         * lib/printf-parse.h: Don't include sys/types.h.
107766         (ARG_NONE): New macro.
107767         (char_directive): Change type of *arg_index fields to size_t.
107768         * lib/printf-parse.c: Don't include sys/types.h.
107769         (SSIZE_MAX): Remove macro.
107770         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
107771         Remove unnecessary overflow check.
107772         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
107773         fields.
107775 2003-11-25  Bruno Haible  <bruno@clisp.org>
107777         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
107779 2003-11-25  Bruno Haible  <bruno@clisp.org>
107781         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
107782         gt_TYPE_SSIZE_T.
107784 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107786         * modules/alloca: Remove dependency on xalloc.
107788 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107790         * lib/alloca.c: Remove dependency on xalloc module.
107791         (xalloc_die): Remove.
107792         (memory_full) [!defined emacs]: New macro.
107793         [!defined emacs]: Don't include xalloc.h.
107794         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
107795         address arithmetic overflows.  Change datatypes a bit to avoid
107796         unnecessary casts.
107798 2003-11-22  Jim Meyering  <jim@meyering.net>
107800         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
107801         s/size/size_t/.
107803 2003-11-21  Karl Berry  <karl@gnu.org>
107805         * config/config.{sub,guess}: update from config.
107807 2003-11-18  Karl Berry  <karl@gnu.org>
107809         * config/config.{sub,guess}: update from config.
107811         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
107813 2003-11-17  Paul Eggert  <eggert@twinsun.com>
107815         * README: Mention that S+T cannot overflow if S is the size of
107816         an existing object and T is sufficiently small.
107818 2003-11-17  Jim Meyering  <jim@meyering.net>
107820         On systems without utime and without a utimes function capable of
107821         dealing with a NULL struct utimbuf* argument, this utime replacement
107822         could -- in unusual circumstances -- leak a file descriptor.
107823         * lib/utime.c: Include <unistd.h> and <errno.h>.
107824         (utime_null): Be sure to close `fd' and to preserve errno.
107825         Reported by Geoff Collyer via Arnold Robbins.
107827 2003-11-17  Bruno Haible  <bruno@clisp.org>
107829         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
107830         (Depends-on): Add xsize.
107832 2003-11-17  Bruno Haible  <bruno@clisp.org>
107834         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
107836 2003-11-17  Bruno Haible  <bruno@clisp.org>
107838         * lib/vasnprintf.c (alloca): Remove fallback definition.
107839         (freea): Remove definition.
107840         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
107841         Reported by Paul Eggert.
107843 2003-11-16  Paul Eggert  <eggert@twinsun.com>
107844             Bruno Haible  <bruno@clisp.org>
107846         Protect against address arithmetic overflow.
107847         * lib/printf-args.h: Include stddef.h.
107848         (arguments): Change type of field 'count' to size_t.
107849         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
107850         'unsigned int' where appropriate.
107851         * lib/printf-parse.h: Include sys/types.h.
107852         (char_directive): Change type of *arg_index fields to ssize_t.
107853         (char_directives): Change type of fields 'count', max_*_length to
107854         size_t.
107855         * lib/printf-parse.c: Include sys/types.h and xsize.h.
107856         (SSIZE_MAX): Define fallback value.
107857         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107858         instead of 'int' where appropriate. Check a_allocated, d_allocated
107859         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107860         * lib/vasnprintf.c: Include xsize.h.
107861         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107862         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107863         overflow. Avoid wraparound when converting a width or precision from
107864         decimal to binary.
107866 2003-11-16  Bruno Haible  <bruno@clisp.org>
107868         Update from GNU gettext.
107869         * lib/printf-parse.c: Generalize to it can be compiled for wide
107870         strings.
107871         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107872         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107873         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107874         SNPRINTF): New macros.
107875         Don't include <alloca.h> if the file is used inside libintl.
107876         (local_wcslen): New function, for Solaris 2.5.1.
107877         (VASNPRINTF): Use it instead of wcslen.
107879 2003-11-16  Bruno Haible  <bruno@clisp.org>
107881         * lib/xsize.h (xmax): New function.
107882         (xsum, xsum3, xsum4): Declare as "pure" functions.
107884 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107886         * modules/xalloc (Files): Undo latest change, since xalloc.h
107887         no longer needs SIZE_MAX or PTRDIFF_MAX.
107889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107891         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107892         gl_PTRDIFF_MAX.
107894 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107896         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107897         "return", to pacify some unknown compiler.  Problem reported
107898         by Joerg Schilling.
107900 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107902         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107903         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107904         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107905         heuristic is just as accurate as far as we know, and it removes a
107906         dependency on size_max.m4 and ptrdiff_max.m4.
107908 2003-11-11  Bruno Haible  <bruno@clisp.org>
107910         * modules/xsize (Files): Add m4/size_max.m4.
107911         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107913 2003-11-11  Bruno Haible  <bruno@clisp.org>
107915         * m4/size_max.m4: New file.
107916         * m4/ptrdiff_max.m4: New file.
107917         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
107918         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
107919         (gl_XALLOC): Invoke it.
107921 2003-11-11  Bruno Haible  <bruno@clisp.org>
107923         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
107924         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
107925         defined.
107927 2003-11-10  Paul Eggert  <eggert@twinsun.com>
107929         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
107930         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
107931         rejected some allocations of exactly SIZE_MAX - 2 bytes.
107932         From Bruno Haible.
107933         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
107934         not (size_t) -1, since it's defined here.
107936 2003-11-09  Karl Berry  <karl@gnu.org>
107938         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
107940 2003-11-06  Paul Eggert  <eggert@twinsun.com>
107942         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
107943         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
107944         Reject sizes of exactly SIZE_MAX bytes.
107945         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
107946         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
107948 2003-11-05  Bruno Haible  <bruno@clisp.org>
107950         * lib/xsize.h: Include limits.h, to avoid a possible collision with
107951         SIZE_MAX defined in <limits.h> on Solaris.
107953 2003-11-04  Jim Meyering  <jim@meyering.net>
107955         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
107956         variable names, rather than @VAR@.
107957         * modules/poll: Likewise.
107959 2003-11-04  Bruno Haible  <bruno@clisp.org>
107961         * modules/xsize: New file.
107962         * modules/linebreak: Depend on xsize.
107963         * MODULES.html.sh (func_all_modules): Add xsize.
107965 2003-11-04  Bruno Haible  <bruno@clisp.org>
107967         * m4/xsize.m4: New file.
107969 2003-11-04  Bruno Haible  <bruno@clisp.org>
107971         * lib/xsize.h: New file.
107972         * lib/linebreak.c: Include xsize.h.
107973         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
107974         argument for overflow.
107975         Suggested by Paul Eggert.
107977 2003-11-03  Karl Berry  <karl@gnu.org>
107979         * config/config.{guess,sub}: update from config.
107981 2003-11-03  Jim Meyering  <jim@meyering.net>
107983         * modules/userspec (lib_SOURCES): Add userspec.h.
107984         (Include): Add "userspec.h".
107985         Improve description.
107987 2003-11-03  Jim Meyering  <jim@meyering.net>
107989         * lib/userspec.c: Include "userspec.h".
107990         * lib/userspec.h: New file.
107992 2003-11-03  Bruno Haible  <bruno@clisp.org>
107994         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
107996 2003-11-03  Bruno Haible  <bruno@clisp.org>
107998         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
107999         available, to avoid (extremely rare) race condition.
108000         Suggested by Paul Eggert.
108002 2003-11-02  Karl Berry  <karl@gnu.org>
108004         * config/srclist.txt (vasprintf.c): sync broken, sigh.
108006 2003-10-31  Paul Eggert  <eggert@twinsun.com>
108008         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
108009         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
108010         (read_filesystem_list): Set and use me_type_malloced.
108011         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
108012         whatever the type happens to be), for brevity and consistency.
108013         Check for size calculation overflow on Alphas running OSF/1.
108015 2003-10-31  Jim Meyering  <jim@meyering.net>
108017         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
108019         * lib/linebuffer.c: Include <string.h> for declaration of memset.
108021 2003-10-30  Paul Eggert  <eggert@twinsun.com>
108022             Bruno Haible  <bruno@clisp.org>
108024         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
108025         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
108027 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108029         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
108030         netbsd*-gnu*.  Suggested by Robert Millan.
108032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108034         * modules/group-member: Depend on stdbool.
108036 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108038         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
108040 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108042         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
108043         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
108044         after the 'gnu' in these cases.  This fixes some bugs in the
108045         previous change, and is based on suggestions by Robert Millan.
108047 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108049         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
108050         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
108051         no longer needed.
108052         * lib/quotearg.c (quotearg_n_options): Use it.
108053         * lib/group-member.c: Include <stdbool.h>.
108054         (free_group_info): Arg is now const *; don't free arg.
108055         (get_group_info): Now returns bool and accepts struct group_info *,
108056         rather than returning a malloc'ed struct group_info *.
108057         All uses changed.  Check for overflow in internal size calculation.
108059         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
108060         rather than xmalloc/xrealloc.
108061         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
108062         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
108063         conformance bug: the old code used a pointer after freeing the
108064         storage that it addressed.
108065         * lib/hash.c (hash_initialize): Simplify the code by using
108066         xalloc_oversized rather than doing it by hand.
108067         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
108068         the buffer preserved.  Use free and xmalloc instead.
108069         * lib/quotearg.c (quotearg_n_options): Likewise.
108070         Use a simpler test for size overflow.  Don't use xalloc_oversized
108071         because unsigned int might be wider than size_t (!); this suggests
108072         that we should switch from unsigned int to size_t for slot numbers.
108074 2003-10-28  Paul Eggert  <eggert@twinsun.com>
108076         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
108077         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
108078         NetBSD kernels.  Requested by Richard Stallman.
108080 2003-10-27  Paul Eggert  <eggert@twinsun.com>
108082         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
108083         to allocate the returned structure.  Do not allocate a subarray,
108084         as x2nrealloc will do that.
108085         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
108086         instead of xnrealloc.
108087         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
108089 2003-10-27  Bruno Haible  <bruno@clisp.org>
108091         * lib/stdbool_.h: Better support for BeOS.
108093 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108095         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
108096         now uses inline.
108098 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108100         * lib/xalloc.h (xalloc_oversized): New static inline function, for
108101         callers that want to do their own size-overflow checking.  Include
108102         <stdbool.h>, since xalloc_oversized returns bool.
108103         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
108104         to use xalloc_oversized.
108106         Add two functions x2realloc, x2nrealloc, for programs that grow
108107         arrays dynamically by doubling their sizes.
108108         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
108109         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
108110         New functions.
108112         Port to C99 semantics for 'inline' of external functions.
108113         Bug reported by Bruno Haible.
108114         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
108115         with the old contents of xnmalloc.
108116         (xnmalloc, xmalloc): Use it.
108117         (xnrealloc_inline): New static inline function,
108118         with the old contents of xnrealloc.
108119         (xnrealloc, xrealloc): Use it.
108121         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
108122         that.
108124 2003-10-26  Karl Berry  <karl@gnu.org>
108126         * config/srclist.txt (COPYING.DOC): no longer available from
108127         /gd/gnuorg; don't know where the ultimate source is.
108129 2003-10-25  Paul Eggert  <eggert@twinsun.com>
108131         Fix several address-calculation bugs in the hash modules,
108132         plus some minor code cleanup.
108134         * lib/hash.h: Include <stdbool.h>, for bool.
108135         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
108136         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
108137         hash_get_n_entries, hash_get_max_bucket_length,
108138         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
108139         hash_rehash): Use size_t rather than unsigned.
108140         * lib/hash.c (struct hash_table, hash_get_n_buckets,
108141         hash_get_n_buckets_used, hash_get_n_entries,
108142         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
108143         hash_get_entries, hash_do_for_each, hash_string, is_prime,
108144         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
108145         Likewise.
108146         (SIZE_MAX): Define if not defined.
108147         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
108148         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
108149         hash_print):
108150         Use const * when possible.
108151         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
108152         (check_tuning): Fix bug: if tuning parameters were very close to
108153         0 or 1, rounding errors could have caused subscript violations.
108154         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
108155         (hash_initialize): Add 'fail:' label
108156         to free table and return NULL, and use it to simplify code.
108157         Use calloc rather than clearing the storage ourself.
108158         (hash_initialize, hash_rehash): Check for arithmetic overflow in
108159         buffer size calculations.
108160         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
108161         Include <stddef.h>, for size_t.
108162         * lib/hash-pjw.c (hash_pjw): Likewise.
108163         Switch to method described by Bruno Haible.
108164         Include <limits.h>, for CHAR_BIT.
108165         (SIZE_BITS): New macro.
108167 2003-10-23  Paul Eggert  <eggert@twinsun.com>
108169         * m4/getline.m4 (AM_FUNC_GETLINE):
108170         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
108171         hosts.  Problem reported by Derek Robert Price in
108172         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
108173         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
108174         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
108176 2003-10-21  Paul Eggert  <eggert@twinsun.com>
108178         * lib/getndelim2.c (getndelim2): When size calculation overflows,
108179         ceiling the allocation at NMAX bytes rather than silently
108180         discarding input bytes before NMAX is reached.  This makes
108181         a difference only if NMAX exceeds SIZE_MAX / 2.
108183         * lib/obstack.c: Merge from glibc.
108184         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
108185         Add libc_hidden_def (_obstack_newchunk).
108186         (_obstack_free) [! defined _LIBC]: Remove.
108187         [defined _LIBC]: Make a strong alias from obstack_free, rather than
108188         a clone of the function body.
108189         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
108190         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
108192         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
108193         glibc.
108194         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
108195         arg to memcpy.
108197         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
108198         (obstack_ptr_grow_fast, obstack_int_grow_fast):
108199         Don't use lvalue casts, as GCC plans to remove support for them
108200         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
108201         was also present in the non-GCC version, indicating that this
108202         code had always been buggy and had never been widely used.
108203         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
108204         Use the fast variant of each macro, rather than copying the
108205         definiens of the fast variant; that way, we'll be more likely to
108206         catch future bugs in the fast variants.
108208 2003-10-20  Bruno Haible  <bruno@clisp.org>
108210         * modules/wait-process: New file.
108211         * MODULES.html.sh (func_all_modules): Add wait-process.
108213 2003-10-20  Bruno Haible  <bruno@clisp.org>
108215         * m4/wait-process.m4: New file.
108217 2003-10-20  Bruno Haible  <bruno@clisp.org>
108219         * lib/wait-process.h: New file, from GNU gettext.
108220         * lib/wait-process.c: New file, from GNU gettext.
108222 2003-10-19  Jim Meyering  <jim@meyering.net>
108224         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
108225         HPUX 10.20.
108227 2003-10-18  Karl Berry  <karl@gnu.org>
108229         * config/config.guess: update from config.
108231 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108233         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
108234         (getgroups): First arg is int, not size_t.
108235         Don't let 'free' mangle errno.
108237 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108239         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
108241 2003-10-16  Karl Berry  <karl@gnu.org>
108243         * config/config.{guess,sub}: update from config.
108245 2003-10-16  Jim Meyering  <jim@meyering.net>
108247         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
108248         memcpy.
108250 2003-10-15  Paul Eggert  <eggert@twinsun.com>
108252         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
108253         (SIZE_MAX): Remove.
108254         (new_exclude, add_exclude_file): Initial size no longer needs to
108255         be a power of 2.
108256         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
108257         our own address arithmetic overflow checking.
108259         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
108260         (fnmatch): Do not alloca more than 2000 wide characters;
108261         instead, use malloc for large buffers.
108262         Check for address arithmetic overflow, and return -1
108263         with errno set to ENOMEM in that case.
108264         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
108265         (NEW_PATTERN): Do not alloca more than 8000 bytes;
108266         instead, return -1.  Check for address arithmetic overflow.
108268 2003-10-14  Paul Eggert  <eggert@twinsun.com>
108270         Handle invalid suffixes and overflow independently, so that
108271         callers can treat them independently as needed.  Fix some bugs in
108272         suffix handling, e.g., "100k@" was not diagnosed as an invalid
108273         suffix for a human-readable blocksize.  The major caller-visible
108274         change is the addition of a new
108275         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
108276         that both overflow and suffix chars were found.
108278         * lib/human.c (humblock): Don't check separately for invalid suffix
108279         char; that is xstrtoumax's job (now that its bug is fixed).
108280         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
108281         INTMAX_MAX]: New macros.
108282         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
108283         TYPE_MAXIMUM): New macros.
108284         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
108285         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
108286         if overflow occurs, as it's what __strtol does and it's more useful
108287         in practice.
108288         (__xstrtol): If __strtol reports some error other than ERANGE,
108289         reflect it to the caller as LONGINT_INVALID.  If it reports
108290         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
108291         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
108292         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
108293         value.
108294         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
108295         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
108296         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
108297         [defined UINTMAX_MAX]: New macros.
108299 2003-10-14  Bruno Haible  <bruno@clisp.org>
108301         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
108303 2003-10-14  Bruno Haible  <bruno@clisp.org>
108305         * m4/sig_atomic_t: New file, from GNU gettext.
108306         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
108308 2003-10-14  Bruno Haible  <bruno@clisp.org>
108310         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
108311         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
108312         Also use volatile where needed.
108314 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108316         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
108317         Change maintainer from Bruno Haible to 'all'.
108319 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108321         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
108323 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108325         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
108326         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
108327         and define in terms of the other primitives.
108328         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
108329         (SIZE_MAX): Define if not already defined.
108330         (array_size_overflow): New function.
108331         (xalloc_die): Abort instead of exiting if 'error' returns.
108332         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
108333         (xmalloc, xrealloc): Use them.
108334         (xcalloc): Check for address arithmetic overflow.
108335         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
108336         a bit faster than strcpy.
108338 2003-10-10  Simon Josefsson  <jas@extundo.com>
108340         * modules/argp (Depends-on): Add restrict and strcase.
108342 2003-10-10  Simon Josefsson  <jas@extundo.com>
108344         * m4/argp.m4: Add AC_C_INLINE.
108346 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108348         Merge getpass from libc, plus a few fixes.
108350         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
108351         Include <stdbool.h>.
108352         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
108353         __fsetlocking to empty.
108354         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
108355         do include <bits/libc-lock.h>.
108356         Do not include <fcntl.h>; not needed.
108357         [_LIBC]: Include <wchar.h>.
108358         (NOTCANCEL_MODE): New macro.
108359         (flockfile, funlockfile) [_LIBC]: New macros.
108360         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
108361         [!_LIBC]: New macros.
108362         (call_fclose): New function.
108363         (getpass): Use it.  Save tty stream separately; this simplifies the
108364         code and makes it more reliable if stdin happens to equal stdout.
108365         Invoke __fsetlocking on tty.
108366         Handle thread cancellation if needed.
108367         Namespace cleanup (use __tcgetattr, __getline).
108368         Use bool for Booleans.
108369         [USE_IN_LIBIO]: Handle wide streams.
108370         [!_LIBC]: Unconditionally do the fseek, since we don't know what
108371         stream might go where.
108373         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
108374         doesn't have to include <stdio.h> before us.
108375         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
108376         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
108377         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
108378         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
108379         if not declared, so that we can use getpass.c code from libc without
108380         rewriting it.
108381         (flockfile, ftrylockfile, funlockfile): New macros.
108383 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108385         * modules/getpass: Depend on stdbool.
108387 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108389         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
108391 2003-10-07  Karl Berry  <karl@gnu.org>
108393         * config/config.{guess,sub}: update from config.
108395 2003-10-06  Jim Meyering  <jim@meyering.net>
108396             Bruno Haible  <bruno@clisp.org>
108398         This lets translators provide better translations for the
108399         "Written by ..." part of --version output.
108400         * lib/version-etc.h: Include stdarg.h.
108401         (version_etc_copyright): Declare as readonly.
108402         (version_etc): Make this function variadic with a NULL-terminated list
108403         of author name strings.
108404         (version_etc_va): New declaration.
108405         * lib/version-etc.c: Include stdarg.h, stdlib.h.
108406         (version_etc_copyright): Declare as readonly.
108407         (version_etc_va): New function. Provide a different translatable string
108408         for each possible number of authors < 10. Abbreviate when there are 10
108409         authors or more.
108410         (version_etc): Make this function variadic. Call version_etc_va.
108411         Suggestion from Gary V. Vaughan.
108413         * lib/long-options.h (parse_long_options): Change prototype: the
108414         authors string is moved to the end and becomes variadic.
108415         * lib/long-options.c: Include stdarg.h.
108416         (parse_long_options): Make this function variadic, too.
108417         Call version_etc_va, not version_etc.
108419 2003-10-06  Bruno Haible  <bruno@clisp.org>
108421         * modules/version-etc-2: Remove file.
108422         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
108424 2003-10-06  Bruno Haible  <bruno@clisp.org>
108426         * modules/fatal-signal: New file.
108427         * MODULES.html.sh (func_all_modules): Add fatal-signal.
108429 2003-10-06  Bruno Haible  <bruno@clisp.org>
108431         * m4/fatal-signal.m4: New file.
108432         * m4/signalblocking.m4: New file, from GNU gettext.
108434 2003-10-06  Bruno Haible  <bruno@clisp.org>
108436         * lib/version-etc-2.h: Remove file.
108437         * lib/version-etc-2.c: Remove file.
108439 2003-10-06  Bruno Haible  <bruno@clisp.org>
108441         * lib/fatal-signal.h: New file, from GNU gettext.
108442         * lib/fatal-signal.c: New file, from GNU gettext.
108444 2003-10-05  Paul Eggert  <eggert@twinsun.com>
108446         * README: Rework advice for preventing empty .o files.
108447         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
108448         not <sys/types.h>.
108450 2003-10-04  Karl Berry  <karl@gnu.org>
108452         * lib/argp*: update from libc.
108454 2003-10-04  Karl Berry  <karl@gnu.org>
108456         * config/config.{guess,sub}: update from config.
108458 2003-10-02  Bruno Haible  <bruno@clisp.org>
108460         * modules/lchown (Include): Add lchown.h.
108461         * modules/time_r (Include): Use "..." syntax.
108462         * modules/xgetdomainname (Include): Add xgetdomainname.h.
108464 2003-10-01  Simon Josefsson  <jas@extundo.com>
108466         * MODULES.html.sh (func_all_modules): Move gethostname from section
108467         'based on' to section 'lacking' POSIX:2001.
108469 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
108471         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
108472         to output mode on the same stream.
108474 2003-09-29  Paul Eggert  <eggert@twinsun.com>
108476         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
108477         Fix arg typo in previous patch.
108479 2003-09-28  Jim Meyering  <jim@meyering.net>
108481         * lib/error.c: Correct cpp indentation.
108483 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108485         * modules/free: New file.
108487 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108489         * m4/free.m4: New file.
108491 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108493         * lib/minmax.h (MIN, MAX)
108494         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
108495         Omit the special code that used __typeof__, since we worry that
108496         it could be more trouble than it's worth.  See:
108497         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
108498         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
108500         * lib/free.c: New file.
108502 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
108504         Trivial fixes to Makefile.am parts of module listings.
108505         * modules/strstr: Append strstr.h to lib_SOURCES.
108506         * modules/strcase: Likewise, for strcase.h.
108508 2003-09-27  Karl Berry  <karl@gnu.org>
108510         * config/mkinstalldirs: update from automake.
108512 2003-09-26  Paul Eggert  <eggert@twinsun.com>
108514         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
108515         (error_tail): Do not loop, reallocating temporary buffer, since
108516         the output cannot contain more wide characters than the input
108517         contains bytes, the size must be big enough already.  This avoids
108518         one potential size overflow calculation.  Check for size overflow
108519         when calculating temporary buffer size.  Free temporary buffer
108520         when done, if it was allocated with malloc; this plugs a memory
108521         leak.  Remove casts from void * to pointers, that are no longer
108522         needed now that we're assuming C89 or better.
108524         Merge error changes from glibc.
108526         * lib/error.c, error.h: Update copyright notice header to match glibc.
108527         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
108528         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
108529         Disable cancellation while printing error.
108530         * lib/error.h: Prepend __ to parameter names.
108532 2003-09-26  Jim Meyering  <jim@meyering.net>
108534         * lib/error.c (error_tail): Move some declarations
108535         into inner scope where the local variables are used.
108537 2003-09-26  Bruno Haible  <bruno@clisp.org>
108539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
108540         stpncpy().
108541         Don't define stpncpy through config.h; it's now done through stpncpy.h.
108543 2003-09-26  Bruno Haible  <bruno@clisp.org>
108545         * lib/stpncpy.h (gnu_stpncpy): New declaration.
108546         (stpncpy): Define as alias for gnu_stpncpy.
108547         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
108549 2003-09-25  Simon Josefsson  <jas@extundo.com>
108551         * lib/xgetdomainname.h: New file.
108552         * lib/xgetdomainname.c: New file.
108554 2003-09-25  Simon Josefsson  <jas@extundo.com>
108555             Bruno Haible  <bruno@clisp.org>
108557         * modules/getdomainname: New file.
108558         * modules/xgetdomainname: New file.
108559         * MODULES.html.sh (func_all_modules): Add getdomainname,
108560         xgetdomainname.
108562 2003-09-25  Simon Josefsson  <jas@extundo.com>
108563             Bruno Haible  <bruno@clisp.org>
108565         * m4/getdomainname.m4: New file.
108567 2003-09-25  Simon Josefsson  <jas@extundo.com>
108568             Bruno Haible  <bruno@clisp.org>
108570         * lib/getdomainname.h: New file.
108571         * lib/getdomainname.c: New file.
108573 2003-09-25  Karl Berry  <karl@gnu.org>
108575         * lib/argp-fmtstream.c, argp-help.c: update from libc.
108577 2003-09-25  Karl Berry  <karl@gnu.org>
108579         * config/install-sh: update from automake.
108581 2003-09-25  Bruno Haible  <bruno@clisp.org>
108583         * modules/version-etc-2: New file, from modules/version-etc with
108584         modifications.
108585         * MODULES.html.sh (func_all_modules): Add version-etc-2.
108587 2003-09-25  Bruno Haible  <bruno@clisp.org>
108589         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
108590         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
108592 2003-09-24  Simon Josefsson  <jas@extundo.com>
108594         * modules/xgethostname: Add xgethostname.h.
108596 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108598         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108599         the buffer associated with the argument.  Bug reported by
108600         Simon Josefsson.
108602 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108604         * README: Document assumptions that 'int' is at least 32 bits
108605         wide, that integer arithmetic is 2's complement without overflow,
108606         that there are no holes in integer values, that adding sizes of
108607         two nonoverlapping objects can't overflow, and that all-bits-zero
108608         yields scalar zero.  Fix spelling and capitalization typos.
108610 2003-09-19  Karl Berry  <karl@gnu.org>
108612         * lib/argp.h: update from libc.
108614 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108616         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108617         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108618         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108620 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108622         * gnulib-tool: Use "test -h", not "test -L", for portability
108623         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108624         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108625         (sed_extract_prog): Issue s commands one-by-one, rather than
108626         using \| in one s command.
108628 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108630         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108631         input error, instead of returning NULL the next time we are called
108632         (and therefore losing track of errno).
108634 2003-09-16  Bruno Haible  <bruno@clisp.org>
108636         * gnulib-tool (func_create_testdir): Warn about duplicated
108637         dependencies.
108639 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108641         * modules/argmatch, modules/fatal, modules/obstack,
108642         modules/xalloc, modules/xgethostname: Sort dependencies by
108643         importance, not alphabetically.
108645 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108647         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108648         fails, so that the caller gets the proper errno.
108650         * lib/readutmp.c (read_utmp): Likewise.
108651         Check for fstat error.  Close stream and free storage
108652         when failing.
108654 2003-09-14  Karl Berry  <karl@gnu.org>
108656         * config/srclist.txt (strdup.c): disable for c89 changes.
108658 2003-09-14  Jim Meyering  <jim@meyering.net>
108660         * lib/getloadavg.c: Correct cpp indentation.
108661         * lib/strdup.c: Likewise.
108662         * lib/vasnprintf.c: Likewise.
108664 2003-09-14  Bruno Haible  <bruno@clisp.org>
108666         * modules/fwriteerror: New file.
108667         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108669 2003-09-14  Bruno Haible  <bruno@clisp.org>
108671         * lib/fwriteerror.h: New file.
108672         * lib/fwriteerror.c: New file.
108674 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108676         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108677         modules/xgethostname, modules/xalloc: Depend on exit.
108679 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108681         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108684         and AC_MINIX, too, so that their extensions are available.
108686         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108687         This macro has been superseded by gl_BACKUPFILE.
108689         More patches to assume C89 or better.
108691         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108693         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108694         unconditionally.
108695         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108696         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108697         Include <string.h>, <stdlib.h> unconditionally.
108698         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108699         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108700         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108701         headers or for string.h.
108702         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108703         or strtoul.
108705         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108706         headers.
108707         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108708         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108709         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108710         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108711         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108712         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108713         memcpy, memset.
108714         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108715         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108716         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108717         strtol.
108718         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108719         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108721         strtoul.
108723 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108725         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108726         * lib/obstack.c [!defined _LIBC]: Likewise.
108727         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108728         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108729         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108731         More changes to assume C89 or better.
108733         * lib/error.c (error_tail): Assume vprintf.
108735         * lib/argmatch.c (getenv): Remove decl.
108736         * lib/progreloc.c (get_full_program_name): Define via prototype.
108737         * lib/setenv.c (clearenv): Likewise.
108738         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108739         needed.
108740         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108741         (malloc, memcpy): Remove decls.
108742         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108743         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
108744         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108745         (memcpy): Remove macro.
108746         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
108747         (__P): Remove.  All uses removed.
108748         (PTR): Remove.  All uses changed to void *.
108749         (CHAR_BIT, NULL): Remove.
108750         (spaces, zeros, memset_space, memset_zero)
108751         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
108752         Remove.
108753         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
108754         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
108755         Define with prototype.
108756         Remove now-unnecessary prototype decl.
108757         (extra_args_spec): Assume ANSI C.  All uses changed.
108758         (extra_args_spec_iso): Remove.
108759         (my_strftime, emacs_strftimeu): Define via prototype.
108760         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
108761         unconditionally.
108762         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
108763         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
108764         (strtoul, strtol): Remove decls.
108765         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
108766         LONG_MAX): Remove.
108767         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108768         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
108769         (LOCALE_PARAM_PROTO): New macro.
108770         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
108771         (INTERNAL (strtol), strtol): Define with a prototype.
108772         (PARAMS): Remove.  All uses removed.
108773         * lib/tempname.c: Include <string.h> unconditionally.
108774         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
108775         * lib/xgethostname.c (main): Define with a prototype.
108776         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
108777         Include <stdlib.h> unconditionally.
108778         (calloc, malloc, realloc, free): Remove decls.
108779         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
108780         Include <stdlib.h> unconditionally.  Sort include file names.
108781         (strtod): Remove.
108782         (xstrtod): Define with a prototype.
108783         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
108784         (strtol, strtoul): Remove decls.
108786 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108788         More patches to assume C89 or better.
108789         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
108790         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
108791         string.h, memchr, STDC_HEADERS.
108793 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108795         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
108796         Include <stdlib.h>, <string.h> unconditionally.
108797         Remove now-unnecessary cast to char *.
108798         * lib/strnlen.c: Include <string.h> unconditionally.
108799         * lib/yesno.c (yesno): Define with a prototype.
108801 2003-09-11  Bruno Haible  <bruno@clisp.org>
108803         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
108805 2003-09-10  Jim Meyering  <jim@meyering.net>
108807         * lib/error.c: Correct indentation of cpp directives.
108809 2003-09-10  Bruno Haible  <bruno@clisp.org>
108811         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
108812         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
108813         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
108814         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
108815         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
108816         <stdlib.h> and <string.h> checks.
108817         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
108818         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
108820 2003-09-10  Bruno Haible  <bruno@clisp.org>
108822         * lib/strcspn.c: Include <string.h> unconditionally.
108823         * lib/strpbrk.c: Include <string.h> unconditionally.
108824         * lib/strstr.c: Include <string.h> unconditionally.
108825         * lib/unicodeio.c: Include <string.h> unconditionally.
108826         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
108827         * lib/unsetenv.c: Likewise.
108828         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
108829         * lib/yesno.c: Include <stdlib.h> unconditionally.
108830         (rpmatch): Add prototype.
108832 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108834         More patches to assume C89 or better.
108835         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
108836         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
108837         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
108838         or for string.h.
108839         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
108840         stdlib.h.
108841         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
108842         C headers.
108843         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
108844         string.h.
108845         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
108846         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
108847         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
108848         or for string.h.
108849         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
108850         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
108851         C headers.
108852         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
108853         memcpy.
108854         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
108855         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
108856         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
108857         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108858         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108859         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108860         string.h, free.
108861         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108862         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108863         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108864         C headers, or for string.h.
108865         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108866         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108867         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108868         headers, memory.h, stdlib.h, string.h, strings.h.
108869         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108870         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108871         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108872         strchr.
108873         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108874         headers, memory.h, string.h.
108875         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108876         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108877         free.
108878         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108879         headers.
108880         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108881         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108882         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108883         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108884         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108886 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108888         More K&R removal.
108890         * lib/acosl.c (main): Use a prototype.
108891         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108892         tanl.c: Likewise.
108894         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108896         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108897         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108898         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108899         with a prototype.
108900         * lib/getopt.c (const): Remove macro.
108901         Include <string.h> unconditionally.
108902         (my_index): Remove; all uses changed to strchr.
108903         (strlen): Remove decl.
108904         (exchange): Remove forward decl; no longer needed.
108905         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108906         Define with prototype.
108907         * lib/getopt1.c (const): Remove macro.
108908         (getopt_long, getopt_long_only, main): Define with prototype.
108910         * lib/getugroups.c: Include <string.h> unconditionally.
108912         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108913         (getusershell, setusershell, endusershell, readname, main):
108914         Define with prototypes.
108916         * lib/group-member.c: Include group-member.h first.
108917         Include <stdlib.h> unconditionally.
108919         * lib/hard-locale.c: Include hard-locale.h first.
108920         Include <stdlib.h>, <string.h> unconditionally.
108922         * lib/hash.c (free, malloc): Remove decls.
108923         Include <stdlib.h> unconditionally.
108925         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
108926         (getenv): Do not declare.
108928         * lib/idcache.c: Include <string.h> unconditionally.
108930         * lib/long-options.c: Include long-options.h first, to test interface.
108931         Include <stdlib.h> unconditionally.
108933         * lib/makepath.c: Include makepath.h first, to test interface.
108934         Include <stdlib.h> and <string.h> unconditionally.
108936         * lib/linebuffer.c: Include <stdlib.h>.
108937         (free): Remove decl.
108939         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
108940         stddef.h. rpl_malloc returns void *, not char *.
108941         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
108942         prototype.
108944         * lib/md5.h: Include <limits.h> unconditionally.
108945         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
108946         (__P): Remove; all uses removed.
108947         * lib/md5.c: Include "md5.h" first.
108948         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
108949         md5_buffer, md5_process_bytes, md5_process_block):
108950         Define with prototypes.
108951         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
108952         * lib/sha.c: Include "sha.h" first.
108953         Include <stdlib.h>, <string.h> unconditionally.
108955         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
108956         * lib/memcmp.c (__ptr_t): Likewise.
108957         * lib/memrchr.c (__ptr_t): Likewise.
108958         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
108959         Include <string.h> unconditionally.
108960         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
108961         * lib/memchr.c: Include <stdlib.h> unconditionally.
108962         * lib/memchr.c (LONG_MAX): Remove.
108963         * lib/memrchr.c (LONG_MAX): Likewise.
108964         * lib/memchr.c (__memchr): Define via a prototype.
108965         * lib/memrchr.c (__memrchr): Likewise.
108966         * lib/memcmp.c (__P): Remove, and remove all uses.
108967         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
108968         Remove forward decls; no longer needed.
108969         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
108970         Use types required by C89 in prototype.
108972         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
108973         * lib/savedir.c: Likewise.
108974         * lib/mkdir.c (free): Remove decl.
108975         * lib/rmdir.c (rmdir): Define with a prototype.
108976         * lib/savedir.c: Include savedir.h first, to test interface.
108978         * lib/mktime.c (STDC_HEADERS): Remove.
108979         Include <stdlib.h>, <string.h> unconditionally.
108981         * lib/modechange.c: Include <stdlib.h> unconditionally.
108982         (malloc): Remove decl.
108984         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
108985         (free): Remove decl.
108987         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
108988         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
108989         (This type really should be intptr_t, but that's a C99ism.)
108990         (_obstack_memcpy): Remove: all uses changed to memcpy.
108991         Include <string.h> unconditionally.
108992         (struct obstack): Assume __STDC__ for types of members
108993         chunkfun, freefun, extra_arg.
108994         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
108995         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
108996         obstack_begin, obstack_specify_allocation,
108997         obstack_specify_allocation_with_arg, obstack_chunkfun,
108998         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
108999         Remove unprototyped decls and the macros that use them.
109000         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
109001         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
109002         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
109003         (defined __STDC__ && __STDC__)]:
109004         Remove nonprototyped code.
109005         Include <stdlib.h> unconditionally.
109006         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
109007         _obstack_allocated_p, _obstack_free, obstack_free,
109008         _obstack_memory_used, print_and_abort):
109009         Define using prototypes.
109010         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
109011         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
109012         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
109013         obstack_next_free, obstack_object_size, obstack_room) [0]:
109014         Remove unused, unprototyped code.
109016         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
109018         * lib/physmem.c (physmem_total, physmem_available, main): Define
109019         with prototypes.
109021         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
109022         (main): Define with a prototype.
109024         * lib/posixver.c (getenv): Remove decl.
109026         * lib/putenv.c (malloc): Returns void *, not char *.
109027         Include <string.h> unconditionally.
109028         (strchr, memcpy, NULL): Do not define.
109030         * lib/readtokens.c: Include readtokens.h first, to test interface.
109031         Include <stdlib.h>, <string.h> unconditionally.
109032         (init_tokenbuffer): Define with a prototype.
109034         * lib/regex.c (PARAMS): Remove.  All uses removed.
109035         All uses of _RE_ARGS removed, too.
109036         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
109037         unconditionally.
109038         (bzero): Assume memset exists.
109039         (memcmp, memcpy, NULL): Remove.
109040         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
109041         char, or assignments to local vars of type signed char.
109042         (init_syntax_once, PREFIX(extract_number_and_incr),
109043         PREFIX(print_partial_compiled_pattern),
109044         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
109045         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
109046         PREFIX(regex_grow_registers), PREFIX(regex_compile),
109047         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
109048         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
109049         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
109050         wcs_compile_range, byte_compile_range, truncate_wchar,
109051         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
109052         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
109053         count_mbs_length, wcs_re_match_2_internal,
109054         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
109055         PREFIX(alt_match_null_string_p),
109056         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
109057         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
109058         regfree, PREFIX(extract_number)): Define with prototype.  Remove
109059         now-unnecessary declaration, if any.
109060         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
109061         regcomp, regexec):
109062         Remove now-unnecessary casts among pointer types.
109063         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
109065         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
109066         (free): Remove decl.
109068         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
109070         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
109071         (free): Remove decl.
109073         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
109074         * lib/xgetcwd.c: Likewise.
109076         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
109077         (free): Remove decl.
109079         * lib/strchrnul.c (strchrnul): Define with a prototype.
109080         Fix bug: c_in was not converted to char before searching.
109082         The following changes are not K&R related:
109084         * lib/group-member.h: Include <sys/types.h>, so that this file is
109085         self-contained.
109086         * lib/makepath.h: Likewise.
109088         * lib/getusershell.c (readname, default_index, line_size, readname):
109089         Use size_t, not int, for sizes.
109090         (readname): If the size overflows, report an error instead of
109091         looping forever.
109093 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109095         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
109096         libc.
109098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109100         * README: New section: portability guidelines.
109102 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109104         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
109105         C89 spec.
109107 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109109         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
109111 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109113         Assume C89 or better; remove K&R cruft.
109114         A few of these changes were first proposed by Derek Robert Price
109115         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
109117         * lib/addext.c: Include <string.h> unconditionally.
109118         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
109119         Don't declare getenv or malloc.
109121         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
109122         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
109123         (NULL): Remove.
109124         (find_stack_direction, alloca): Use prototypes.
109126         * lib/atexit.c (atexit): Define using a prototype.
109128         * lib/basename.c, dirname.c, stripslash.c:
109129         Include <string.h> unconditionally.
109131         * lib/bcopy.c: Include <stddef.h>.
109132         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
109134         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
109136         * lib/error.h (error, error_at_line, error_print_progname)
109137         [! (defined (__STDC__) && __STDC__)]: Remove decls.
109138         * lib/error.c: Include error.h first, to check interface.
109139         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109140         (VA_START): Remove; all uses changeed to va_start.
109141         (exit, strerror): Remove decls.
109142         (error_print_progname): Prototype uncondionally.
109143         Don't include <errno.h>; no longer needed.
109144         (private_strerror): Remove.
109145         (error_tail): Always define.
109146         (error, error_at_line): Assume C89 or better; always use prototypes.
109147         * lib/fatal.c: Include "fatal.h" first, to test interface.
109148         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109149         (VA_START): Remove; all uses changed to va_start.
109150         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
109151         this case.
109152         (exit): Remove decl.
109153         (fatal): Prototype unconditionally.  Assume va_start works.
109154         Abort at end, to pacify gcc.
109156         * lib/euidaccess.c (main): Define with a prototype.
109158         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
109160         * lib/exitfail.c: Include <stdlib.h> unconditionally.
109162         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
109163         prototypes.
109164         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
109165         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
109166         (getenv): Remove decl.
109167         (fnmatch): Define using a prototype.
109168         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
109169         (FCT): Define using a prototype.
109171         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
109173         * lib/gethostname.c: Include <stddef.h>.
109174         (gethostname): Define with prototype.  Length is size_t, not int.
109176 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109178         Assume C89 or better; remove K&R cruft.
109179         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
109180         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
109181         string.h, getenv, malloc.
109182         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
109183         headers.
109184         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
109185         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
109186         do not check for strerror.
109187         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
109188         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
109189         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
109190         do not check for doprnt or vprintf.
109191         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
109192         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
109194 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109196         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
109197         getversion.c should have been removed then, but was accidentally
109198         preserved.
109200         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
109201         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
109203 2003-09-08  Karl Berry  <karl@gnu.org>
109205         * config/config.sub, config.guess, srclistvars.sh: update from savannah
109206                 config, forget about prep.
109208         * config/depcomp, missing: update from automake.
109210 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109212         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
109213         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109215 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109217         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
109218         copy_tm_result.  Bug reported by Simon Josefsson in
109219         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109221 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109223         * m4/time_r.m4: New file.
109224         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
109225         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
109226         is. Check for timegm declaration.
109227         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
109228         Do not check for gmtime_r.
109229         Replace mktime if __mktime_internal does not exist and if mktime
109230         hasn't been replaced already.
109232 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109234         * lib/time_r.c, lib/time_r.h: New files.
109236         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
109237         __localtime_r.
109238         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
109239         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
109241         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
109242         __gmtime_r.
109243         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
109244         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
109245         Include <time_r.h>.
109247         * lib/timegm.c: Switch to glibc implementation, with the following
109248         changes:
109249         [defined HAVE_CONFIG_H]: Include <config.h>.
109250         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
109251         (__mktime_internal) [!defined _LIBC]: New decl.
109252         (__gmtime_r) [!defined _LIBC]: New macro and function.
109253         (timegm): Use a prototype, since gnulib assumes C89.
109254         Do not bother declaring tmp to be const, as it's not really usefu.
109255         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
109256         (timegm): Declare only if HAVE_DECL_TIMEGM.
109258 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109260         * MODULES.html.sh (func_all_modules): Add time_r.
109261         * modules/time_r: New file.
109262         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
109263         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
109265 2003-09-03  Paul Eggert  <eggert@twinsun.com>
109267         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
109268         Bug reported by Lute Kamstra in
109269         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
109271         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
109272         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
109273         course with correspondingly smaller numbers for tomorrow and
109274         yesterday.  From Tadayoshi Funaba.  Originally installed into
109275         sh-utils on 1999-08-07, but the patch got lost (I guess during the
109276         coreutils merge?).
109278 2003-08-31  Simon Josefsson  <jas@extundo.com>
109280         * modules/timegm: New file.
109281         * MODULES.html.sh (func_all_modules): Add timegm.
109283 2003-08-31  Simon Josefsson  <jas@extundo.com>
109285         * m4/timegm.m4: New file.
109287 2003-08-31  Simon Josefsson  <jas@extundo.com>
109289         * lib/timegm.h: New file.
109290         * lib/timegm.c: New file.  Based on
109291         wget-1.8.2/src/http.c:mktime_from_utc.
109293 2003-08-31  Karl Berry  <karl@gnu.org>
109295         * lib/argp.h: update from libc.
109297 2003-08-28  Bruno Haible  <bruno@clisp.org>
109299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
109300         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
109301         followed by '#define fnmatch fnmatch_posix' gives an error.
109303 2003-08-28  Bruno Haible  <bruno@clisp.org>
109305         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
109306         warning on QNX, which defines O_BINARY to 000000.
109308 2003-08-27  Jim Meyering  <jim@meyering.net>
109310         * m4/mkstemp.m4: Require that the system mkstemp be able to create
109311         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
109312         would fail after 32.  Reported by Danny Levinson.  Details here:
109313         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
109315 2003-08-24  Bruno Haible  <bruno@clisp.org>
109317         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
109318         MSVC7 <stdio.h> is included later.
109320 2003-08-22  Simon Josefsson  <jas@extundo.com>
109322         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
109324 2003-08-20  Karl Berry  <karl@gnu.org>
109326         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
109328 2003-08-20  Bruno Haible  <bruno@clisp.org>
109330         * modules/progname: New file.
109331         * MODULES.html.sh (func_all_modules): Add progname.
109333 2003-08-20  Bruno Haible  <bruno@clisp.org>
109335         * lib/progname.h: New file, from GNU gettext.
109336         * lib/progname.c: New file, from GNU gettext.
109337         * lib/progreloc.c: New file, from GNU gettext.
109339 2003-08-19  Jim Meyering  <jim@meyering.net>
109341         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
109342         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
109344 2003-08-19  Bruno Haible  <bruno@clisp.org>
109346         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
109347         more.
109349 2003-08-19  Bruno Haible  <bruno@clisp.org>
109351         * lib/xstrdup.c: Assume <string.h> exists.
109353 2003-08-18  Paul Eggert  <eggert@twinsun.com>
109355         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
109356         in makefile rules.
109358 2003-08-18  Jim Meyering  <jim@meyering.net>
109360         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
109361         * m4/lib-ld.m4: Likewise.
109363 2003-08-18  Jim Meyering  <jim@meyering.net>
109365         * lib/setenv.h: Indent nested cpp directive.
109366         * lib/vasnprintf.c: Remove trailing blanks.
109368 2003-08-17  Simon Josefsson  <jas@extundo.com>
109370         * modules/xstrndup: New file.
109371         * MODULES.html.sh (func_all_modules): Add xstrndup.
109373 2003-08-17  Simon Josefsson  <jas@extundo.com>
109375         * modules/argp: Fix autoconf macro name. Add more dependencies.
109377 2003-08-17  Simon Josefsson  <jas@extundo.com>
109379         * m4/xstrndup.m4: New file.
109381 2003-08-17  Simon Josefsson  <jas@extundo.com>
109383         * m4/argp.m4: New file.
109385 2003-08-17  Simon Josefsson  <jas@extundo.com>
109386             Bruno Haible  <bruno@clisp.org>
109388         * lib/xstrndup.h: New file.
109389         * lib/xstrndup.c: New file.
109391 2003-08-17  Bruno Haible  <bruno@clisp.org>
109393         * modules/strndup (Files, Include): Add lib/strndup.h.
109395 2003-08-17  Bruno Haible  <bruno@clisp.org>
109397         * modules/euidaccess (Files): Add lib/euidaccess.h.
109399 2003-08-17  Bruno Haible  <bruno@clisp.org>
109401         * lib/strndup.h: New file.
109403 2003-08-17  Bruno Haible  <bruno@clisp.org>
109405         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
109406         like AC_GNU_SOURCE.
109407         * modules/extensions (configure.ac): Comment out the invocation of
109408         gl_USE_SYSTEM_EXTENSIONS.
109410 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109412         Merges from coreutils, etc.
109413         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
109414         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
109415         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
109416         fixing a typo.
109417         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
109418         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
109420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109422         Document merge from coreutils.
109423         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
109424         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
109425         * modules/utime: Add m4/utimes-null.m4.
109427 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109429         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
109430         space, undoing this 2003-08-12 change:
109431         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109433 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109435         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
109436         strtoul.c from libc, undoing this 2003-08-12 change:
109437         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109439 2003-08-16  Jim Meyering  <jim@meyering.net>
109441         Merges from coreutils.
109442         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
109443         prefix.  Adjust cache variables similarly.  Create 500 rather than
109444         just 300 files, to exercise bug on Darwin6.5, too.
109445         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
109446         $missing_dir.
109447         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
109448         AM_SYS_POSIX_TERMIOS.
109449         Reported by mkc@mathdogs.com.
109450         Also change use of $am_cv_sys_posix_termios
109451         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
109452         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
109453         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
109454         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
109455         in /proc/mounts until it finds one with matching device number.  This
109456         is unnecessary when the FILE argument *is* a mount point.  No stat call
109457         is necessary in that case.  So, disable the statvfs-testing code on
109458         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
109459         as RedHat bug# 84846.
109460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109461         to 1MB, so as not to render systems with no stack size limit (e.g.,
109462         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109463         Include <unistd.h>.  On some systems,
109464         it is required for the definition of _SC_PAGESIZE.
109466 2003-08-16  Jim Meyering  <jim@meyering.net>
109468         Merge from coreutils.
109469         * lib/xstrtoimax.c: #else #if -> #elif.
109470         * lib/xstrtoumax.c: Likewise.
109472 2003-08-16  Jim Meyering  <jim@meyering.net>
109474         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
109475         * m4/utimes.m4: Removed.
109476         * m4/utimes-null.m4: Renamed from utimes.m4.
109478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109479         to 1MB, so as not to render systems with no stack size limit (e.g.,
109480         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109481         Include <unistd.h>.  On some systems,
109482         it is required for the definition of _SC_PAGESIZE.
109484 2003-08-16  Jim Meyering  <jim@meyering.net>
109485         and Paul Eggert  <eggert@cs.ucla.edu>
109487         Merges from coreutils, etc.
109489         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
109490         using the latest version from cvs.  This avoids problems with #line
109491         directives using a vendor (Sun) compiler.
109492         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
109493         Don't set GETGROUPS_LIB here; now it's
109494         done via getgroups.m4's wrapper function.
109495         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
109496         rather than just in sh-util/configure.in, so that the
109497         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
109498         same.
109499         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
109500         AC_FUNC_GETLOADAVG where to find getloadavg.c.
109501         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
109502         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
109503         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
109504         Remove code that is now done by the newly-required macros.
109505         Append $(EXEEXT) to DF_PROG.
109506         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
109507         Do not invoke or require the following here,
109508         since prereq.m4 or some gnulib .m4 now does this for us:
109509         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
109510         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
109511         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
109512         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
109513         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
109514         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
109515         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
109516         AC_FUNC_OBSTACK.
109517         Do not replace the following functions, as this is now the job
109518         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
109519         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
109520         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
109521         atexit getpass, strdup, getpagesize.
109522         Replace 'raise'.
109523         Do not check for the following functions, as this is now the job
109524         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
109525         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
109526         setregid.
109527         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
109528         Check for sys/sysctl.h.
109529         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
109530         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
109531         of checking for ssize_t ourselves.
109533         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
109534         Require every macro that gnulib/modules/* suggests for us.
109535         (jm_PREREQ_ADDEXT): New macro.
109536         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
109537         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
109539         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
109540         (gl_PHYSMEM): Use it.
109541         Also check for `table' function.
109542         Check for new headers and functions.
109543         Add check for sys/sysmp.h.
109544         With suggestions from Kaveh Ghazi.
109545         Ignore headers that are present but cannot be compiled.  This
109546         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
109547         C 5.4.
109549 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109551         Document merge from coreutils.
109552         * modules/userspec: Depend on posixver.
109553         * modules/strftime: Depend on tzset.
109555 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109557         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
109558         rather than tab, after '#' in shell-script copyright notices.
109559         Suggested by Bruno Haible.
109561 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109563         * config/srclist-update: Use three spaces, rather than tab, after '#'
109564         in shell-script copyright notices.  Suggested by Bruno Haible.
109565         Remove unnecessary parenthesization in regular expression.
109567 2003-08-15  Jim Meyering  <jim@meyering.net>
109569         Merge from coreutils.
109570         * lib/xgethostname.c: Include <stdlib.h>.
109571         (xghostname): Don't exit for anything other than memory-related
109572         failure; just return NULL.
109573         * lib/userspec.c: Include "posixver.h".
109574         (parse_user_spec): Accept `.' as a separator only
109575         in pre-POSIX-200112 mode.
109576         * lib/strtoimax.c: Use #elif rather than #else #if.
109577         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
109578         Remove function, now that we can rely on a working tzset function.
109579         [!_LIBC]: Ensure that the required autoconf test has been run.
109580         [!defined _NL_CURRENT && HAVE_STRFTIME]:
109581         Use underlying_strftime for %r.
109582         * lib/sha.c: Merge in some clean-up and optimization changes from
109583         glibc.
109584         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
109585         Ensure that it is a multiple of 64.
109586         Rearrange loop exit tests so as to avoid performing an
109587         additional fread after encountering an error or EOF.
109588         * lib/realloc.c: Update copyright date.
109590 2003-08-15  Jim Meyering  <jim@meyering.net>
109591         and Paul Eggert  <eggert@twinsun.com>
109593         Merge from coreutils.
109594         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109595         member but strut utmpx does not.  Needed for AIX 4.3.3.
109596         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109598 2003-08-15  Jim Meyering  <jim@meyering.net>
109599         and Paul Eggert  <eggert@cs.ucla.edu>
109601         Merges from coreutils, etc.
109602         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109603         Require gl_FUNC_TZSET_CLOBBER.
109604         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109605         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109606         members.
109608 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109610         Help the merge from coreutils.
109611         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109612         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109613         * m4/tzset.m4: Use it too.
109615 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109617         * modules/tzset: New file.
109619 2003-08-14  Jim Meyering  <jim@meyering.net>
109621         Merges from coreutils.
109622         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109623         variable names, rather than @FNMATCH_H@.
109624         * modules/alloca: Likewise for $(ALLOCA_H).
109626         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109627         the three copies of the literal target, `fnmatch.h'.
109628         * modules/alloca (alloca.h): Likewise.
109630 2003-08-14  Jim Meyering  <jim@meyering.net>
109632         Merge from coreutils.
109633         * m4/tzset.m4: New file.
109634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109635         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109636         otherwise, AIX 5.1 systems would end up using the latter.
109637         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109638         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109639         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109640         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109642 2003-08-14  Jim Meyering  <jim@meyering.net>
109644         Merge from coreutils.
109645         * lib/obstack.h: Whitespace changes.
109646         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109647         and xcalloc return values.
109648         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109649         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109650         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109651         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109652         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109653         error from mntctl.
109654         Use mntctl's return value to drive the entry-processing loop, since
109655         we can't rely on the value of the vmt_length member in the last
109656         entry.  On some systems doing so could result in exhausting
109657         virtual memory.  Based in part on a patch from Mike Jetzer.
109659 2003-08-14  Jim Meyering  <jim@meyering.net>
109660         and Paul Eggert  <eggert@twinsun.com>
109662         Merges from coreutils, plus other fixes.
109663         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109664         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109665         for credits and details.  Thanks to Kaveh Ghazi for helping
109666         to keep these files in sync.
109667         (ARRAY_SIZE): Define it.
109668         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109669         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109670         (memcasecmp): Don't assume size_t fits in unsigned int.
109671         Remove casts and duplicate code.
109672         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109673         (memcpy): Remove definition.
109674         Merge in some clean-up and optimization changes from glibc.
109675         [BLOCKSIZE]: Move definition to top of file.
109676         Ensure that it is a multiple of 64.
109677         Rearrange loop exit tests so as to avoid performing an
109678         additional fread after encountering an error or EOF.
109679         * lib/md5.h (md5_uintptr): Define.
109680         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109681         return to the initial working directory.  Preserve errno
109682         for caller.
109683         * lib/idcache.c: Include "xalloc.h".
109684         (xmalloc, xrealloc): Remove decls.
109685         (getuser): Remove casts no longer required in C89.
109686         * lib/human.c: Include stdio.h, for sprintf.
109687         * lib/group-member.c: Include "xalloc.h".
109688         (xmalloc, xrealloc): Remove decls.
109689         (get_group_info): Remove casts no longer required in C89.
109690         * lib/getusershell.c (readname): Remove casts no longer required in
109691         C89.
109692         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109693         * lib/getline.c: Whitespace fix, from coreutils.
109695 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109697         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109698         Check for isascii.
109700         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109701         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109702         Undo previous (whitespace-only) change.
109704 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109706         * lib/exclude.c: Include <ctype.h>
109707         (IN_CTYPE_DOMAIN): New macro.
109708         (is_space): New fn.
109709         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109710         and empty lines.
109712         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109713         Undo previous (whitespace-only) change.
109715 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109717         * config/srclist-update: Change update back to the old behavior,
109718         leaving whitespace alone.  Use one 'sed' command rather than a
109719         pipeline.
109720         (fixlicense): Now a variable, not a function.
109721         (remove_trailing_blanks): Remove.
109722         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109723         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109724         Undo previous (whitespace-only) change.
109726 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109728         Merge from coreutils.
109729         * modules/euidaccess: Add lib_SOURCES, include for new
109730         file euidaccess.h
109732 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109734         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109735         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109736         Normalize leading white space and remove trailing white space.
109738         Merge from coreutils
109739         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109741         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109742         0.12.1.  These files are now being upgraded automatically by
109743         ../config/srclist-update.
109745 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109747         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109748         Normalize leading white space and remove trailing white space.
109749         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
109750         notice, as per ../config/srclist-update.
109752         Merge from coreutils.
109753         * lib/euidaccess.h: New file.
109754         * lib/euidaccess.c: Include it.
109755         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
109756         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
109757         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
109759 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109761         * config/srclist-update: Add copyright notice.
109762         (remove_id_lines, remove_trailing_blanks): New constants.
109763         (fixfile): Use them to normalize spacing a bit in copied files.
109764         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109765         Normalize leading white space and remove trailing white space.
109767         * config/texinfo.tex: Sync with texinfo.
109769         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
109770         strtoul.c from libc, to merge coreutils whitespace changes.
109772         * config/srclist.txt: Get the following m4 files from gettext:
109773         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
109774         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
109775         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
109776         wint_t.m4.
109778 2003-08-12  Karl Berry  <karl@gnu.org>
109780         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
109781         been made.
109783 2003-08-11  Paul Eggert  <eggert@twinsun.com>
109785         * modules/gnu-source, m4/gnu-source.m4:
109786         Remove; we're assuming Autoconf 2.54 or later now.
109787         Suggested by Bruno Haible.
109788         * MODULES.html.sh (func_all_modules): Remove gnu-source.
109790 2003-08-11  Bruno Haible  <bruno@clisp.org>
109792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
109794 2003-08-11  Bruno Haible  <bruno@clisp.org>
109796         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
109797         (vasnprintf): Use it instead of wcslen.
109799 2003-08-11  Bruno Haible  <bruno@clisp.org>
109801         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
109802         value to ensure that _Bool promotes to int. Use #define for _Bool when
109803         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
109805 2003-08-10  Karl Berry  <karl@gnu.org>
109807         * lib/regex.h: update from libc (whitespace fix).
109809 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109811         Merge some files from coreutils.  These changes were
109812         originally made by Jim Meyering.
109813         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
109814         many older Unixes require this.
109815         * lib/alloca.c (alloca): Remove cast to argument of free;
109816         no longer needed in C89.
109817         * lib/alloca_.h, regex.h: Fix white space to match
109818         what GNU indent does.
109820 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109822         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
109823         apparently Emacs's Unicode mode got confused before my 2003-08-05
109824         checkin.
109826 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109828         * m4/extensions.m4: New file.
109829         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
109830         Require gl_USE_SYSTEM_EXTENSIONS.
109831         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
109832         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
109834 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109836         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
109837         * modules/extensions, modules/gnu-source: New files.
109838         * modules/timespec, modules/unlocked-io: Depend on extensions.
109840 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109842         * modules/restrict: New file.
109843         * MODULES.html.sh (func_all_modules): Add restrict.
109844         * modules/regex: Depend on restrict.
109846 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109848         * m4/restrict.m4: New file.
109849         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
109851 2003-08-07  Bruno Haible  <bruno@clisp.org>
109853         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
109854         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
109856 2003-08-07  Bruno Haible  <bruno@clisp.org>
109858         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109859         makes the module 'getndelim2' compatible with the module 'getline'.
109861 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109863         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109864         byte with "\201" to avoid glitches when editing that source file
109865         with multi-gnome-terminal.
109867 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109869         * lib/bumpalloc.h: Remove.
109871 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109873         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109874         * modules/bumpalloc: Remove.
109876 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109878         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109879         GNU coding style.
109881         Merge from coreutils.
109882         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109883         1. From glibc.
109884         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109885         from Karl Berry, implemented by Jim Meyering.
109886         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109887         from Dmitry V. Levin.
109888         Remove anachronistic cast of xrealloc.
109889         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109890         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109891         type. Otherwise, it wouldn't compile with at least /bin/cc on
109892         ymp-cray-unicos9.0.2.X.
109893         Combine two mostly-identical uses of alloca into one.
109894         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109896 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109898         [From Emacs.]
109900         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109901         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109902         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109903         obsolete NLIST_NAME_UNION.
109904         [__GNU__]: Undef BSD and FSCALE.
109905         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109907 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109909         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109910         an enum type, so that it's guaranteed to promote to int.  See:
109911         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109913 2003-08-03  Karl Berry  <karl@gnu.org>
109915         * config/depcomp: update from automake.
109917 2003-07-31  Paul Eggert  <eggert@twinsun.com>
109919         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
109920         (strerror): Don't assume that a printable int fits in 14 bytes.
109922 2003-07-31  Bruno Haible  <bruno@clisp.org>
109924         * modules/getpass-gnu: New file.
109925         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
109927 2003-07-31  Bruno Haible  <bruno@clisp.org>
109929         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
109931 2003-07-24  Karl Berry  <karl@gnu.org>
109933         * config/missing: update from automake.
109935 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
109936             Bruno Haible  <bruno@clisp.org>
109938         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
109939         * lib/getline.c (getline, getdelim): Likewise.
109940         Remove _GNU_SOURCE define; now it's defined in config.h through
109941         m4/getline.m4.
109943 2003-07-23  Karl Berry  <karl@gnu.org>
109945         * config/config.sub: update from prep.
109947 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109949         * modules/xalloc (Depends-on): Add exitfail.
109950         * modules/xmemcoll: Likewise.
109952 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109954         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
109955         over-parenthesization in macros.
109957         Sync with coreutils.
109959         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
109960         required by C99.
109962         Use `exit_failure' for xalloc and xmemcoll instead of their own
109963         private exit-failure variables.
109964         * lib/xalloc.h (xalloc_exit_failure): Remove.
109965         * lib/xmalloc.c: Likewise.  Include exitfail.h.
109966         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
109967         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
109968         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
109969         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
109971 2003-07-20  Jim Meyering  <jim@meyering.net>
109973         * modules/closeout (Depends-on): Add exitfail.
109974         Suggestion from Bruno Haible.
109976 2003-07-19  Karl Berry  <karl@gnu.org>
109978         * config/config.sub: update from prep.
109980 2003-07-18  Paul Eggert  <eggert@twinsun.com>
109982         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
109983         Remove.
109984         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
109985         to test that it can stand by itself.  Include "exitfail.h".
109986         Clients should set exit_failure instead.
109987         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
109989 2003-07-18  Bruno Haible  <bruno@clisp.org>
109991         * modules/getndelim2: New file.
109992         * modules/getline: Share files with module getndelim2.
109993         * modules/getnline: Depend on getndelim2 instead of sharing files with
109994         it. Add getnline.c to lib_SOURCES.
109995         * MODULES.html.sh (func_all_modules): Add getndelim2.
109997 2003-07-18  Bruno Haible  <bruno@clisp.org>
109999         * m4/getndelim2.m4: New file.
110000         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
110001         invoke gl_PREREQ_GETNDELIM2.
110002         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
110003         gl_PREREQ_GETNDELIM2.
110004         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
110005         gl_GETNDELIM2.
110007 2003-07-18  Bruno Haible  <bruno@clisp.org>
110009         * lib/getndelim2.h: New file.
110010         * lib/getndelim2.c: Make into a module of its own. Include config.h,
110011         getndelim2.h.
110012         (getndelim2): Make non-static. Change return type to ssize_t.
110013         * lib/getline.h: Change argument names.
110014         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
110015         * lib/getnline.c: Include getndelim2.h.
110017 2003-07-18  Andreas Schwab  <schwab@suse.de>
110019         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
110021 2003-07-17  Karl Berry  <karl@gnu.org>
110023         * config/config.sub: update from prep.
110025 2003-07-17  Bruno Haible  <bruno@clisp.org>
110027         * modules/getnline: New file.
110028         * modules/getline: Add lib/getndelim2.c to source file list.
110029         * MODULES.html.sh (func_all_modules): Add getnline.
110031 2003-07-17  Bruno Haible  <bruno@clisp.org>
110033         * m4/getnline.m4: New file.
110035 2003-07-17  Bruno Haible  <bruno@clisp.org>
110037         * m4/Makefile.am.in: Remove file.
110038         * m4/Makefile.am: Remove file.
110039         * m4/Makefile.in: Remove file.
110041 2003-07-17  Bruno Haible  <bruno@clisp.org>
110043         * lib/getnline.h: New file.
110044         * lib/getnline.c: New file.
110045         * lib/getndelim2.c: New file, extracted from getline.c.
110046         (getndelim2): Renamed from getdelim2, with added nmax argument.
110047         * lib/getline.c: Include getndelim2.c.
110048         (getdelim2): Moved out to getndelim2.c.
110049         (getline, getdelim): Update.
110051 2003-07-17  Bruno Haible  <bruno@clisp.org>
110053         * lib/Makefile.am: Remove file.
110054         * lib/Makefile.in: Remove file.
110056 2003-07-17  Bruno Haible  <bruno@clisp.org>
110058         * configure.in: Remove file.
110059         * Makefile.in: Remove file.
110061 2003-07-17  Bruno Haible  <bruno@clisp.org>
110063         * MODULES.html.sh: Put the </BODY> right before </HTML>.
110065 2003-07-16  Karl Berry  <karl@gnu.org>
110067         * config/srclist-update: was running fixlicense twice, which caused
110068                 texinfo.tex to be nullified for some reason.  Simplify,
110069                 $gplsrc is no longer needed as far as I can see?
110071 2003-07-16  Jim Meyering  <jim@meyering.net>
110073         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
110075 2003-07-15  Paul Eggert  <eggert@twinsun.com>
110077         * config/srclist.txt: Get the following files from gettext-runtime/intl
110078         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
110079         ref-del.sin.  From Bruno Haible.
110080         * config/srclist-update (fixfile): Change grep pattern again, since the
110081         previous fix didn't work (there was another trailing $).  Use
110082         '[$]' to escape the $s.
110084 2003-07-15  Karl Berry  <karl@gnu.org>
110086         * lib/vasnprintf.c: update from gettext.
110088 2003-07-15  Karl Berry  <karl@gnu.org>
110090         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
110091         gets expanded when surrounded by '$'.
110093 2003-07-15  Jim Meyering  <jim@meyering.net>
110095         * modules/save-cwd: Don't depend on error.  From Derek Price.
110097 2003-07-15  Jim Meyering  <jim@meyering.net>
110099         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
110101 2003-07-14  Simon Josefsson  <jas@extundo.com>
110103         * modules/mempcpy: New file.
110104         * MODULES.html.sh (func_all_modules): Add mempcpy.
110106 2003-07-14  Simon Josefsson  <jas@extundo.com>
110108         * m4/mempcpy.m4: New file.
110110 2003-07-14  Simon Josefsson  <jas@extundo.com>
110112         * lib/mempcpy.h: New file.
110113         * lib/mempcpy.c: New file.
110115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110117         * modules/getdate, modules/posixtm: Depend on mktime.
110119 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110121         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
110122         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
110123         unicodeio.c, unicodeio.h, unlocked-io.h:
110124         Switch from LGPL to GPL.
110126 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110128         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
110129         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
110130         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
110131         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
110132         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
110133         updated automatically by ../config/srclist-update.  This changes
110134         their license from LPGL to GPL.
110136 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110138         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
110139         assumed to refer to the root of the most recent stable gettext version.
110140         * config/srclistvars.sh: Add defaults for eggert.
110141         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
110142         Match "This program" as well as "The program".  This is needed
110143         for gettext.
110145 2003-07-14  Jim Meyering  <jim@meyering.net>
110147         Don't emit diagnostics.  Let callers do that.
110148         * lib/save-cwd.c: Don't include "error.h".
110149         (save_cwd): Don't call error.  Ensure that errno is valid
110150         when returning nonzero.
110152         * lib/save-cwd.h (restore_cwd): Update prototype.
110153         * lib/save-cwd.c (restore_cwd): Remove two parameters.
110154         Simplify.  Don't call error upon failure.  Let callers do that.
110155         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
110156         when auditing is enabled.  But don't bother updating the #if.
110158 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
110160         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
110161         it breaks C++ compilation.
110162         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
110164 2003-07-10  Simon Josefsson  <jas@extundo.com>
110166         * modules/strchrnul (Makefile.am): Add strchrnul.h.
110168 2003-07-10  Jim Meyering  <jim@meyering.net>
110170         * m4/clock_time.m4: Remove trailing blank.
110171         * m4/intmax_t.m4: Likewise.
110173 2003-07-10  Jim Meyering  <jim@meyering.net>
110175         * lib/vasnprintf.c: Remove trailing blanks.
110176         Make cpp indentation consistent.
110178 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110180         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
110181         posixver.c, strftime.c, strnlen.c, strverscmp.c:
110182         Switch from LGPL to GPL.
110184 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110186         * config/srclist.txt: Sort sublists.  Add
110187         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
110188         that differ from gnulib for one reason or another; we'd like this list
110189         to be smaller but for now let's document what we have.
110191 2003-07-08  Paul Eggert  <eggert@twinsun.com>
110193         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
110194         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
110195         and sweeter "eval x=$x".
110196         * config/srclist.txt: Get lib/argp* from glibc.
110198 2003-07-07  Paul Eggert  <eggert@twinsun.com>
110200         * lib/mktime.c: Fix some boundary cases and remove need for floating
110201         point.
110203         Issue a compile-time diagnostic if time_t is floating point, or if
110204         two's complement arithmetic is not in effect, or if arithmetic
110205         right shift does not propagate the sign.  These assumptions were
110206         all in the original code but they weren't checked.
110208         (TIME_T_MIDPOINT, verify): New macros.
110209         (__isleap): Remove; it has integer overflow problems.
110210         (leapyear): New function, without those problems.
110211         (ydhms_tm_diff): Remove; splitting into two parts.
110212         (ydhms_diff): New function, containing the arithmetic part of
110213         the old ydhms_tm_diff function.  Issue a compile-time
110214         diagnostic if we are not using C99 integer division.
110215         Avoid casts when possible.
110216         (guess_time_tm): New function, containing the checking part of
110217         the old ydhms_tm_diff function.  Return the new value, rather than
110218         the difference between it and the old.  Accept a new argument T
110219         so that *T specifies the old value.  Check for overflow in the result.
110221         (__mktime_internal): Use a time_t offset, not a long int offset.
110222         This undoes the 2003-06-04 change, which is no longer needed now
110223         that we have better overflow checking.
110224         (localtime_offset): Likewise.
110226         (__mktime_internal): Avoid harmful overflow on hosts where time_t
110227         and long are 64-bit but int is only 32-bit.
110228         (ydhms_diff): Use long int to store year1 and yday1.
110229         Issue a compile-time diagnostic if long int is not wide enough.
110231         (__mktime_internal): Use long int to store adjusted year and yday.
110232         Use plain C rather than preprocessor commands, if that doesn't
110233         affect efficiency.
110234         Check for overflow (and try to repair) after each probe
110235         rather than checking only at the very end.  This avoids some bugs
110236         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
110237         does not equal GMT offset at maximum time).
110238         Use integer to check for overflow rather than floating point; this
110239         is more portable to non-IEEE hosts, and is a tad faster.
110240         When we detect that we are oscillating between two values,
110241         don't check whether tm_isdst has the requested value, since
110242         we already know the answer.  When tm_isdst has the wrong value,
110243         use a different heuristic to find the right one, based on the
110244         extreme values actually observed in practice in tz2003a,
110245         rather than the (overly optimistic) "previous 3 calendar quarters".
110247         (not_equal_tm, print_tm, check_result): Use "const T" rather than
110248         "T const" to accommodate glibc style.
110249         (check_result): Use less-confusing report format.  "long" -> "long int.
110250         (main): Likewise.
110251         Don't loop if the iteration overflows time_t.
110252         Allow a negative step in the iteration.
110254 2003-07-06  Karl Berry  <karl@gnu.org>
110256         * config/depcomp: update from automake.
110257         * config/config.sub: update from prep.
110259 2003-07-03  Karl Berry  <karl@gnu.org>
110261         * config/config.guess: update from prep.
110263 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110265         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
110266         xreadlink.c now includes it unconditionally.
110268 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110270         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
110271         having it depend on HAVE_SYS_TYPES_H.
110273 2003-07-01  Bruno Haible  <bruno@clisp.org>
110275         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
110276         <sys/types.h> should be sufficient.
110277         Reported by Paul Eggert.
110279 2003-06-26  Karl Berry  <karl@gnu.org>
110281         * config/depcomp: update from automake.
110283 2003-06-26  Bruno Haible  <bruno@clisp.org>
110285         * modules/human: Depend on module stdbool.
110287 2003-06-25  Bruno Haible  <bruno@clisp.org>
110289         * modules/readlink: New file.
110290         * modules/xreadlink: Depend on it.
110291         * MODULES.html.sh (func_all_modules): Add readlink.
110293 2003-06-25  Bruno Haible  <bruno@clisp.org>
110295         * m4/readlink.m4: New file.
110297 2003-06-25  Bruno Haible  <bruno@clisp.org>
110299         * lib/readlink.c: New file.
110301 2003-06-22  Karl Berry  <karl@gnu.org>
110303         * config/srclist.txt: update mkinstalldirs from automake.
110304         * config/mkinstalldirs: update.
110306 2003-06-22  Bruno Haible  <bruno@clisp.org>
110308         Portability to mingw32.
110309         * m4/ssize_t.m4: New file, from GNU gettext.
110310         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
110311         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
110313 2003-06-22  Bruno Haible  <bruno@clisp.org>
110315         * modules/safe-read: Add m4/ssize_t.m4.
110316         * modules/xreadlink: Add m4/ssize_t.m4.
110318 2003-06-20  Bruno Haible  <bruno@clisp.org>
110320         Assume C89, so PARAMS isn't needed.
110321         * lib/unicodeio.h (PARAMS): Remove.
110322         * lib/unicodeio.c: Don't use PARAMS.
110324 2003-06-18  Karl Berry  <karl@gnu.org>
110326         * config/config.{guess,sub}: update from prep.
110328 2003-06-18  Jim Meyering  <jim@meyering.net>
110330         Merge changes from coreutils.
110331         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
110332         Remove explicit declarations of xmalloc and realloc.
110333         Include xalloc.h.
110334         (read_utmp): Remove anachronistic cast of xmalloc.
110336 2003-06-17  Paul Eggert  <eggert@twinsun.com>
110338         Assume C89, so PARAMS isn't needed.
110339         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
110340         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
110341         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
110342         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
110343         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
110344         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
110345         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
110346         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
110347         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
110348         lib/xstrtod.h, lib/xstrtol.h: Likewise.
110349         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
110350         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
110351         no longer needed. Anyway, config.h should always be included before any
110352         other file.
110354 2003-06-11  Simon Josefsson  <jas@extundo.com>
110356         * modules/sysexits: New file.
110357         * MODULES.html.sh (func_all_modules): Add sysexits.
110359 2003-06-11  Simon Josefsson  <jas@extundo.com>
110361         * lib/sysexit_.h: New file.
110363 2003-06-11  Derek Price  <derek@ximbiot.com>
110365         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
110366         necessary.
110368 2003-06-11  Bruno Haible  <bruno@clisp.org>
110370         * m4/sysexits.m4: New file.
110372 2003-06-10  Simon Josefsson  <jas@extundo.com>
110374         * lib/argp.h: New file, from glibc.
110375         * lib/argp-ba.c: New file, from glibc.
110376         * lib/argp-eexst.c: New file, from glibc.
110377         * lib/argp-fmtstream.c: New file, from glibc.
110378         * lib/argp-fmtstream.h: New file, from glibc.
110379         * lib/argp-fs-xinl.c: New file, from glibc.
110380         * lib/argp-help.c: New file, from glibc.
110381         * lib/argp-namefrob.h: New file, from glibc.
110382         * lib/argp-parse.c: New file, from glibc.
110383         * lib/argp-pv.c: New file, from glibc.
110384         * lib/argp-pvh.c: New file, from glibc.
110385         * lib/argp-xinl.c: New file, from glibc.
110387 2003-06-10  Simon Josefsson  <jas@extundo.com>
110389         * modules/strchrnul: New file.
110391 2003-06-10  Simon Josefsson  <jas@extundo.com>
110393         * modules/argp: New file.
110395 2003-06-10  Simon Josefsson  <jas@extundo.com>
110397         * m4/strchrnul.m4: New file.
110399 2003-06-10  Simon Josefsson  <jas@extundo.com>
110401         * lib/strchrnul.h: New file.
110402         * lib/strchrnul.c: New file.
110404 2003-06-10  Bruno Haible  <bruno@clisp.org>
110406         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
110408 2003-06-07  Karl Berry  <karl@gnu.org>
110410         * config/config.{guess,sub}: update from prep.
110412 2003-06-07  Jim Meyering  <jim@meyering.net>
110414         * modules/strtod: Use $(...) notation, not @...@ for
110415         AC_REPLACE'd variables.
110416         * modules/localcharset: Likewise.
110418 2003-06-07  Jim Meyering  <jim@meyering.net>
110420         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
110421         in place of my name in the copyright comment.
110422         Remove definition and uses of __P.
110424         From coreutils.
110425         * lib/stat.c: Don't declare xmalloc explicitly.
110426         Instead, include "xalloc.h".
110427         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
110428         xrealloc, and xcalloc return values.
110429         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
110430         Improve comment.
110431         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
110433 2003-06-07  Bruno Haible  <bruno@clisp.org>
110435         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
110436         avoid AC_CONFIG_LINKS.
110437         * modules/fnmatch (Makefile.am): Use explicit creation rule for
110438         fnmatch.h, to avoid AC_CONFIG_LINKS.
110439         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
110441 2003-06-07  Bruno Haible  <bruno@clisp.org>
110443         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
110444         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
110445         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110446         directory.
110447         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
110448         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110449         directory.
110451 2003-06-06  Jim Meyering  <jim@meyering.net>
110453         Merge from coreutils.
110454         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
110455         Consolidate declarations and initializations of *_base* locals.
110457         Merge from coreutils.
110458         This avoids a core dump on systems without GNU putenv,
110459         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
110460         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
110461         (unsetenv): New static function, from GNU libc.
110462         (rpl_putenv): Use it.
110464         * lib/modechange.c: Remove trailing blanks.
110466         Merge from coreutils.
110467         * lib/fsusage.c: Remove declaration of statfs.
110468         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
110470         * lib/posixtm.c: Include <stdbool.h> unconditionally.
110472 2003-06-06  Jim Meyering  <jim@meyering.net>
110474         * lib/stdbool_.h: Renamed from stdbool.h.in.
110476 2003-06-06  Jim Meyering  <jim@meyering.net>
110477             Bruno Haible  <bruno@clisp.org>
110479         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
110480         Adjust Makefile.am snippet not to redirect directly to target.
110481         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
110483 2003-06-05  Paul Eggert  <eggert@twinsun.com>
110485         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
110486         mismatch, look in future quarters as well as past.  This fixes a
110487         bug when processing fall-backwards gaps immediately after a long
110488         period of daylight-saving time.
110490         * lib/mktime.c: Assume freestanding C89 or better.
110491         (HAVE_LIMITS_H): Remove.  Assume it's 1.
110492         (__P): Remove; not used.
110493         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
110494         (mktime, not_equal_tm, print_tm, check_result,
110495         main): Use prototypes.  Use const * where appropriate.
110496         (main): Fix typo in testing code that uncovered by above changes.
110497         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
110499 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110501         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
110502         locale.h, localeconv.  This merges changes from coreutils.
110504         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
110505         It can be removed after the next Autoconf is released.
110506         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
110507         needed.
110509 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110511         * lib/mktime.c: Fix Debian bug 177940
110512         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
110513         (localtime_offset): Now long int, not time_t, because we want it
110514         to be guaranteed to be signed.  All uses changed.
110515         (__mktime_internal): If overflow would occur when adding offset,
110516         don't add it.
110518         Merge 'human' changes from coreutils.  Rewrite to support
110519         locale-specific notations like thousands separators.
110520         * lib/human.c: Simplify authorship notice.
110521         Include human.h immediately after config.h.
110522         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
110523         <limits.h>: Do not include, since human.h does.
110524         (SIZE_MAX, UINTMAX_MAX): New macros.
110525         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
110526         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
110527         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
110528         (power_letter): Renamed from suffixes.
110529         (generate_suffix_backwards): Remove.
110530         (adjust_value): Now takes int style (because of human.h changes)
110531         and long double value (for greater precision on some platforms).
110532         (group_number): New function.
110533         (human_readable): Use it.  Use integer options, not enum.
110534         Put the options before the sizes in the arg list.
110535         Support all the new options.
110536         The old human_readable function has been removed;
110537         use inttostr.h instead.
110538         (human_readable, default_block_size, humblock):
110539         Use uintmax_t, not int, for block sizes.
110540         (human_readable_inexact, block_size_types): Remove.
110541         (block_size_opts): New constant.
110542         (human_options): Renamed from human_block_size, with new signature
110543         that allows block sizes up to UINTMAX_MAX.  All callers changed.
110544         * lib/human.h: Add copyright and authorship notice.
110545         Include <limits.h> and <stdbool.h> unconditionally.
110546         (PARAMS): Remove.  All uses removed.
110547         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
110548         (enum human_inexact_style): Remove tag; now a nameless enum.
110549         (human_floor, human_ceiling, human_round_to_even): Now have
110550         values 2, 0, 1 rather than -1, 1, 0.
110551         (human_group_digits, human_suppress_point_zero, human_autoscale,
110552         human_base_1024, human_SI, human_B): New constants.
110553         (human_readable_inexact, human_block_size): Remove.
110554         (human_readable): Size args are now uintmax_t, not int.
110555         (human_options): New decl.
110557         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
110558         unnecessary now that we assume C89 or better.  This change
110559         imported from coreutils.
110561         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110562         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
110563         in the 2003-05-30 sync from glibc.
110565         .h files should stand alone, but we shouldn't include <sys/types.h>
110566         if we can get away with just <stddef.h>.
110568         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
110569         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
110570         rather than <sys/types.h>, as we merely need size_t.
110571         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
110572         to get size_t.
110573         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
110574         Include <stdio.h>, to get FILE.
110575         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
110576         memcasecmp.h has included <stddef.h> and all we need is size_t.
110577         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
110578         our interface, instead of including <sys/types.h>
110580 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110582         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
110583         now, as glibc mktime is buggy on non-glibc systems.
110585 2003-06-03  Karl Berry  <karl@gnu.org>
110587         * config/config.sub: update from prep.
110589 2003-06-02  Paul Eggert  <eggert@twinsun.com>
110591         [from coreutils]
110592         Fix some minor time-related bugs with POSIX time arguments.
110593         Some valid time stamps were being rejected (notably -1, and
110594         time stamps before 1900 on 64-bit hosts).  And some invalid
110595         time stamps were being accepted, e.g. September 31.
110597         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110598         that we can return (time_t) -1 successfully.
110599         * lib/posixtm.c: Likewise.
110600         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110601         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110602         (t): Remove static var.
110603         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110604         of static var.  All uses changed.
110605         (year): Do not reject years before 1900; they can occur with
110606         64-bit time_t.
110607         (posix_time_parse): Do not check for out-of-range components;
110608         that is now the caller's responsibility, since our checks were
110609         only approximations.
110610         (posixtime): Use mktime to check for out-of-range components,
110611         since it knows them exactly.
110612         If mktime returns (time_t) -1, check whether an error actually occurred
110613         by invoking localtime on -1.
110614         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110615         posixtime failures better.
110616         Improve the test data (in comments only).
110618 2003-06-02  Karl Berry  <karl@gnu.org>
110620         * config/mkinstalldirs (version): new variable.
110621         (--version): new option.
110622         (usage): improve message.
110624 2003-05-30  Karl Berry  <karl@gnu.org>
110626         * lib/mktime.c: update from libc.
110628 2003-05-30  Bruno Haible  <bruno@clisp.org>
110630         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110631         * config/config.rpath: Upgrade to gettext-0.12.1.
110633 2003-05-30  Bruno Haible  <bruno@clisp.org>
110635         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110636         * m4/nls.m4: New file, from gettext-0.12.1.
110637         * m4/po.m4: New file, from gettext-0.12.1.
110638         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110640 2003-05-30  Bruno Haible  <bruno@clisp.org>
110642         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110643         * lib/localcharset.h: Likewise.
110644         * lib/localcharset.c: Likewise.
110646 2003-05-29  Karl Berry  <karl@gnu.org>
110648         * config/config.rpath: update from gettext.
110650 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110652         Assume the headers required for C89 freestanding compilers.
110653         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110654         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110655         * m4/human.m4 (gl_HUMAN): Likewise.
110656         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110657         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110658         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110659         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110660         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110661         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110663 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110665         Assume the headers required for C89 freestanding compilers.
110666         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110667         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110668         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110669         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110670         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110671         define, since <limits.h> is guaranteed to do that.
110672         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110673         * lib/exclude.c: Include <stdbool.h> unconditionally.
110674         * lib/tempname.c: Include <stddef.h> unconditionally.
110675         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110676         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110677         <stddef.h> does that.
110678         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110679         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110680         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110681         needed.
110682         * lib/xstrtol.c: Likewise.
110683         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110684         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110686         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110687         warnings on some platforms.
110689         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110690         arbitrarily.
110692 2003-05-26  Jim Meyering  <jim@meyering.net>
110694         Merge in a change from coreutils:
110695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110696         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110697         that condition, rather than `-1' which is slightly misleading.
110698         Change the name of the cache variable to have the gl_ prefix.
110699         Prompted by a patch from Richard Dawe for DJGPP.
110701 2003-05-24  Karl Berry  <karl@gnu.org>
110703         * config/config.guess: update from prep.
110705 2003-05-22  Karl Berry  <karl@gnu.org>
110707         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110709 2003-05-20  Karl Berry  <karl@gnu.org>
110711         * config/config.guess: update from prep.
110713 2003-05-18  Karl Berry  <karl@gnu.org>
110715         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110716         might actually be set by the user.
110718         * config/depcomp, install-sh, mdate-sh: update from automake.
110720 2003-05-17  Bruno Haible  <bruno@clisp.org>
110722         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110723         invalid expansion for AC_EGREP_CPP.
110724         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110725         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110726         Suggested by Akim Demaille <akim@epita.fr> in
110727         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110729 2003-05-12  Jim Meyering  <jim@meyering.net>
110731         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110732         the space-padded-by-default conversion specifiers, %e, %k, %l.
110734 2003-05-12  Bruno Haible  <bruno@clisp.org>
110736         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110737         the string is longer than 4 KB.
110739 2003-05-11  Karl Berry  <karl@gnu.org>
110741         * config/config.{guess,sub}: update from prep.
110743 2003-05-09  Bruno Haible  <bruno@clisp.org>
110745         * modules/error: Add m4/strerror_r.m4 to file list.
110747 2003-05-03  Bruno Haible  <bruno@clisp.org>
110749         Upgrade to Unicode-4.0.
110750         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
110751         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
110752         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
110753         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
110754         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
110755         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
110756         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
110757         Change width of U+E0100..U+E01EF from 1 to 0.
110759 2003-04-25  Jim Meyering  <jim@meyering.net>
110761         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
110762         of type size_t, not int.
110764 2003-04-25  Bruno Haible  <bruno@clisp.org>
110766         * lib/copy-file.c: Include <stddef.h>, for size_t.
110768 2003-04-21  Paul Eggert  <eggert@twinsun.com>
110770         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
110771         code which expansion is under static control.  Patch imported from
110772         Akim Demaille's patch to Bison; see
110773         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
110775 2003-04-14  Bruno Haible  <bruno@clisp.org>
110777         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
110779 2003-04-11  Jim Meyering  <jim@meyering.net>
110781         Merge changes from Coreutils.
110783         2003-03-22  Jim Meyering  <jim@meyering.net>
110785         * lib/strftime.c (widen): Cast alloca return value to proper type.
110787         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
110789         From GNU libc.
110790         * lib/strftime.c (my_strftime): Handle very large width
110791         specifications for numeric values correctly.  Improve checks for
110792         overflow.
110794         2003-01-19  Jim Meyering  <jim@meyering.net>
110796         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
110797         definitions.
110798         (nl_get_alt_digit) [! defined my_strftime]: Define.
110799         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
110800         _nl_get_alt_digit and _nl_get_walt_digit.
110802         * lib/strftime.c (my_strftime): Merge in locale-related changes from
110803         libc. These changes have no effect outside of _LIBC.
110805 2003-04-10  Bruno Haible  <bruno@clisp.org>
110807         * modules/findprog: New file.
110808         * MODULES.html.sh (func_all_modules): Add it.
110810 2003-04-10  Bruno Haible  <bruno@clisp.org>
110812         * m4/findprog.m4: New file.
110813         * m4/eaccess.m4: New file.
110815 2003-04-10  Bruno Haible  <bruno@clisp.org>
110817         * lib/findprog.h: New file, from GNU gettext.
110818         * lib/findprog.c: New file, from GNU gettext.
110820 2003-04-05  Jim Meyering  <jim@meyering.net>
110822         Merge changes from Coreutils.
110824         * lib/exclude.h (PARAMS): Remove definition and uses.
110825         * lib/exclude.c: Remove uses of `PARAMS'.
110827         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
110828         Add test-cases for DOS filenames. Declare program_name.
110829         (main): Set up program_name.  Patch by Rich Dawe.
110831         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110832         error from mntctl.
110833         Use mntctl's return value to drive the entry-processing loop, since
110834         we can't rely on the value of the vmt_length member in the last
110835         entry.  On some systems doing so could result in exhausting
110836         virtual memory.  Based in part on a patch from Mike Jetzer.
110838 2003-04-04  Bruno Haible  <bruno@clisp.org>
110840         * modules/linebreak: New file.
110841         * MODULES.html.sh (func_all_modules): Add it.
110843 2003-04-04  Bruno Haible  <bruno@clisp.org>
110845         * m4/linebreak.m4: New file.
110847 2003-04-04  Bruno Haible  <bruno@clisp.org>
110849         * lib/linebreak.h: New file, from GNU gettext.
110850         * lib/linebreak.c: New file, from GNU gettext with slight
110851         modifications.
110852         * lib/lbrkprop.h: New file, from GNU gettext.
110854 2003-04-03  Bruno Haible  <bruno@clisp.org>
110856         * modules/utf8-ucs4: New file.
110857         * modules/utf16-ucs4: New file.
110858         * modules/ucs4-utf8: New file.
110859         * modules/ucs4-utf16: New file.
110860         * MODULES.html.sh (func_all_modules): Add them.
110862 2003-04-03  Bruno Haible  <bruno@clisp.org>
110864         * m4/utf-ucs4.m4: New file.
110865         * m4/ucs4-utf.m4: New file.
110867 2003-04-03  Bruno Haible  <bruno@clisp.org>
110869         * lib/utf8-ucs4.h: New file, from GNU gettext.
110870         * lib/utf16-ucs4.h: New file, from GNU gettext.
110871         * lib/ucs4-utf8.h: New file, from GNU gettext.
110872         * lib/ucs4-utf16.h: New file, from GNU gettext.
110874 2003-04-02  Bruno Haible  <bruno@clisp.org>
110876         * modules/binary-io: New file.
110877         * MODULES.html.sh (func_all_modules): Add it.
110879 2003-04-02  Bruno Haible  <bruno@clisp.org>
110881         * lib/binary-io.h: New file, from GNU gettext.
110883 2003-04-01  Bruno Haible  <bruno@clisp.org>
110885         * modules/pathname: New file.
110886         * MODULES.html.sh (func_all_modules): Add it.
110888 2003-04-01  Bruno Haible  <bruno@clisp.org>
110890         * lib/pathname.h: New file, from GNU gettext.
110891         * lib/concatpath.c: New file, from GNU gettext.
110893 2003-03-30  Bruno Haible  <bruno@clisp.org>
110895         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110897 2003-03-30  Bruno Haible  <bruno@clisp.org>
110899         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110900         function chown() doesn't exist.
110902 2003-03-28  Bruno Haible  <bruno@clisp.org>
110904         * modules/copy-file: New file.
110905         * MODULES.html.sh (func_all_modules): Add it.
110907 2003-03-28  Bruno Haible  <bruno@clisp.org>
110909         * m4/copy-file.m4: New file.
110911 2003-03-28  Bruno Haible  <bruno@clisp.org>
110913         * lib/copy-file.h: New file, from GNU gettext.
110914         * lib/copy-file.c: New file, from GNU gettext.
110916 2003-03-18  Jim Meyering  <jim@meyering.net>
110918         * lib/quote.c (quote_n): Fix typo in comment.
110920 2003-03-18  Bruno Haible  <bruno@clisp.org>
110922         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
110923         checking.
110924         * m4/onceonly_2_57.m4: Likewise.
110926 2003-03-17  Bruno Haible  <bruno@clisp.org>
110928         * m4/onceonly.m4: Require autoconf 2.54 or newer.
110929         (m4_quote): Remove macro.
110930         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
110932 2003-03-14  Jim Meyering  <jim@meyering.net>
110934         Merge changes from Coreutils.
110935         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
110936         to be const, in order to avoid warnings.
110937         (obstack_room): Likewise.
110938         (obstack_empty_p): Likewise.
110940 2003-03-14  Bruno Haible  <bruno@clisp.org>
110942         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
110943         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
110945 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110947         Merge changes from Bison.
110948         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
110949         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
110950         when compiling Bison 1.875's `bitset bset = obstack_alloc
110951         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
110952         * lib/hash.c: Include <stdbool.h> unconditionally.
110954 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110956         * m4/onceonly.m4 (m4_quote): New macro.
110957         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
110958         Quote AC_FOREACH variable-expansions properly.
110960 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110962         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
110964 2003-03-09  Paul Eggert  <eggert@twinsun.com>
110966         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
110967         Reported by Bruce Becker; see:
110968         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
110970 2003-03-03  Paul Eggert  <eggert@twinsun.com>
110971             Bruno Haible  <bruno@clisp.org>
110973         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
110974         Reported by John Hughes, see
110975         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
110977 2003-02-20  Bruno Haible  <bruno@clisp.org>
110979         * MODULES.html.sh (func_all_modules): Add poll.
110981 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110983         * modules/poll: New file.
110985 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110987         * lib/poll_.h: New file.
110988         * lib/poll.c: New file.
110990 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110992         * m4/poll.m4: New file.
110994 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110996         * modules/mathl: New file.
110998 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111000         * lib/mathl.h: New file.
111001         * lib/acosl.c: New file.
111002         * lib/asinl.c: New file.
111003         * lib/atanl.c: New file.
111004         * lib/ceill.c: New file.
111005         * lib/cosl.c: New file.
111006         * lib/expl.c: New file.
111007         * lib/floorl.c: New file.
111008         * lib/frexpl.c: New file.
111009         * lib/ldexpl.c: New file.
111010         * lib/logl.c: New file.
111011         * lib/sincosl.c: New file.
111012         * lib/sinl.c: New file.
111013         * lib/sqrtl.c: New file.
111014         * lib/tanl.c: New file.
111015         * lib/trigl.c: New file.
111016         * lib/trigl.h: New file.
111018 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111020         * m4/mathl.m4: New file.
111022 2003-02-18  Bruno Haible  <bruno@clisp.org>
111024         * MODULES.html.sh (func_all_modules): Add mathl.
111026 2003-02-17  Bruno Haible  <bruno@clisp.org>
111028         * modules/mkdtemp: New module.
111029         * MODULES.html.sh (func_all_modules): Add it.
111031 2003-02-17  Bruno Haible  <bruno@clisp.org>
111033         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
111035 2003-02-17  Bruno Haible  <bruno@clisp.org>
111037         * lib/mkdtemp.h: New file, from GNU gettext.
111038         * lib/mkdtemp.c: New file, from GNU gettext.
111040 2003-02-02  Jim Meyering  <jim@meyering.net>
111042         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
111043         e.g. glibc-2.2.93.
111045 2003-01-31  Bruno Haible  <bruno@clisp.org>
111047         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
111048         'rpl_rename'.
111049         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
111050         'rpl_strnlen'.
111051         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
111052         'rpl_strtod'.
111053         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
111054         'rpl_utime'.
111056 2003-01-31  Bruno Haible  <bruno@clisp.org>
111058         * lib/rename.c: #undef rename before defining rpl_rename.
111059         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
111061 2003-01-30  Bruno Haible  <bruno@clisp.org>
111063         * modules/vasnprintf, modules/vasprintf: New modules.
111064         * MODULES.html.sh (func_all_modules): Add them.
111066 2003-01-30  Bruno Haible  <bruno@clisp.org>
111068         * m4/signed.m4: New file, from GNU gettext.
111069         * m4/longdouble.m4: New file, from GNU gettext.
111070         * m4/wchar_t.m4: New file, from GNU gettext.
111071         * m4/wint_t.m4: New file, from GNU gettext.
111072         * m4/vasnprintf.m4: New file.
111073         * m4/vasprintf.m4: New file.
111075 2003-01-30  Bruno Haible  <bruno@clisp.org>
111077         * lib/printf-args.h: New file, from GNU gettext.
111078         * lib/printf-args.c: New file, from GNU gettext.
111079         * lib/printf-parse.h: New file, from GNU gettext.
111080         * lib/printf-parse.c: New file, from GNU gettext.
111081         * lib/vasnprintf.h: New file, from GNU gettext.
111082         * lib/vasnprintf.c: New file, from GNU gettext.
111083         * lib/asnprintf.c: New file, from GNU gettext.
111084         * lib/vasprintf.h: New file, from GNU gettext with modifications.
111085         * lib/vasprintf.c: New file, from GNU gettext.
111086         * lib/asprintf.c: New file, from GNU gettext.
111088 2003-01-29  Bruno Haible  <bruno@clisp.org>
111090         * modules/stpncpy: New module.
111091         * MODULES.html.sh (func_all_modules): Add it.
111093 2003-01-29  Bruno Haible  <bruno@clisp.org>
111095         * m4/stpncpy.m4: New file.
111097 2003-01-29  Bruno Haible  <bruno@clisp.org>
111099         * lib/stpncpy.h: New file, from GNU gettext with modifications.
111100         * lib/stpncpy.c: New file, from GNU gettext with modifications.
111102 2003-01-28  Bruno Haible  <bruno@clisp.org>
111104         * modules/c-ctype: New module.
111105         * MODULES.html.sh (func_all_modules): Add it.
111107 2003-01-28  Bruno Haible  <bruno@clisp.org>
111109         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
111110         Paul Eggert.
111111         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
111112         Paul Eggert.
111114 2003-01-27  Bruno Haible  <bruno@clisp.org>
111116         * modules/xsetenv: New module.
111117         * MODULES.html.sh (func_all_modules): Add it.
111119 2003-01-27  Bruno Haible  <bruno@clisp.org>
111121         * lib/xsetenv.h: New file, from GNU gettext.
111122         * lib/xsetenv.c: New file, from GNU gettext.
111124 2003-01-23  Jim Meyering  <jim@meyering.net>
111126         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
111127         from working on systems without dirfd (at least Irix and OSF1/Tru64).
111129 2003-01-23  Bruno Haible  <bruno@clisp.org>
111131         * modules/minmax: New module.
111132         * MODULES.html.sh (func_all_modules): Add it.
111134 2003-01-23  Bruno Haible  <bruno@clisp.org>
111136         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
111137         Eggert.
111139 2003-01-22  Bruno Haible  <bruno@clisp.org>
111141         * modules/exit: New module.
111142         * MODULES.html.sh (func_all_modules): Add it.
111144 2003-01-22  Bruno Haible  <bruno@clisp.org>
111146         * lib/exit.h: New file, from GNU gettext.
111148 2003-01-19  Bruno Haible  <bruno@clisp.org>
111150         * gnulib-tool: Recognize option --extract-maintainer.
111151         (func_get_maintainer): New function.
111152         * modules/*: Add Maintainer entry.
111154 2003-01-16  Jim Meyering  <jim@meyering.net>
111156         * m4/regex.m4: The `regex' struct is both input and output.
111157         Initialize it before each use.  Patch by Tim Waugh.
111159 2003-01-16  Bruno Haible  <bruno@clisp.org>
111161         * MODULES.html.sh: Add a table of contents. Add the module name as
111162         leftmost column. Add hyperlinks.
111164 2003-01-15  Bruno Haible  <bruno@clisp.org>
111166         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
111168 2003-01-15  Bruno Haible  <bruno@clisp.org>
111170         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
111171         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
111172         suffix.
111174 2003-01-15  Bruno Haible  <bruno@clisp.org>
111176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
111178 2003-01-15  Bruno Haible  <bruno@clisp.org>
111180         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
111181         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
111183 2003-01-14  Jim Meyering  <jim@meyering.net>
111185         * lib/same.c (same_name): Tweak a comment.
111187 2003-01-14  Bruno Haible  <bruno@clisp.org>
111189         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
111190         when a string comparison is sufficient.
111192 2003-01-14  Bruno Haible  <bruno@clisp.org>
111194         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
111195         'unsigned int'.
111197 2003-01-14  Bruno Haible  <bruno@clisp.org>
111199         * lib/hash-pjw.c: Add comment about low quality of this function.
111201 2003-01-13  Bruno Haible  <bruno@clisp.org>
111203         * modules/stpcpy: Distribute lib/stpcpy.h.
111204         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
111206 2003-01-13  Bruno Haible  <bruno@clisp.org>
111208         * modules/*: Add a description.
111209         * modules/strpbrk: Fix Makefile.am snippet.
111210         * modules/strtoimax: Fix dependencies.
111211         * modules/strtoumax: Likewise.
111213 2003-01-13  Bruno Haible  <bruno@clisp.org>
111215         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
111216         * modules/alloca (Makefile.am): All object files depend on alloca.h.
111217         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
111219 2003-01-13  Bruno Haible  <bruno@clisp.org>
111221         * gnulib-tool (func_create_testdir): Store config/* files in the main
111222         directory.
111223         * config.rpath: Move to ...
111224         * config/config.rpath: ... here.
111225         * modules/gettext: Contains config/config.rpath, not config.rpath.
111226         * modules/iconv: Likewise.
111228 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111230         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111231         to avoid collisions with libcurses and libreadline.
111233         * m4/getstr.m4: Remove.
111234         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
111236 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111238         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111239         to avoid collisions with libcurses and libreadline.
111241         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
111242         * lib/getstr.h, getstr.c: Remove.
111243         * lib/getline.c: Include "getline.h", to check interface.
111244         Move body of old getstr.c here: this defines MIN_CHUNK and
111245         declares getdelim2, which is renamed from getstr.
111246         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
111248         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
111249         All uses changed.
111250         * lib/linebuffer.h: Likewise.
111251         (readline): Remove backward-compatibility macro.
111253 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111255         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111256         to avoid collisions with libcurses and libreadline.
111257         * getstr: Remove.
111258         * MODULES.html.sh: Remove getstr.
111259         * modules/getline: Depend on unlocked-io, not getstr.
111261 2003-01-12  Jim Meyering  <jim@meyering.net>
111263         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
111265 2003-01-10  Bruno Haible  <bruno@clisp.org>
111267         * modules/alloca: Change Makefile.am requirements. Simplify Include
111268         requirements. Add lib/alloca_.h to file list.
111270 2003-01-10  Bruno Haible  <bruno@clisp.org>
111272         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
111274 2003-01-10  Bruno Haible  <bruno@clisp.org>
111276         * lib/alloca_.h: New file.
111277         * lib/getdate.y: Unconditionally include alloca.h.
111278         * lib/makepath.c: Likewise.
111279         * lib/setenv.c: Likewise.
111280         * lib/userspec.c: Likewise.
111282 2003-01-09  Karl Berry  <karl@gnu.org>
111284         * MODULES.html.sh: include `dirname $0` in PATH, to find
111285         gnulib-tool.
111287 2003-01-09  Bruno Haible  <bruno@clisp.org>
111289         * modules/stdbool: Change configure.ac, Makefile.am requirements.
111290         Simplify Include requirements. Add lib/stdbool.h.in to file list.
111292 2003-01-09  Bruno Haible  <bruno@clisp.org>
111294         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
111296 2003-01-09  Bruno Haible  <bruno@clisp.org>
111298         * lib/stdbool.h.in: New file.
111300 2003-01-09  Bruno Haible  <bruno@clisp.org>
111302         * gnulib-tool (func_all_modules): Ignore files ending in ~.
111303         * MODULES.html.sh: Likewise.
111305 2003-01-08  Jim Meyering  <jim@meyering.net>
111307         * lib/full-write.c: Undefine and define-away `const' after inclusion
111308         of errno.h, not before.  Suggestion from Bruno Haible.
111310 2003-01-08  Bruno Haible  <bruno@clisp.org>
111312         * modules/full-read: Depend on full-write.
111314 2003-01-08  Bruno Haible  <bruno@clisp.org>
111316         * lib/safe-read.c: Include specification header first, to ensure its
111317         selfcontainedness.
111318         * lib/full-write.c: Likewise.
111320 2003-01-07  Jim Meyering  <jim@meyering.net>
111322         * lib/full-write.c: Rework so that it may serve to define full_read,
111323         too.
111324         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
111326 2003-01-07  Bruno Haible  <bruno@clisp.org>
111328         * lib/strtoimax.c: Include <stdint.h> as an alternative to
111329         <inttypes.h>.
111330         * lib/xstrtol.h: Likewise.
111331         * lib/xstrtoimax.c: Likewise.
111332         * lib/xstrtoumax.c: Likewise.
111333         * lib/human.h: Likewise.
111335         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
111336         on systems that have <inttypes.h> but not <stdint.h>.
111338 2003-01-07  Bruno Haible  <bruno@clisp.org>
111340         * MODULES.html.sh: Add copyright notice.
111341         (missed_files): Omit CVS directory entries.
111342         (func_module): Make it work with sed-3.02.
111343         * MODULES.txt: Remove file.
111345 2003-01-06  Jim Meyering  <jim@meyering.net>
111347         * lib/version-etc.c: Update year in translatable copyright string.
111349 2003-01-03  Karl Berry  <karl@gnu.org>
111351         * config/config.{guess,sub}: update from prep.
111353 2003-01-02  Karl Berry  <karl@gnu.org>
111355         * doc/COPYING.DOC: belatedly updated to 1.2.
111357 2003-01-01  Karl Berry  <karl@gnu.org>
111359         * gnulib-tool (func_verify_module): report module name $module in
111360         error message, not $1.
111361         * gnulib-tool (create-testdir): don't complain if destdir couldn't
111362         be created, only if it doesn't exist.
111363         * gnulib-tool (last_checkin_date): don't expand the $Date here.
111365 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111367         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
111369 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111371         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
111372         memcmp if strcoll doesn't work.
111374 2002-12-31  Bruno Haible  <bruno@clisp.org>
111376         * lib/utime.c (utime_null): No need to call ftruncate if the file was
111377         nonempty.
111379 2002-12-31  Bruno Haible  <bruno@clisp.org>
111381         * lib/memcoll.c (STRCOLL): New macro.
111382         (memcoll): Use it.
111384 2002-12-31  Bruno Haible  <bruno@clisp.org>
111386         * lib/localcharset.h: New file.
111387         * lib/localcharset.c: Include it.
111388         * lib/unicodeio.c: Likewise.
111390 2002-12-31  Bruno Haible  <bruno@clisp.org>
111392         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
111393         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
111395 2002-12-31  Bruno Haible  <bruno@clisp.org>
111397         * lib/getline.h: Include <stddef.h>, for size_t.
111399         * lib/unicodeio.h: Include <stddef.h>, for size_t.
111400         * lib/unicodeio.c: Don't include <stddef.h>.
111402 2002-12-31  Bruno Haible  <bruno@clisp.org>
111404         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
111405         HAVE_TM_ZONE.
111407 2002-12-24  Karl Berry  <karl@gnu.org>
111409         * config/config.guess: update from prep.
111411 2002-12-24  Bruno Haible  <bruno@clisp.org>
111413         General infrasructure.
111414         * m4/README: Rewritten.
111415         * m4/onceonly.m4: New file.
111416         * m4/onceonly_2_57.m4: New file.
111418         Module atexit.
111419         * m4/atexit.m4: New file.
111421         Module strtod.
111422         * m4/strtod.m4: New file.
111424         Module strtol.
111425         * m4/strtol.m4: New file.
111427         Module strtoul.
111428         * m4/strtoul.m4: New file.
111430         Module memchr.
111431         * m4/memchr.m4: New file.
111433         Module memcmp.
111434         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
111435         (jm_FUNC_MEMCMP): Invoke it.
111437         Module memcpy.
111438         * m4/memcpy.m4: New file.
111440         Module memmove.
111441         * m4/memmove.m4: New file.
111443         Module memset.
111444         * m4/memset.m4: New file.
111446         Module strcspn.
111447         * m4/strcspn.m4: New file.
111449         Module strpbrk.
111450         * m4/strpbrk.m4: New file.
111452         Module strstr.
111453         * m4/strstr.m4: New file.
111455         Module strerror.
111456         * m4/strerror.m4: New file.
111458         Module mktime.
111459         * m4/mktime.m4: Renamed from jm-mktime.m4.
111460         (gl_PREREQ_MKTIME): New macro.
111461         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
111463         Module malloc.
111464         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
111465         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
111466         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
111468         Module realloc.
111469         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
111470         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
111471         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
111473         Module strftime.
111474         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
111475         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
111476         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
111477         gl_TM_GMTOFF.
111478         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
111480         Module xalloc.
111481         * m4/xalloc.m4: New file.
111483         Module alloca.
111484         * m4/alloca.m4: New file.
111486         Module putenv.
111487         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
111488         (jm_FUNC_PUTENV): Invoke it.
111490         Module setenv.
111491         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
111492         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
111493         when invoked twice.
111494         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
111495         gt_FUNC_SETENV.
111497         Module memrchr.
111498         * m4/memrchr.m4: New file.
111500         Module stpcpy.
111501         * m4/stpcpy.m4: New file.
111503         Module strcase.
111504         * m4/strcase.m4: New file.
111506         Module strdup.
111507         * m4/strdup.m4: New file.
111509         Module strnlen.
111510         * m4/strnlen.m4: New file.
111512         Module strndup.
111513         * m4/strndup.m4: New file.
111515         Module xstrtod.
111516         * m4/xstrtod.m4: New file.
111518         Module xstrtol.
111519         * m4/xstrtol.m4: New file.
111521         Module getdate.
111522         * m4/getdate.m4: New file.
111524         Module unlocked-io.
111525         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
111526         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
111527         * m4/jm-glibc-io.m4n: Remove file.
111529         Module long-options.
111530         * m4/long-options.m4: New file.
111532         Module md5.
111533         * m4/md5.m4: New file.
111535         Module sha.
111536         * m4/sha.m4: New file.
111538         Module getstr.
111539         * m4/getstr.m4: New file.
111541         Module getline.
111542         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
111543         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
111544         <sys/types.h>, for size_t. Use the function name gnu_getline, not
111545         simply getline. Infoke gl_PREREQ_GETLINE.
111547         Module obstack.
111548         * m4/obstack.m4: New file.
111550         Module hash.
111551         * m4/hash.m4: New file.
111553         Module readtokens.
111554         * m4/readtokens.m4: New file.
111556         Module strverscmp.
111557         * m4/strverscmp.m4: New file.
111559         Module stdbool.
111560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
111561         OSF/1.
111563         Module strtoll.
111564         * m4/strtoll.m4: New file.
111566         Module strtoull.
111567         * m4/strtoull.m4: New file.
111569         Module strtoimax.
111570         * m4/strtoimax.m4: New file.
111572         Module strtoumax.
111573         * m4/strtoumax.m4: New file.
111575         Module xstrtoimax.
111576         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
111577         jm_AC_PREREQ_XSTRTOIMAX.
111578         Moved the strtol prerequisites to strtol.m4.
111579         Moved the strtoll prerequisites to strtoll.m4.
111580         Moved the strtoimax prerequisites to strtoimax.m4.
111582         Module xstrtoumax.
111583         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
111584         jm_AC_PREREQ_XSTRTOUMAX.
111585         Moved the strtoul prerequisites to strtoul.m4.
111586         Moved the strtoull prerequisites to strtoull.m4.
111587         Moved the strtoumax prerequisites to strtoumax.m4.
111589         Module chown.
111590         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
111591         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
111593         Module dup2.
111594         * m4/dup2.m4: New file.
111596         Module ftruncate.
111597         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111598         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111600         Module getgroups.
111601         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111602         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111604         Module gettimeofday.
111605         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111606         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111607         gl_PREREQ_GETTIMEOFDAY.
111609         Module mkdir.
111610         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111611         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111613         Module mkstemp.
111614         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111615         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111616         jm_AC_TYPE_UINTMAX_T.
111617         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111619         Module stat.
111620         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111621         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111623         Module lstat.
111624         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111625         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111627         Module timespec.
111628         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111629         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111630         * m4/st_mtim.m4: Indentation.
111632         Module nanosleep.
111633         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111634         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111635         gl_PREREQ_NANOSLEEP.
111637         Module regex.
111638         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111639         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111640         (gl_REGEX): New macro.
111642         Module rename.
111643         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111644         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111646         Module rmdir.
111647         * m4/rmdir.m4: New file.
111649         Module utime.
111650         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111651         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111652         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111654         Module dirname.
111655         * m4/dirname.m4: New file.
111657         Module getopt.
111658         * m4/getopt.m4: New file.
111660         Module unistd-safer.
111661         * m4/unistd-safer.m4: New file.
111663         Module fnmatch.
111664         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111665         declaration.
111666         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111667         (gl_FUNC_FNMATCH_POSIX): New macro.
111668         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111669         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111670         simply fnmatch.
111672         Module exclude.
111673         * m4/exclude.m4: New file.
111675         Module human.
111676         * m4/human.m4: New file.
111678         Module acl.
111679         * m4/acl.m4: Nop.
111681         Module backupfile.
111682         * m4/backupfile.m4: New file.
111683         * m4/d-ino.m4: Indentation.
111685         Module fsusage.
111686         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111687         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111688         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111690         Module dirfd.
111691         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111692         requirements.
111694         Module euidaccess.
111695         * m4/euidaccess.m4: New file.
111697         Module file-type.
111698         * m4/file-type.m4: New file.
111700         Module fileblocks.
111701         * m4/fileblocks.m4: New file.
111703         Module filemode.
111704         * m4/filemode.m4: New file.
111706         Module isdir.
111707         * m4/isdir.m4: New file.
111709         Module lchown.
111710         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111711         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111713         Module makepath.
111714         * m4/makepath.m4: New file.
111716         Module modechange.
111717         * m4/modechange.m4: New file.
111719         Module mountlist.
111720         * m4/mountlist.m4: New file.
111721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111722         Indentation.
111724         Module path-concat.
111725         * m4/path-concat.m4: New file.
111727         Module pathmax.
111728         * m4/pathmax.m4: New file.
111730         Module same.
111731         * m4/same.m4: New file.
111733         Module save-cwd.
111734         * m4/save-cwd.m4: New file.
111736         Module savedir.
111737         * m4/savedir.m4: New file.
111739         Module xgetcwd.
111740         * m4/xgetcwd.m4: New file.
111741         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111743         Module xreadlink.
111744         * m4/xreadlink.m4: New file.
111746         Module safe-read.
111747         * m4/safe-read.m4: New file.
111749         Module safe-write.
111750         * m4/safe-write.m4: New file.
111752         Module closeout.
111753         * m4/closeout.m4: New file.
111755         Module stdio-safer.
111756         * m4/stdio-safer.m4: New file.
111758         Module getpass.
111759         * m4/getpass.m4: New file.
111761         Module getugroups.
111762         * m4/getugroups.m4: New file.
111764         Module group-member.
111765         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
111766         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
111768         Module idcache.
111769         * m4/idcache.m4: New file.
111771         Module userspec.
111772         * m4/userspec.m4: New file.
111774         Module gettime.
111775         * m4/clock_time.m4: New file.
111776         * m4/gettime.m4: New file.
111778         Module settime.
111779         * m4/settime.m4: New file.
111781         Module posixtm.
111782         * m4/posixtm.m4: New file.
111784         Module gethostname.
111785         * m4/gethostname.m4: New file.
111787         Module canon-host.
111788         * m4/canon-host.m4: New file.
111790         Module gettext.
111791         * m4/codeset.m4: New file, from gettext-0.11.5.
111792         * m4/gettext.m4: New file, from gettext-0.11.5.
111793         * m4/glibc21.m4: New file, from gettext-0.11.5.
111794         * m4/iconv.m4: New file, from gettext-0.11.5.
111795         * m4/intdiv0.m4: New file, from gettext-0.11.5.
111796         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
111797         * m4/inttypes.m4: New file, from gettext-0.11.5.
111798         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
111799         * m4/isc-posix.m4: New file, from gettext-0.11.5.
111800         * m4/lcmessage.m4: New file, from gettext-0.11.5.
111801         * m4/lib-ld.m4: New file, from gettext-0.11.5.
111802         * m4/lib-link.m4: New file, from gettext-0.11.5.
111803         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
111804         * m4/progtest.m4: New file, from gettext-0.11.5.
111805         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
111806         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
111807         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
111809         Module localcharset.
111810         * m4/localcharset.m4: New file.
111812         Module hard-locale.
111813         * m4/hard-locale.m4: New file.
111815         Module mbswidth.
111816         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
111817         onceonly macros.
111818         * m4/mbrtowc.m4: Add comment.
111820         Module memcasecmp.
111821         * m4/memcasecmp.m4: New file.
111823         Module memcoll.
111824         * m4/memcoll.m4: New file.
111826         Module unicodeio.
111827         * m4/unicodeio.m4: New file.
111829         Module rpmatch.
111830         * m4/rpmatch.m4: New file.
111832         Module yesno.
111833         * m4/yesno.m4: New file.
111835         Module exitfail.
111836         * m4/exitfail.m4: New file.
111838         Module c-stack.
111839         * m4/c-stack.m4 (gl_C_STACK): New macro.
111840         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
111842         Module error.
111843         * m4/error.m4 (gl_ERROR): New macro.
111844         (jm_PREREQ_ERROR): Use onceonly macros.
111846         Module fatal.
111847         * m4/fatal.m4: New file.
111849         Module getloadavg.
111850         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
111851         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
111853         Module getpagesize.
111854         * m4/getpagesize.m4: New file.
111856         Module getusershell.
111857         * m4/getusershell.m4: New file.
111859         Module physmem.
111860         * m4/physmem.m4: New file.
111862         Module posixver.
111863         * m4/posixver.m4: New file.
111865         Module quotearg.
111866         * m4/quotearg.m4: New file.
111868         Module quote.
111869         * m4/quote.m4: New file.
111871         Module readutmp.
111872         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111874         Module sig2str.
111875         * m4/sig2str.m4: New file.
111877         Other.
111878         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111879         ulonglong.m4.
111880         * m4/intmax_t.m4: New file.
111881         * m4/d-type.m4: Indentation.
111882         * m4/jm-macros.m4: Update.
111883         * m4/prereq.m4 (jm_PREREQ): Update.
111884         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111885         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111886         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111887         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111888         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111889         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111890         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111891         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111892         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111893         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111894         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111895         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111896         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111897         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111898         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111899         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111900         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111901         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111902         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111904 2002-12-24  Bruno Haible  <bruno@clisp.org>
111906         * MODULES.txt: Update according to m4/ changes.
111908         Module gettext.
111909         * config.rpath: New file, from gettext-0.11.5.
111911         * modules/*: New module descriptions.
111912         * gnulib-tool: New file.
111913         * MODULES.html.sh: New file.
111915 2002-12-21  Karl Berry  <karl@gnu.org>
111917         * doc/fdl.texi: update to version 1.2.
111919 2002-12-19  Karl Berry  <karl@gnu.org>
111921         * config/config.guess: update from prep.
111923 2002-12-18  Bruno Haible  <bruno@clisp.org>
111925         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
111926         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
111928 2002-12-17  Bruno Haible  <bruno@clisp.org>
111930         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
111931         stdlib.h, string.h.
111933 2002-12-17  Bruno Haible  <bruno@clisp.org>
111935         * lib/canon-host.c (strdup): Remove unused declaration.
111937         * lib/fsusage.c: Include full_read.h.
111938         (get_fs_usage): Use full_read instead of safe_read.
111940         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
111942 2002-12-12  Karl Berry  <karl@gnu.org>
111944         * config/config.guess: update from prep.
111946 2002-12-11  Bruno Haible  <bruno@clisp.org>
111948         * m4/setenv.m4: New file, from gettext-0.11.5.
111950 2002-12-11  Bruno Haible  <bruno@clisp.org>
111952         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
111953         not unsetenv().
111954         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
111955         modifications:
111957         2002-12-11  Bruno Haible  <bruno@clisp.org>
111959                 * setenv.c (alloca): Fall back to malloc.
111960                 (freea): New macro.
111961                 (setenv): Use freea() to free memory allocated with alloca().
111963         2002-11-13  Bruno Haible  <bruno@clisp.org>
111965                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
111966                 function declarations.
111967                 * unsetenv.c (unsetenv): Likewise.
111969         2002-03-04  Bruno Haible  <bruno@clisp.org>
111971                 Portability to AIX 4.3.3.
111972                 * unsetenv.c: New file, extracted from setenv.c.
111973                 * setenv.c: Move the unsetenv() function to unsetenv.c.
111975         2001-12-20  Bruno Haible  <bruno@clisp.org>
111977                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
111978                 use malloc instead. For SunOS 4.
111980         2001-12-11  Bruno Haible  <bruno@clisp.org>
111982                 * setenv.c: Declare alloca.
111983                 (compar_fn_t): New typedef.
111984                 (KNOWN_VALUE, STORE_VALUE): Use it.
111986         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
111987         setenv.h.
111989 2002-12-10  Paul Eggert  <eggert@twinsun.com>
111991         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
111992         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
111993         Choose values that are less likely to collide with system fnmatch
111994         options.
111995         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
111996         defined (e.g., a pure POSIX system).
111997         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
111998         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
112000 2002-12-06  Paul Eggert  <eggert@twinsun.com>
112002         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
112003         a pain in practice to deal with generated m4 files.  This change
112004         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
112006         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
112007         and jm-glibc-io.m4, as they are no longer a special case.
112008         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
112009         kludge and the auto-generation stuff.  Check only whether the
112010         functions are declared, not whether they exist, since older hosts
112011         that don't declare the functions can't use the optimization anyway.
112013 2002-12-06  Jim Meyering  <jim@meyering.net>
112015         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
112017         Merge in changes from libc's misc/error.c, in preparation
112018         for the merge of gnulib's changes back into libc.
112020         * lib/error.c (_): Define only if not already defined.
112021         Move definition to follow all #include directives.
112022         Include unlocked-io.h only if !_LIBC.
112023         [_LIBC]: Include <libio/libioP.h>.
112024         [USE_IN_LIBIO]: Include <libio/iolibio.h>
112025         (fflush): Tweak definition to use INTUSE.
112026         (putc): Define.
112028 2002-12-05  Paul Eggert  <eggert@twinsun.com>
112030         * lib/alloca.c [defined emacs]: Include "lisp.h".
112031         (xalloc_die) [defined emacs]: New macro.
112032         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
112033         [! defined emacs]: Include <xalloc.h>.
112034         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
112035         (pointer): Typedef to POINTER_TYPE *.
112036         (malloc): Remove decl; we now always use xmalloc.
112037         (alloca): Use old-style definition, since Emacs needs this.
112038         Check for arithmetic overflow when computing combined size.
112040 2002-12-04  Paul Eggert  <eggert@twinsun.com>
112042         Do not generate unlocked-io.h automatically, since it's easier to
112043         maintain it by hand.
112045         * lib/unlocked-io.h: New file, from GNU diffutils,
112046         but with proper copyright notice and attribution.
112047         * lib/gen-uio: Remove.
112048         * lib/Makefile.am: Add copyright notice.
112049         (libfetish_a_SOURCES): Add unlocked-io.h.
112050         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
112051         (DISTCLEANFILES, io_functions): Remove macros.
112052         (EXTRA_DIST): Remove gen_uio.
112053         (unlocked-io.h): Remove rule.
112055 2002-12-04  Jim Meyering  <jim@meyering.net>
112057         Reflect the fact that stat.c and lstat.c are no longer generated.
112058         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
112059         (DISTCLEANFILES): Likewise.
112060         (EXTRA_DIST): Likewise.
112061         (all_local): Don't depend on stat.c or lstat.c.
112062         (stat.c, lstat.c): Remove rules.
112063         (EXTRA_DIST): Remove xstat.in.
112065         * lib/xstat.in: Remove file.  Contents moved into stat.c.
112066         * lib/stat.c: New file.  Contents mostly from xstat.in.
112067         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
112068         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
112070         * lib/safe-read.c: Rework so that it may serve to define safe_write,
112071         too.
112072         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
112074 2002-12-03  Jim Meyering  <jim@meyering.net>
112076         * lib/safe-read.c, safe-write.c: Change variable names and comments,
112077         but not semantics, to minimize the differences between these two files.
112078         (safe_read): Change comment to mention SAFE_READ_ERROR.
112080         * lib/safe-read.c (IS_EINTR): Define.
112081         (safe_read): Use IS_EINTR in place of in-function cpp directives.
112083 2002-12-02  Jim Meyering  <jim@meyering.net>
112085         * lib/safe-read.c (EINTR): Define.
112086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112087         (INT_MAX): Provide fallback.
112088         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
112090         * lib/safe-read.h (SAFE_READ_ERROR): Define.
112092 2002-12-02  Bruno Haible  <bruno@clisp.org>
112094         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
112095         Define, taken from safe-read.c.
112096         (INT_MAX): Provide fallback.
112097         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
112098         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
112100         * lib/safe-read.c (EINTR): Remove definition.
112101         (safe_read): Don't use EINTR if it is absent.
112103 2002-12-01  Jim Meyering  <jim@meyering.net>
112105         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
112106         zero.
112107         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
112109 2002-11-27  Paul Eggert  <eggert@twinsun.com>
112111         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
112112         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
112113         with `if (! (value < limit)) abort ();', for readability.
112115 2002-11-26  Karl Berry  <karl@gnu.org>
112117         * lib/strdup.c: copy from libc again, with jim's ok.
112118         * lib/.cppi-disable: re-add strdup.c
112120 2002-11-25  Karl Berry  <karl@gnu.org>
112122         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
112123         instead of "strtol.c".
112125 2002-11-25  Karl Berry  <karl@gnu.org>
112127         * config/install-sh: update from automake for variable quoting, $0 in
112128         error msgs, etc.
112130         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
112131         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
112132         entry.
112134 2002-11-25  Jim Meyering  <jim@meyering.net>
112136         * lib/mktime.c: Sync from libc, now that it has the latest fix.
112138 2002-11-24  Karl Berry  <karl@gnu.org>
112140         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
112141         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
112143 2002-11-24  Jim Meyering  <jim@meyering.net>
112145         Update from coreutils:
112147         * lib/mktime.c: Merge in changes from libc.
112149         Avoid a link-time failure on some Linux systems.
112150         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
112151         (otherwise).
112152         (__mon_yday): Declare with the STATIC attribute.
112153         (__mktime_internal): Likewise.
112154         Based on a report from Greg Schafer.
112156 2002-11-23  Jim Meyering  <jim@meyering.net>
112158         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
112159         Use `unsigned', not `int', as type of index.
112161         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
112163         * lib/fsusage.c: Remove unneeded parentheses around operands of
112164         `defined'.
112166 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112168         * lib/quotearg.h: Allow multiple inclusion by surrounding with
112169         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
112170         so that we can be included first.
112171         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
112172         * lib/quotearg.c: Include quotearg.h immediately after config.h.
112173         No need to include stddef.h or sys/types.h any more.
112174         Surround local include files with "", not "<>".
112175         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
112176         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
112177         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
112178         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
112179         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
112180         (ISPRINT): Remove; no longer needed now that we assume C89.
112182         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
112183         Preserve errno.
112185         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
112186         quotearg_char): Use SIZE_MAX rather than
112187         (size_t) -1 when we are talking about "infinity".
112189         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
112191 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112193         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
112194         hint that one should use `if (! x) abort ();' rather than `assert
112195         (x);', and anyway it's one less thing to worry about configuring.
112196         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
112197         hash_rehash, hash_insert): Use abort rather than assert.
112199 2002-11-22  Bruno Haible  <bruno@clisp.org>
112201         * lib/safe-read.h: Assume C89. Add comments.
112202         (safe_read): Change return type to size_t.
112203         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
112204         byte counts > SSIZE_MAX correctly.
112205         * lib/safe-write.h: New file.
112206         * lib/safe-write.c: New file.
112207         * lib/full-read.h: New file.
112208         * lib/full-read.c: New file.
112209         * lib/full-write.h: Assume C89. Add comments.
112210         * lib/full-write.c: Include safe-write.h.
112211         (full_write): Rewritten to use safe_write.
112212         Suggested by Jim Meyering and Paul Eggert.
112214 2002-11-21  Jim Meyering  <jim@meyering.net>
112216         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
112218         Merge in changes from the coreutils.
112220         2002-09-25  Paul Eggert  <eggert@twinsun.com>
112221         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
112222         <stdint.h>.
112223         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
112224         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
112225         int.  Work more efficiently if X is the same width as uintmax_t.
112226         Do not compare X to -1, to avoid bogus compiler warning.
112227         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
112228         Don't assume that f_frsize and f_bsize are the same type.
112230         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
112231         warning on FreeBSD.
112233         * lib/makepath.c (make_path): Restore umask *before* creating the final
112234         component.
112235         (make_path): Minor reformatting.
112237         * lib/xmalloc.c: Adjust to work with new autoconf macros,
112238         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
112239         HAVE_MALLOC/HAVE_REALLOC.
112241         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
112242         dummy ones.  At least on GNU/Linux systems, `auto' means something
112243         else.
112244         From Michael Stone.
112246 2002-11-21  Bruno Haible  <bruno@clisp.org>
112248         Remove case insensitive option matching.
112249         * lib/argmatch.h (argcasematch): Remove declaration.
112250         (ARGCASEMATCH): Remove macro.
112251         (__xargmatch_internal): Remove case_sensitive argument.
112252         (XARGMATCH): Update.
112253         (XARGCASEMATCH): Remove macro.
112254         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
112255         case_sensitive argument.
112256         (argcasematch): Remove function.
112257         (__xargmatch_internal): Remove case_sensitive argument.
112258         (main): Use XARGMATCH instead of XARGCASEMATCH.
112260         * lib/xmalloc.c: Change compile-time error message. Add comment about
112261         required autoconf version.
112263 2002-11-20  Paul Eggert  <eggert@twinsun.com>
112265         Merge argmatch cleanups from Bison.  Assume C89.
112267         * lib/argmatch.c: Include config.h here, not in argmatch.h.
112268         Include stdlib.h, for EXIT_FAILURE.
112269         Always include <string.h>, since we assume C89.
112270         (EXIT_FAILURE): Remove pre-C89 bug workaround.
112271         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
112272         Include <stddef.h> instead, since it's all we need for size_t.
112273         (PARAMS): Remove.  All uses removed.
112274         (ARRAY_CARDINALITY): Do not bother to #undef.
112275         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
112276         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112277         Remove unnecessary parentheses.
112278         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112279         Insert necessary parentheses.
112280         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
112281         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
112283 2002-11-19  Bruno Haible  <bruno@clisp.org>
112285         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
112286         * lib/mbswidth.h: Include <stddef.h>, for size_t.
112288         * lib/mbswidth.h (PARAMS): Remove macro.
112289         (mbswidth, mbsnwidth): Use ANSI C function declarations.
112290         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
112292         * lib/gcd.h (PARAMS): Remove macro.
112293         (gcd): Use ANSI C function declarations.
112294         * lib/gcd.c (gcd): Likewise.
112296 2002-11-15  Bruno Haible  <bruno@clisp.org>
112298         * lib/strcspn.c: Include <stddef.h>.
112299         (strcspn): Use ANSI C function declaration. Change return type to
112300         size_t. Use NULL.
112301         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
112302         (strpbrk): Use NULL.
112303         * lib/strpbrk.h (PARAMS): Remove macro.
112304         (strpbrk): Use ANSI C function declaration.
112305         * lib/strstr.c: Don't include <sys/types.h>.
112306         * lib/strstr.h (PARAMS): Remove macro.
112307         (strstr): Use ANSI C function declarations.
112309 2002-11-14  Karl Berry  <karl@gnu.org>
112311         * config/mkinstalldirs: `do' on separate line, instead of
112312         `for var; do'.
112314 2002-11-06  Bruno Haible  <bruno@clisp.org>
112316         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
112317         * lib/gcd.c (gcd): Likewise.
112319 2002-11-05  Bruno Haible  <bruno@clisp.org>
112321         * lib/gcd.h: New file, from gettext-0.11.5.
112322         * lib/gcd.c: New file, from gettext-0.11.5.
112324 2002-11-05  Bruno Haible  <bruno@clisp.org>
112326         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112327         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112328         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112329         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112331         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
112332         <libintl.h>.
112333         * lib/makepath.c: Include gettext.h instead of <locale.h> and
112334         <libintl.h>.
112336         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
112337         * lib/human.c: Include gettext.h instead of <libintl.h>.
112338         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
112339         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
112340         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
112341         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
112342         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
112343         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
112344         (textdomain): Remove definition.
112345         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
112347         * lib/long-options.c: Remove include of <libintl.h> and definition of
112348         _.
112349         * lib/same.c: Remove include of <libintl.h> and definition of _.
112351 2002-11-04  Owen Taylor  <otaylor@redhat.com>
112353         * lib/config.charset: A few additions for Solaris.
112355 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112357         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
112358         * lib/localcharset.c (locale_charset): Declare as extern "C".
112360 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112362         * lib/config.charset: msdos in uk_UA uses CP1125.
112364 2002-11-04  Bruno Haible  <bruno@clisp.org>
112366         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
112367         * lib/strcase.h: New file, from GNU gettext-0.11.5.
112368         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
112369         * lib/strstr.h: New file, from GNU gettext-0.11.5.
112370         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
112372 2002-11-04  Bruno Haible  <bruno@clisp.org>
112374         * lib/localcharset.c (locale_charset): Don't return an empty string.
112376 2002-11-04  Bruno Haible  <bruno@clisp.org>
112378         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
112379         aliases.
112381 2002-11-04  Bruno Haible  <bruno@clisp.org>
112383         * lib/config.charset: Update for newest glibc. Add canonical names
112384         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
112386 2002-11-04  Bruno Haible  <bruno@clisp.org>
112388         * lib/config.charset: Add support for NetBSD.
112390 2002-11-04  Bruno Haible  <bruno@clisp.org>
112392         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
112394 2002-11-01  Bruno Haible  <bruno@clisp.org>
112396         * configure.in: Add AC_CONFIG_AUX_DIR call.
112397         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
112398         test/Makefile.
112399         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
112401 2002-09-28  Karl Berry  <karl@gnu.org>
112403         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
112404         installed automake until the next release, since changes have been
112405         made.
112407 2002-09-25  Karl Berry  <karl@gnu.org>
112409         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
112410         * lib/getopt*: copy from libc/posix.
112411         * lib/gettext.h: copy from gettext.
112412         * lib/.cppi-disable: add strdup.c, gettext.h.
112414 2002-09-25  Karl Berry  <karl@gnu.org>
112416         * config/srclist.txt: enable gettext.h check.
112417         * config/config.{guess,sub}: update from prep.
112418         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
112419                 from automake 1.6.3.
112420         See srclist*.
112422 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
112424         * regex.c (PATFETCH): Remove the translating fetch.
112425         (PATFETCH_RAW): Rename to PATFETCH.
112426         (set_image_of_range): New fun.
112427         (SET_RANGE_TABLE_WORK_AREA): Use it.
112428         (regex_compile): Don't translate the pattern chars so eagerly.
112429         Only do it when inserting an `exactn' bytecode or when handling
112430         a char-range.
112431         (mutually_exclusive_p): Avoid empty statement.
112433 2002-07-06  Jim Meyering  <meyering@lucent.com>
112435         * m4/README: Don't mention Makefile.am.in.
112436         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
112438 2002-07-01  Jim Meyering  <meyering@lucent.com>
112440         * lib/c-stack.c: Include sys/time.h.
112441         From Volker Borchert.
112443 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112445         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
112447 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112449         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
112450         New macro.  Use it uniformly instead of
112451         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
112452         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
112453         reported by Vin Shelton.
112455 2002-06-22  Paul Eggert  <eggert@twinsun.com>
112457         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
112458         Do not assume SA_SIGINFO behavior.
112459         Bug reported by Jim Meyering on NetBSD 1.5.2.
112461 2002-06-22  Jim Meyering  <meyering@lucent.com>
112463         * m4/c-stack.m4: New file, from diffutils-2.8.2.
112464         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
112466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
112467         now that configure.ac uses AC_GNU_SOURCE.
112468         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
112469         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
112471         Update to latest tools.  Suggestions from Paul Eggert.
112472         * m4/stdbool.m4: New file, from diffutils-2.8.2.
112473         * m4/gnu-source.m4: Update from diffutils-2.8.2.
112474         * m4/fnmatch.m4: Likewise.
112475         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
112476         to AC_HEADER_STDBOOL
112478 2002-06-22  Jim Meyering  <meyering@lucent.com>
112480         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
112481         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
112483 2002-06-22  Jim Meyering  <meyering@lucent.com>
112485         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
112487         * lib/exitfail.c, exitfail.h: Likewise.
112488         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
112490         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
112491         of fnmatch.h.
112492         (EXTRA_DIST): Add fnmatch_loop.c.
112493         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
112495         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
112496         * lib/fnmatch.c: Update from diffutils-2.8.2.
112497         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
112498         * lib/fnmatch.h: Remove file.
112500 2002-06-21  Jim Meyering  <meyering@lucent.com>
112502         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
112503         * m4/mbrtowc.m4: Likewise.
112505         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
112506         * m4/mbswidth.m4: Reflect name change:
112507         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
112508         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112510         * m4/lib-link.m4: Update from gettext-0.11.2.
112511         * m4/gettext.m4: Likewise.
112513         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
112514         From Alfred M. Szmidt.
112516 2002-06-18  Paul Eggert  <eggert@twinsun.com>
112518         * lib/file-type.h: Report an error if neither S_ISREG nor
112519         S_IFREG is defined, instead of using a test specific to glibc
112520         2.2.  This should be safe, since POSIX requires S_ISREG and
112521         Unix Version 7 had S_IFREG.  We don't need to check for
112522         <sys/types.h> since we don't use any symbols that it defines.
112524 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
112526         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
112527         $@-t, so that each temporary file name is unique and valid in the first
112528         8 characters, for operation under DOS.
112530 2002-06-15  Paul Eggert  <eggert@twinsun.com>
112532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
112534 2002-06-15  Jim Meyering  <meyering@lucent.com>
112536         Work even with DJGPP 2.03, which lacks support for symlinks.
112537         From Richard Dawe.
112538         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
112539         is defined.
112540         * lib/lchown.c (S_ISLNK): Likewise.
112542 2002-06-15  Jim Meyering  <meyering@lucent.com>
112544         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
112545         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
112546         have been included before this file.
112548 2002-06-14  Jim Meyering  <meyering@lucent.com>
112550         * lib/file-type.h: Use the version from diffutils-2.8.2.
112551         * lib/file-type.c: Likewise.
112553 2002-06-07  Jim Meyering  <meyering@lucent.com>
112555         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
112556         They're needed at least for NetBSD 1.5.2.
112557         ($statxfs_includes): Include those same headers.
112558         ($statxfs_includes): Include sys/vfs.h if available.
112559         ($statxfs_includes): Likewise for sys/statvfs.h.
112560         Check for the following members in both structs statfs and statvfs:
112561         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
112563 2002-06-01  Jim Meyering  <meyering@lucent.com>
112565         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
112566         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
112568 2002-05-28  Jim Meyering  <meyering@lucent.com>
112570         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
112571         Reported by Volker Borchert.
112573 2002-05-27  Jim Meyering  <meyering@lucent.com>
112575         Fix a problem seen only on nonconforming systems whereby ls.c's
112576         use of localtime, and then of gettimeofday would cause trouble:
112577         the localtime call used to initialize rpl_gettimeofday's save
112578         mechanism would clobber ls's current local time information so
112579         that in any long listing the first file would always be listed
112580         with date 1970-01-01.  Analysis by Volker Borchert.
112582         * lib/gettimeofday.c (localtime): Undefine.
112583         (rpl_localtime): New function.
112585 2002-05-27  Jim Meyering  <meyering@lucent.com>
112587         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
112588         localtime.
112590         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
112591         use the replacement function; it wouldn't resolve at link time.
112592         Reported by Volker Borchert.
112594 2002-05-22  Jim Meyering  <meyering@lucent.com>
112596         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112597         file-type.h.
112598         * lib/file-type.h: New file.
112599         * lib/file-type.c (file_type): New file/function.  Extracted from
112600         diffutils.
112602 2002-04-30  Jim Meyering  <meyering@lucent.com>
112604         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112606 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112608         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112610 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112612         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112613         Do not check for alloca.h (no longer used) or stdbool.h (was never
112614         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112616 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112618         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112620 2002-04-29  Jim Meyering  <meyering@lucent.com>
112622         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112623         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112624         Use AC_FUNC_STRNLEN here instead.
112626         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112627         With autoconf-2.53a, it's part of AC_PROG_CC.
112629 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112631         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112634 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112636         * lib/sig2str.h, lib/sig2str.c: New files.
112637         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112639 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112641         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112642         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112643         of 127, since 64 is the largest conceivable number for ancient
112644         nonstandard hosts.
112645         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112647 2002-04-28  Jim Meyering  <meyering@lucent.com>
112649         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112651 2002-04-24  Jim Meyering  <meyering@lucent.com>
112653         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112654         (jm_PREREQ): Use it.
112656         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112657         mach/mach.h fcntl.h.
112658         Check for this function: setlocale.
112660 2002-04-24  Jim Meyering  <meyering@lucent.com>
112662         * lib/gettext.h: New file, from Gettext.
112663         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112664         (libfetish_a_SOURCES): Add gettext.h.
112666 2002-04-16  Jim Meyering  <meyering@lucent.com>
112668         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112669         ut_pid, ut_id, ut_exit.
112671 2002-04-16  Jim Meyering  <meyering@lucent.com>
112673         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112674         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112675         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112677 2002-04-12  Jim Meyering  <meyering@lucent.com>
112679         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112680         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112681         existence of the getmntinfo function.  Needed for Darwin 5.3.
112683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112684         This is necessary at least on Darwin 5.3.
112686         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112687         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112688         strnlen.o in the library, and that makes some versions of ranlib
112689         object.
112691 2002-04-12  Jim Meyering  <meyering@lucent.com>
112693         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112695 2002-04-09  Jim Meyering  <meyering@lucent.com>
112697         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112698         to be more precise.  Rather than saying we're checking whether the
112699         function `works', say what we're testing.
112700         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112701         Reported by Bruno Haible.
112703 2002-03-10  Jim Meyering  <meyering@lucent.com>
112705         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112706         Suggestion from Santiago Vila.
112708 2002-03-08  Jim Meyering  <meyering@lucent.com>
112710         * lib/rename.c: Mention that this wrapper is needed also on
112711         mips-dec-ultrix4.4 systems.
112713 2002-03-02  Jim Meyering  <meyering@lucent.com>
112715         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112716         not HAVE_CLOCK_SETTIME.
112718 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112720         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112721         Check for clock_settime.
112723 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112725         * lib/nanosleep.h: Rename to....
112726         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112728         * lib/gettime.c: New file.
112729         * lib/settime.c: New file.
112730         * lib/stime.c: Remove.
112732         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112733         timespec.h.  Remove nanosleep.h.
112735 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112737         * m4/acl.m4: New file.
112738         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112739         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112741 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112743         * lib/acl.c, lib/acl.h: New files.
112744         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
112746 2002-02-24  Jim Meyering  <meyering@lucent.com>
112748         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
112749         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
112750         cause trouble.  Reported by Nelson Beebe.
112752 2002-02-23  Paul Eggert  <eggert@twinsun.com>
112754         * lib/path-concat.c (xpath_concat): Reorder code to pacify
112755         compilers that don't know that xalloc_die never returns.
112757 2002-02-20  Jim Meyering  <meyering@lucent.com>
112759         * lib/getdate.c: Regenerate using bison-1.33.
112761 2002-02-17  Jim Meyering  <meyering@lucent.com>
112763         * config/config.guess (main): Don't use `head -1'; it's no longer
112764         portable. Use `sed 1q' instead.
112766 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
112768         * m4/codeset.m4: Upgrade to gettext-0.11.
112769         * m4/gettext.m4: Upgrade to gettext-0.11.
112770         * m4/glibc21.m4: Upgrade to gettext-0.11.
112771         * m4/iconv.m4: Upgrade to gettext-0.11.
112772         * m4/isc-posix.m4: Upgrade to gettext-0.11.
112773         * m4/lcmessage.m4: Upgrade to gettext-0.11.
112774         * m4/lib-ld.m4: New file, from gettext-0.11.
112775         * m4/lib-link.m4: New file, from gettext-0.11.
112776         * m4/lib-prefix.m4: New file, from gettext-0.11.
112777         * m4/progtest.m4: Upgrade to gettext-0.11.
112779 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112781         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
112782         (jm_PREREQ): Use it.
112784 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112786         * lib/posixver.c, lib/posixver.h: New files.
112787         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112789 2002-02-02  Paul Eggert  <eggert@twinsun.com>
112790             Bruno Haible  <bruno@clisp.org>
112792         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
112793         (fwrite_success_callback): New declaration.
112794         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
112795         print_unicode_char. Call failure callback instead of error.
112796         (fwrite_success_callback): New function.
112797         (exit_failure_callback): New function.
112798         (fallback_failure_callback): New function.
112799         (print_unicode_char): Call unicode_to_mb.
112801 2002-01-26  Jim Meyering  <meyering@lucent.com>
112803         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
112804         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
112806 2002-01-26  Jim Meyering  <meyering@lucent.com>
112808         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
112810 2002-01-22  Paul Eggert  <eggert@twinsun.com>
112812         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
112814 2002-01-22  Jim Meyering  <meyering@lucent.com>
112816         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
112817         Otherwise, some versions of automake would omit the rule that makes
112818         Makefile from Makefile.in.
112820 2002-01-21  Paul Eggert  <eggert@twinsun.com>
112822         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
112823         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112824         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
112825         (memcoll): Set errno to zero if there is no error.
112827         * lib/quotearg.c (quotearg_buffer_restyled):
112828         Fix bug with quoting buffers containing NUL when backslashing escapes.
112829         This bug was exposed by the other changes in this patch.
112830         (quotearg_n_options): New arg ARGSIZE.
112831         All callers changed.
112832         (quoting_options_from_style): New function.
112833         (quotearg_n_style): Use it.
112834         (quotearg_n_style_mem): New function.
112836         * lib/quotearg.h (quotearg_n_style_mem): New function.
112838 2002-01-19  Jim Meyering  <meyering@lucent.com>
112840         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
112841         Remove useless quotes: DF_PROG="df".
112842         * m4/strnlen.m4: New file.
112844 2002-01-16  Paul Eggert  <eggert@twinsun.com>
112846         * lib/backupfile.c (ISDIGIT): Comment fix.
112847         * lib/getdate.y (ISDIGIT): Likewise.
112848         * lib/posixtm.c (ISDIGIT, year): Likewise.
112849         * lib/strverscmp.c (ISDIGIT): Likewise.
112850         * lib/userspec.c (ISDIGIT): Likewise.
112852 2002-01-16  Jim Meyering  <meyering@lucent.com>
112854         * lib/getdate.y: Add three semicolons, each just before a closing
112855         brace. Bison (as of version 1.31) no longer papers over that mistake.
112857 2002-01-05  Jim Meyering  <meyering@lucent.com>
112859         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112861 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112863         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112864         not silently exit merely because the output buffer happens to
112865         have nothing pending.
112867 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112869         See the big note in ../ChangeLog.
112870         * lib/human.c (suffixes): Prefer K to k for 1024.
112871         (generate_suffix_backwards): New function.
112872         (human_readable_inexact): Use it.
112873         * lib/xstrtol.c (__xstrtol): If there is no number but there
112874         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112875         Accept 'K' as well as 'k'.
112877 2001-12-15  Jim Meyering  <meyering@lucent.com>
112879         * lib/regex.h (__restrict_arr): Update from libc.
112881         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112882         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112883         (STREQ): Define.
112885 2001-12-14  Jim Meyering  <meyering@lucent.com>
112887         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112888         Suggestion from Bruno Haible.
112890 2001-12-10  Jim Meyering  <meyering@lucent.com>
112892         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112893         xrealloc, Instead, include "xalloc.h".
112894         (initbuffer): Don't cast xmalloc return value to char*.
112895         (readline): Reword comment.
112896         Don't cast xrealloc return value to char*
112897         Return NULL, not 0.
112899 2001-12-09  Jim Meyering  <meyering@lucent.com>
112901         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112902         about `signed and unsigned type in conditional expression'.
112903         * lib/posixtm.c (posix_time_parse): Likewise.
112905         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112907         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112908         to avoid a pedantic warning.
112910         * lib/getstr.c: Don't include assert.h.
112911         (getstr): Remove warning-evoking assertions.
112912         Return -1 if offset parameter is out of bounds.
112913         Change the type of a local from int to size_t.
112915         * lib/strftime.c (my_strftime_localtime_r): Include this function
112916         definition in the `#if ! HAVE_TM_GMTOFF' block.
112918         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
112919         Include xalloc.h instead.
112921 2001-12-02  Jim Meyering  <meyering@lucent.com>
112923         * lib/tempname.c: Don't declare getenv, thus reverting the change of
112924         2001-11-18.  It's no longer necessary, now that stdlib.h is always
112925         included.
112927         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
112928         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
112930 2001-11-30  Akim Demaille  <akim@epita.fr>
112932         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
112933         before being defined.
112935 2001-11-27  Paul Eggert  <eggert@twinsun.com>
112937         * lib/quotearg.h (quotearg_n, quotearg_n_style):
112938         First arg is int, not unsigned.
112939         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
112940         (SIZE_MAX, UINT_MAX): New macros.
112941         (quotearg_n_options): Abort if N is negative.
112942         Avoid overflow check on hosts where size_t is 64 bits and int
112943         is 32 bits, as overflow is impossible there.
112944         Fix off-by-one typo that caused unnecessary reallocation.
112946 2001-11-27  Jim Meyering  <meyering@lucent.com>
112948         * lib/tempname.c: Merge with version from libc.
112949         * lib/regex.c: Likewise.
112951         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
112952         systems for which STDC_HEADERS is 0, it was not included, resulting in
112953         a warning about an integer-to-pointer conversion problem with getenv.
112954         Reported by Volker Borchert.
112956 2001-11-26  Jim Meyering  <meyering@lucent.com>
112958         * lib/gtod.h: Remove file.
112959         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
112960         * lib/gettimeofday.c: Don't include gtod.h.
112961         (GTOD_init): Remove function.
112962         (rpl_gettimeofday): Do its job here instead, rather than aborting.
112963         Suggestion from Volker Borchert.
112965 2001-11-23  Jim Meyering  <meyering@lucent.com>
112967         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
112968         it.
112969         * lib/hash.c (struct hash_table): Define it here instead.
112971 2001-11-22  Jim Meyering  <meyering@lucent.com>
112973         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
112975 2001-11-20  Jim Meyering  <meyering@lucent.com>
112977         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
112978         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
112980 2001-11-19  Jim Meyering  <meyering@lucent.com>
112982         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
112983         directory.  Use "conftestXXXXXX" as the template.
112984         Suggestion from Paul Eggert.
112986         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
112987         immediately, so the test doesn't mistakenly hit the max-open-files
112988         limit.
112990 2001-11-18  Paul Eggert  <eggert@twinsun.com>
112992         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
112993         (TEMPORARIES): New macro.
112994         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
112995         removes an artificial limitation (e.g. HP-UX 10.20, where
112996         TMP_MAX is 17576).
112998 2001-11-18  Jim Meyering  <meyering@lucent.com>
113000         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
113002 2001-11-18  Jim Meyering  <meyering@lucent.com>
113004         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
113005         on SunOS 4.
113007         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
113008         files will be created before anything else.
113010 2001-11-17  Paul Eggert  <eggert@twinsun.com>
113012         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
113013         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
113015 2001-11-17  Jim Meyering  <meyering@lucent.com>
113017         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
113018         Prompted by a report from Bob Proulx.
113020         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
113021         Instead, require UTILS_FUNC_MKSTEMP.
113023 2001-11-17  Jim Meyering  <meyering@lucent.com>
113025         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
113026         Now, that's done as part of AC_FUNC_STRTOD.
113028 2001-11-17  Jim Meyering  <meyering@lucent.com>
113030         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
113031         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
113032         rather than group writable.  Patch by Juan F. Codagnone.
113034         * lib/readtokens.c: Remove explicit declarations of xmalloc and
113035         xrealloc, Instead, include "xalloc.h".
113037         * lib/mountlist.c: Include unlocked-io.h after all system headers.
113038         Remove explicit declarations of xmalloc, xrealloc,
113039         and xstrdup.  Instead, include "xalloc.h".
113041         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
113042         unlocked-io.h.
113043         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
113044         Likewise.
113045         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
113047         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
113048         Reported by Padraig Brady.
113050         * lib/mkstemp.c: #undef mkstemp.
113051         Include config.h.
113052         (rpl_mkstemp): Rename from mkstemp.
113053         Protoize.
113055 2001-11-16  Jim Meyering  <meyering@lucent.com>
113057         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
113058         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
113059         determine the amount of total physical memory, use pstat_getstatic.
113060         HPUX-11 doesn't define _SC_PHYS_PAGES.
113061         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
113062         If sysconf couldn't be used to determine the amount of available
113063         physical memory, use both pstat_getstatic and pstat_getdynamic.
113064         Based on a patch from Bob Proulx.
113066 2001-11-10  Jim Meyering  <meyering@lucent.com>
113068         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
113069         (jm_PREREQ): Use it.
113071 2001-11-09  Jim Meyering  <meyering@lucent.com>
113073         * m4/jm-macros.m4: Require autoconf-2.52f.
113074         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
113075         Use these AC_-prefixed names, not the AM_-prefixed ones.
113077         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
113079 2001-11-05  Jim Meyering  <meyering@lucent.com>
113081         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
113083 2001-11-04  Jim Meyering  <meyering@lucent.com>
113085         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
113086         $DEFS.
113088 2001-11-03  Jim Meyering  <meyering@lucent.com>
113090         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
113091         of AC_DEFUN.
113093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
113094         know the name of the variable in the macro definition.
113096 2001-11-03  Jim Meyering  <meyering@lucent.com>
113098         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
113099         in argmatch_to_argument call.
113101         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
113102         argument.
113104         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
113105         e.g., a fault due to an attempt to free a NULL pointer.
113107 2001-11-01  Jim Meyering  <meyering@lucent.com>
113109         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
113110         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
113112 2001-11-01  Jim Meyering  <meyering@lucent.com>
113114         * lib/dirfd.c, lib/dirfd.h: New files.
113115         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
113117         * lib/hash.c (hash_print) [TESTING]: Clean up.
113119 2001-10-22  Paul Eggert  <eggert@twinsun.com>
113121         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
113122         to avoid a warning if -Wall.
113124 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
113126         * README: New file
113127         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
113128         (per RMS's instructions, this is now the canonical source)
113129         * lgpl/, gpl/: New directories.
113131 2001-10-21  Paul Eggert  <eggert@twinsun.com>
113133         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
113135 2001-10-21  Jim Meyering  <meyering@lucent.com>
113137         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
113138         this code would end up calling gettext even in packages built
113139         with --disable-nls.
113140         * lib/getopt.c (_): Likewise.
113141         * lib/regex.c (_): Likewise.
113143 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113145         * m4/error.m4 (jm_PREREQ_ERROR):
113146         Do not invoke AC_CHECK_FUNCS with strerror_r, as
113147         AC_FUNC_STRERROR_R does that.
113148         Check for strerror declaration.
113150         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
113151         are supposed to have them these days.
113152         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
113153         Merge changes from latest Autoconf CVS.
113154         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
113155         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
113156         POSIX decided to standardize on the int flavor of strerror_r.
113158 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113160         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
113161         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
113162         Use strerror_r that is only a macro, even if it is not a function.
113163         (strerror): Check for HAVE_DECL_STRERROR before declaring.
113164         (private_strerror): Use prototypes, not old-style function definition.
113165         (print_errno_message): New function.
113166         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
113167         char*-flavored one.
113168         (error_tail, error, error_at_line): Use it.
113170 2001-10-11  Jim Meyering  <meyering@lucent.com>
113172         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
113173         and quote_n (1, ... to avoid clobbering a buffer.
113175 2001-10-05  Jim Meyering  <meyering@lucent.com>
113177         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
113178         hash-pjw.h.
113179         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
113180         * lib/hash-pjw.h: New file.
113182 2001-09-30  Jim Meyering  <meyering@lucent.com>
113184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
113185         `struct fsstat' has the `f_fstypename' member.
113186         Use that to define FS_TYPE, which is now used to make
113187         the getfsstat link test tighter.
113189 2001-09-30  Jim Meyering  <meyering@lucent.com>
113191         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
113192         Include <sys/ucred.h>, for Apple Darwin.
113193         Include sys/mount.h and sys/fs_types.h only if available.
113194         (FS_TYPE): Define.
113195         (read_filesystem_list): Use FS_TYPE.
113197 2001-09-29  Paul Eggert  <eggert@twinsun.com>
113199         * lib/exclude.c (excluded_filename): 0 -> false, since it's
113200         a boolean context.
113202 2001-09-29  Jim Meyering  <meyering@lucent.com>
113204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113205         [one-argument getmntent function]): Include stdio.h before mntent.h.
113206         SunOS 4.1.x needs it for the declaration of `FILE'.
113207         Patch by Volker Borchert.
113209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113210         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
113211         sys/fs_types.h, and make the link-test for getfsstat guard #include
113212         directives with appropriate #if HAVE_*_H tests so that we can
113213         detect getfsstat on Apple Darwin1.3.7 systems.
113214         Reported by Nelson Beebe.
113215         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
113217 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113219         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113220         #defines strtoimax.  Also treat the other strto* functions
113221         like strtoimax.
113223         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113224         Check for strtoul and strtoumax,
113225         as those declarations are made even in the signed case.
113226         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
113227         Likewise, for strtol and strtoimax.
113229 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113231         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113232         #defines strtoimax.  Also treat the other strto* functions
113233         like strtoimax.
113235         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
113236         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
113237         (strtoimax, strtoumax): Do not declare if already defined as a macro.
113239 2001-09-26  Jim Meyering  <meyering@lucent.com>
113241         Most macros in unlocked-io.h had the wrong number of arguments.
113242         * lib/gen-uio: New script.
113243         (USE_UNLOCKED_IO): Define to 1 if not already defined.
113244         * lib/unlocked-io.hin: Remove file.
113245         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
113246         rather than trying to embed it here.
113247         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
113248         Reported by Padraig Brady.
113250 2001-09-25  Volker Borchert  <bt@teknon.de>
113252         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
113253         `result'.
113255 2001-09-24  Jim Meyering  <meyering@lucent.com>
113257         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
113259 2001-09-23  Jim Meyering  <meyering@lucent.com>
113261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
113262         instead of the mere test for existence of mntent.h.  The latter
113263         would get a false-positive on AIX 3.4 systems.
113264         In the outer getmntent if-block, don't die if neither of the getmntent
113265         tests succeeds.  Instead, just fall through and continue with the
113266         remaining tests.
113268 2001-09-23  Jim Meyering  <meyering@lucent.com>
113270         * lib/mountlist.c: Remove useless parentheses in #if directives.
113271         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
113272         the deprecated MOUNTED symbol is no longer defined in mntent.h.
113274 2001-09-22  Jim Meyering  <meyering@lucent.com>
113276         * m4/gettext.m4: New file.  From gettext.
113277         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
113278         * m4/progtest.m4: Likewise
113279         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
113280         * m4/glibc21.m4: Likewise.
113282         * m4/libintl.m4: Remove.  No longer used.
113284 2001-09-22  Jim Meyering  <meyering@lucent.com>
113286         * lib/localcharset.c: Update from latest gettext.
113287         * lib/config.charset: Likewise.
113289 2001-09-20  Jim Meyering  <meyering@lucent.com>
113291         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
113292         strtoimax.
113293         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
113294         strtoumax.
113296 2001-09-20  Jim Meyering  <meyering@lucent.com>
113298         * lib/xstrtol.c (strtoimax): Guard declaration with
113299         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
113300         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
113301         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
113302         (strtoumax): Likewise, for completeness (it wasn't necessary).
113304 2001-09-17  Paul Eggert  <eggert@twinsun.com>
113306         * lib/strtoimax.c (HAVE_LONG_LONG):
113307         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
113308         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
113309         to work around bug in IBM C compiler.
113311 2001-09-17  Jim Meyering  <meyering@lucent.com>
113313         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
113314         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
113315         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
113316         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
113317         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
113318         whenever the right hand side need not be expanded by the shell.
113320 2001-09-16  Paul Eggert  <eggert@twinsun.com>
113322         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
113323         library.  It's not correct, as some older glibcs are buggy.
113324         fnmatch wasn't fixed until glibc 2.2.
113326         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
113327         special shell magic here.
113329 2001-09-16  Jim Meyering  <meyering@lucent.com>
113331         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
113332         * m4/jm-macros.m4: Require it.
113334 2001-09-16  Jim Meyering  <meyering@lucent.com>
113336         * lib/mkdir.c: New file.
113338 2001-09-15  Jim Meyering  <meyering@lucent.com>
113340         * m4/jm-macros.m4: Check for help2man.
113342 2001-09-11  Jim Meyering  <meyering@lucent.com>
113344         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
113345         The body, by Paul Eggert, was moved here from configure.in.
113346         * m4/jm-macros.m4: Require UTILS_HOST_OS.
113348 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113350         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
113351         (jm_PREREQ): Use it.
113353 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113355         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
113356         Use ssize_t, not int, to store result of readlink.
113357         Check for ssize_t overflow as well as size_t overflow,
113358         as POSIX says the result of readlink is implementation-defined
113359         when ssize_t overflows.
113360         Remove unnecessary cast to char*.
113361         Use free+malloc instead of realloc, as the storage doesn't need
113362         to be preserved and it's clearer and can be more efficient that way.
113363         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
113364         * lib/xreadlink.h (xreadlink): Update prototype.
113366 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113368         * lib/xgetcwd.c: Revert some of the previous change; intead,
113369         fix the HAVE_GETCWD_NULL code to behave more like the
113370         !HAVE_GETCWD_NULL code used to.
113372         Include "xalloc.h".
113373         (xgetcwd): Do not return NULL when memory is exhausted; instead,
113374         invoke xalloc_die.
113376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113378         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
113379         sys/param.h, as pathmax.h includes them.
113381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113383         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
113384         (jm_PREREQ_XGETCWD): New macro.
113386         * m4/getcwd.m4: New file.
113388 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113390         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
113391         like the HAVE_GETCWD_NULL code.
113392         Include pathmax.h if not HAVE_GETCWD.
113393         Do not include xalloc.h.
113394         (INITIAL_BUFFER_SIZE): New symbol.
113395         Do not use xmalloc / xrealloc, since the caller is responsible for
113396         handling errors.  Preserve errno around `free' during failure.
113397         Do not overrun buffer when using getwd.
113399 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113401         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
113402         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
113403         getcwd (NULL, 0).
113405 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113407         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
113408         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
113409         spotted by Jim Meyering.
113411 2001-09-03  Jim Meyering  <meyering@lucent.com>
113413         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
113414         failure.
113416 2001-09-02  Jim Meyering  <meyering@lucent.com>
113418         * lib/error.c: Update from GNU libc.
113420 2001-09-01  Jim Meyering  <meyering@lucent.com>
113422         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
113423         Used by df.
113425 2001-09-01  Jim Meyering  <meyering@lucent.com>
113427         * lib/xreadlink.c: New file.
113428         * lib/xreadlink.h: New file.
113429         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
113430         xreadlink.h.
113432         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
113433         doesn't conflict with sparc Solaris 7's definition in
113434         /usr/include/sys/int_types.h.
113436         * lib/exclude.c: Use `""', not `<>' to #include non-system header
113437         files.
113438         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
113439         and strncasecmp as r-values.  Unixware didn't have declarations.
113441 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113443         * lib/xstrtol.h: Add copyright notice.
113444         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
113445         LONGINT_INVALID_SUFFIX_CHAR.
113447 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113449         * lib/xstrtol.c (strtoimax): New decl.
113451 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113453         * lib/xgetcwd.c: Don't include pathmax.h.
113454         Include stdlib.h and unistd.h if available.
113455         Include xalloc.h.
113456         (xmalloc, xstrdup, free): Remove decls.
113457         (xgetcwd): Don't assume sizes fit in unsigned.
113458         Check for overflow when computing sizes.
113459         Simplify reallocation code.
113461 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113463         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
113464         a directory's st_size can have an arbitrary value, so the old
113465         usage could waste an arbitrary amount of memory.  All uses
113466         changed.
113467         * lib/savedir.h: Update prototype.
113469 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113471         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
113473         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
113474         old strtoimax.c.
113476         Also, make the following further changes to make this file's
113477         configuration more similar to that of strtol.c:
113478         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
113479         (strtoumax, uintmax_t, strtoull, strtol): Remove.
113480         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
113481         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
113482         changed to signed values.
113484         And make the following changes as well:
113485         Fix copyright notice, as 1999 was missing.
113486         (verify): New macro.
113487         (strtoimax): Check sizes at compile-time, not run-time.
113488         Prefer strtol to strtoll if both work.
113489         (main): Remove; it was not that useful and was a pain to maintain.
113491         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
113493 2001-08-31  Jim Meyering  <meyering@lucent.com>
113495         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
113496         Use an initial, malloc'd, buffer of length 128 rather than
113497         a statically allocated one of length 1024.
113499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113501         Simplify code, partly by assuming autoconf 2.52 semantics.
113503         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
113505         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
113506         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
113507         All uses removed.
113508         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
113509         Move AC_REQUIRE to next-to-top level, to avoid confusion.
113510         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
113511         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
113512         jm_AC_HEADER_INTTYPES_H.
113513         * m4/jm-macros.m4 (jm_MACROS): Likewise.
113515         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
113517         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113518         Quote first arg of AC_DEFUN.
113519         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
113520         since they are needed to parse the include file even if we need
113521         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
113522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
113523         but with opposite signedness.
113525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113527         Merge 'exclude' changes from tar 1.13.22.
113528         This fixes one or two unlikely storage allocation overflow bugs,
113529         but doesn't change user-visible behavior otherwise.
113531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113533         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
113534         (jm_PREREQ_EXCLUDE): New macro.
113536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113538         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
113539         tm to be declared.
113541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113543         * lib/hash.c: Remove '2001' from copyright notice.
113545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113547         * lib/full-write.h: New file.
113548         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
113549         * lib/full-write.c: Correct credits, as cccp.c no longer
113550         exists and anyway it was so heavily changed from the old cccp
113551         code as to be unrecognizable.  Include full-write.h.
113552         (full_write): Return size_t, with short writes meaning failure.
113553         All callers changed.  This fixes a bug with large buffers
113554         on 64-bit hosts.
113555         * lib/utime.c: Include full-write.h.
113557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113559         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
113560         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
113561         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
113562         Include if available.
113563         (<xalloc.h>): Include
113564         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
113565         (verify): New macro.  Use it to verify that EXCLUDE macros do not
113566         collide with FNM macros.
113567         (struct patopts): New struct.
113568         (struct exclude): Use it, as exclude patterns now come with options.
113569         (new_exclude): Support above changes.
113570         (new_exclude, add_exclude_file):
113571         Initial size must now be a power of two to simplify overflow checking.
113572         (free_exclude, fnmatch_no_wildcards): New function.
113573         (excluded_filename): No longer requires options arg, as the options
113574         are determined by add_exclude.  Now returns bool, not int.
113575         (excluded_filename, add_exclude):
113576         Add support for the fancy new exclusion options.
113577         (add_exclude, add_exclude_file): Now takes int options arg.
113578         Check for arithmetic overflow when computing sizes.
113579         (add_exclude_file): xrealloc might modify errno, so don't
113580         realloc until after errno might be used.
113582         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
113583         New macros.
113584         (free_exclude): New decl.
113585         (add_exclude, add_exclude_file): Now takes int options arg.
113586         (excluded_filename): No longer requires options arg, as the options
113587         are determined by add_exclude.  Now returns bool, not int.
113589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113591         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
113593 2001-08-27  Jim Meyering  <meyering@lucent.com>
113595         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113597         * lib/version-etc.c (N_): Remove definition.
113598         Revert most of last change.
113599         Instead, simply don't mark the `Copyright...' string for translation.
113600         Based on advice from Paul Eggert.
113602         * lib/strtoxmax.c: Tweak comment.
113604 2001-08-26  Jim Meyering  <meyering@lucent.com>
113606         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113608         * m4/xstrtoimax.m4: New file.
113609         * m4/xstrtoumax.m4: Add comments explaining why we
113610         AC_REPLACE_FUNCS(strtol).
113612 2001-08-26  Jim Meyering  <meyering@lucent.com>
113614         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113615         of copyright with `%s' so translators don't get an untranslated
113616         message in 2002.
113617         (COPYRIGHT_YEAR): Define.
113618         (version_etc): Use fprintf rather than fputs.
113619         Suggestion from Ulrich Drepper.
113621         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113623         * lib/strtoll.c: New file, from GNU libc.
113624         * lib/xstrtoimax.c: New file.
113626         * lib/xstrtol.h: Add xstrtoimax.
113627         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113628         * lib/strtoimax.c: New file.  Likewise, but first define
113629         STRTOUXMAX_SIGNED.
113631         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113632         ...
113633         * lib/strtoxmax.c: ... then renamed to this.
113635 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113637         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113638         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113639         (jm_AC_TYPE_INTMAX_T): New macro.
113640         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113642         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113644         * m4/longlong.m4: Renamed from ulonglong.m4.
113645         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113646         * m4/uintmax_t.m4: Removed.
113648 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113650         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113651         Port to Solaris 8, where 'sed' requires a space after the 'r'
113652         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113653         Redirect output to $tmp just once.
113655 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113657         * lib/addext.c (<errno.h>): Include.
113658         (errno): Declare if not defined.
113659         (addext): Work correctly when pathconf returns -1 and leaves
113660         errno alone because there is no limit.  Also, work even if
113661         pathconf returns a value greater than SIZE_MAX.
113663 2001-08-12  Jim Meyering  <meyering@lucent.com>
113665         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113666         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113667         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113668         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113669         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113670         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113671         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113672         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113673         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113674         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113675         utime.m4, utimes.m4, xstrtoumax.m4:
113676         Quote the first argument in each use of AC_DEFUN.
113678 2001-08-12  Jim Meyering  <meyering@lucent.com>
113680         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113681         Simply `return getcwd (NULL, 0);'.
113682         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113683         Use 1300 as initial value for length, not PATH_MAX.
113685         * lib/pathmax.h: Clean up cpp syntax.
113687 2001-08-12  Jim Meyering  <meyering@lucent.com>
113689         * lib/gettimeofday.c: New file.
113690         * lib/gtod.h: New file.
113691         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113693 2001-08-05  Jim Meyering  <meyering@lucent.com>
113695         * m4/jm-macros.m4: Require autoconf-2.52.
113697 2001-08-04  Jim Meyering  <meyering@lucent.com>
113699         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113700         stmt, to get in sync with glibc.
113702 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113704         The following changes are from gettext 0.10.39 as maintained by
113705         Bruno Haible.
113707         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113708         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113709         with inverted sense.  All uses changed.
113711         * lib/mbswidth.c: Don't include <limits.h>.
113712         Include <stdlib.h> and <string.h> unconditionally.
113713         (iswcntrl, mbsinit, ISCNTRL): New macros.
113714         (mbsnwidth): Use K&R style function declarations.
113715         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113716         can optimize it when MB_CUR_MAX == 1.
113717         The width of control characters is zero, not 1.
113719 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113721         The following changes are from gettext 0.10.39 as maintained by
113722         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113724         * m4/codeset.m4: Upgrade to serial AM1.
113725         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113726         all uses changed.  Quote first arg of AC_DEFUN.
113727         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113729         * m4/iconv.m4: Upgrade to serial AM2.
113730         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113731         Add --with-libconv-prefix.
113732         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113733         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113734         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113735         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113736         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113738         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113739         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113740         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113741         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113742         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113743         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
113744         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
113745         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
113746         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113748         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
113749         string.h any more.
113751         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
113752         not the default value.
113754         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
113755         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
113756         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
113757         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
113758         Also check for iswcntrl, used for wcwidth fallback.
113759         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
113760         to Autoconf 2.13.
113762 2001-08-03  Jim Meyering  <meyering@lucent.com>
113764         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
113765         as it was in the original.  Reported by Paul Eggert.
113767 2001-07-16  Jim Meyering  <meyering@lucent.com>
113769         * m4/gettimeofday.m4: New file.
113770         Prompted by a report from Bernhard Baehr.
113772 2001-07-15  Jim Meyering  <meyering@lucent.com>
113774         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
113775         stuff. Now it's in ../Makefile.cfg.
113777 2001-07-15  Jim Meyering  <meyering@lucent.com>
113779         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
113780         (BUILT_SOURCES): Add unlocked-io.h.
113781         (io_functions): Define.
113782         (unlocked-io.h): New rule.
113783         (DISTCLEANFILES): Add unlocked-io.h.
113784         (all-local): Depend on unlocked-io.h, to ensure it is created.
113786         * lib/unlocked-io.hin: New file
113788         * lib/regex.c: Update from glibc.
113790 2001-07-05  Jim Meyering  <meyering@lucent.com>
113792         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
113793         recommendation.
113794         (libfetish_a_SOURCES): Put all .h files here instead.
113795         Remove a thus-exposed (better checks in automake) duplicate and
113796         two unnecessary .h files.
113798 2001-07-04  Jim Meyering  <meyering@lucent.com>
113800         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
113801         that generates jm-glibc-io.m4 so that it doesn't trigger any make
113802         distcheck failure.
113804 2001-07-02  Jim Meyering  <meyering@lucent.com>
113806         The following changes were prompted by suggestions from Bruno Haible.
113808         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
113809         is now generated.
113810         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
113811         definition of EXTRA_DIST.
113812         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
113813         ensure that the generated file is created/updated whenever the list
113814         of $(unlocked_functions) is changed.
113815         (jm-glibc-io.m4): New rule.
113816         (unlocked-io.h): New rule -- currently unused.
113818 2001-06-24  Jim Meyering  <meyering@lucent.com>
113820         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
113821         unmatched right bracket, rather than kludging it with an extra,
113822         falsely-matching quote in a comment.  Patch by Akim Demaille.
113824 2001-06-11  Jim Meyering  <meyering@lucent.com>
113826         * lib/regex.c: Update from GNU libc.
113828 2001-05-27  Jim Meyering  <meyering@lucent.com>
113830         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
113831         Check for ut_type in struct utmp.
113833 2001-05-27  Jim Meyering  <meyering@lucent.com>
113835         * lib/readutmp.h (UT_TYPE): Define.
113837 2001-05-24  Jim Meyering  <meyering@lucent.com>
113839         * lib/argmatch.c: Include "quote.h".
113840         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
113841         quote function.  Reported by Göran Uddeborg.
113843 2001-05-22  Jim Meyering  <meyering@lucent.com>
113845         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
113846         now that we use the package-supplied version unconditionally.
113847         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
113849 2001-05-21  Jim Meyering  <meyering@lucent.com>
113851         * m4/regex.m4: Change a couple backticks to single quotes to avoid
113852         shell syntax errors.
113854 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113856         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113858 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113860         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113861         Don't bother to check library strftime, since
113862         we'll be using our own my_strftime function anyway.
113863         Define my_strftime instead of strftime.
113865 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113867         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113868         which is not yet declared.
113870 2001-05-15  Jim Meyering  <meyering@lucent.com>
113872         * m4/regex.m4: Use proper quoting so brackets appear in the test
113873         program.
113874         Reported by, and with help from, Bruno Haible.
113876 2001-05-13  Jim Meyering  <meyering@lucent.com>
113878         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113879         undefined.
113881 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113883         dirname code cleanup.  base_name now behaves more compatibly
113884         with POSIX basename when given file names that have trailing
113885         slashes, and similarly for dir_name.  Add new primitives
113886         base_len and dir_len.  Put the directory-name-related decls
113887         into dirname.h.
113889         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113890         * lib/backupfile.c (base_name): Likewise.
113891         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113892         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113893         * lib/makepath.c (strip_trailing_slashes): Likewise.
113894         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113895         ISSLASH): Likewise.
113896         * lib/rename.c (strip_trailing_slashes): Likewise.
113897         * lib/same.c (base_name): Likewise.
113898         * lib/stripslash.c (ISSLASH): Likewise.
113900         * lib/addext.c: Include <dirname.h> after size_t is defined.
113901         * lib/backupfile.c: Likewise.
113903         * lib/addext.c (addext): Use base_len to trim redundant
113904         trailing slashes instead of doing it ourselves.
113905         But do not trim the last slash if it is not redundant.
113907         * lib/backupfile.c (find_backup_file_name,
113908         max_backup_version): Use base_len instead of rolling it ourselves.
113909         Handle the case of "" and (on DOS) "C:" correctly.
113911         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113912         needed. Include <string.h>, <dirname.h>.
113913         (base_name): Allow file names ending in slashes, other than names
113914         that are all slashes.  In this case, return the basename followed
113915         by the slashes.  This is more general, and can be used in places
113916         where the original base_name purposely had an assertion failure.
113917         (base_len): New function.
113919         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
113920         Do not include <assert.h>; no longer needed.
113921         Include xalloc.h.
113922         (memrchr): Remove decl.
113923         (dir_name_r): Remove.
113924         (dir_len): Renamed from dirlen.  All callers changed.
113925         Rewrite in terms of base_name, for simplicity and consistency.
113926         (dir_name): Never return NULL.  All callers changed.
113927         Do not include <stdlib.h> in test program; no longer needed.
113928         return 0; is fine for test program.
113930         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
113931         New macros.
113932         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
113934         * lib/path-concat.c (path_concat): Use base_len to compute
113935         base length, not strlen; this means we cannot rely on memcpy
113936         to null-terminate.
113938         * lib/same.c (STREQ): Remove.
113939         (same_name): Handle the case where the basename ends in trailing '/'.
113941         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
113942         a slash was stripped.  Do not strip the last slash after a
113943         file system prefix.
113945 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113947         * lib/Makefile.am (libfetish_a_SOURCES):
113948         Add strftime.c, since we now compile it on all hosts.
113950         * lib/strftime.c (my_strftime):
113951         Define to nstrftime if emacs, but only if my_strftime is not defined.
113952         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
113953         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
113954         Add one more extra argument: a nanoseconds value.
113955         All uses changed.
113956         (ns): New macro.
113957         (my_strftime function): Add %N format.
113958         (emacs_strftimeu): Renamed from emacs_strftime,
113959         with extra ut argument.
113961 2001-05-09  Paul Eggert  <eggert@twinsun.com>
113963         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
113965 2001-04-21  Jim Meyering  <meyering@lucent.com>
113967         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
113968         doesn't interfere.
113970 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113972         * m4/ftruncate.m4: Check for chsize.
113973         Link with ftruncate.o unconditionally if ftruncate is missing.
113974         This was required when cross-compiling to i586-mingw32msvc.
113976 2001-04-08  Jim Meyering  <meyering@lucent.com>
113978         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
113979         recomputed; that's necessary when the offset spans a DST transition.
113980         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
113982 2001-04-02  Jim Meyering  <meyering@lucent.com>
113984         * lib/regex.h, regex.c: Update from GNU libc.
113986 2001-03-24  Jim Meyering  <meyering@lucent.com>
113988         * m4/jm-macros.m4: Require autoconf-2.49d.
113990 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
113992         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
113994 2001-03-19  Paul Eggert  <eggert@twinsun.com>
113996         * lib/version-etc.c (version_etc_copyright): Update to 2001.
113998 2001-03-17  Jim Meyering  <meyering@lucent.com>
114000         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
114001         now that the version in autoconf is equivalent.
114002         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
114004         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
114005         Suggestion from Akim Demaille.
114007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
114008         (jm_PREREQ_TEMPNAME): New function.
114010 2001-03-16  Paul Eggert  <eggert@twinsun.com>
114012         * lib/tempname.c (uint64_t): Define to uintmax_t if
114013         not defined, and if UINT64_MAX is not defined.
114014         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
114015         Reported by John David Anglin.
114017 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
114019         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
114020         resolve alias if codeset is empty.
114021         * lib/config.charset (BeOS): Use wildcard syntax.
114023 2001-03-13  Jim Meyering  <meyering@lucent.com>
114025         * lib/path-concat.c (path_concat)
114026         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
114027         concatenating e.g., `C:' and `foo'.
114028         From Bruno Haible.
114030 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114032         * lib/localcharset.c (locale_charset): Don't use
114033         setlocale(LC_CTYPE,NULL). Don't return NULL.
114034         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
114036 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114038         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
114039         support for DOS/DJGPP.
114041 2001-03-01  Paul Eggert  <eggert@twinsun.com>
114043         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
114044         lacks mkstemp.  Compile our own tempname.c if we compile our own
114045         mkstemp.c, as mkstemp relies on tempname.
114047 2001-03-01  Jim Meyering  <meyering@lucent.com>
114049         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
114050         AH_VERBATIM really does output its argument verbatim.
114052 2001-02-28  Paul Eggert  <eggert@twinsun.com>
114054         * lib/Makefile.am (libfetish_a_SOURCES):
114055         Add dup-safer.c, fopen-safer.c.
114056         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
114058         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
114059         * lib/unistd-safer.h: New files.
114061 2001-02-25  Paul Eggert  <eggert@twinsun.com>
114063         The mkstemp replacement is taken from glibc 2.2.2, with some
114064         portability fixes for use outside glibc, as follows:
114066         * lib/tempname.c (struct_stat64): New macro.
114067         (direxists, __gen_tempname): Use it.
114068         This avoids a portability problem with Solaris 8.
114070         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
114071         (<stddef.h>, <stdint.h>, <string.h>):
114072         Include only if STDC_HEADERS || _LIBC.
114073         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
114074         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
114075         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
114076         (__set_errno): Define this macro if <errno.h> doesn't.
114077         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
114078         Define these macros if <stdio.h> doesn't.
114079         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
114080         Define these macros if <sys/stat.h>
114081         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
114082         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
114083         __xstat64): Define if not _LIBC.
114084         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
114085         (__gen_tempname): Invoke gettimeofday only if
114086         HAVE_GETTIMEOFDAY || _LIBC;
114087         otherwise, fall back on plain "time".
114088         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
114090         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
114092         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
114094 2001-02-18  Paul Eggert  <eggert@twinsun.com>
114096         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
114098 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114100         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
114101         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
114102         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
114103         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114105 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114107         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
114108         Remove workaround macros for hosts that have mbrtowc but not
114109         mbstate_t, as we now insist on proper declarations for both
114110         before using mbrtowc.
114112 2001-02-17  Jim Meyering  <meyering@lucent.com>
114114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
114115         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
114116         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
114117         UnixWare 7.1.1.
114119         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
114120         rather than AC_CACHE_VAL.
114122 2001-02-17  Jim Meyering  <meyering@lucent.com>
114124         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
114125         around included file name.
114127         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
114129         * lib/strftime.c: Update from GNU libc (the only changes were to
114130         comments).
114132 2001-02-17  Jim Meyering  <meyering@lucent.com>
114134         * lib/regex.c: Update from libc.
114136 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
114138         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
114139         clash.
114141 2001-02-16  Paul Eggert  <eggert@twinsun.com>
114143         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
114144         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
114145         Reported by Mark Hounschell via Paul Eggert.
114147 2001-02-07  Jim Meyering  <meyering@lucent.com>
114149         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
114151 2001-02-05  Jim Meyering  <meyering@lucent.com>
114153         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
114154         it includes the patch required for `large file' support with at least
114155         HP-UX's 10.20 /bin/cc.
114157 2001-02-03  Jim Meyering  <meyering@lucent.com>
114159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
114160         AS_IF, now that it works once again (mysteriously).
114161         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114163 2001-01-30  Jim Meyering  <meyering@lucent.com>
114165         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
114166         * m4/chown.m4: Rename conftestchown to conftest.chown.
114167         * m4/rename.m4: s/conftestdir/conftest.d1/ and
114168         s/conftestdir2/conftest.d2/.
114169         * m4/utimes.m4: s/conftestdata/conftest.data/
114170         Inspired by Pavel Roskin's change in autoconf.
114172 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
114174         * lib/config.charset: Update for FreeBSD 4.2.
114176 2001-01-27  Jim Meyering  <meyering@lucent.com>
114178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
114179         a use of AS_IF.
114180         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114182 2001-01-26  Jim Meyering  <meyering@lucent.com>
114184         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
114185         quotearg.c includes it.
114187 2001-01-26  Jim Meyering  <meyering@lucent.com>
114189         * lib/quotearg.c: Include stddef.h.
114190         * lib/quote.c: Include stddef.h.
114191         Reported by Axel Kittenberger.
114193         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
114194         line in double quotes so that it evokes a better diagnostic.
114195         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
114196         Reported by Axel Kittenberger.
114198 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
114200         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
114201         as if it was a `charset'.
114203 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114205         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
114206         has const.
114208 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114210         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
114211         to avoid a warning.  Add back 'const' to inptr.
114213 2001-01-20  Jim Meyering  <meyering@lucent.com>
114215         Be sure that headers are checked before used in code compiled
114216         for the type checks.
114217         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
114218         In place of that, invoke jm_CHECK_ALL_TYPES.
114219         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
114220         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
114221         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
114222         The check for ssize_t was mistakenly run before the test for unistd.h.
114224         The configure-time check for stdbool.h was missing.
114225         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
114226         (jm_PREREQ_HASH): New function.
114228 2001-01-17  Jim Meyering  <meyering@lucent.com>
114230         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
114231         for autoconf-2.49c.
114232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
114234 2001-01-16  Jim Meyering  <meyering@lucent.com>
114236         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
114237         From Bruno Haible.
114239 2001-01-14  Jim Meyering  <meyering@lucent.com>
114241         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
114242         foo and bar.  Create conftestdir/ in the script, not in the C code.
114243         Remove directories in the script, not in the C code.
114244         Remove conftestdir{,2} before trying to create the directory.
114245         Make the entire configure script fail if the mkdir fails.
114247 2001-01-14  Jim Meyering  <meyering@lucent.com>
114249         * lib/rename.c: New file.  From Volker Borchert.
114250         Include stdlib.h, string.h or strings.h, and xalloc.h.
114251         Use strip_trailing_slashes rather than open-coding it.
114253 2001-01-03  Paul Eggert  <eggert@twinsun.com>
114255         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
114257 2001-01-03  Jim Meyering  <meyering@lucent.com>
114259         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
114260         of local `inptr' to avoid warning with some system declarations of
114261         iconv.
114263 2001-01-02  Volker Borchert  <bt@teknon.de>
114265         * m4/rename.m4: New file.
114266         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
114268 2001-01-01  Jim Meyering  <meyering@lucent.com>
114270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
114271         even on systems with utmpx.h.  It's necessary for the declaration of
114272         utmp's ut_user member.  Reported by Andreas Jaeger.
114274         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
114275         available. They are required for the declarations of getgrgid and
114276         getpwuid resp.
114277         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
114278         Reported by Andreas Jaeger.
114280 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
114282         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
114283         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
114284         so `make install' also works in VPATH builds.
114286 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
114288         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
114289         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
114290         can be used in subdirectories.
114292 2000-12-29  Paul Eggert  <eggert@twinsun.com>
114294         * lib/modechange.c: Do not assume that mode_t uses the
114295         traditional octal encoding.  E.g. "chmod 1 FOO" should set
114296         the other-execute bit of FOO even if S_IXOTH != 1.
114298         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
114299         WOTH, XOTH, ALLM): New macros.
114300         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
114301          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
114302         Use them.
114303         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
114304         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
114305         (mode_compile):
114306         No need to use uintmax_t; unsigned long is long enough.
114307         Don't bother to get suffix since we don't use it.
114309 2000-12-26  Jim Meyering  <meyering@lucent.com>
114311         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
114312         better with autoheader.
114314 2000-12-24  Jim Meyering  <meyering@lucent.com>
114316         * lib/hash.c (is_prime): Return explicit boolean values.
114317         (hash_get_first): Return NULL to appease Irix5.6's 89.
114318         Reported by Nelson Beebe.
114320 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
114322         * lib/localcharset.c (locale_charset): Add support for Win32.
114324 2000-12-18  Paul Eggert  <eggert@twinsun.com>
114326         * lib/physmem.h, lib/physmem.c: New files.
114328         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
114329         (noinst_HEADERS): Add physmem.h.
114331         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
114332         't' for compatibility with Solaris 8 sort.
114334 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
114336         * lib/config.charset: Add support for BeOS.
114338 2000-12-17  Jim Meyering  <meyering@lucent.com>
114340         * m4/dos.m4 (jm_AC_DOS): New file and macro.
114341         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
114343 2000-12-16  Jim Meyering  <meyering@lucent.com>
114345         This bug had a serious impact on chown: `chown N:M FILE' (for integer
114346         N and M) would have treated it like `chown N:N FILE'.
114348         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
114350 2000-12-16  Jim Meyering  <meyering@lucent.com>
114352         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
114353         SHELLS_FILE to a file name that's useful on djgpp systems.
114354         Include stdlib.h.
114355         (ADDITIONAL_DEFAULT_SHELLS): Define.
114356         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
114357         Based mostly on a patch from Prashant TR.
114359 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
114361         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
114362         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
114363         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
114365 2000-12-08  Andreas Schwab  <schwab@suse.de>
114367         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
114368         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
114370 2000-12-07  Jim Meyering  <meyering@lucent.com>
114372         * lib/stripslash.c (ISSLASH): Define.
114373         (strip_trailing_slashes): Use ISSLASH rather than comparing against
114374         `/'.
114375         From Prashant TR.
114377         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
114378         (dir_name_r): Declare this function as static.
114379         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
114380         manifest itself on a name containing a mix of slashes and
114381         backslashes.
114382         Make this function work with names starting with a DOS-style
114383         drive letter and colon prefix.
114384         (dir_name): Append `.' if necessary.
114385         Based mostly on patches from Prashant TR and Eli Zaretskii.
114387         * lib/dirname.h (dir_name_r): Remove prototype.
114389 2000-12-06  Paul Eggert  <eggert@twinsun.com>
114391         * m4/off_t-format.m4: Remove this file.
114392         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
114394 2000-12-06  Jim Meyering  <meyering@lucent.com>
114396         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
114397         replacement strtoull, we may well need the replacement strtoul, too.
114398         Check for declarations of strtoul and strtoull.
114399         Check for strtol.  Mainly as a cue to cause automake to include
114400         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
114401         Check for limits.h -- strtol.c needs it.
114403 2000-12-05  Jim Meyering  <meyering@lucent.com>
114405         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
114407 2000-12-04  Jim Meyering  <meyering@lucent.com>
114409         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
114410         Also include memory.h, stdlib.h, unistd.h if appropriate.
114411         Reported by Andreas Jaeger (conflicting declaration of malloc).
114413 2000-12-02  Jim Meyering  <meyering@lucent.com>
114415         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
114416         * m4/jm-macros.m4 (jm_MACROS): require it.
114418 2000-12-02  Jim Meyering  <meyering@lucent.com>
114420         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
114422 2000-12-01  Paul Eggert  <eggert@twinsun.com>
114424         * lib/memrchr.c: Include <config.h> before any system include file.
114426 2000-11-30  Jim Meyering  <meyering@lucent.com>
114428         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
114430 2000-11-30  Jim Meyering  <meyering@lucent.com>
114432         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
114434 2000-11-29  Paul Eggert  <eggert@twinsun.com>
114436         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
114438 2000-11-26  Jim Meyering  <meyering@lucent.com>
114440         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
114442 2000-11-22  Paul Eggert  <eggert@twinsun.com>
114444         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
114445         size of (size_t) -1; it's not portable.
114447 2000-11-17  Jim Meyering  <meyering@lucent.com>
114449         * lib/strstr.c: Update from GNU libc.
114451 2000-11-17  Akim Demaille  <akim@epita.fr>
114453         * lib/obstack.h: Formatting changes.
114454         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
114455         prevent type checking.
114456         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
114457         cast the value to (void *): assigning a `foo *' to a `void *'
114458         variable is valid.
114459         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
114461 2000-11-16  Jim Meyering  <meyering@lucent.com>
114463         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
114465 2000-11-11  Jim Meyering  <meyering@lucent.com>
114467         * lib/error.c: Add a couple #includes, merging from GNU libc version.
114469 2000-11-10  Jim Meyering  <meyering@lucent.com>
114471         * lib/obstack.h: Update from GNU libc.
114472         * lib/obstack.c: Likewise.
114474 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
114476         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
114478 2000-11-06  Paul Eggert  <eggert@twinsun.com>
114480         * lib/getusershell.c (setusershell): Use rewind rather than
114481         fseek/fseeko, to avoid configuration hassles with fseeko.
114482         Don't bother opening SHELLS_FILE if shellstream is NULL;
114483         it's not necessary.
114485 2000-11-05  Jim Meyering  <meyering@lucent.com>
114487         * lib/makepath.h (make_dir): Declare.
114488         * lib/makepath.c (make_dir): Remove `static' attribute.
114489         Tweak a comment.
114491 2000-11-04  Jim Meyering  <meyering@lucent.com>
114493         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
114495 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
114497         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
114498         last one in a bucket, advance to the next bucket.
114500 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
114502         * lib/fnmatch.c: Do not comment out all the code if we are using
114503         the GNU C library, because in some cases we are replacing buggy
114504         code in the GNU C library itself.
114506 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
114508         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
114509         (regex_compile): Catch bogus \(\1\).
114511 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114513         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
114514         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
114515         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
114517 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114519         * lib/error.h, getline.h, modechange.h:
114520         Remove "2000" from Copyright line, as the file hasn't been
114521         changed this year other than in the copyright notice.
114523         * lib/xalloc.h: Add "2000" to Copyright line, as this file
114524         was changed this year.
114526 2000-10-29  Jim Meyering  <meyering@lucent.com>
114528         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
114529         renaming.
114530         * m4/ls-mntd-fs.m4: Likewise
114532 2000-10-29  Jim Meyering  <meyering@lucent.com>
114534         * lib/xstat.in: Fix grammar in comment.
114536 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
114538         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
114539         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
114540         doesn't define __restrict_arr.
114542 2000-10-28  Jim Meyering  <meyering@lucent.com>
114544         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
114545         (jm_PREREQ_MEMCHR): New function.
114547 2000-10-28  Jim Meyering  <meyering@lucent.com>
114549         * lib/memchr.c: Update from libc.
114550         Adjust for portability:
114551         [HAVE_STDLIB_H]: Include stdlib.h.
114552         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
114553         Undef __memchr, too.
114554         [!weak_alias]: Define __memchr to memchr.
114556         * lib/regex.c: Update from libc.
114557         * lib/regex.h: Likewise.
114558         * lib/getopt1.c: Likewise.
114559         * lib/memcmp.c: Likewise.
114561         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
114562         Avoid using fseek, when possible -- it's broken by design.
114563         Patch by Ulrich Drepper.
114565 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
114567         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
114568         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
114569         Giving in to popular pressure to shut up the compiler with casts.
114571 2000-10-26  Jim Meyering  <meyering@lucent.com>
114573         * lib/strftime.c: Update from libc.
114575 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
114577         * regex.c: More `unsigned char' -> `re_char' changes.
114578         Also change several `int' into `re_wchar_t'.
114579         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
114580         (PUSH_FAILURE_POINTER): Don't cast any more.
114581         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
114582         We want GCC to complain, since this piece of code makes
114583         re_match non-reentrant, which *should* be fixed.
114584         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
114585         (EXTEND_BUFFER): Use RETALLOC.
114586         (SET_LIST_BIT): Don't cast.
114587         (re_wchar_t): New type.
114588         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
114589         that those two functions will always properly return.
114590         (IMMEDIATE_QUIT_CHECK): Cast to void.
114591         (analyse_first): Use recursion rather than an explicit stack.
114592         (re_compile_fastmap): Can't fail anymore.
114593         (re_search_2): Don't check re_compile_fastmap for failure.
114594         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114595         Now also sets the new value (passed in a new argument).
114596         (re_match_2_internal): Use it.
114597         Also, use a new var `reg' of type size_t when looping through regs
114598         rather than reuse the inappropriate `mcnt'.
114600 2000-10-25  Jim Meyering  <meyering@lucent.com>
114602         * lib/obstack.c: Update from libc.
114604 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114606         * regex.c (regex_compile): Change the way of handling a range from
114607         a char less than 256 to a char not less than 256.
114609 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114611         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114612         NT-Emacs only.
114613         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114614         so that re_search functions only quit when callers expect them to.
114616 2000-10-23  Jim Meyering  <meyering@lucent.com>
114618         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114619         wrong.  That set_locale call must not have any side effects.
114620         From Paul Eggert.
114622 2000-10-22  Jim Meyering  <meyering@lucent.com>
114624         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114625         [CYCLIC]: Remove now-unused definition.
114627         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114628         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114629         Suggestion from Ulrich Drepper.
114631 2000-10-21  Jim Meyering  <meyering@lucent.com>
114633         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114634         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114637 2000-10-21  Jim Meyering  <meyering@lucent.com>
114639         * lib/dirname.c (memrchr): Declare if necessary.
114640         (dir_name): Remove the restriction that there be no
114641         trailing slashes.  Now, this code skips past them, effectively
114642         ignoring them.
114643         [TEST_DIRNAME] (main): New unit tests.
114645         * lib/memrchr.c: New file from GNU libc.
114646         Undef __memrchr, too.
114647         [!weak_alias]: Define __memrchr to memrchr.
114648         Guard weak_alias use with `#ifdef weak_alias'.
114650 2000-10-21  Jim Meyering  <meyering@lucent.com>
114652         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114653         (dir_name): Use dir_name_r.
114654         * lib/dirname.h (dir_name_r): Declare it.
114656 2000-10-17  Jim Meyering  <meyering@lucent.com>
114658         * lib/quote.h (PARAMS): Define and use.
114659         Reported by Akim Demaille.
114661         * lib/getopt.c: Update from libc.
114663 2000-10-16  Jim Meyering  <meyering@lucent.com>
114665         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114666         setlocale.
114667         From Jan Fedak.
114669 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114671         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114673 2000-09-25  Jim Meyering  <meyering@lucent.com>
114675         * lib/md5.h (rol): Define (from GnuPG).
114677         * lib/sha.c: Give credit (GnuPG) where due.
114678         (M): Use rol rather than open-coding it.
114679         Add a FIXME comment.
114681 2000-09-21  Jim Meyering  <meyering@lucent.com>
114683         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114684         Reported by Michael Stone.
114686 2000-09-20  Jim Meyering  <meyering@lucent.com>
114688         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114689         (noinst_HEADERS): Add sha.h.
114690         Based on code from Scott G. Miller and from GnuPG.
114692 2000-09-18  Jim Meyering  <meyering@lucent.com>
114694         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114695         LIBS. Otherwise, everyone ends up linking with -lelf for some
114696         configurations.
114697         Reported by Mike Stone.
114699 2000-09-15  Jim Meyering  <meyering@lucent.com>
114701         * lib/regex.c: Update from libc.
114703 2000-09-10  Jim Meyering  <meyering@lucent.com>
114705         * lib/getopt.c (_getopt_internal): Update from glibc.
114707 2000-09-09  Jim Meyering  <meyering@lucent.com>
114709         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114710         think it should be used as a general replacement for isascii.
114711         * lib/fnmatch.c: Likewise.
114712         * lib/mbswidth.c: Likewise
114713         * lib/regex.c: Likewise.
114715         Don't use atoi.
114716         * lib/userspec.c: Include sys/param.h and limits.h.
114717         Include xstrtol.h.
114718         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114719         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114720         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114721         UID, GID.  Check range.
114723 2000-09-06  Jim Meyering  <meyering@lucent.com>
114725         * lib/getopt.c (_getopt_internal): Update from glibc.
114727 2000-08-30  Jim Meyering  <meyering@lucent.com>
114729         * lib/strftime.c: Merge in changes from GNU libc.
114731 2000-08-26  Jim Meyering  <meyering@lucent.com>
114733         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114734         * m4/fpending.m4: New file.
114736 2000-08-26  Jim Meyering  <meyering@lucent.com>
114738         * lib/closeout.c: Include "__fpending.h".
114739         (close_stdout_status): Return right away if there's nothing to flush.
114741         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114742         * lib/__fpending.c: New file.
114743         * lib/__fpending.h: New file.
114745 2000-08-20  Jim Meyering  <meyering@lucent.com>
114747         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
114748         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
114749         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
114751 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
114753         Improve fileutils installation on systems where running
114754         programs (like install) can't be unlinked.
114755         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
114756         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
114758 2000-08-07  Paul Eggert  <eggert@twinsun.com>
114760         Standardize on "memory exhausted" instead of "Memory exhausted"
114761         or "virtual memory exhausted".
114762         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
114763         "virtual memory exhausted".
114764         * lib/same.c (same_name): Invoke xalloc_die instead of printing
114765         our own message.
114766         * lib/userspec.c (parse_user_spec): Likewise.
114767         * lib/bumpalloc.h: comment fix
114768         * lib/same.c, userspec.c: Include xalloc.h.
114770         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
114771         not char *const and pointing to a constant array.
114772         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
114773         (xrealloc): Comment fix.
114775         * lib/userspec.c (parse_user_spec):
114776         Don't translate a message until just before returning,
114777         to avoid unnecessary translation.
114779 2000-08-07  Jim Meyering  <meyering@lucent.com>
114781         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
114782         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
114783         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
114784         getgroups.c, gethostname.c, getopt.h, group-member.c,
114785         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
114786         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
114787         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
114788         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
114789         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
114790         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
114791         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
114792         yesno.c: Back out Copyright date changes for each file with no change
114793         this year.  This eases coordination with other programs using the same
114794         source code modules.  From Paul Eggert.
114796 2000-08-06  Paul Eggert  <eggert@twinsun.com>
114798         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
114799         not char, for compatibility with glibc 2.1.3 strftime.c.
114801 2000-08-03  Greg McGary  <greg@mcgary.org>
114803         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
114804         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
114805         (EXTEND_BUFFER): Use them.
114807 2000-08-01  Jim Meyering  <meyering@lucent.com>
114809         * lib/dirname.c (ISSLASH): Define.
114810         (BACKSLASH_IS_PATH_SEPARATOR): Define.
114811         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
114812         both `\' and `/' may be use as path separators.
114813         Based on a patch from Prashant TR.
114815 2000-07-31  Paul Eggert  <eggert@twinsun.com>
114817         * lib/quotearg.c (quotearg_n_options): Don't make the initial
114818         slot vector a constant, since it might get modified.
114820 2000-07-31  Jim Meyering  <meyering@lucent.com>
114822         * lib/xmalloc.c: Use `virtual memory exhausted', not
114823         `Memory exhausted'.
114824         * lib/obstack.c (print_and_abort): Likewise.
114826 2000-07-30  Paul Eggert  <eggert@twinsun.com>
114828         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
114829         buffer, so that the caller can always quote one small
114830         component of a "memory exhausted" message in slot 0.
114831         From a suggestion by Jim Meyering.
114833 2000-07-30  Jim Meyering  <meyering@lucent.com>
114835         * lib/makepath.c (make_path): Quote the other instance, too.
114837         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
114838         (STATIC_BUF_SIZE): Define.
114839         (quotearg_n_options): Use only statically allocated storage when
114840         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
114841         than STATIC_BUF_SIZE.
114843 2000-07-29  Jim Meyering  <meyering@lucent.com>
114845         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
114846         * lib/dirname.c (dir_name): Likewise.
114848         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
114849         `/'.
114851         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
114852         (dir_name): Assert that there are no trailing slashes.
114854 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
114856         * lib/mbswidth.h (mbswidth): Add a flags argument.
114857         (mbswidth): New declaration.
114858         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114859         * lib/mbswidth.c (mbswidth): Add a flags argument.
114860         (mbsnwidth): New function.
114862 2000-07-24  Jim Meyering  <meyering@lucent.com>
114864         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114866 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114868         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114870 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114872         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114873         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114874         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114875         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114876         invoke multibyte primitives.
114878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114880         * lib/quotearg.c:
114881         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114882         so that mbstate_t is always defined.
114884         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114885         be 1 in at least one GCC installation, and this configuration
114886         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114887         performance on hosts that have mbrtowc but have only unibyte
114888         locales, but I assume these hosts are rare.
114890 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114892         * lib/mbswidth.c (_XOPEN_SOURCE):
114893         Don't define; this causes problems on Solaris 7.
114894         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114896 2000-07-23  Jim Meyering  <meyering@lucent.com>
114898         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114899         too: getgrgid, getpwuid, getuid.
114901 2000-07-23  Jim Meyering  <meyering@lucent.com>
114903         * lib/basename.c (base_name): Add an assertion.
114905 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114907         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114908         shadow its mbsinit function.
114910 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114912         * lib/mbswidth.h: New file.
114913         * lib/mbswidth.c: New file.
114914         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114915         (noinst_HEADERS): Add mbswidth.h.
114917 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114919         * lib/config.charset: Add support for FreeBSD. Improve support for
114920         HP-UX and IRIX 6.
114922 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
114924         * m4/mbswidth.m4: New file.
114925         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
114927 2000-07-15  Jim Meyering  <meyering@lucent.com>
114929         * lib/makepath.c: Include quote.h.
114930         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
114931         corresponding argument in a `quote (...)' call.
114932         Give better diagnostics.
114934         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
114935         (noinst_HEADERS): Add quote.h.
114937         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
114938         from tar's src/misc.c.
114939         * lib/quote.h: New file.  Prototypes for same.
114941 2000-07-14  Paul Eggert  <eggert@twinsun.com>
114943         From a suggestion by Bruno Haible.
114944         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
114945         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
114946         to decide whether to define the BeOS workaround macro;
114947         this adjusts to the change to AC_MBSTATE_T.
114949 2000-07-14  Jim Meyering  <meyering@lucent.com>
114951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
114952         jm_AC_TYPE_UINTMAX_T.
114954 2000-07-13  Paul Eggert  <eggert@twinsun.com>
114956         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
114958         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
114959         quotearg_buffer_restyled): Add support for
114960         clocale_quoting_style.  Undo previous change to
114961         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
114962         and "{RIGHT QUOTATION MARK}" msgids.
114964 2000-07-10  Paul Eggert  <eggert@twinsun.com>
114966         From a suggestion by Bruno Haible.
114967         * m4/mbstate_t.m4 (AC_MBSTATE_T):
114968         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
114969         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
114970         and mbstate_t, to a single-part test that simply defines mbstate_t.
114971         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
114972         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
114974 2000-07-10  Jim Meyering  <meyering@lucent.com>
114976         * m4/strerror_r.m4: Mirror the correction made in autoconf.
114978         * m4/gnu-source.m4: Output to confdefs.h directly.
114979         Suggestion from Akim Demaille.
114981 2000-07-09  Paul Eggert  <eggert@twinsun.com>
114983         The old behavior of quoting `like this' doesn't look good with
114984         newer, ISO-style fonts.  See:
114985         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
114987         Instead, quote "like this" by default.  Let the translator
114988         tailor the locale-specific quoting behavior by providing
114989         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
114991         * lib/quotearg.c (N_): New macro.
114992         (gettext_default): New function.
114993         (quotearg_buffer_restyled): Use
114994         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
114995         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
114997 2000-07-09  Jim Meyering  <meyering@lucent.com>
114999         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
115000         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
115002         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
115003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
115005 2000-07-09  Jim Meyering  <meyering@lucent.com>
115007         * lib/Most files: Update copyright dates to include 2000.
115009 2000-07-08  Jim Meyering  <meyering@lucent.com>
115011         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
115012         if not defined.
115013         (xgethostname): Remove now-unnecessary #ifdef.
115014         Move declaration of `err' into loop where it's used.
115016 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115017         and Bruno Haible  <haible@clisp.cons.org>
115019         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
115020         only if the test for an object-type mbstate_t fails.  This
115021         prevents us from mistakenly reporting that mbstate_t is a
115022         system object type after we "#define mbstate_t int" to work
115023         around its lack.
115025 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115026         and Bruno Haible  <haible@clisp.cons.org>
115028         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
115030 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115032         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
115033         to strerror_r.
115034         Include <ctype.h> for use of isalpha.
115036 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115038         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
115039         by allocating a larger buffer. Test the gethostname return value for
115040         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
115041         returns an error and ENAMETOOLONG isn't defined.
115043 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115045         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
115046         dimension.
115048 2000-07-04  Jim Meyering  <meyering@lucent.com>
115050         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
115051         of the deprecated AC_CHECKING.
115053 2000-07-04  Jim Meyering  <meyering@lucent.com>
115055         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
115056         Reported by Bruno Haible.
115058 2000-07-04  Jim Meyering  <meyering@lucent.com>
115060         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
115061         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
115062         lacks mbrtowc.
115064 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115066         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
115067         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
115069 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115070         and Bruno Haible  <haible@clisp.cons.org>
115072         * lib/quotearg.c (mbrtowc):
115073         Assign to *pwc, and return 1 only if result is nonzero.
115074         (iswprint): Use ISPRINT when substituting our own mbrtowc.
115076 2000-07-03  Jim Meyering  <meyering@lucent.com>
115078         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
115080 2000-07-03  Jim Meyering  <meyering@lucent.com>
115082         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
115083         This is necessary to get a definition of e.g., UTMP_FILE on
115084         HP-UX 10.20.
115085         From Bob Proulx.
115087 2000-07-02  Jim Meyering  <meyering@lucent.com>
115089         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
115091         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
115092         AC_LIBOBJ(function_name).
115093         * m4/chown.m4: Likewise.
115094         * m4/fnmatch.m4: Likewise.
115095         * m4/ftruncate.m4: Likewise.
115096         * m4/getgroups.m4: Likewise.
115097         * m4/getline.m4: Likewise.
115098         * m4/group-member.m4: Likewise.
115099         * m4/jm-macros.m4: Likewise.
115100         * m4/lstat.m4: Likewise.
115101         * m4/malloc.m4: Likewise.
115102         * m4/memcmp.m4: Likewise.
115103         * m4/nanosleep.m4: Likewise.
115104         * m4/putenv.m4: Likewise.
115105         * m4/realloc.m4: Likewise.
115106         * m4/regex.m4: Likewise.
115107         * m4/stat.m4: Likewise.
115108         * m4/strftime.m4: Likewise.
115110 2000-07-02  Jim Meyering  <meyering@lucent.com>
115112         * lib/quotearg.c (mbstate_t): Don't define here.
115114 2000-07-02  Jim Meyering  <meyering@lucent.com>
115116         * lib/nanosleep.c (SIGCONT): Define if not already defined.
115118 2000-07-01  Jim Meyering  <meyering@lucent.com>
115120         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
115122 2000-07-01  Jim Meyering  <meyering@lucent.com>
115124         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
115125         problem.
115127 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
115130         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
115132 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115134         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
115135         per change in ../m4/ls-mntd-fs.m4.
115136         (read_filesystem_list): Ignore symbolic links.
115138 2000-06-29  Jim Meyering  <meyering@lucent.com>
115140         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
115141         for declaration of strcmp.
115143         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
115145         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
115146         Avoid warning by casting result to `char *' to remove `const'.
115148 2000-06-28  Jim Meyering  <meyering@lucent.com>
115150         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
115151         included by quotearg.c, for which we perform this test.  From
115152         Bruno Haible.
115154 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115156         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
115157         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
115158         <utmpx.h> exists, put readutmp.o into LIBOBJS.
115160 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115162         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
115164 2000-06-26  Paul Eggert  <eggert@twinsun.com>
115166         savedir now sets errno on failure and invokes xmalloc to get memory.
115167         Fix a couple of other minor bugs while we're at it.
115169         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
115170         (NAMLEN): Remove macro.
115171         (malloc, realloc): Remove decls.
115172         (stpcpy): Likewise.
115173         ("xalloc.h"): Include.
115174         (NAME_SIZE_DEFAULT): New macro.
115175         (savedir): Use xmalloc / xrealloc to allocate memory.
115176         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
115177         Skip "" directory entries.
115178         Use strlen to calculate directory entry length, since the old method
115179         is rarely used these days and isn't worth supporting.
115180         Don't use a pointer after freeing it.
115181         Check for integer overflow when calculating allocation size.
115182         Use memcpy to copy entries, instead of stpcpy.
115183         Set errno properly when returning NULL.
115184         Check for readdir error.
115186 2000-06-26  Jim Meyering  <meyering@lucent.com>
115188         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
115190 2000-06-25  Jim Meyering  <meyering@lucent.com>
115192         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
115193         Linux header bug when _XOPEN_SOURCE is defined to 500.
115195 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115197         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
115198         deficiency.
115200 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115202         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
115203         Include xalloc.h.
115204         Don't include <stdlib.h>.  Don't declare malloc, realloc.
115206 2000-06-24  Jim Meyering  <meyering@lucent.com>
115208         * m4/strerror_r.m4: Revive this file -- to try out an experimental
115209         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
115210         for which strerror does return char*, but which lacks a conveniently
115211         accessible declaration of the function.  If the compile-test says
115212         strerror_r doesn't work, then resort to a `run'-test that works on
115213         BeOS and segfaults on DEC Unix.
115215 2000-06-24  Jim Meyering  <meyering@lucent.com>
115217         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
115219 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115221         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
115222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
115224 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115226         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
115227         (mbrtowc, mbstate_t): Define substitutes if
115228         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
115229         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
115230         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
115232 2000-06-23  Jim Meyering  <meyering@lucent.com>
115234         * m4/afs.m4: Add missing AC_MSG_RESULT.
115235         Reported by Bruno Haible.
115237         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
115238         Suggestion from Bruno Haible.
115240 2000-06-23  Jim Meyering  <meyering@lucent.com>
115242         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
115244 2000-06-21  Jim Meyering  <meyering@lucent.com>
115246         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
115248 2000-06-21  Jim Meyering  <meyering@lucent.com>
115250         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
115251         (noinst_HEADERS): Add getstr.h.
115253         * lib/getline.c (getstr): Move into a separate file.
115254         * lib/getstr.c (getstr): New file, extracted from getline.c, with
115255         the following changes: new parameter, delim2; both delim[12]
115256         parameters have type `int', not `char'.  The latter would lose
115257         with 8-bit delimiters.
115258         * lib/getstr.h: New file.
115260 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115262         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
115263         than 1024, return a memory chunk of least possible size, instead
115264         of size PATH_MAX + 2. In the loop, increment the size proportionally.
115265         Use free/xmalloc instead of xrealloc to avoid copying for very long
115266         paths.
115268 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115270         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
115271         the empty string.
115273 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115275         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
115276         address, not strdup.  Include <stdlib.h> and don't declare free().
115278 2000-06-19  Jim Meyering  <meyering@lucent.com>
115280         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
115282 2000-06-18  Jim Meyering  <meyering@lucent.com>
115284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
115286         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
115287         `checking whether...' message to be consistent with that of the
115288         lstat test.
115290 2000-06-18  Jim Meyering  <meyering@lucent.com>
115292         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
115293         Besides, these days every porting target provides a mkdir function.
115295         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
115296         needed. (this snippet comes from src/system.h).
115298 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
115300         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
115302 2000-06-15  Paul Eggert  <eggert@twinsun.com>
115304         * lib/human.c (adjust_value): New function.
115305         (human_readable_inexact): Apply rounding style even when
115306         printing approximate values.
115308 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115310         * lib/human.c (human_readable_inexact): Allow an input block
115311         size that is not a multiple of the output block size, and vice versa.
115312         Reported by Piergiorgio Sartor.
115314 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115316         * lib/getdate.y (get_date): Apply relative times after time
115317         zone indicator, not before.  Reported by Todd A. Jacobs.
115319 2000-06-13  Jim Meyering  <meyering@lucent.com>
115321         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
115323         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
115325 2000-06-12  Paul Eggert  <eggert@twinsun.com>
115327         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
115329 2000-06-12  Jim Meyering  <meyering@lucent.com>
115331         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
115332         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
115333         optional argument.
115334         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
115335         the optional argument, `lib'.
115337 2000-06-08  Jim Meyering  <meyering@lucent.com>
115339         * m4/largefile.m4: Remove file (now that it's part of autoconf).
115341 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115343         Rewrite largefile configuration so that we don't need to run
115344         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
115345         AC_CANONICAL_HOST in configure.in -- jmm]
115347         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
115348         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
115349         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
115350         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
115351         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
115352         All uses changed.
115353         Instead of inspecting the output of getconf, try to compile the
115354         test program without and with the macro definition.
115355         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
115356         for getconf.  Instead, check for the needed flags by compiling
115357         test programs.
115359 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115361         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
115363 2000-06-04  Jim Meyering  <meyering@lucent.com>
115365         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
115366         SunOS 4.1.4 for which gid_t is an unsigned type.
115368 2000-06-03  Jim Meyering  <meyering@lucent.com>
115370         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
115371         now that autoconf requires that.
115373         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
115374         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
115375         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
115377 2000-06-03  Jim Meyering  <meyering@lucent.com>
115379         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
115381 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115383         * m4/glibc21.m4: New file.
115384         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
115386 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115388         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
115389         newer, don't install charset.alias.
115390         * lib/config.charset: Change the Linux/glibc rules so they become empty
115391         on glibc-2.1 or newer.
115393 2000-06-02  Jim Meyering  <meyering@lucent.com>
115395         * lib/mountlist.c: Back out last change.  Instead, do this...
115396         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
115397         me_dummy member using the same `ignore'-testing code.
115398         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
115399         fs_type strings.
115400         From Mark D. Roth.
115402 2000-05-29  Jim Meyering  <meyering@lucent.com>
115404         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
115405         mounts with the `ignore' attribute.  Based on a patch from
115406         Mark D. Roth.
115408 2000-05-28  Jim Meyering  <meyering@lucent.com>
115410         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
115411         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115412         * m4/stat.m4: Likewise.
115413         * m4/lstat.m4: Likewise.
115414         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
115416         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
115417         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
115419 2000-05-26  Jim Meyering  <meyering@lucent.com>
115421         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
115423 2000-05-24  Jim Meyering  <meyering@lucent.com>
115425         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
115426         autoconf requires that.
115427         * m4/lib-check.m4: Likewise.
115428         * m4/jm-macros.m4: Likewise.
115429         * m4/strftime.m4: Likewise.
115431         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
115432         AC_CHECK_DECLS, now that autoconf requires that.
115434 2000-05-22  Jim Meyering  <meyering@lucent.com>
115436         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115437         * m4/lstat.m4: Likewise.
115439 2000-05-22  Jim Meyering  <meyering@lucent.com>
115441         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
115443 2000-05-20  Jim Meyering  <meyering@lucent.com>
115445         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
115446         (jm_PREREQ): Use it.
115448 2000-05-18  Jim Meyering  <meyering@lucent.com>
115450         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
115451         back, too, since it may have been modified by allocate_entry.
115452         (hash_delete): Rewrite to use neither the assignment operator
115453         nor the comma operator in an if-expression.
115455 2000-05-15  Paul Eggert  <eggert@twinsun.com>
115457         * lib/closeout.c:
115458         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
115459         Remove; no longer needed.
115460         "quotearg.h": Add include.
115461         (file_name): Do not bother to explicitly initialize to NULL; it's less
115462         efficient on some hosts.
115463         (close_stdout_status): Remove test as to whether stdout was already
115464         closed; it breaks for the case "echo x | sort >&-".
115465         Quote file name colons.
115466         Do not assume that _("write error") lacks format strings.
115468 2000-05-15  Jim Meyering  <meyering@lucent.com>
115470         * lib/version-etc.c (version_etc_copyright): Update the copyright
115471         string used in all --version output.
115473 2000-05-14  Jim Meyering  <meyering@lucent.com>
115475         * lib/closeout.c (close_stdout_set_file_name): New function.
115476         (close_stdout_status): Use new file-scoped global.
115477         Return right away if fstat says the stdout file descriptor is invalid.
115478         * lib/closeout.h (close_stdout_set_file_name): Declare.
115480 2000-05-10  Jim Meyering  <meyering@lucent.com>
115482         * lib/closeout.c [default_exit_status]: New file-scoped variable.
115483         (close_stdout_set_status): New function.
115484         * lib/closeout.h (close_stdout_set_status): Declare.
115486 2000-05-09  Jim Meyering  <meyering@lucent.com>
115488         * m4/gettext.m4: Rename this...
115489         * m4/libintl.m4: ...to this.
115491 2000-05-08  Jim Meyering  <meyering@lucent.com>
115493         * lib/long-options.c: Don't include closeout.h.
115494         (parse_long_options): Don't call close_stdout for --version.
115496 2000-05-06  Paul Eggert  <eggert@twinsun.com>
115498         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
115499         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
115500         2.1.3 bug.  This avoids a clash when files like regex.c define
115501         _GNU_SOURCE.
115503 2000-05-06  Jim Meyering  <meyering@lucent.com>
115505         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
115506         (AC_REPLACE_FUNCS): Add strnlen.
115508         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
115509         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
115511         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
115512         AC_SEARCH_LIBS call for nanosleep.
115513         (LIB_NANOSLEEP): Set and AC_SUBST.
115515 2000-05-06  Jim Meyering  <meyering@lucent.com>
115517         * lib/strnlen.c: Undefine __strnlen and strnlen.
115518         [!weak_alias]: Define __strnlen to strnlen.
115520         * lib/atexit.c: New file, from libiberty.
115522 2000-05-06  Jim Meyering  <meyering@lucent.com>
115524         * lib/closeout.c (close_stdout_status): Also check for errors on the
115525         stderr stream.
115527 2000-05-05  Jim Meyering  <meyering@lucent.com>
115529         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
115530         AC_SEARCH_LIBS call for clock_gettime.
115531         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
115533         * m4/search-libs.m4: Update from autoconf.
115535         su doesn't work on Solaris 2.6.
115536         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
115537         <shadow.h>.  Reported by Dragos Harabor.
115539 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
115541         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
115542         memcpy instead of xmalloc, xrealloc, path_concat.
115543         (locale_charset): Treat empty environment variables as absent.
115544         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
115546 2000-05-04  Jim Meyering  <meyering@lucent.com>
115548         * lib/getopt.c: Update from glibc.
115549         * lib/obstack.c: Likewise.
115550         * lib/obstack.h: Likewise.
115551         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
115552         file
115554         * lib/regex.h: Likewise.
115555         * lib/strndup.c: Likewise.
115556         * lib/strnlen.c: New file, from glibc.
115558 2000-05-03  Jim Meyering  <meyering@lucent.com>
115560         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
115562 2000-05-02  Paul Eggert  <eggert@twinsun.com>
115564         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
115565         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
115566         compile-time test, rather than inspecting host and OS, to
115567         decide whether to define _LARGEFILE_SOURCE.
115569 2000-05-01  Jim Meyering  <meyering@lucent.com>
115571         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
115573         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
115574         Based on a patch from Bruno Haible.
115576 2000-05-01  Jim Meyering  <meyering@lucent.com>
115578         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
115580 2000-04-29  Jim Meyering  <meyering@lucent.com>
115582         * lib/path-concat.c: Declare strdup only if it's not defined.
115583         * lib/canon-host.c: Likewise.
115585 2000-04-28  Jim Meyering  <meyering@lucent.com>
115587         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
115588         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
115589         is included first, then limits.h is included by locale.h by libintl.h.
115590         From John David Anglin.
115592 2000-04-25  Jim Meyering  <meyering@lucent.com>
115594         * lib/makepath.c (S_IRWXUGO): Define.
115595         (make_path): Always perform explicit chmod if MODE specifies any
115596         of the `special' permission bits.  Prompted by a bug report against
115597         install from Mate Wierdl and Joost van Baal.
115599 2000-04-18  Jim Meyering  <meyering@lucent.com>
115601         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115602         (jm_PREREQ): Use it.
115604 2000-04-18  Jim Meyering  <meyering@lucent.com>
115606         * lib/README: New file.
115608         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115609         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115611 2000-04-17  Jim Meyering  <meyering@lucent.com>
115613         Get it right :-)
115614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115615         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115616         Suggestion from Akim Demaille.
115618 2000-04-17  Jim Meyering  <meyering@lucent.com>
115620         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115621         the definition of it to rpl_strftime also defined-away the system's
115622         declaration.
115624 2000-04-15  Jim Meyering  <meyering@lucent.com>
115626         Use `C' to denote so-called `contiguous' files, the same way
115627         that tar does.
115628         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115629         (ftypelet): Use S_ISCTG.
115630         From Michael Deutschmann.
115632 2000-04-14  Jim Meyering  <meyering@lucent.com>
115634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115635         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115636         clobbered.
115638 2000-04-14  Jim Meyering  <meyering@lucent.com>
115640         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115642 2000-04-13  Jim Meyering  <meyering@lucent.com>
115644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115645         AH_VERBATIM to insert required #ifndef into config.h.in.
115646         Suggestion from Akim Demaille.
115648 2000-04-12  Jim Meyering  <meyering@lucent.com>
115650         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115651         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115652         Christian Krackowizer.
115654         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115655         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115656         (AC_SYS_LARGEFILE): Require.
115657         (AM_C_PROTOTYPES): Require.
115659 2000-04-08  Jim Meyering  <meyering@lucent.com>
115661         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115662         names don't conflict.  Reported by Eli Zaretskii.
115664 2000-04-07  Jim Meyering  <meyering@lucent.com>
115666         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115667         sys/types.h, to work around system header problems on AIX 3.2.5.
115668         From Bruno Haible.
115670 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115672         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115673         bug.  Deal with the different error behavior of Irix iconv.
115675 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115677         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115678         IRIX if the installer said otherwise.
115680 2000-04-05  Jim Meyering  <meyering@lucent.com>
115682         Portability tweaks required for ultrix4.3.
115683         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115684         (jm_CHECK_DECLS): Add getutent to the list of functions.
115685         (_jm_DECL_HEADERS): Add utmpx.h.
115686         From John David Anglin.
115688         * m4/strftime.m4: Back out the 2000-04-02 change.
115689         Instead of that change, simply undefine putenv in the test program.
115691 2000-04-05  Jim Meyering  <meyering@lucent.com>
115693         Portability tweaks required for ultrix4.3.
115694         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115695         getutent.
115696         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115697         * lib/canon-host.c: Declare strdup.
115698         * lib/path-concat.c: Likewise.
115699         From John David Anglin.
115701 2000-04-04  Jim Meyering  <meyering@lucent.com>
115703         Be more DOS 8.3-friendly.
115704         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115705         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115706         * lib/Makefile.am: Reflect renaming.
115707         Reported by Eli Zaretskii.
115709         Use a temporary file name that won't clash with `charset.alias'
115710         in the DOS 8.3 name space.
115711         * lib/Makefile.am (charset_tmp): Define.
115712         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115713         (uninstall-local): Likewise.
115714         Reported by Eli Zaretskii.
115716 2000-04-03  Jim Meyering  <meyering@lucent.com>
115718         * m4/gettext.m4: Fix typo in comment.
115720         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115721         textutils/configure.in).  Suggestion from Paul Eggert.
115722         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115724 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115726         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115727         variable in the shell rather than using putenv, which isn't
115728         portable.  This avoids the configure-time inter-test dependency
115729         on the potentially-renamed putenv function.
115731 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115733         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115734         before checking struct stat.st_blksize, so that
115735         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115737 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115739         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115740         since strftime.c uses HAVE_STRFTIME to decide whether to use
115741         the underlying strftime.
115743 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115745         * lib/time/strftime.c (my_strftime): Make sure we call the system
115746         strftime, not ourselves, when invoking the underlying strftime.
115748 2000-03-24  Jim Meyering  <meyering@lucent.com>
115750         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
115751         (charset_alias): Define.
115752         (install-exec-local): Factor out common code.
115753         (uninstall-local): Split lines longer than 80.
115754         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
115755         (SUFFIXES): Define.
115756         (.sed.in.sed): New rule.  Don't redirect directly to $@.
115757         (CLEANFILES): Add ref-add.sed and ref-del.sed.
115759 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
115761         * lib/config.charset: Output a line containing "Packages using this
115762         file".
115763         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
115764         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
115765         ref-del.sed): New rules.
115767 2000-03-17  Jim Meyering  <meyering@lucent.com>
115769         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
115770         Otherwise, include <strings.h>
115772 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
115774         * lib/unicodeio.c (utf8_wctomb): New function.
115775         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
115776         format instead of in UCS-4 with platform dependent endianness.
115778 2000-03-10  Jim Meyering  <meyering@lucent.com>
115780         * m4/lib-check.m4: Look for getspnam in -lgen, too.
115781         From Marco Franzen.
115783 2000-03-07  Paul Eggert  <eggert@twinsun.com>
115785         * lib/savedir.c (savedir): Work even if directory size is
115786         negative; this can happen with some screwy NFS configurations.
115788 2000-03-06  Jim Meyering  <meyering@lucent.com>
115790         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
115791         if it's NULL (because we ran out of memory).  From Bruno Haible.
115793 2000-03-05  Jim Meyering  <meyering@lucent.com>
115795         * lib/localcharset.c ("path-concat.h"): Include.
115796         (get_charset_aliases): Use path_concat instead of ANSI string
115797         concatenation.
115799         * lib/unicodeio.h (PARAMS): Define.
115800         Use it to guard prototype.
115802 2000-03-04  Jim Meyering  <meyering@lucent.com>
115804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
115805         for lib/localcharset.c.
115807 2000-03-04  Jim Meyering  <meyering@lucent.com>
115809         * lib/Makefile.am (install-exec-local): Create $(libdir) before
115810         installing into it.
115811         (uninstall-local): Uncomment this rule so `make distcheck' works
115812         once again.
115814         * lib/unicodeio.c (<errno.h>): Include it.
115815         (errno): Declare if not defined.
115817         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
115819         * lib/config.charset: New version, incorporating remarks from a linux
115820         i18n mailing list.  From Bruno Haible.
115822 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
115824         * m4/codeset.m4: New file.
115825         * m4/iconv.m4: New file.
115826         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
115828 2000-03-03  Jim Meyering  <meyering@lucent.com>
115830         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
115832 2000-03-02  Jim Meyering  <meyering@lucent.com>
115834         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
115835         the messages come out on separate lines.
115837         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
115838         rather than jm_CHECK_DECLARATIONS.
115839         * m4/decl.m4: Remove now-unused file.
115841         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
115842         geteuid.
115844 2000-03-02  Jim Meyering  <meyering@lucent.com>
115846         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
115848 2000-03-01  Jim Meyering  <meyering@lucent.com>
115850         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
115851         * lib/unicodeio.c: Likewise.
115853 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
115855         * lib/config.charset: New file.
115856         * lib/localcharset.c: New file.
115857         * lib/unicodeio.h, lib/unicodeio.c: New files.
115858         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115859         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115860         (noinst_HEADERS): Add unicodeio.h.
115861         (all-local, install-exec-local, charset.alias): New targets.
115863 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115865         * lib/quotearg.c (ALERT_CHAR): New macro.
115866         (quotearg_buffer_restyled): Use it.
115868 2000-02-27  Jim Meyering  <meyering@lucent.com>
115870         * m4/check-decl.m4: Add getenv to the list.
115872 2000-02-27  Jim Meyering  <meyering@lucent.com>
115874         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115875         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115877         * lib/backupfile.c: Guard inclusion of stdlib.h with
115878         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115879         Declare malloc if needed.
115881         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115882         `#ifndef HAVE_DECL..'
115883         now that autoconf always defines the HAVE_DECL_ symbols.
115884         * lib/human.c: Likewise.
115885         * lib/same.c: Likewise.
115886         * lib/strtoumax.c: Likewise.
115888         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115889         declaration check was not run.
115890         * lib/hash.c: Likewise.
115891         * lib/human.c: Likewise.
115892         * lib/same.c: Likewise.
115893         * lib/strtoumax.c: Likewise.
115895         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115896         `.', then first look up the entire `.'-containing string as a login
115897         name.
115899 2000-02-23  Jim Meyering  <meyering@lucent.com>
115901         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115902         in place of my hack.
115904 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115906         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115907         (textint): New typedef.
115908         (parser_control): Member year changed from int to textint.
115909         All uses changed.
115910         (YYSTYPE): Removed; replaced by %union with int and textint members.
115911         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115912         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115913         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115914         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115915         (date, number, to_year): Use width of number in digits, not its value,
115916         to determine whether it's a 2-digit year, or a 2-digit time.
115917         (yylex): Store number of digits of numeric tokens.
115918         Reported by John Kendall.
115920         (parser_control): Changed from struct parser_control to typedef (for
115921         consistency).  All uses changed.
115923         (tID): Removed; not used.
115924         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
115926 2000-02-14  Paul Eggert  <eggert@twinsun.com>
115928         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
115929         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
115931 2000-02-12  Jim Meyering  <meyering@lucent.com>
115933         * lib/userspec.c (ISDIGIT): Define it.
115934         (isdigit): Remove definition.
115935         (is_number): Use ISDIGIT, not isdigit.
115936         <libintl.h>: Include.
115937         (_ and N_): Define.
115938         (parse_user_spec): Mark translatable strings.
115940 2000-02-10  Jim Meyering  <meyering@lucent.com>
115942         With these changes, nanosleep.[ch] are finally enough like the other
115943         lib/* replacement files to compile on a few more losing systems.
115945         * lib/nanosleep.h: Don't include config.h.
115946         Remove prototype from declaration of nanosleep.
115947         (PARAMS): Remove now-unneeded definition.
115948         * lib/nanosleep.c: #undef nanosleep.
115949         (rpl_nanosleep): Rename from nanosleep.
115951 2000-02-10  Jim Meyering  <meyering@lucent.com>
115953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
115954         gnu_nanosleep to rpl_nanosleep.
115956 2000-02-09  Jim Meyering  <meyering@lucent.com>
115958         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
115959         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
115961 2000-02-08  Akim Demaille  <akim@epita.fr>
115963         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
115964         `[' and `]' and remove uses of `changequote'.
115965         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
115966         (AC_SYS_LARGEFILE): Likewise.
115967         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
115968         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
115969         of changequote.
115970         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
115971         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
115972         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
115973         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
115975 2000-02-05  Jim Meyering  <meyering@lucent.com>
115977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
115978         Remove explicit use of AC_HEADER_TIME.  It is required by
115979         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
115980         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
115981         in autoconf whereby the expansion of the latter ended up preceding
115982         the expansion of its prerequisite, AC_HEADER_TIME.
115983         Reported by Volker Borchert.
115985 2000-02-03  Jim Meyering  <meyering@lucent.com>
115987         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
115989 2000-02-03  Jim Meyering  <meyering@lucent.com>
115991         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
115992         rather than with `#if HAVE_UTMPNAME'.
115994 2000-02-02  Jim Meyering  <meyering@lucent.com>
115996         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
115997         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
115998         Reported by Eli Zaretskii.
116000 2000-02-01  Jim Meyering  <meyering@lucent.com>
116002         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
116004 2000-01-31  Jim Meyering  <meyering@lucent.com>
116006         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
116007         functions.  Add the time.h and sys/time.h headers along with the
116008         AC_REQUIRE'ment of AC_HEADER_TIME.
116010 2000-01-31  Jim Meyering  <meyering@lucent.com>
116012         * lib/nanosleep.h (nanosleep): Guard declaration with
116013         `#if ! HAVE_DECL_NANOSLEEP'.
116014         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
116015         the declaration in that vendor's sys/timers.h.
116016         Reported by Christian Krackowizer.
116018         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
116019         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
116020         (ISPRINT): Likewise.
116021         Reported by Tom Tromey.
116023 2000-01-30  Jim Meyering  <meyering@lucent.com>
116025         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
116027         * m4/prereq.m4 (utmp_includes): Define.
116028         Check for ut_user and ut_name members in both struct utmpx
116029         and struct utmp.
116031 2000-01-30  Jim Meyering  <meyering@lucent.com>
116033         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
116034         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
116035         header files where only utmpx.ut_user is declared.
116037         * lib/readutmp.h (UT_USER): Define.
116039 2000-01-29  Jim Meyering  <meyering@lucent.com>
116041         * m4/lib-check.m4: New file containing library-related checks from
116042         fileutils and sh-utils (textutils had none).
116044 2000-01-28  Jim Meyering  <meyering@lucent.com>
116046         * m4/perl.m4: Change format of warning message to look more like that
116047         from the missing script.  Suggestion from François Pinard.
116049 2000-01-25  Jim Meyering  <meyering@lucent.com>
116051         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
116052         well as time.h in the compile check.
116053         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
116054         Fix typo in cross-compiling case: s/yes/no/.
116056 2000-01-23  Jim Meyering  <meyering@lucent.com>
116058         * m4/jm-macros.m4: Move df-related tests here from
116059         fileutils/configure.in
116061         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
116062         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
116064         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
116065         s/space/ac_fsusage_space/.
116066         (jm_FILE_SYSTEM_USAGE): Take two parameters.
116068         * m4/ftruncate.m4: New file (derived from part of
116069         fileutils/configure.in).
116070         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
116071         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
116073         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
116074         AC_SUBST these here, rather than just in sh-util/configure.in, so
116075         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
116076         all the same.
116077         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
116078         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
116079         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
116080         (AC_SUBST(POW_LIBM)): Likewise.
116081         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
116083 2000-01-23  Jim Meyering  <meyering@lucent.com>
116085         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
116086         obstack.c.
116088 2000-01-22  Jim Meyering  <meyering@lucent.com>
116090         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
116092         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
116094         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
116095         configure.in
116096         (AC_CHECK_HEADERS): Likewise for sh-utils.
116097         (AC_CHECK_HEADERS): Likewise for textutils.
116098         Merge the three lists of headers.
116100         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
116101         from fileutils' configure.in.
116103         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
116104         code. Moved tests into their own function (_jm_DECL_HEADERS) in
116105         check-decl.m4.
116107         * m4/check-decl.m4: Use #if rather than #ifdef.
116108         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
116109         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
116110         (_jm_DECL_HEADERS): Define new function.
116111         (jm_CHECK_DECLARATIONS): Require it.
116113 2000-01-22  Jim Meyering  <meyering@lucent.com>
116115         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
116116         [! HAVE_DECL_STRTOULL]: Declare strtoull.
116117         Required for some AIX systems.  Reported by Christian Krackowizer.
116118         [TESTING] (main): New function.
116120         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
116121         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
116122         letters.
116124         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
116125         iswprint.
116127         * lib/strverscmp.c (ISDIGIT): Define.
116128         (strverscmp): Use ISDIGIT, not isdigit.
116130 2000-01-19  Jim Meyering  <meyering@lucent.com>
116132         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
116133         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
116134         defines `struct timespec' in <sys/time.h>
116136         * m4/c-bs-a.m4: Remove uses of changequote altogether.
116137         Thanks to Akim for explaining.
116139 2000-01-17  Paul Eggert  <eggert@twinsun.com>
116141         * lib/nanosleep.c (nanosleep):
116142         Don't use SA_INTERRUPT to decide whether to call sigaction, as
116143         POSIX.1 doesn't require SA_INTERRUPT and some systems
116144         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
116145         it's been part of POSIX.1 since day 1 (in 1988).
116147 2000-01-17  Jim Meyering  <meyering@lucent.com>
116149         * lib/interlock: Remove unused file.  Reported by François Pinard.
116151 2000-01-16  Paul Eggert  <eggert@twinsun.com>
116153         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
116154         alert, backslash, formfeed, and vertical tab unnecessarily in
116155         shell quoting style.
116157 2000-01-16  Jim Meyering  <meyering@lucent.com>
116159         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
116160         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
116161         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
116162         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
116164 2000-01-16  Jim Meyering  <meyering@lucent.com>
116166         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
116167         because the latter didn't work.
116169 2000-01-15  Jim Meyering  <meyering@lucent.com>
116171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
116172         (AC_REPLACE_FUNCS): Add memcpy and memset.
116173         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
116174         Add strpbrk.
116175         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
116177 2000-01-12  Jim Meyering  <meyering@lucent.com>
116179         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
116180         (jm_PREREQ): Use it.
116181         (jm_PREREQ_READUTMP): New macro.
116182         (jm_PREREQ): Use it.
116184 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116186         Quote multibyte characters correctly.
116187         * m4/c-bs-a.m4: New file.
116188         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
116189         (jm_PREREQ): Use it.
116191 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116193         * m4/uintmax_t.m4: Port to autoconf 2.13.
116195 2000-01-08  Jim Meyering  <meyering@ascend.com>
116197         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
116198         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
116200 2000-01-04  Jim Meyering  <meyering@ascend.com>
116202         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
116203         jm_STRUCT_DIRENT_D_TYPE.
116204         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
116205         jm_STRUCT_DIRENT_D_INO.
116206         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
116207         jm_STRUCT_UTIMBUF.
116208         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
116209         renamings.
116210         * m4/utime.m4: Likewise.
116212         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
116213         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
116215 2000-01-03  Paul Eggert  <eggert@twinsun.com>
116217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
116218         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
116220 2000-01-02  Jim Meyering  <meyering@ascend.com>
116222         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
116223         remember if this is necessary.
116225 1999-12-26  Jim Meyering  <meyering@ascend.com>
116227         * m4/jm-macros.m4: Use it here.
116228         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
116230 1999-12-23  Jim Meyering  <meyering@ascend.com>
116232         * m4/jm-macros.m4: Check for clock_gettime (moved from
116233         fileutils/configure.in)
116234         Check for gettimeofday.
116236 1999-12-20  Jim Meyering  <meyering@ascend.com>
116238         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
116239         autoconf-2.14a-1999-12-20.
116241 1999-12-19  Jim Meyering  <meyering@ascend.com>
116243         * m4/lstat-slash.m4: New file.
116244         * m4/jm-macros.m4: Use the new macro:
116245         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
116247 1999-12-07  Jim Meyering  <meyering@ascend.com>
116249         * m4/perl.m4: Require that File::Compare be available, too.
116250         Too many systems seem to lack it.
116252         * m4/strftime.m4: Add checks for most of the cpp macros tested in
116253         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
116255 1999-11-18  Paul Eggert  <eggert@twinsun.com>
116257         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
116258         problem with the QNX 4.25 shell, which doesn't propagate exit
116259         status of failed commands inside shell assignments.
116261 1999-11-17  Jim Meyering  <meyering@ascend.com>
116263         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
116265 1999-11-07  Jim Meyering  <meyering@ascend.com>
116267         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
116269 1999-11-06  Jim Meyering  <meyering@ascend.com>
116271         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
116272         * m4/jm-macros.m4 (jm_MACROS): Use it here.
116274 1999-11-05  Jim Meyering  <meyering@ascend.com>
116276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
116277         configure.in of textutils, fileutils, and sh-utils into this one
116278         (shared between those packages) file.
116279         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
116280         AC_STRUCT_ST_BLKSIZE.
116282 1999-11-03  Jim Meyering  <meyering@ascend.com>
116284         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
116285         of AC_CHECK_TYPE checks includes unistd.h.
116286         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
116287         Suggestion from Akim Demaille.
116289 1999-10-30  Jim Meyering  <meyering@ascend.com>
116291         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
116292         m4-quoted string.
116293         * m4/ls-mntd-fs.m4: Likewise.
116294         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
116295         * m4/jm-winsz1.m4: Likewise.
116297         * m4/const.m4: Remove file, since the fix made it into the experimental
116298         version of autoconf.
116299         * m4/mktime.m4: Likewise.
116301         * m4/check-type.m4: Remove file, now that the latest version of
116302         AC_CHECK_TYPE takes a third arg to specify additional #includes.
116304         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
116305         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
116306         AC_CHECK_TYPE.
116308 1999-10-04  Jim Meyering  <meyering@ascend.com>
116310         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
116312 1999-09-22  Paul Eggert  <eggert@twinsun.com>
116314         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
116315         2.95.1 bug with HP-UX 10.20.
116317 1999-09-17  Jim Meyering  <meyering@ascend.com>
116319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
116320         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
116321         due to missing strdup (against sh-utils-2.0).
116323 1999-08-29  Jim Meyering  <meyering@ascend.com>
116325         * m4/jm-macros.m4: Require jm_BISON.
116326         * m4/bison.m4: New file.
116328 1999-08-17  Paul Eggert  <eggert@twinsun.com>
116330         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
116331         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
116333 1999-08-05  Jim Meyering  <meyering@ascend.com>
116335         * m4/getline.m4: Rename test file from conftestdata to conftest.data
116336         to avoid conflicts with `conftest' on 8+3 filesystems.
116337         Suggestion from Eli Zaretskii.
116339 1999-08-04  Jim Meyering  <meyering@ascend.com>
116341         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
116342         fileutils and sh-utils (textutils's getline test was inadequate).
116343         (AM_FUNC_GETLINE): Run this test.
116344         (AC_CHECK_FUNCS): Check for getdelim.
116345         Reported by Bob Proulx.
116347 1999-08-02  Jim Meyering  <meyering@ascend.com>
116349         * m4/jm-macros.m4: Add a comment.
116351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
116354         <inttypes.h> defines strtoumax as a macro (and not as a
116355         function).
116357 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116359         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
116360         that we can shift, multiply and divide unsigned long long
116361         values; Ultrix cc can't do it.
116363 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116365         * m4/mktime.m4: New file, which is a preview of what should appear
116366         in the next public autoconf release.
116368 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116370         * m4/lfs.m4: Remove this file.
116371         * m4/largefile.m4: New file.  It contains the old contents of
116372         lfs.m4, except that all names with prefix AC_LFS have been
116373         changed to use the prefix AC_SYS_LARGEFILE instead, to be
116374         compatible with future autoconf versions.  Also, some minor m4
116375         quoting problems have been fixed.
116377 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116379         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
116380         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
116381         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
116382         and simplify the shell code.
116384 1999-08-01  Jim Meyering  <meyering@ascend.com>
116386         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
116387         m4.
116389 1999-07-20  Jim Meyering  <meyering@ascend.com>
116391         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
116393 1999-07-15  Jim Meyering  <meyering@ascend.com>
116395         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
116397 1999-05-22  Jim Meyering  <meyering@ascend.com>
116399         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
116401 1999-05-20  Jim Meyering  <meyering@ascend.com>
116403         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
116404         Add a colon after each `then' in case $4 is empty.
116406 1999-05-16  Jim Meyering  <meyering@ascend.com>
116408         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
116410 1999-05-10  Jim Meyering  <meyering@ascend.com>
116412         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
116414         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
116415         AC_FUNC_MKTIME.
116417 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
116419         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
116421 1999-05-04  Paul Eggert  <eggert@twinsun.com>
116423         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
116424         not CPPFLAGS, so that linking works correctly in IRIX.
116426 1999-04-30  Paul Eggert  <eggert@twinsun.com>
116428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
116430 1999-04-20  Paul Eggert  <eggert@twinsun.com>
116432         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
116433         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
116434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
116435         jm_AC_TYPE_UNSIGNED_LONG_LONG.
116436         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
116438         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
116440 1999-04-20  Jim Meyering  <meyering@ascend.com>
116442         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
116443         AC_REPLACE xstroull if necessary.  From Paul Eggert.
116444         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
116446 1999-04-18  Jim Meyering  <meyering@ascend.com>
116448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
116449         * m4/jm-macros.m4: Use it.
116451 1999-04-06  Jim Meyering  <meyering@ascend.com>
116453         * m4/strftime.m4: Remove test for %f.
116455 1999-03-29  Jim Meyering  <meyering@ascend.com>
116457         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
116458         superset of the AC_TYPE_* checks in the textutils, fileutils,
116459         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
116460         AC_TYPE_PID_T.
116462 1999-03-28  Jim Meyering  <meyering@ascend.com>
116464         * m4/jm-macros.m4: Define GNU_PACKAGE here.
116465         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
116466         replaced e.g., in the *.sh files of the sh-utils.
116468 1999-03-20  Jim Meyering  <meyering@ascend.com>
116470         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
116471         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
116472         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
116474 1999-03-19  Jim Meyering  <meyering@ascend.com>
116476         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
116478 1999-03-12  Jim Meyering  <meyering@ascend.com>
116480         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
116482 1999-03-07  Jim Meyering  <meyering@ascend.com>
116484         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
116485         declared.
116487 1999-02-17  Jim Meyering  <meyering@ascend.com>
116489         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
116490         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
116492 1999-02-07  Jim Meyering  <meyering@ascend.com>
116494         * m4/group-member.m4: New file -- extracted from sh-utils'
116495         configure.in.
116497         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
116498         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
116500 1999-02-06  Jim Meyering  <meyering@ascend.com>
116502         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
116503         * m4/fnmatch.m4: Likewise.
116504         * m4/getgroups.m4: Likewise.
116505         * m4/lstat.m4: Likewise.
116506         * m4/malloc.m4: Likewise.
116507         * m4/putenv.m4: Likewise.
116508         * m4/realloc.m4: Likewise.
116509         * m4/regex.m4: Likewise.
116510         * m4/stat.m4: Likewise.
116511         * m4/strftime.m4: Likewise.
116512         Suggestion from Alain Magloire.
116514         * m4/chown.m4: Use `.$ac_objext', not `.o'.
116515         * m4/fnmatch.m4: Likewise.
116516         * m4/getgroups.m4: Likewise.
116517         * m4/getline.m4: Likewise.
116518         * m4/lstat.m4: Likewise.
116519         * m4/malloc.m4: Likewise.
116520         * m4/memcmp.m4: Likewise.
116521         * m4/putenv.m4: Likewise.
116522         * m4/realloc.m4: Likewise.
116523         * m4/regex.m4: Likewise.
116524         * m4/stat.m4: Likewise.
116525         * m4/strftime.m4: Likewise.
116526         Suggestion from Alain Magloire.
116528         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
116529         an argument.
116531         * m4/regex.m4: Add a run-time Test for proper operation of
116532         re_compile_pattern.
116534 1999-01-31  Jim Meyering  <meyering@ascend.com>
116536         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
116538 1999-01-30  Jim Meyering  <meyering@ascend.com>
116540         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
116542         * m4/jm-mktime.m4: Make this a wrapper around the official
116543         AM_FUNC_MKTIME rather than my private copy, now that the official one
116544         is up to date.
116545         * m4/mktime.m4: Remove file.
116547         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
116548         * m4/uptime.m4: Likewise.
116549         * m4/uintmax_t.m4: Likewise.
116551 1999-01-28  Jim Meyering  <meyering@ascend.com>
116553         * m4/jm-macros.m4: Use jm_AFS.
116554         * m4/afs.m4: New file (from fileutils' configure.in).
116556         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
116557         * m4/chown.m4: Likewise.
116558         * m4/d-ino.m4: Likewise.
116559         * m4/d-type.m4: Likewise.
116560         * m4/fnmatch.m4: Likewise.
116561         * m4/getgroups.m4: Likewise.
116562         * m4/gettext.m4: Likewise.
116563         * m4/jm-mktime.m4: Likewise.
116564         * m4/jm-winsz2.m4: Likewise.
116565         * m4/lcmessage.m4: Likewise.
116566         * m4/ls-mntd-fs.m4: Likewise.
116567         * m4/malloc.m4: Likewise.
116568         * m4/memcmp.m4: Likewise.
116569         * m4/putenv.m4: Likewise.
116570         * m4/realloc.m4: Likewise.
116571         * m4/st_mtim.m4: Likewise.
116572         * m4/strftime.m4: Likewise.
116574 1999-01-16  Jim Meyering  <meyering@ascend.com>
116576         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
116577         (ARGMATCH_DIE_DECL): Define.
116579 1999-01-12  Jim Meyering  <meyering@ascend.com>
116581         * m4/Makefile.am.in: Rewrite to avoid using fmt.
116582         Reported by Lars Hecking.
116584 1999-01-10  Jim Meyering  <meyering@ascend.com>
116586         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
116587         gross kludge.
116588         * m4/inttypes_h.m4: Likewise.
116589         * m4/lstat.m4: Likewise.
116590         * m4/malloc.m4: Likewise.
116591         * m4/readdir.m4: Likewise.
116592         * m4/realloc.m4: Likewise.
116593         * m4/st_dm_mode.m4: Likewise.
116594         * m4/stat.m4: Likewise.
116595         * m4/utimbuf.m4: Likewise.
116596         * m4/utimes.m4: Likewise.
116598         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116599         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116600         comments in config.h.in are meaningful.
116602         * m4/jm-macros.m4: Require autoconf-2.13 here.
116604         * m4/regex.m4: By default, don't use the included regex.c on systems
116605         with glibc 2.  Suggestion from Uli Drepper.
116607 1999-01-02  Jim Meyering  <meyering@ascend.com>
116609         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116611 1998-12-18  Jim Meyering  <meyering@ascend.com>
116613         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116614         Based on a suggestion from Lars Hecking.
116616 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116618         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116620 1998-11-16  Jim Meyering  <meyering@ascend.com>
116622         * m4/lfs.m4: Double-quote the `uname...` expression.
116624 1998-11-14  Jim Meyering  <meyering@ascend.com>
116626         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116627         * m4/stat.m4: Likewise.
116629 1998-11-03  Jim Meyering  <meyering@ascend.com>
116631         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116632         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116634 1998-10-18  Jim Meyering  <meyering@ascend.com>
116636         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116638 1998-10-17  Jim Meyering  <meyering@ascend.com>
116640         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116641         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116642         calls for those previously hard-coded headers.  Instead, take a new
116643         parameter.
116644         (jm_CHECK_DECLARATIONS): Reflect interface change.
116645         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116646         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116648         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116650 1998-10-14  Jim Meyering  <meyering@ascend.com>
116652         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116653         instead of "TZ=America/Vancouver".  From Paul Eggert.
116655 1998-10-11  Jim Meyering  <meyering@ascend.com>
116657         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116658         This adds a test for a recently added compatibility fix for mktime.c.
116659         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116661 1998-09-27  Jim Meyering  <meyering@ascend.com>
116663         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116665         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116666         ../configure.in, including a change from Gordon Matzigkeit to allow
116667         cross-compiling for the Hurd.
116669         * m4/glibc.m4: New file/macro to test for the GNU C Library
116670         versions 1 and 2.  From Gordon Matzigkeit.
116671         Indent.
116673 1998-09-21  Jim Meyering  <meyering@ascend.com>
116675         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116677 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116679         Port nanosecond-resolution times to UnixWare 2.1.2 and
116680         pedantic Solaris 2.6.
116682         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116683         AC_STRUCT_ST_MTIM.
116684         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116685         Generate name of ns member, instead of just 1 or undef.
116686         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116688 1998-08-15  Jim Meyering  <meyering@ascend.com>
116690         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116691         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116692         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116693         instead of jm_TYPE_SSIZE_T.
116695 1998-08-12  Jim Meyering  <meyering@ascend.com>
116697         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116699 1998-08-02  Jim Meyering  <meyering@ascend.com>
116701         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116702         in acconfig.h manually.
116704 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116706         * m4/st_mtim.m4: New file.
116708 1998-07-28  Jim Meyering  <meyering@ascend.com>
116710         * m4/utimes.m4: Undef stat.
116712 1998-07-25  Jim Meyering  <meyering@ascend.com>
116714         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116715         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116717 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116719         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116720         uid and gid actually remain unchanged.
116722 1998-07-07  Jim Meyering  <meyering@ascend.com>
116724         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116726 1998-07-04  Jim Meyering  <meyering@ascend.com>
116728         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116729         to prove that this macro can be used in packages without regex.c.
116731 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116733         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116734         is to be used.
116736 1998-07-03  Jim Meyering  <meyering@ascend.com>
116738         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116740         * m4/gettext.m4: New file -- from gettext-0.10.35.
116741         * m4/lcmessage.m4: Likewise.
116742         * m4/progtest.m4: Likewise.
116744         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
116745         * m4/jm-macros.m4: Require the new macro.
116747 1998-06-29  Jim Meyering  <meyering@ascend.com>
116749         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
116750         for the definition of NGROUPS (used in a system header included
116751         by sys/mount.h).
116753 1998-06-28  Jim Meyering  <meyering@ascend.com>
116755         * m4/ls-mntd-fs.m4: New file.
116756         * m4/fstypename.m4: New file.
116758         * m4/jm-macros.m4: Require the new macro.
116759         * m4/jm-glibc-io.m4: New file.
116761 1998-05-19  Jim Meyering  <meyering@ascend.com>
116763         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
116764         * m4/lchown.m4: New file.
116766         * m4/Makefile.am.in: New file.
116767         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
116769 1998-05-14  Jim Meyering  <meyering@ascend.com>
116771         * m4/Makefile.am (EXTRA_DIST): Add them.
116772         * m4/jm-macros.m4: New file.
116773         * m4/utimbuf.m4: New file.
116775 1998-05-12  Jim Meyering  <meyering@ascend.com>
116777         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
116779 1998-05-11  Jim Meyering  <meyering@ascend.com>
116781         * m4/isc-posix.m4: New file.
116783 1998-05-10  Jim Meyering  <meyering@ascend.com>
116785         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
116787 1998-05-09  Jim Meyering  <meyering@ascend.com>
116789         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
116790         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
116791         with automake.
116793         * m4/ssize_t.m4: New file.
116794         * m4/mktime.m4: Remove file -- the new automake has this now.
116796 1998-04-26  Jim Meyering  <meyering@ascend.com>
116798         * m4/assert.m4: New file.
116799         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
116801 1998-04-05  Jim Meyering  <meyering@ascend.com>
116803         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
116804         (jm_PREREQ): Use it here.
116806 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
116808         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
116809         in acconfig.h.
116811 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
116813         * m4/prereq.m4: New file.
116814         * m4/error.m4: New file.
116815         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
116817 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
116819         * m4/getline.m4: Don't set am_cv_func_working_getline before the
116820         cache-check for the same variable -- that defeated the purpose of
116821         the test; the test program was never run.  This was a problem only
116822         on systems with losing getline functions -- HP-UX 10.20 is one.
116823         Reported by Bjorn Helgaas.
116825 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
116827         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
116829 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
116831         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
116833         * m4/const.m4: New file.  Use an initializer in this declaration
116834         typedef int charset[2]; const charset x;
116835         Reported by Bob Glickstein.
116837 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
116839         * m4/chown.m4: Fix reversed types on -1 args to chown.
116840         From Kaveh Ghazi.
116842 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
116844         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
116845         Add lseek and memchr.
116847         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
116848         T.E.Dickey <dickey@clark.net> said that some older preprocessors
116849         have a 20-character limit on names.
116851 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
116853         * m4/inttypes_h.m4: New file.
116854         * m4/uintmax_t.m4: New file.
116855         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116858         -----
116860         Local Variables:
116861         coding: utf-8
116862         End:
116864         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116866         Copying and distribution of this file, with or without
116867         modification, are permitted provided the copyright notice
116868         and this notice are preserved.